Summary of the invention
In view of this, the object of the present invention is to provide a kind of method and device of identifying up note, to identify the up note that contains non-standard instruction, thereby make user when up non-standard instruction, also can handle relevant mobile service.
For achieving the above object, the invention provides following technical scheme:
A recognition methods for up note, comprising:
Check whether the instruction in the up note that user sends is non-standard instruction;
When described instruction is non-standard instruction, described instruction is carried out to preliminary treatment, obtain target instruction target word;
Check and in described target instruction target word, whether have major key;
If so, issue the corresponding guiding service instruction of described major key or described major key to described user;
If not, check in described target instruction target word, whether there is secondary key;
When there is described secondary key, issue the title of the business being associated with described secondary key or the corresponding guiding service instruction of described secondary key to described user;
When not there is not described secondary key, described instruction is sent to the artificial customer service of note, by the artificial customer service of described note, processed;
Wherein, pre-stored described major key and secondary key, and configure corresponding guiding service instruction for each major key and secondary key; Described major key is comprised of the title of business, and the noun of described secondary key in service order and the noun in Business Name are combined to form.
Preferably, described when described instruction is non-standard instruction, described instruction is carried out to preliminary treatment, obtain target instruction target word, comprising:
Check and in described instruction, whether have word or the word in wrong word/dictionary;
If so, replace wrong word in described instruction for corresponding correct word or replace wrong other word for corresponding correct word, and by the instruction after replacing, as described target instruction target word;
If not, using described instruction directly as described target instruction target word;
Wherein, the described wrong word/dictionary that prestores, and be the corresponding correct word of each wrong word configuration, be the corresponding correct word of each wrong other word configuration.
Preferably, when there is described major key, issue the corresponding guiding service instruction of described major key or described major key to described user, comprising:
Whether the quantity of checking described major key is 1;
If 1, issue the corresponding guiding service instruction of described major key to user;
If while being greater than 1, issue described major key to described user.
Preferably, when there is described secondary key, issue the title of the business being associated with described secondary key or the corresponding guiding service instruction of described secondary key to described user, comprising:
Check the business that is associated with described secondary key and the sum of the corresponding guiding service instruction of described secondary key;
Wherein, the Business Name being associated with described secondary key comprises the business that title contains described secondary key, and title contains the synon business of described secondary key;
When the quantity of the described business being associated is 1, or when the sum of guiding service instruction is less than the first predetermined number, issue the corresponding guiding service instruction of described secondary key to user;
When the quantity of the described business being associated is greater than 1, and the sum of guiding service instruction is while being greater than the first predetermined number, issues the title of traffic associated of the second predetermined number to user.
Preferably, whether the instruction in the up note sending the described user of checking is non-standard instruction, and when described instruction is non-standard instruction, described instruction is carried out to preliminary treatment, obtains between target instruction target word, also comprises:
Check and in described instruction, whether have sensitive words;
If so, issue the corresponding instruction of described sensitive words to described user;
If not, carry out when described instruction is non-standard instruction, described instruction is carried out to preliminary treatment, obtain this step of target instruction target word;
Wherein, pre-stored described sensitive words, and configure corresponding instruction for described sensitive words.
Preferably, when not there is not described secondary key, described instruction is sent to the artificial customer service of note, before being processed by the artificial customer service of described note, also comprises:
While there is not described secondary key in described instruction, check in described target instruction target word, whether there is greeting word;
When there is described greeting word, issue the corresponding instruction of described greeting word to described user;
Wherein, pre-stored described greeting word, and configure corresponding instruction for greeting word.
A recognition device for up note, comprising:
First check module for, check whether the instruction in the up note that user sends is non-standard instruction;
Pretreatment module is used for, and when described instruction is non-standard instruction, described instruction is carried out to preliminary treatment, obtains target instruction target word;
Second check module for, check in described target instruction target word, whether there is major key;
First issue module for, when there is described major key, issue the corresponding guiding service instruction of described major key or major key to described user;
The 3rd check module for, when not there is not described major key, check in described target instruction target word, whether there is secondary key;
Second issue module for, when there is described secondary key, issue the title of the business being associated with described secondary key or the corresponding guiding service instruction of described secondary key to described user;
Customer service module is used for, and when not there is not secondary key, described instruction is sent to the artificial customer service of note, by the artificial customer service of note, processes described instruction.
Wherein, pre-stored major key and secondary key, and configure corresponding guiding service instruction for each major key and secondary key; Described major key is comprised of the title of business, and the noun of described secondary key in service order and the noun in Business Name are combined to form.
Preferably, described pretreatment module comprises:
First check unit for, check in described instruction, whether there be word or the word in wrong word/dictionary;
First object instruction fetch unit is used for, and when the word in there is wrong word/dictionary or word, replace wrong word in described instruction for corresponding correct word or replace wrong other word for corresponding correct word, and by the instruction after replacing, as target instruction target word;
The second target instruction target word acquiring unit is used for, when not there is not word in wrong word/dictionary or word, using described instruction directly as described target instruction target word;
Wherein, the described wrong word/dictionary that prestores, and be the corresponding correct word of each wrong word configuration, be the corresponding correct word of each wrong other word configuration.
Preferably, described first issue module and comprise:
Second check unit for, check whether the quantity of described major key is 1;
First issue unit for, when the quantity of described major key is 1, issue the corresponding guiding service instruction of described major key to user;
Second issue unit for, when the quantity of described major key is greater than 1, issue described major key to described user.
Preferably, described second issue module and comprise:
The 3rd check unit for, check the business that is associated with described secondary key and the sum of the corresponding guiding service instruction of described secondary key;
Wherein, the business being associated with described secondary key comprises the business that title contains described secondary key, and title contains the synon business of described secondary key;
The 3rd issue unit for, when the quantity of described business is 1, or when the sum of guiding service instruction is less than the first predetermined number, issue the corresponding guiding service instruction of described secondary key to user;
The 4th issue unit for, when the quantity of business is greater than 1, and the sum of guiding service instruction is while being greater than the first predetermined number, issues the title of traffic associated of the second predetermined number to user.
By above-mentioned technical scheme, can be found out, in embodiments of the present invention, when the instruction in the up note that user sends is not stereotyped command, first target instruction target word is carried out to preliminary treatment, obtain target instruction target word, then, check and in instruction, whether have major key, and when there is major key, issue the corresponding guiding service instruction of major key or major key to user, and while there is not major key in above-mentioned instruction, to continue to check in instruction, whether have secondary key, and when there is secondary key, issue the title of the business being associated with secondary key or the corresponding guiding service instruction of secondary key to user.And be issued to user's guiding service instruction, major key and the Business Name being associated with secondary key, all bootable user inputs stereotyped command, thereby makes user can handle relevant mobile service.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The invention discloses a kind of recognition methods of up note, as shown in Figure 1, the method at least comprises the following steps:
S11: after receiving the up note that user sends, first check whether the instruction in the up note that user sends is non-standard instruction;
S12: when above-mentioned instruction is non-standard instruction, instruction is carried out to preliminary treatment, obtain target instruction target word; Wherein, when above-mentioned instruction is stereotyped command, by normal flow, process.
Concrete, as shown in Figure 2, instruction is carried out to preliminary treatment, obtain the process of target instruction target word, can be specific as follows:
S21: check whether there be word or the word in wrong word/dictionary in received instruction;
S22: if so, replace wrong word in above-mentioned instruction for corresponding correct word or replace wrong other word for corresponding correct word, and by the instruction after replacing, as target instruction target word;
Wherein, the wrong word/dictionary that prestores, and be the corresponding correct word of each wrong word configuration, be the corresponding correct word of each wrong other word configuration;
S23: if not, using received instruction directly as target instruction target word;
More specifically, above-mentioned pretreated process, also can comprise: the process that the lowercase character in instruction is replaced with to upper case character.
S13: check whether there is major key in target instruction target word;
Wherein, pre-stored major key, and for each major key configures corresponding guiding service instruction, and major key can form by having the negotiate peace title of intelligible business of service area calibration, sign degree, complete language, as " National roaming ".Therefore wherein, also can be above-mentioned major key different priority is set, in processing procedure, can first check in target instruction target word, whether there is the major key that priority is higher, and then check the major key that whether exists priority lower.
Concrete, major key and the guiding service instruction corresponding with it can but be not limited to adopt manual type screen and confirm, thereby can guarantee quality and the controllability of non-standard instruction identification, finally constantly improve Intelligent Recognition and the intelligent response of non-standard instruction.
S14: if so, issue the corresponding guiding service instruction of major key or major key to user;
Concrete, as described in Figure 3, can specifically by following mode, realize above-mentioned steps S14:
S31: whether the quantity of checking major key is 1;
S32: if 1 time, issue the corresponding guiding service instruction of major key to user;
Concrete, when above-mentioned primary keyword exists a plurality of guiding service instructions constantly, can first check in target instruction target word whether have verb, when there is verb, only issue and exist the guiding service instruction of above-mentioned verb to user, otherwise issue whole guiding service instructions to user.
For example, user sent " I will handle m value " by 10086 o'clock, through processing, be judged to be non-standard instruction, and the major key matching was " m value ".And existing verb is " handling " in above-mentioned instruction, now can from the corresponding guiding service instruction of major key " m value ", search the guiding service instruction with " handling ", as target service instruction, be issued to user; Can specifically will be sent to as follows user:
Distinguished client, the business that you handle is possibly:
Handle M value and exchange telephone expenses (DHHF)
As need the Pinyin coding in transacting business R. S. V. P. bracket.Consulting mobile service, for example please send reference content, to so-and-so (specifically can be the number of SMS business hall,, the SMS business hall 10086 of China Mobile).
S33: if while being greater than 1, issue major key to user.
Concrete, when being greater than 1, first check between above-mentioned major key whether have synonym major key, in when above-mentioned keyword, both there is " open-minded " keyword, there is again " handling " keyword, now can therefrom remove arbitrary keyword.
Secondly, can check between above-mentioned keyword whether have inclusion relation, when there is inclusion relation, choose involved major key and be issued to user.If major key is both to have " new travelling merchants' set meal " keyword, while there is again " 98 yuan of new travelling merchants' set meals " keyword, involved major key " 98 yuan of new travelling merchants' set meals " can be sent to user.
And in above-mentioned a plurality of keywords, while neither existing synonym also not have inclusion relation, all major keys are all issued to user, as, while having " GPRS " keyword and " TD " keyword in major key, " GPRS " keyword and " TD " keyword are all issued to user, specifically can be as follows:
Distinguished client, you possibly transacting business be:
GPRS
TD
Advise that you are by problem reduction, separately enquirement.Consulting mobile service, for example please send reference content, to so-and-so (specifically can be the number of SMS business hall,, the SMS business hall 10086 of China Mobile).
S15: if not, check whether there is secondary key in target instruction target word;
Wherein, pre-stored secondary key, and configure corresponding guiding service instruction for keyword each time.And secondary key can be in service order noun and the noun in Business Name be combined to form.
More specifically, secondary key can but be not limited to by manually screening, to reject unsatisfied keyword, and non-key word finder can be set, thereby avoid unnecessary keyword.
S16: when there is secondary key, issue the title of the business being associated with secondary key or the corresponding guiding service instruction of secondary key to user;
Concrete, as shown in Figure 4, S16 can specifically be realized by following steps:
S41: check the business that is associated with secondary key and the sum of the corresponding guiding service instruction of secondary key;
Wherein, the Business Name that secondary key is associated comprises the business that title contains secondary key, and title contains the synon business of secondary key;
S42: when the quantity of the business being associated is 1, or when the sum of guiding service instruction is less than the first predetermined number, issue the corresponding guiding service instruction of secondary key to user;
Concrete, can be set to 10 by the first predetermined number; For example, the instruction " KTCI " sending as user is stereotyped command not, and in major key and have and do not have KTCI.And in secondary key, there is KTCI, and the corresponding guiding service instruction of secondary key KTCI is for opening CRBT (KTCL), open note warehouse service function (KTCK) and opening super mailbox (KTCJYX), quantity is 3 altogether, is less than the first predetermined number 10.Now, issue the corresponding guiding service instruction of secondary key to user.Specifically can following form send:
Distinguished user, you possibly transacting business be:
Open CRBT (KTCL)
Open note warehouse service function (KTCK)
Open super mailbox (KTCJYX)
As need the Pinyin coding in transacting business R. S. V. P. digital coding or bracket.Consulting mobile service, for example please send reference content, so-and-so (specifically can be the number of SMS business hall,, the SMS business hall 10086 of China Mobile).
More specifically, issue the corresponding guiding service instruction of secondary key to also comprising before user: check in the instruction that user sends whether contain verb, if while having verb, only issue contain above-mentioned verb guiding service instruction to user.
S43: when the quantity of the business being associated is greater than 1, and the sum of guiding service instruction is while being greater than the first predetermined number, issues the title of traffic associated of the second predetermined number to user.
Concrete, above-mentioned the second predetermined number can but be not limited to artificial setting, be mainly used in quantity when traffic associated when too many, limit the quantity that is issued to user's traffic associated title.And about the concrete numerical value of the second predetermined number, in actual applications, can set according to actual conditions.
For example, in the situation that setting the second predetermined number is 3, the instruction sending as user be " roaming " and while being non-standard instruction, now, the business being associated with secondary key has " National roaming, international roaming and Taiwan roaming " its 3 to be greater than 1, and when the sum of the guiding service instruction of secondary key roaming is greater than 10 of the first predetermined numbers, issue the title of 3 traffic associated of the second predetermined number to user.Specifically can following form send:
Distinguished user, you possibly transacting business be:
National roaming
International roaming
Taiwan roaming
Advise that you are by problem reduction, separately enquirement.Consulting mobile service, for example please send reference content, to so-and-so (specifically can be the number of SMS business hall,, the SMS business hall 10086 of China Mobile).
S17: when not there is not secondary key, above-mentioned instruction is sent to the artificial customer service of note, is processed by the artificial customer service of note.
Therefore, adopt method of the present invention, when the instruction in the up note that user sends not is stereotyped command, can first to target instruction target word, carry out preliminary treatment, obtain target instruction target word, then, check and in instruction, whether have major key, and when there is major key, issue the corresponding guiding service instruction of major key or major key to user, and when there is secondary key, issue the title of the business being associated with secondary key or the corresponding guiding service instruction of secondary key to user.And be issued to user's guiding service instruction, major key and the Business Name being associated with secondary key, all bootable user inputs stereotyped command, thereby makes user can handle relevant mobile service.
In other embodiment of the present invention, between " checking whether the instruction in the up note that user sends is non-standard instruction " and " when instruction is non-standard instruction; instruction is carried out to preliminary treatment, obtaining target instruction target word " in above-mentioned all embodiment, also can comprise:
Check and in instruction, whether have sensitive words;
If so, issue the corresponding instruction of sensitive words to user;
Wherein, pre-stored sensitive words, and configure corresponding instruction for sensitive words;
If not, carry out when instruction is non-standard instruction, instruction is carried out to preliminary treatment, obtain this step of target instruction target word.
In practice, due to some illegal users, can send some instructions that contain the sensitive words such as reaction and pornographic to SMS business hall, therefore, by to the above-mentioned processing to sensitive words, can process in time the instruction that these contain sensitive words, and needn't lose time to process with resource.
In other embodiment of the present invention, " when not there is not secondary key, instruction is sent to the artificial customer service of note, by the artificial customer service of note, is processed " in above-mentioned all embodiment before, also can comprise:
While there is not secondary key in instruction, check in target instruction target word, whether there is greeting word;
When there is greeting word, issue the corresponding instruction of greeting word to user;
Wherein, pre-stored greeting word, and configure corresponding instruction for greeting word.
Therefore, adopt aforesaid way, can make user obtain better service experience.
It should be noted that, in order to improve treatment effeciency, the major key in the present invention and secondary key adopt the form with hash (Hash)+chained list (List) to be stored in internal memory.In Hash, key value is two characters of crucial prefix, the corresponding Keyword List of taking the lead with key value of value value.The Keyword List that in List, storage starts with key value in order from big to small.Therefore, for user's non-standard instruction, only need in Hash, search successively the keyword of each character swtiching, if store this character in Hash, further in List corresponding to this hash value, search corresponding keyword.Therefore, adopt this data structure, can complete efficiently data search according to user uplink short message content, avoid the retrieval to full dose key data.
Corresponding with said method, the invention also discloses a kind of recognition device of up note, as shown in Figure 5, at least comprise:
First check module 51 for, check whether the instruction in the up note that user sends is stereotyped command;
Pretreatment module 52 for, when above-mentioned instruction is non-standard instruction, above-mentioned instruction is carried out to preliminary treatment, obtain target instruction target word;
Specifically, as shown in Figure 6, pretreatment module 52 can comprise:
First check unit 61 for, check in instruction, whether there be word or the word in wrong word/dictionary;
First object instruction fetch unit 62 for, when the word in there is wrong word/dictionary or word, the wrong word in replacement instruction is that corresponding correct word or wrong other word are corresponding correct word, and by the instruction after replacing, as target instruction target word;
The second target instruction target word acquiring unit 63 for, when not there is not word in wrong word/dictionary or word, using above-mentioned instruction directly as target instruction target word;
Wherein, the wrong word/dictionary that prestores, and be the corresponding correct word of each wrong word configuration, the corresponding correct word of each wrong other word configuration.
Second check module 53 for, check in target instruction target word, whether there is major key;
First issue module 54 for, when there is major key, issue the corresponding guiding service instruction of major key or major key to user;
Concrete, as shown in Figure 7, first issues module 54 can comprise:
Second check unit 71 for, check whether the quantity of major key is 1;
First issue unit 72 for, when the quantity of major key is 1, issue the corresponding guiding service instruction of major key to user;
Second issue unit 73 for, when the quantity of major key is greater than 1, issue major key to user.
The 3rd check module 55 for, when not there is not major key, check in target instruction target word, whether there is secondary key;
Second issue module 56 for, when there is secondary key, issue the title of the business being associated with secondary key or the corresponding guiding service instruction of secondary key to user;
Concrete, as shown in Figure 8, second issues module 56 can comprise:
The 3rd check unit 81 for, check the business that is associated with secondary key and the sum of the corresponding guiding service instruction of secondary key;
Wherein, the business being associated with secondary key comprises the business that title contains above-mentioned secondary key, and title contains the synon business of secondary key;
The 3rd issue unit 82 for, when the quantity of business is 1, or when the sum of guiding service instruction is less than the first predetermined number, issue the corresponding guiding service instruction of secondary key to user;
The 4th issue unit 83 for, when the quantity of business is greater than 1, and the sum of guiding service instruction is while being greater than the first predetermined number, issues the title of traffic associated of the second predetermined number to user.
Customer service module 57 for, when not there is not secondary key, above-mentioned instruction is sent to the artificial customer service of note, by the artificial customer service of note, process above-mentioned instruction.
Wherein, pre-stored major key and secondary key in said apparatus, and configure corresponding guiding service instruction for each major key and secondary key; Major key is comprised of the title of business, and the title of secondary key in service order and the noun in Business Name are combined to form;
Therefore, in embodiments of the present invention, when the instruction in the up note that user sends is not stereotyped command, first target instruction target word is carried out to preliminary treatment, obtain target instruction target word, then, check and in instruction, whether have major key, and when there is major key, issue the corresponding guiding service instruction of major key or major key to user, and while there is not major key in above-mentioned instruction, to continue to check in instruction, whether have secondary key, and when there is secondary key, issue the title of the business being associated with secondary key or the corresponding guiding service instruction of secondary key to user.And be issued to user's guiding service instruction, major key and the Business Name being associated with secondary key, all bootable user inputs stereotyped command, thereby makes user can handle relevant mobile service.
For first, check that module 51, pretreatment module 52, second check that module 53, first issues each refinement function that module 54, the 3rd checks that module 55, second issues module 56 and customer service module 57 and can, referring to the record of said method, not repeat them here.
Above-mentioned explanation to the disclosed embodiments, makes professional and technical personnel in the field can realize or use the present invention.To the multiple modification of these embodiment, will be apparent for those skilled in the art, General Principle as defined herein can, in the situation that not departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.