CN104853334A - Method and device for analyzing short message - Google Patents

Method and device for analyzing short message Download PDF

Info

Publication number
CN104853334A
CN104853334A CN201510272073.0A CN201510272073A CN104853334A CN 104853334 A CN104853334 A CN 104853334A CN 201510272073 A CN201510272073 A CN 201510272073A CN 104853334 A CN104853334 A CN 104853334A
Authority
CN
China
Prior art keywords
query result
note
statement
message template
source side
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510272073.0A
Other languages
Chinese (zh)
Other versions
CN104853334B (en
Inventor
王乐
张卫东
王福业
王柯
戴逸
杨钰
周奇
田书婷
马骥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510272073.0A priority Critical patent/CN104853334B/en
Publication of CN104853334A publication Critical patent/CN104853334A/en
Application granted granted Critical
Publication of CN104853334B publication Critical patent/CN104853334B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/18Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method and a device for analyzing a short message, which are used for analyzing the short message in a way of respectively configuring templates through a plurality of sub-statements in order to improve the reusability and the service efficiency of the short message templates. The method comprises the following steps of splitting a received search result short message according to a preset rule so as to obtain at least one search result statement; determining matching short message templates respectively matched with at least one search result statement in at least one short message template corresponding to a pre-stored search result short message source; and analyzing at least one search result statement according to the matching short message templates respectively matched with at least one search result statement so as to obtain valid data in at least one search result statement. The technical scheme provides a method for splitting the search result short message by adopting fine grit, so that the problem of failed template configuration caused by a change of order of a plurality of statements in the search result short message is avoided, and the reusability, the service efficiency and the precision of the short message templates are improved.

Description

Note analytic method and device
Technical field
The disclosure relates to communication field, particularly relates to note analytic method and device.
Background technology
In correlation technique, for mobile phone user, the use of data traffic is absolutely necessary, due to Domestic Carriers usually in the mode of set meal for user provides comparatively preferential flow to sell scheme, therefore, most of user also can pay close attention to the formation of flow package and the real-time service condition of flow.At present, operator is supplied to user and uses message search instructions query flow to use the mode of details, but most user is still difficult to the flow details easily and accurately inquiring oneself.
For above-mentioned situation, a lot of fail-safe software has the function automatically sending note, namely automatically instruction is sent according to certain frequency, and the mode of resolving operator SMS is stream of user queries amount details, and embody in the product, user is known and recognizes that the flow of oneself uses details exactly, thus help user's reasonable benefit/risk ground use traffic.Although the reminding method of this automatic transmission instruction can help user easily and accurately to recognize flow details, but, because there is set meal constituted modes different separately in different operators, and same operator also has different set meal constituted modes in different province ,city and areas, therefore need to configure different parsing templates by operation personnel for the source note of different operators, different brands or different province ,city and area, and set default variable in a template to resolve the detailed package information in flow details note.Along with the release of 3G, 4G network, the change of operator's flow package becomes increasingly complex, occur superposing the situation such as bag, idle flow, directed flow, and user may to order in various set meal one or more simultaneously, for different set meal combined situation, operation personnel needs to configure respectively to resolve template accordingly, and this becomes very huge with regard to making the workload of operation personnel, and memory data output is also very huge.
Summary of the invention
Disclosure embodiment provides a kind of note analytic method and device, resolves note, thus improve reusability and the service efficiency of message template for realizing in the mode of multiple substatement configuration template respectively.
According to the first aspect of disclosure embodiment, a kind of note analytic method is provided, comprises:
The Query Result note received is split according to preset rules, obtains at least one Query Result statement;
Come, at least one message template corresponding to source side, to determine the matching sms template with each Self Matching of at least one Query Result statement described in the described Query Result note prestored;
According to the matching sms template of each Self Matching of at least one Query Result statement described and described, resolve at least one Query Result statement described, obtain the valid data at least one Query Result statement described.
In one embodiment, describedly the Query Result note received to be split according to preset rules, before obtaining at least one Query Result statement, described method also comprises:
Carry out source side according to the first predeterminated frequency to described Query Result note and send information inquiry instruction;
Receive the Query Result note that described Query Result note carrys out source side transmission.
In one embodiment, the described described Query Result note prestoring is come at least one message template corresponding to source side, determine with the matching sms template of each Self Matching of at least one Query Result statement described before, described method also comprises:
Send the acquisition request obtaining message template to server, described acquisition request comprises the mark that described Query Result note carrys out source side, and described server is used for determining that described Query Result note carrys out at least one message template corresponding to source side according to described mark;
Receive described Query Result note and carry out at least one message template corresponding to source side;
Store described Query Result note and carry out at least one message template corresponding to source side.
In one embodiment, the described acquisition request sending acquisition message template to server, comprising:
Send the acquisition request obtaining message template to server according to the second predeterminated frequency;
Described method also comprises:
According to the message template that the described server received returns at every turn, upgrade at least one message template of described storage.
In one embodiment, with the matching sms template of each Self Matching of at least one Query Result statement described described in described basis, resolve at least one Query Result statement described, obtain the valid data at least one Query Result statement described, comprising:
The matching sms template of at least one Query Result statement described Self Matching each with it is contrasted;
From at least one Query Result statement described, obtain the data corresponding with the design variables in corresponding described matching sms template;
Data corresponding for described design variables are defined as described valid data.
In one embodiment, described design variables comprises default dummy variable, described from least one Query Result statement described, obtains the data corresponding with the design variables in corresponding matching sms template, comprising:
When getting the data corresponding with described default dummy variable, abandon described corresponding with described default dummy variable data.
In one embodiment, described valid data comprise any one or more in character, word, and described character comprises any one or more in numeral, unit.
In one embodiment, described the Query Result note received to be split according to preset rules, obtains at least one Query Result statement, comprising:
Come at least one message template corresponding to source side in the described Query Result note prestored, judge whether and the message template that the described Query Result note received matches;
When the described described Query Result note prestored carrys out the message template do not matched with the described Query Result note received in message template corresponding to source side, described Query Result note is split according to preset rules, obtains at least one Query Result statement.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
The present solution provides a kind of method adopting fine granularity to split Query Result note, by Query Result note is split according to certain rule, and to the configuration template respectively of the Query Result statement after fractionation, and then resolve each Query Result statement, when making as Query Result note configuration template, be no longer dependent on the order of multiple statement in Query Result note, thus avoid the template configuration failure problem caused because of the order change of statement multiple in Query Result note, improve the reusability of message template, and then improve service efficiency and the precision of message template.In addition, for the constituted mode that Query Result note is different, operation personnel without the need to configuring the different message template of constituted mode, thus greatly reduces the workload of operation personnel, reduces the required data stored simultaneously.
According to the second aspect of disclosure embodiment, a kind of note resolver is provided, comprises:
Splitting module, for the Query Result received note being split according to preset rules, obtaining at least one Query Result statement;
Determination module, at least one message template corresponding to source side, determines the matching sms template with each Self Matching of at least one Query Result statement described for coming in the described Query Result note prestored;
Parsing module, for the matching sms template according to each Self Matching of at least one Query Result statement described and described, resolves at least one Query Result statement described, obtains the valid data at least one Query Result statement described.
In one embodiment, described device also comprises:
First sending module, for the Query Result received note being split according to preset rules, before obtaining at least one Query Result statement, carrying out source side according to the first predeterminated frequency to described Query Result note and sending information inquiry instruction;
First receiver module, carrys out the Query Result note of source side transmission for receiving described Query Result note.
In one embodiment, described device also comprises:
Second sending module, for coming at least one message template corresponding to source side in the described Query Result note prestored, determine with the matching sms template of each Self Matching of at least one Query Result statement described before, the acquisition request obtaining message template is sent to server, described acquisition request comprises the mark that described Query Result note carrys out source side, and described server is used for determining that described Query Result note carrys out at least one message template corresponding to source side according to described mark;
Second receiver module, carrys out at least one message template corresponding to source side for receiving described Query Result note;
Memory module, carrys out at least one message template corresponding to source side for storing described Query Result note.
In one embodiment, described second sending module comprises:
Send submodule, for sending the acquisition request obtaining message template to server according to the second predeterminated frequency;
Described device also comprises:
Update module, for the message template returned according to the described server received at every turn, upgrades at least one message template of described storage.
In one embodiment, described parsing module comprises:
Contrast submodule, for contrasting the matching sms template of at least one Query Result statement described Self Matching each with it;
Obtain submodule, for from least one Query Result statement described, obtain the data corresponding with the design variables in corresponding described matching sms template;
Determine submodule, for data corresponding for described design variables are defined as described valid data.
In one embodiment, described acquisition submodule, also for when getting the data corresponding with described default dummy variable, abandons described corresponding with described default dummy variable data.
In one embodiment, described fractionation module comprises:
Judging submodule, at least one message template corresponding to source side, judging whether and the message template that the described Query Result note received matches for coming in the described Query Result note prestored;
Split submodule, for when described in the described Query Result note that prestores carry out the message template do not matched with the described Query Result note received in message template corresponding to source side time, described Query Result note is split according to preset rules, obtains at least one Query Result statement.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
The device provides a kind of method adopting fine granularity to split Query Result note, by Query Result note is split according to certain rule, and to the configuration template respectively of the Query Result statement after fractionation, and then resolve each Query Result statement, when making as Query Result note configuration template, be no longer dependent on the order of multiple statement in Query Result note, thus avoid the template configuration failure problem caused because of the order change of statement multiple in Query Result note, improve the reusability of message template, and then improve service efficiency and the precision of message template.In addition, for the constituted mode that Query Result note is different, operation personnel without the need to configuring the different message template of constituted mode, thus greatly reduces the workload of operation personnel, reduces the required data stored simultaneously.
According to the third aspect of disclosure embodiment, a kind of note resolver is provided, comprises:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
The Query Result note received is split according to preset rules, obtains at least one Query Result statement;
Come, at least one message template corresponding to source side, to determine the matching sms template with each Self Matching of at least one Query Result statement described in the described Query Result note prestored;
According to the matching sms template of each Self Matching of at least one Query Result statement described and described, resolve at least one Query Result statement described, obtain the valid data at least one Query Result statement described.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in specification and to form the part of this specification, shows and meets embodiment of the present disclosure, and is used from specification one and explains principle of the present disclosure.
Fig. 1 is the flow chart of a kind of note analytic method according to an exemplary embodiment.
Fig. 2 is the flow chart of step S13 in a kind of note analytic method according to an exemplary embodiment.
Fig. 3 is the block diagram of a kind of note resolver according to an exemplary embodiment.
Fig. 4 is the block diagram of a kind of note resolver according to an exemplary embodiment.
Fig. 5 is the block diagram of a kind of note resolver according to an exemplary embodiment.
Fig. 6 is the block diagram of a kind of note resolver according to an exemplary embodiment.
Fig. 7 is the block diagram of parsing module 33 in a kind of note resolver according to an exemplary embodiment.
Fig. 8 is the block diagram splitting module 31 in a kind of note resolver according to an exemplary embodiment.
Fig. 9 is the block diagram of a kind of device 800 for note parsing according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
Fig. 1 is the flow chart of a kind of note analytic method according to an exemplary embodiment, and as shown in Figure 1, this note analytic method is used for, in terminal, comprising the following steps S11-S13:
In step s 11, the Query Result note received is split according to preset rules, obtain at least one Query Result statement.
In step s 12, come, at least one message template corresponding to source side, to determine the matching sms template with each Self Matching of at least one Query Result statement in the Query Result note prestored.
In step s 13, according to the described matching sms template with each Self Matching of at least one Query Result statement, resolve at least one Query Result statement, obtain the valid data at least one Query Result statement.
In said method, in step S12, said preset rules is the rule that Query Result note can be split as multiple substatement.Such as, when Query Result note is the Query Result note of flow package service condition, above-mentioned preset rules can be split according to different set meal, is exemplified below:
Query Result note carrys out the Query Result note that source side sends: end current, and the domestic flow 102400KB of your the domestic flow of 3G 10 yuan bag 100M, uses 38318KB, residue 64082KB; The preferential cumulative amount 20480KB of the local flow (3G length of surfing the Net is special) of GPRS, uses 0KB, residue 20480KB; The preferential cumulative amount 1048576KB of the local idle flow of GPRS, uses 1248KB, residue 1047328KB; The preferential cumulative amount 307200KB of the local flow of GPRS, uses 28825KB, residue 278375KB.So, above-mentioned Query Result note can be split as following four Query Result statements according to different set meal: the domestic flow 102400KB of the domestic flow of (1) your 3G 10 yuan bag 100M, uses 38318KB, residue 64082KB; (2) the preferential cumulative amount 20480KB of the local flow (3G length of surfing the Net is special) of GPRS, uses 0KB, residue 20480KB; (3) the preferential cumulative amount 1048576KB of the local idle flow of GPRS, uses 1248KB, residue 1047328KB; (4) the preferential cumulative amount 307200KB of the local flow of GPRS, uses 28825KB, residue 278375KB.
For above-mentioned example, after Query Result note being split as above-mentioned four Query Result statements, the matching sms template of above-mentioned four each Self Matching of Query Result statement is determined according to the implementation method in step S12, as follows respectively: the matching sms template of mating with Query Result statement (1) is: the domestic flow #DAILY_TOTAL# of your 3G domestic flow #NULL#, use #DAILY_USED#, residue #DAILY_REMAINED#; The matching sms template of mating with Query Result statement (2) is: the preferential cumulative amount #ADD_TOTAL# of the local flow (3G length of surfing the Net is special) of GPRS, uses #ADD_USED#, residue #ADD_REMAINED#; The matching sms template of mating with Query Result statement (3) is: the preferential cumulative amount #LEISURE_TOTAL# of the local idle flow of GPRS, uses #LEISURE_USED#, residue #LEISURE_REMAINED#; The matching sms template of mating with Query Result statement (4) is: the preferential cumulative amount #DAILY_TOTAL# of the local flow of GPRS, has used #DAILY_USED# to remain #DAILY_REMAINED#.Wherein, #NULL# represents irrelevant character, namely corresponding with #NULL# data do not belong to valid data, #DAILY_TOTAL# represents a day normal flow total amount, #DAILY_USED# represents a day normal flow use amount, #DAILY_REMAINED# represents a day normal flow surplus, #ADD_TOTAL# represents superposition bag flow total amount, #ADD_USED# represents superposition bag flow use amount, #ADD_REMAINED# represents superposition bag flow surplus, #LEISURE_TOTAL# represents idle flow total amount, #LEISURE_USED# represents idle flow use amount, #LEISURE_REMAINED# represents idle flow surplus.In addition, in some message template, other variable can also be specified, the plussage of day normal flow is such as represented with #DAILY_EXCEED#, represent the plussage of superposition bag flow with #ADD_EXCEEDD#, represent the plussage of idle flow with #LEISURE_EXCEED#, etc.
In one embodiment, before step S11, said method is further comprising the steps of: carry out source side according to the first predeterminated frequency to Query Result note and send information inquiry instruction; Receive the Query Result note that Query Result note carrys out source side transmission.Such as, first predeterminated frequency is set to 10 days, terminal was carried out source side every 10 days to Query Result note and is sent primary information query statement, obtain Query Result note, and then Query Result note is resolved, adopt various different mode (such as the mode such as figure, form) to be shown to user the valid data parsed and check.
In one embodiment, before step S12, said method is further comprising the steps of: send the acquisition request obtaining message template to server, the request of acquisition comprises the mark that Query Result note carrys out source side, and server is used for determining that Query Result note carrys out at least one message template corresponding to source side according to mark; Receive Query Result note and carry out at least one message template corresponding to source side; Storing queries result note carrys out at least one message template corresponding to source side.In this embodiment, in advance the message template that Query Result note carrys out source side corresponding is stored in this locality, when making terminal receive Query Result note, without the need to obtaining message template from server at every turn.In addition, terminal can send according to the second predeterminated frequency the acquisition request obtaining message template to server, and according to the message template that the server received returns at every turn, upgrades the local message template stored.Such as, because the message template in server can often upgrade, therefore the second predeterminated frequency can be set to one week, terminal upgrades once the local message template stored week about, with make Query Result note come source side have a new set meal time, get the message template corresponding with new set meal in time.
In one embodiment, as shown in Figure 2, step S13 may be embodied as following steps S131-S133:
In step S131, the matching sms template of at least one Query Result statement Self Matching each with it is contrasted.
In step S132, from least one Query Result statement, obtain the data corresponding with the design variables in corresponding matching sms template.
In step S133, data corresponding for design variables are defined as valid data.
Be described for the Query Result statement (3) in above-mentioned example, in above-described embodiment, Query Result statement (3) is: the preferential cumulative amount 1048576KB of the local idle flow of GPRS, uses 1248KB, residue 1047328KB.Determine that the matching sms template of mating with Query Result statement (3) is: the preferential cumulative amount #LEISURE_TOTAL# of the local idle flow of GPRS, uses #LEISURE_USED#, residue #LEISURE_REMAINED#.Wherein, design variables comprises #LEISURE_TOTAL#, #LEISURE_USED# and #LEISURE_REMAINED#, this Query Result statement (3) and this matching sms template are contrasted, obtain the data corresponding with these three design variables and be respectively 1048576KB, 1248KB and 1047328KB, so, these three data then can be defined as valid data.
In one embodiment, design variables can comprise default dummy variable, and default dummy variable represents with #NULL# usually, therefore, above-mentioned steps S132 may be embodied as following steps: when getting the data corresponding with default dummy variable, abandons the data corresponding with default dummy variable.Be described for the Query Result statement (1) in above-mentioned example, Query Result statement (1) is: the domestic flow 102400KB of your the domestic flow of 3G 10 yuan bag 100M, uses 38318KB, residue 64082KB.The matching sms template of mating with Query Result statement (1) is: the domestic flow #DAILY_TOTAL# of your 3G domestic flow #NULL#, uses #DAILY_USED#, residue #DAILY_REMAINED#.When obtaining the data corresponding with design variables, get the data " 10 yuan wrap 100M " corresponding with default dummy variable #NULL#, because #NULL# is for presetting dummy variable, represent that the character of its correspondence is for irrelevant character, therefore data " 10 yuan of bag 100M " can be abandoned, only the data corresponding with variable #DAILY_USED# and #DAILY_REMAINED# got are defined as valid data.
In one embodiment, above-mentioned valid data, except comprising character, also can comprise word.Such as, Query Result statement is: you have national flow 1G512M now, use 1.5G, and you also have other people's business flow 2G, are finished.The matching sms template of mating with it is: you have national flow #DAILY_TOTAL# now, use #DAILY_USED#, and you also have other people's business flow #LEISURE_TOTAL#, use #LEISURE_USED#.In the data corresponding with design variables got, the data corresponding with design variables #LEISURE_USED# are word " End ", and so, word " End " is also defined as valid data.
In addition, when valid data are character, this character can comprise numeral and unit, also only can comprise numeral.Such as, Query Result statement is: you have national flow 1G512M now, use 1.5G, and you also have other people's business flow 2G, use 500.The matching sms template of mating with it is: you have national flow #DAILY_TOTAL# now, use #DAILY_USED#, and you also have other people's business flow #LEISURE_TOTAL#, has used #LEISURE_USED@M#.Visible, the data corresponding with design variables #LEISURE_USED@M# are 500, because these data do not have unit, therefore when configured in advance template, design variables can be set according to the mode of " former variable@[k/m/g] ", in design variables " #LEISURE_USED@M# " in this embodiment, " M " is the unit of data corresponding to this variable.
In one embodiment, step S11 also can be embodied as following steps: come, at least one message template corresponding to source side, to judge whether and the message template that the Query Result note received matches in the Query Result note prestored; When the Query Result note prestored carrys out the message template do not matched with the Query Result note received in message template corresponding to source side, Query Result note is split according to preset rules, obtains at least one Query Result statement.In this embodiment, first the whole piece Query Result note received can being mated with the message template prestored, obtaining if can mate, then without the need to splitting Query Result note, if coupling is less than the message template matched, then Query Result note is split as multiple queries result statement.This embodiment is applicable to the longer more chaotic situation of Query Result note, when Query Result note longer or more chaotic time, cannot split according to certain rule it, so just directly mate the message template of whole note, because Query Result note cannot split, so the message template of its correspondence is also a long template, when arranging long template in advance, the variable that there will be different set meal is present in the situation in same template, now, can adopt the mode of " former variable@[1/2/3/4] " that design variables is set.Such as, Query Result note is: end current, and the domestic flow 102400KB of your the domestic flow of 3G 10 yuan bag 100M, uses 38318KB, residue 64082KB; The preferential cumulative amount 20480KB of the local flow (3G length of surfing the Net is special) of GPRS, uses 0KB, residue 20480KB; The preferential cumulative amount 1048576KB of the local idle flow of GPRS, uses 1248KB, residue 1047328KB; The preferential cumulative amount 307200KB of the local flow of GPRS, uses 28825KB, residue 278375KB; The preferential cumulative amount of the free the number of minutes of Beijing caller 100 minutes, has used 13 minutes, remains 87 minutes; Communication cost is please singly as the criterion in detail with account.The message template so mated with this Query Result note is then: the domestic flow #DAILY_TOTAL@1# of your 3G domestic flow #NULL#, has used #DAILY_USED@1#, residue #DAILY_REMAINED@1#; The preferential cumulative amount #ADD_TOTAL# of the local flow (3G length of surfing the Net is special) of GPRS, uses #ADD_USED#, residue #ADD_REMAINED#; The preferential cumulative amount #LEISURE_TOTAL# of the local idle flow of GPRS, uses #LEISURE_USED#, residue #LEISURE_REMAINED#; The preferential cumulative amount #DAILY_TOTAL@2# of the local flow of GPRS, has used #DAILY_USED@2# to remain #DAILY_REMAINED@2#.The technical scheme of this embodiment support split note according to note substatement configuration template while, still can support the mode of complete note configuration template, thus solve the situation that Query Result note cannot split because statement is chaotic.
As seen from the above-described embodiment, the technical scheme of disclosure embodiment provides a kind of method adopting fine granularity to split Query Result note, by Query Result note is split according to certain rule, and to the configuration template respectively of the Query Result statement after fractionation, and then resolve each Query Result statement, when making as Query Result note configuration template, be no longer dependent on the order of multiple statement in Query Result note, thus avoid the template configuration failure problem caused because of the order change of statement multiple in Query Result note, improve the reusability of message template, and then improve service efficiency and the precision of message template.In addition, for the constituted mode that Query Result note is different, operation personnel without the need to configuring the different message template of constituted mode, thus greatly reduces the workload of operation personnel, reduces the required data stored simultaneously.
Fig. 3 is a kind of note resolver block diagram according to an exemplary embodiment.With reference to Fig. 3, this device comprises fractionation module 31, determination module 32 and parsing module 33.Wherein:
Split module 31 to be configured to the Query Result note received to split according to preset rules, obtain at least one Query Result statement.
Determination module 32 is configured to, at least one message template corresponding to source side, determine the matching sms template with each Self Matching of at least one Query Result statement in the Query Result note prestored.
Parsing module 33 is configured to, according to the matching sms template with each Self Matching of at least one Query Result statement, resolve at least one Query Result statement, obtain the valid data at least one Query Result statement.
In one embodiment, as shown in Figure 4, said apparatus also comprises the first sending module 34 and the first receiver module 35, wherein:
First sending module 34 is configured to the Query Result note received to split according to preset rules, before obtaining at least one Query Result statement, carrys out source side send information inquiry instruction according to the first predeterminated frequency to described Query Result note.
First receiver module 35 is configured to receive the Query Result note that described Query Result note carrys out source side transmission.
In one embodiment, as shown in Figure 5, said apparatus also comprises the second sending module 36, second receiver module 37 and memory module 38.Wherein:
Second sending module 36 is configured to come at least one message template corresponding to source side in the Query Result note prestored, determine with the matching sms template of each Self Matching of at least one Query Result statement before, the acquisition request obtaining message template is sent to server, the request of acquisition comprises the mark that Query Result note carrys out source side, and server is used for determining that Query Result note carrys out at least one message template corresponding to source side according to mark.
Second receiver module 37 is configured to receive Query Result note and carrys out at least one message template corresponding to source side.
Memory module 38 is configured to storing queries result note and carrys out at least one message template corresponding to source side.
In one embodiment, as shown in Figure 6, the second sending module 36 comprises transmission submodule 361, and this transmission submodule 361 is configured to send according to the second predeterminated frequency the acquisition request obtaining message template to server.Now, said apparatus also comprises update module 39, and this update module 39 is configured to the message template returned according to the server received at every turn, upgrades at least one message template stored.
In one embodiment, as shown in Figure 7, parsing module 33 comprises contrast submodule 331, obtains submodule 332 and determines submodule 333.Wherein:
Contrast submodule 331 is configured to the matching sms template of at least one Query Result statement Self Matching each with it to contrast.
Obtaining submodule 332 is configured to from least one Query Result statement, obtains the data corresponding with the design variables in corresponding matching sms template.
Determine that submodule 333 is configured to data corresponding for design variables to be defined as valid data.
In one embodiment, obtain submodule 332 to be also configured to, when getting the data corresponding with default dummy variable, abandon the data corresponding with default dummy variable.
In one embodiment, as shown in Figure 8, split module 31 to comprise and judge submodule 311 and fractionation submodule 312.Wherein:
Judge that submodule 311 is configured to come, at least one message template corresponding to source side, to judge whether and the message template that the Query Result note received matches in the Query Result note prestored.
Splitting submodule 312 is configured to when the Query Result note prestored carrys out the message template do not matched with the Query Result note received in message template corresponding to source side, Query Result note is split according to preset rules, obtains at least one Query Result statement.
Adopt the device that disclosure embodiment provides, by Query Result note is split according to certain rule, and to the configuration template respectively of the Query Result statement after fractionation, and then resolve each Query Result statement, when making as Query Result note configuration template, be no longer dependent on the order of multiple statement in Query Result note, thus avoid the template configuration failure problem caused because of the order change of statement multiple in Query Result note, improve the reusability of message template, and then improve service efficiency and the precision of message template.In addition, for the constituted mode that Query Result note is different, operation personnel without the need to configuring the different message template of constituted mode, thus greatly reduces the workload of operation personnel, reduces the required data stored simultaneously.
In the exemplary embodiment, disclosure embodiment also provides a kind of note resolver, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
The Query Result note received is split according to preset rules, obtains at least one Query Result statement;
Come, at least one message template corresponding to source side, to determine the matching sms template with each Self Matching of at least one Query Result statement described in the described Query Result note prestored;
According to the matching sms template of each Self Matching of at least one Query Result statement described and described, resolve at least one Query Result statement described, obtain the valid data at least one Query Result statement described.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Fig. 9 is the block diagram of a kind of device 800 for note parsing according to an exemplary embodiment.Such as, device 800 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 9, device 800 can comprise following one or more assembly: processing components 802, memory 804, power supply module 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of I/O (I/O), sensor cluster 814, and communications component 816.
The integrated operation of the usual control device 800 of processing components 802, such as with display, call, data communication, camera operation and record operate the operation be associated.Treatment element 802 can comprise one or more processor 820 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 802 can comprise one or more module, and what be convenient between processing components 802 and other assemblies is mutual.Such as, processing unit 802 can comprise multi-media module, mutual with what facilitate between multimedia groupware 808 and processing components 802.
Memory 804 is configured to store various types of data to be supported in the operation of equipment 800.The example of these data comprises for any application program of operation on device 800 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 804 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
The various assemblies that electric power assembly 806 is device 800 provide electric power.Electric power assembly 806 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 800 and be associated.
Multimedia groupware 808 is included in the screen providing an output interface between described device 800 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 808 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 800 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 810 is configured to export and/or input audio signal.Such as, audio-frequency assembly 810 comprises a microphone (MIC), and when device 800 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal received can be stored in memory 804 further or be sent via communications component 816.In certain embodiments, audio-frequency assembly 810 also comprises a loud speaker, for output audio signal.
I/O interface 812 is for providing interface between processing components 802 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor cluster 814 comprises one or more transducer, for providing the state estimation of various aspects for device 800.Such as, sensor cluster 814 can detect the opening/closing state of equipment 800, the relative positioning of assembly, such as described assembly is display and the keypad of device 800, the position of all right checkout gear 800 of sensor cluster 814 or device 800 1 assemblies changes, the presence or absence that user contacts with device 800, the variations in temperature of device 800 orientation or acceleration/deceleration and device 800.Sensor cluster 814 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 814 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 814 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communications component 816 is configured to the communication being convenient to wired or wireless mode between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communication component 816 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communication component 816 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 800 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the memory 804 of instruction, above-mentioned instruction can perform said method by the processor 820 of device 800.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of mobile terminal, make mobile terminal can perform a kind of note analytic method, described method comprises:
The Query Result note received is split according to preset rules, obtains at least one Query Result statement;
Come, at least one message template corresponding to source side, to determine the matching sms template with each Self Matching of at least one Query Result statement described in the described Query Result note prestored;
According to the matching sms template of each Self Matching of at least one Query Result statement described and described, resolve at least one Query Result statement described, obtain the valid data at least one Query Result statement described.
Describedly the Query Result note received split according to preset rules, before obtaining at least one Query Result statement, described method also comprises:
Carry out source side according to the first predeterminated frequency to described Query Result note and send information inquiry instruction;
Receive the Query Result note that described Query Result note carrys out source side transmission.
The described described Query Result note prestoring is come at least one message template corresponding to source side, determine with the matching sms template of each Self Matching of at least one Query Result statement described before, described method also comprises:
Send the acquisition request obtaining message template to server, described acquisition request comprises the mark that described Query Result note carrys out source side, and described server is used for determining that described Query Result note carrys out at least one message template corresponding to source side according to described mark;
Receive described Query Result note and carry out at least one message template corresponding to source side;
Store described Query Result note and carry out at least one message template corresponding to source side.
The described acquisition request sending acquisition message template to server, comprising:
Send the acquisition request obtaining message template to server according to the second predeterminated frequency;
Described method also comprises:
According to the message template that the described server received returns at every turn, upgrade at least one message template of described storage.
With the matching sms template of each Self Matching of at least one Query Result statement described described in described basis, resolve at least one Query Result statement described, obtain the valid data at least one Query Result statement described, comprising:
The matching sms template of at least one Query Result statement described Self Matching each with it is contrasted;
From at least one Query Result statement described, obtain the data corresponding with the design variables in corresponding described matching sms template;
Data corresponding for described design variables are defined as described valid data.
Described design variables comprises default dummy variable, described from least one Query Result statement described, obtains the data corresponding with the design variables in corresponding matching sms template, comprising:
When getting the data corresponding with described default dummy variable, abandon described corresponding with described default dummy variable data.
Described valid data comprise any one or more in character, word, and described character comprises any one or more in numeral, unit.
Described the Query Result note received to be split according to preset rules, obtains at least one Query Result statement, comprising:
Come at least one message template corresponding to source side in the described Query Result note prestored, judge whether and the message template that the described Query Result note received matches;
When the described described Query Result note prestored carrys out the message template do not matched with the described Query Result note received in message template corresponding to source side, described Query Result note is split according to preset rules, obtains at least one Query Result statement.
Those skilled in the art, at consideration specification and after putting into practice disclosure herein, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (16)

1. a note analytic method, is characterized in that, comprising:
The Query Result note received is split according to preset rules, obtains at least one Query Result statement;
Come, at least one message template corresponding to source side, to determine the matching sms template with each Self Matching of at least one Query Result statement described in the described Query Result note prestored;
According to the matching sms template of each Self Matching of at least one Query Result statement described and described, resolve at least one Query Result statement described, obtain the valid data at least one Query Result statement described.
2. method according to claim 1, is characterized in that,
Describedly the Query Result note received split according to preset rules, before obtaining at least one Query Result statement, described method also comprises:
Carry out source side according to the first predeterminated frequency to described Query Result note and send information inquiry instruction;
Receive the Query Result note that described Query Result note carrys out source side transmission.
3. method according to claim 1, is characterized in that,
The described described Query Result note prestoring is come at least one message template corresponding to source side, determine with the matching sms template of each Self Matching of at least one Query Result statement described before, described method also comprises:
Send the acquisition request obtaining message template to server, described acquisition request comprises the mark that described Query Result note carrys out source side, and described server is used for determining that described Query Result note carrys out at least one message template corresponding to source side according to described mark;
Receive described Query Result note and carry out at least one message template corresponding to source side;
Store described Query Result note and carry out at least one message template corresponding to source side.
4. method according to claim 3, is characterized in that,
The described acquisition request sending acquisition message template to server, comprising:
Send the acquisition request obtaining message template to server according to the second predeterminated frequency;
Described method also comprises:
According to the message template that the described server received returns at every turn, upgrade at least one message template of described storage.
5. method according to claim 1, is characterized in that,
With the matching sms template of each Self Matching of at least one Query Result statement described described in described basis, resolve at least one Query Result statement described, obtain the valid data at least one Query Result statement described, comprising:
The matching sms template of at least one Query Result statement described Self Matching each with it is contrasted;
From at least one Query Result statement described, obtain the data corresponding with the design variables in corresponding described matching sms template;
Data corresponding for described design variables are defined as described valid data.
6. method according to claim 5, is characterized in that,
Described design variables comprises default dummy variable, described from least one Query Result statement described, obtains the data corresponding with the design variables in corresponding matching sms template, comprising:
When getting the data corresponding with described default dummy variable, abandon described corresponding with described default dummy variable data.
7. method according to claim 1, is characterized in that, described valid data comprise any one or more in character, word, and described character comprises any one or more in numeral, unit.
8. method according to claim 1, is characterized in that,
Described the Query Result note received to be split according to preset rules, obtains at least one Query Result statement, comprising:
Come at least one message template corresponding to source side in the described Query Result note prestored, judge whether and the message template that the described Query Result note received matches;
When the described described Query Result note prestored carrys out the message template do not matched with the described Query Result note received in message template corresponding to source side, described Query Result note is split according to preset rules, obtains at least one Query Result statement.
9. a note resolver, is characterized in that, comprising:
Splitting module, for the Query Result received note being split according to preset rules, obtaining at least one Query Result statement;
Determination module, at least one message template corresponding to source side, determines the matching sms template with each Self Matching of at least one Query Result statement described for coming in the described Query Result note prestored;
Parsing module, for the matching sms template according to each Self Matching of at least one Query Result statement described and described, resolves at least one Query Result statement described, obtains the valid data at least one Query Result statement described.
10. device according to claim 9, is characterized in that, described device also comprises:
First sending module, for the Query Result received note being split according to preset rules, before obtaining at least one Query Result statement, carrying out source side according to the first predeterminated frequency to described Query Result note and sending information inquiry instruction;
First receiver module, carrys out the Query Result note of source side transmission for receiving described Query Result note.
11. devices according to claim 9, is characterized in that, described device also comprises:
Second sending module, for coming at least one message template corresponding to source side in the described Query Result note prestored, determine with the matching sms template of each Self Matching of at least one Query Result statement described before, the acquisition request obtaining message template is sent to server, described acquisition request comprises the mark that described Query Result note carrys out source side, and described server is used for determining that described Query Result note carrys out at least one message template corresponding to source side according to described mark;
Second receiver module, carrys out at least one message template corresponding to source side for receiving described Query Result note;
Memory module, carrys out at least one message template corresponding to source side for storing described Query Result note.
12. devices according to claim 11, is characterized in that,
Described second sending module comprises:
Send submodule, for sending the acquisition request obtaining message template to server according to the second predeterminated frequency;
Described device also comprises:
Update module, for the message template returned according to the described server received at every turn, upgrades at least one message template of described storage.
13. devices according to claim 9, is characterized in that, described parsing module comprises:
Contrast submodule, for contrasting the matching sms template of at least one Query Result statement described Self Matching each with it;
Obtain submodule, for from least one Query Result statement described, obtain the data corresponding with the design variables in corresponding described matching sms template;
Determine submodule, for data corresponding for described design variables are defined as described valid data.
14. devices according to claim 13, is characterized in that, described acquisition submodule, also for when getting the data corresponding with described default dummy variable, abandon described corresponding with described default dummy variable data.
15. devices according to claim 9, is characterized in that, described fractionation module comprises:
Judging submodule, at least one message template corresponding to source side, judging whether and the message template that the described Query Result note received matches for coming in the described Query Result note prestored;
Split submodule, for when described in the described Query Result note that prestores carry out the message template do not matched with the described Query Result note received in message template corresponding to source side time, described Query Result note is split according to preset rules, obtains at least one Query Result statement.
16. 1 kinds of note resolvers, is characterized in that, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
The Query Result note received is split according to preset rules, obtains at least one Query Result statement;
Come, at least one message template corresponding to source side, to determine the matching sms template with each Self Matching of at least one Query Result statement described in the described Query Result note prestored;
According to the matching sms template of each Self Matching of at least one Query Result statement described and described, resolve at least one Query Result statement described, obtain the valid data at least one Query Result statement described.
CN201510272073.0A 2015-05-25 2015-05-25 Short message analysis method and device Active CN104853334B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510272073.0A CN104853334B (en) 2015-05-25 2015-05-25 Short message analysis method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510272073.0A CN104853334B (en) 2015-05-25 2015-05-25 Short message analysis method and device

Publications (2)

Publication Number Publication Date
CN104853334A true CN104853334A (en) 2015-08-19
CN104853334B CN104853334B (en) 2019-02-19

Family

ID=53852615

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510272073.0A Active CN104853334B (en) 2015-05-25 2015-05-25 Short message analysis method and device

Country Status (1)

Country Link
CN (1) CN104853334B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554713A (en) * 2015-12-11 2016-05-04 小米科技有限责任公司 Method and device for reminding flow
CN105630976A (en) * 2015-12-24 2016-06-01 北京奇虎科技有限公司 Method and device for acquiring training corpuses
CN106899987A (en) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 The method and device calibrated to the data traffic of mobile terminal
CN109068286A (en) * 2018-05-31 2018-12-21 连尚(新昌)网络科技有限公司 A kind of method, medium and the equipment of information parsing
CN110401925A (en) * 2019-05-07 2019-11-01 杭州迪普科技股份有限公司 A kind of generation method and device of communication message

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752398A (en) * 2012-07-18 2012-10-24 腾讯科技(深圳)有限公司 Method and system for resolving flow value, terminal and server
CN102769838A (en) * 2012-06-20 2012-11-07 奇智软件(北京)有限公司 Mobile terminal charge acquisition method, mobile terminal and charge acquisition system
CN103220643A (en) * 2012-01-20 2013-07-24 腾讯科技(深圳)有限公司 Information providing method and device and template base matching method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220643A (en) * 2012-01-20 2013-07-24 腾讯科技(深圳)有限公司 Information providing method and device and template base matching method and device
CN102769838A (en) * 2012-06-20 2012-11-07 奇智软件(北京)有限公司 Mobile terminal charge acquisition method, mobile terminal and charge acquisition system
CN102752398A (en) * 2012-07-18 2012-10-24 腾讯科技(深圳)有限公司 Method and system for resolving flow value, terminal and server

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554713A (en) * 2015-12-11 2016-05-04 小米科技有限责任公司 Method and device for reminding flow
CN106899987A (en) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 The method and device calibrated to the data traffic of mobile terminal
CN106899987B (en) * 2015-12-21 2020-02-18 北京奇虎科技有限公司 Method and device for calibrating data traffic of mobile terminal
CN105630976A (en) * 2015-12-24 2016-06-01 北京奇虎科技有限公司 Method and device for acquiring training corpuses
CN109068286A (en) * 2018-05-31 2018-12-21 连尚(新昌)网络科技有限公司 A kind of method, medium and the equipment of information parsing
CN109068286B (en) * 2018-05-31 2021-08-13 上海尚往网络科技有限公司 Information analysis method, medium and equipment
CN110401925A (en) * 2019-05-07 2019-11-01 杭州迪普科技股份有限公司 A kind of generation method and device of communication message

Also Published As

Publication number Publication date
CN104853334B (en) 2019-02-19

Similar Documents

Publication Publication Date Title
EP3041204B1 (en) Method for prompting calling request and device for the same
CN104951336A (en) Application program installation method and device
CN104869569A (en) Network permission control method and apparatus of application program
CN104702762A (en) Incoming call reminding method and incoming call reminding device
CN104461510A (en) Notification message displaying method and device
CN105487863A (en) Interface setting method and device based on scene
CN104853334A (en) Method and device for analyzing short message
CN105808050A (en) Information search method and device
CN107730847A (en) Sharing articles finding method and device
CN104536935A (en) Calculation displaying method, calculation editing method and device
CN104735670A (en) Network access method and device
CN105227778A (en) The method of event notification, device, terminal and server
CN104468760A (en) Method and device for pushing reminding information
CN105303371A (en) Bill processing method and device and terminal device
CN104539662A (en) Information transmission method and device
CN104394137A (en) Voice call reminding method and device
CN105376412A (en) Information processing method and device
CN104461358B (en) Light the method and device of screen
CN105208209A (en) Alarm clock setting method and device and terminal equipment
CN105488829A (en) Method and device for generating head portrait
CN104836721A (en) Group session message reminding method and group session message reminding device
CN104298430A (en) Telephone ordering method, device and system
CN104375760A (en) Information display method and device
CN105260201A (en) Application installation methods and devices, and smart devices
CN105912202A (en) Application sharing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant