CN105354284A - Template processing method and apparatus and short message identification method and apparatus - Google Patents

Template processing method and apparatus and short message identification method and apparatus Download PDF

Info

Publication number
CN105354284A
CN105354284A CN201510728730.8A CN201510728730A CN105354284A CN 105354284 A CN105354284 A CN 105354284A CN 201510728730 A CN201510728730 A CN 201510728730A CN 105354284 A CN105354284 A CN 105354284A
Authority
CN
China
Prior art keywords
template
message template
index
note
message
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
CN201510728730.8A
Other languages
Chinese (zh)
Other versions
CN105354284B (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 CN201510728730.8A priority Critical patent/CN105354284B/en
Publication of CN105354284A publication Critical patent/CN105354284A/en
Application granted granted Critical
Publication of CN105354284B publication Critical patent/CN105354284B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/31Indexing; Data structures therefor; Storage structures
    • G06F16/316Indexing structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/31Indexing; Data structures therefor; Storage structures
    • G06F16/316Indexing structures
    • G06F16/328Management therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present disclosure relates to a template processing method and apparatus and a short message identification method and apparatus. The template processing method comprises: acquiring a short message template to be pushed, wherein the short message template comprises a template attribute and an attribute value corresponding to the template attribute; according to a preset target template attribute, extracting an attribute value corresponding to the target template attribute from the short message template and using the extracted attribute value as an index related to the short message template; and pushing the short message template and the related index to a terminal, so that the terminal utilizes the short message template related to the index to identity target information in text contents of a short message. According to the present disclosure, complexity of updating the short message template can be reduced, and short message template updating efficiency can be improved.

Description

The disposal route of template and device, note recognition methods and device
Technical field
The application relates to communication technical field, particularly relates to disposal route and device, note recognition methods and the device of template.
Background technology
In text mining, the method based on vocabulary-syntactic pattern often can be used to process, this creates the terminal a large amount of text templates.Especially in note identification, (in note, such as identify Flight Information, train sequence information, hotel reservation information, Credit Statement information etc.), a large amount of message template can be produced.Terminal is when carrying out note identification, and can write the message template configured in note recognizer, its recognition efficiency is lower; And normally pass through more new message recognizer, and then obtain up-to-date message template, it is poor that message template upgrades effect.
Summary of the invention
For overcoming Problems existing in correlation technique, present disclose provides disposal route and device, note recognition methods and the device of template.
According to the first aspect of disclosure embodiment, a kind of disposal route of template is provided, comprises:
Obtain message template to be pushed, described message template comprises template attributes and the property value corresponding with template attributes;
According to the To Template attribute preset, from described message template, extract the property value corresponding with described To Template attribute as the index associated with described message template;
Described message template is pushed to terminal with the index associated, utilizes the target information in the content of text of the message template identification note associated with described index for terminal.
Optionally, described method also comprises:
The message template with same index is recorded in same message template set, obtains one or more message template set;
By all index records in index set;
The described index by described message template and correspondence is pushed to terminal, comprising:
Described message template set and described index set are pushed to terminal.
Optionally, described template attributes comprises priority attribute;
Described method also comprises:
Obtain the priority of described message template, using the property value of described priority as described message template medium priority attribute;
Described the message template with same index to be recorded in same message template set, to comprise:
According to the priority of message template described in each, the message template with same index is recorded in same message template set by order according to the priority.
Optionally, described template attributes comprises template identification quantitative attribute;
Described method also comprises:
Obtain the template recognition result that terminal sends, record in described template recognition result and identify successful message template;
According to the template identification quantity of the described message template in described template recognition result statistics Preset Time, using the property value of described template identification quantity as the template identification quantitative attribute in described message template.
Optionally, described method also comprises:
According to described template identification quantity, by the machine learning algorithm preset, abnormal template detection is carried out to message template described to be pushed, filter out abnormal message template.
Optionally, described template attributes comprises template term of validity attribute;
Described method also comprises:
According to the property value of described template term of validity attribute, in message template described to be pushed, filter out not message template before the deadline.
Optionally, described described message template set and described index set are pushed to terminal, comprise:
According to preset time period, described message template set and described index set are pushed to terminal.
Optionally, described message template and described index store with the form of database.
According to the second aspect of disclosure embodiment, provide a kind of note recognition methods, described method comprises:
Obtain note to be identified;
Determine and the index that described note matches in the index set prestored;
Determine the message template set associated with described index;
Utilize the target information in the content of text of note described in the message template identification in described message template set.
Optionally, described method also comprises:
Receive the described index set of service end transmission and one or more described message template set, wherein, at least comprise an index in described index set, in described index set, message template set described in each index association one, at least comprises a message template in described message template set.
Optionally, describedly to determine and the index that described note matches in the index set prestored, comprising:
Judge whether the presupposed information in the customizing messages of described note and described index matches;
When the presupposed information in the customizing messages and described index of described note matches, determine that described index and described note match.
Optionally, the presupposed information in described index at least comprises sender number, take over party's ownership place and key word;
Described judge described note customizing messages and described index in presupposed information whether match, comprising:
Read the sender number in described index, take over party's ownership place and key word;
Obtain sender number and take over party's ownership place of described note;
From the content of text of described note, search whether record described key word;
When the sender number recorded in the sender number of described note and take over party's ownership place and described index, take over party's ownership place match, and when recording described key word in the content of text of described note, determine that the presupposed information in the customizing messages of described note and described index matches.
Optionally, the target information in the content of text of note described in the described message template identification utilized in described message template set, comprising:
According to the record order of message template from described message template set, extract the target information in the content of text of note described in message template identification;
If the message template None-identified of current extraction goes out described target information, then in described message template set, extract next message template successively, if the message template of current extraction identifies described target information, then stop extracting message template.
Optionally, described method also comprises:
After target information in the described content of text utilizing note described in described message template identification, template recognition result is sent to service end, described template recognition result comprises the successful message template of identification, for the template identification quantity of service end according to described template recognition result statistics message template.
Optionally, described index set stores with the form of text, and all index stores in described index set are in one text file;
Described message template set stores with the form of text, and all message template in each message template set are stored in one text file, and different message template set is stored in different texts.
Optionally, also store template path corresponding to each index in the text that described index set stores, described template path is the mark of the text storing the message template set associated with described index;
The described message template set determining to associate with described index, comprising:
Obtain the template path that described index is corresponding;
According to described mark, search the text storing the message template set associated with described index, obtain the message template set associated with described index.
According to the third aspect of disclosure embodiment, a kind for the treatment of apparatus of template is provided, comprises:
Message template acquisition module, is configured to obtain message template to be pushed, and described message template comprises template attributes and the property value corresponding with template attributes;
Extraction module, is configured to the To Template attribute according to presetting, and extracts the property value corresponding with described To Template attribute as the index associated with described message template from described message template;
Pushing module, is configured to described message template to be pushed to terminal with the index associated, and utilizes the target information in the content of text of the message template identification note associated with described index for terminal.
Optionally, described device also comprises:
Template record module, is configured to the message template with same index to be recorded in same message template set, obtains one or more message template set;
Index record module, is configured to all index records in index set;
Described pushing module, comprising:
Set pushes submodule, is configured to described message template set and described index set to be pushed to terminal.
Optionally, described template attributes comprises priority attribute;
Described device also comprises:
Priority acquisition module, is configured to the priority obtaining described message template, using the property value of described priority as described message template medium priority attribute;
Described template record module, comprising:
Template record submodule, is configured to the priority according to message template described in each, and the message template with same index is recorded in same message template set by order according to the priority.
Optionally, described template attributes comprises template identification quantitative attribute;
Described device also comprises:
Recognition result acquisition module, is configured to the template recognition result obtaining terminal transmission, records and identify successful message template in described template recognition result;
Statistical module, is configured to the template identification quantity according to the described message template in described template recognition result statistics Preset Time, using the property value of described template identification quantity as the template identification quantitative attribute in described message template.
Optionally, described device also comprises:
Abnormality detection module, is configured to according to described template identification quantity, carries out abnormal template detection, filter out abnormal message template by the machine learning algorithm preset to message template described to be pushed.
Optionally, described template attributes comprises template term of validity attribute;
Described device also comprises:
Term of validity screening module, is configured to the property value according to described template term of validity attribute, filters out not message template before the deadline in message template described to be pushed.
Optionally, described pushing module, comprising:
Cycle pushes submodule, is configured to, according to preset time period, described message template set and described index set are pushed to terminal.
Optionally, described message template and described index store with the form of database.
According to the fourth aspect of disclosure embodiment, provide a kind of note recognition device, described device comprises:
Note acquisition module, is configured to obtain note to be identified;
Index determination module, is configured to determine and the index that described note matches in the index set prestored;
Template determination module, is configured to the message template set determining to associate with described index;
Identification module, is configured to the target information utilized in the content of text of note described in the message template identification in described message template set.
Optionally, described device also comprises:
Set receiver module, be configured to receive the index set of service end transmission and one or more described message template set, wherein, an index is at least comprised in described index set, in described index set, message template set described in each index association one, at least comprises a message template in described message template set.
Optionally, described index determination module, comprising:
Matching judgment submodule, is configured to judge whether the presupposed information in the customizing messages of described note and described index matches;
Coupling determines submodule, is configured to, when the presupposed information in the customizing messages and described index of described note matches, determine that described index and described note match.
Optionally, the presupposed information in described index at least comprises sender number, take over party's ownership place and key word;
Described matching judgment submodule, comprising:
Reading submodule, is configured to the sender number, take over party's ownership place and the key word that read in described index;
Obtain submodule, be configured to the sender number and the take over party's ownership place that obtain described note;
Search submodule, be configured to search whether record described key word from the content of text of described note;
Determine submodule, be configured to when the sender number recorded in the sender number of described note and take over party's ownership place and described index, take over party's ownership place match, and when recording described key word in the content of text of described note, determine that the presupposed information in the customizing messages of described note and described index matches.
Optionally, described identification module, comprising:
Information recognin module, is configured to the message template set according to associating with described index, according to the record order of message template from described message template set, extracts the target information in the content of text of note described in message template identification;
Template extraction submodule, if the message template None-identified being configured to current extraction goes out described target information, then in described message template set, extract next message template successively, if the message template of current extraction identifies described target information, then stop extracting message template.
Optionally, described device also comprises:
Sending module, after being configured to the target information in the described content of text utilizing note described in described message template identification, template recognition result is sent to service end, described template recognition result comprises the successful message template of identification, for the template identification quantity of service end according to described template recognition result statistics message template.
Optionally, described index set stores with the form of text, and all index stores in described index set are in one text file;
Described message template set stores with the form of text, and all message template in each message template set are stored in one text file, and different message template set is stored in different texts.
Optionally, also store template path corresponding to each index in the text that described index set stores, described template path is the mark of the text storing the message template set associated with described index;
Described template determination module, comprising:
Path obtains submodule, is configured to obtain template path corresponding to described index;
Set obtains submodule, is configured to according to described mark, searches the text storing the message template set associated with described index, obtains the message template set associated with described index.
According to the 5th aspect of disclosure embodiment, a kind for the treatment of apparatus of template is provided, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain message template to be pushed, described message template comprises template attributes and the property value corresponding with template attributes;
According to the To Template attribute preset, from described message template, extract the property value corresponding with described To Template attribute as the index associated with described message template;
Described message template is pushed to terminal with the index associated, utilizes the target information in the content of text of the message template identification note associated with described index for terminal.
According to the 6th aspect of disclosure embodiment, a kind of note recognition device is provided, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain note to be identified;
Determine and the index that described note matches in the index set prestored;
Determine the message template set associated with described index;
Utilize the target information in the content of text of note described in the message template identification in described message template set.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
In the disclosure, by setting up index for message template, index is used for associating with message template, when message template upgrades, index and message template can be pushed to terminal, get up-to-date message template for terminal, complexity when message template upgrades can be reduced, improve the renewal efficiency of message template.
In the disclosure, because this message template set can record one or more message template with same index, therefore the multiple message template recorded in message template set may be used to the note identifying same field, only need an index can associate with multiple message template, the efficiency of management to message template can be improved.
In the disclosure, when there being multiple message template in message template set, it can be each message template configuration preference level, then in message template set, the message template that priority is high is arranged in front, and for preferentially carrying out note identification, thus improves the efficiency of note identification.
In the disclosure, the template recognition result that terminal sends can be obtained, according to the template identification quantity of the described message template in described template recognition result statistics Preset Time, using the property value of described template identification quantity as the template identification quantitative attribute in described message template, by recording the identification quantity of message template, can analyze the recognition accuracy of message template, to improve the identification accuracy of message template.
In the disclosure, utilizing machine learning algorithm can carry out abnormal monitoring to message template, filter out abnormal message template, is all normal message template to ensure to be pushed to the message template of terminal, improves the recognition accuracy of message template.
In the disclosure, message template can be detected whether before the deadline according to the property value of template term of validity attribute, to filter out invalid message template, ensure that the message template being pushed to terminal is all effective template, reduce the maintenance difficulties of template.
In the disclosure, message template set and index set can be pushed to terminal according to preset time period, make terminal can receive up-to-date template on time.
In the disclosure, adopt the form of database to store message template and index in service end, message template and index can be safeguarded preferably.
In the disclosure, by determining and the index that note to be identified matches, index is used for and message template set associative, and index can be utilized to get corresponding message template rapidly and identify, which recognition efficiency is higher.
In the disclosure, can obtain index set and message template set from service end, owing to recording all indexes in index set, message template set comprises one or more message template, can improve the efficiency of management of index and message template.
In the disclosure, by judging that the presupposed information in the customizing messages of described note and described index matches, thus determine that index mates with note, which matching efficiency is very fast and accuracy is high.
In the disclosure, utilize the sender number in index, take over party's ownership place and key word to mate with note to be identified, which is easy to realize, and the accuracy of coupling is higher.
In the disclosure, owing to have recorded multiple message template in message template set, message template can be extracted according to the record order of message template, the target information in note can be identified when the message template extracted, then can stop extracting message template, thus improve the efficiency of note identification.
In the disclosure, the recognition result of message template can be fed back to service end, for the recognition accuracy of service end statistics message template, whether monitoring short message template is abnormal in time.
In the disclosure, the mode of text can be adopted to store index set and message template set, all index stores are in one text file, all message template in each message template set are stored in one text file, and different message template set is stored in different texts; Which is safeguarded simple, can improve the efficiency of searching index He searching message template.
In the disclosure, the text of index set also stores template path corresponding to each index, and therefore can determine according to template path the message template set that associates with described index rapidly, its search efficiency is higher.
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 instructions and to form the part of this instructions, shows and meets embodiment of the present disclosure, and is used from instructions one and explains principle of the present disclosure.
Fig. 1 is the process flow diagram of the disposal route of a kind of template shown in the disclosure one exemplary embodiment.
Fig. 2 is the process flow diagram of the disposal route of the another kind of template shown in the disclosure one exemplary embodiment.
Fig. 3 is the process flow diagram of a kind of note recognition methods shown in the disclosure one exemplary embodiment.
Fig. 4 is the block diagram of the treating apparatus of a kind of template of the disclosure according to an exemplary embodiment.
Fig. 5 to Figure 10 is the block diagram of the treating apparatus of the another kind of template of the disclosure according to an exemplary embodiment.
Figure 11 is the block diagram of a kind of note recognition device of the disclosure according to an exemplary embodiment.
Fig. 7 to Figure 17 is the block diagram of the another kind of note recognition device of the disclosure according to an exemplary embodiment.
Figure 18 is the block diagram of a kind for the treatment of apparatus for template of the disclosure according to an exemplary embodiment.
Figure 19 is a kind of block diagram for note recognition device of the disclosure 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.Embodiment described in following exemplary embodiment does not represent all embodiments 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.
The term used in the disclosure is only for the object describing specific embodiment, and the not intended to be limiting disclosure." one ", " described " and " being somebody's turn to do " of the singulative used in disclosure and the accompanying claims book is also intended to comprise most form, unless context clearly represents other implications.It is also understood that term "and/or" used herein refer to and comprise one or more project of listing be associated any or all may combine.
Term first, second, third, etc. may be adopted although should be appreciated that to describe various information in the disclosure, these information should not be limited to these terms.These terms are only used for the information of same type to be distinguished from each other out.Such as, when not departing from disclosure scope, the first information also can be called as the second information, and similarly, the second information also can be called as the first information.Depend on linguistic context, word as used in this " if " can be construed as into " ... time " or " when ... time " or " in response to determining ".
Fig. 1 is the process flow diagram of the disposal route of a kind of template according to an exemplary embodiment; The disposal route of this template can be applied in service end, and service end can comprise database service end or cloud server terminal, stores the message template needing to be pushed to terminal in service end, and service end is for the management to message template, monitoring and propelling movement etc.Usually, terminal, when carrying out note identification, can obtain note recognizer from service end, has write the message template configured in this note recognizer.When the message template of service end upgrades, the note recognizer normally pushing new edition, to terminal, to make terminal obtain up-to-date message template, makes terminal can carry out note identification according to up-to-date message template.
As shown in Figure 1, the disposal route of the template that disclosure embodiment provides, comprises the following steps 101-103:
In a step 101, obtain message template to be pushed, described message template comprises template attributes and the property value corresponding with template attributes.
In the embodiment that the disclosure provides, can obtain pre-configured message template, message template can be manually pre-configured, also can be the message template utilizing short message text digging technology in advance and automatically obtain.
In short message text excavates, a large amount of message template can be produced; Usually, message template can have following template attributes: sender number, take over party's ownership place, the term of validity, field, transmit leg organizational structure, key word, content, priority, identification quantity etc.In the embodiment that the disclosure provides, based on above-mentioned template attributes, message template can adopt following template style:
Wherein ": " indicates the type of property value below; " String " is character string; DateTime is date-time; Int is integer.
Shown below two according to the pre-configured message template for identifying millet order of above-mentioned template style, message template comprises template attributes and the property value corresponding with template attributes.
Message template 1:
Message template 2:
In a step 102, according to the To Template attribute preset, from described message template, extract the index that the property value corresponding with described To Template attribute associates as described message template.
In disclosure embodiment, message template is associated in order to enable index, To Template attribute can adopt the one or more attributes in message template, utilize To Template attribute, the property value corresponding with described To Template attribute can be extracted as index corresponding to described message template from described message template.
Such as, the To Template attribute preset can comprise key attribute, sender number attribute, take over party's ownership place attribute, then according to above-mentioned three To Template attributes, to each message template, extract the property value corresponding with To Template attribute as index corresponding to described message template.Be understandable that, in actual applications, those skilled in the art can set different To Template attributes according to the message template of different field.
When adopting the method for the present embodiment to set up index to said short message template 1, the index obtained can be:
Millet issue voucher+Delivery Co., Ltd ^1069 [0-9] { 8,15} $ whole nation
Above-mentioned index associates with message template 1, and this index and message template 1 have incidence relation, according to this incidence relation, can determine corresponding message template fast by index.
In step 103, described message template is pushed to terminal with the index associated, utilizes the target information in the content of text of the message template identification note associated with described index for terminal.
After the index determining described message template and associate with message template, message template and index terminal be can be pushed to, up-to-date message template and index be obtained to make terminal.
So far, the creation method of the message template that disclosure embodiment provides, by setting up index for message template, index is used for associating with message template, when message template upgrades, index and message template can be pushed to terminal, get up-to-date message template for terminal, complexity when message template upgrades can be reduced, improve the renewal efficiency of message template.
With specific embodiment, the technical scheme that disclosure embodiment provides is described below.
As shown in Figure 2, Fig. 2 is the process flow diagram of the disposal route of another kind of template according to an exemplary embodiment, comprises the steps 201-205:
In step 201, obtain message template to be pushed, described message template comprises template attributes and the property value corresponding with template attributes.
In step 202., according to the To Template attribute preset, from described message template, extract the property value corresponding with described To Template attribute as the index associated with described message template.
In step 203, the message template with same index is recorded in same message template set, obtains one or more message template set, in each message template set, comprise one or more message template with same index.
In step 204, by all index records in index set.
In step 205, described message template set and described index set are pushed to terminal, determine and the index that note to be identified matches for terminal, the target information in the content of text of note described in the message template identification that utilization associates with described index.
In the embodiment that the disclosure provides, for two message template about millet order shown in embodiment illustrated in fig. 1, in message template 1 and message template 2, the property value of its contents attribute is respectively:
Your millet issue voucher <# delivery odd numbers #> outbound, Delivery Co., Ltd is <# express company #>, express delivery odd numbers: <# express delivery odd numbers #>
Your millet issue voucher outbound, Delivery Co., Ltd is <# express company #>, express delivery odd numbers: <# express delivery odd numbers #>
From the contents attribute of above-mentioned two message template, both differences are less, the property value of the To Template attribute (key attribute, sender number attribute, take over party's ownership place attribute) of two message template is all identical, two message template may be used to identify the note about millet order, therefore, the index set up two message template is also all identical, can be:
Millet issue voucher+Delivery Co., Ltd ^1069 [0-9] { 8,15} $ whole nation
Therefore, two message template can be recorded in same message template set, that is to say and write in same message template file; This message template set can adopt " transmit leg organizational structure " and " field " to name, such as can called after " millet order " template file.
Wherein, all index records are in an index set, and the message template of same index is recorded in message template set, and message template set can have one or more.After determining index set and message template set, can be packed and be pushed to terminal.When packing index set and message template set, index set can be written in a text, each message template set is written in a text, different message template set is written in different texts, is pushed to terminal after finally the index set of text file format and message template set being packed.
Because this message template set can record one or more message template with same index, therefore the multiple message template recorded in message template set may be used to the note identifying same field, only need an index can associate with multiple message template, the efficiency of management to message template can be improved.
In an optional implementation, the template attributes of message template can comprise priority attribute.
Said method also can comprise:
Obtain the priority of described message template, using the property value of described priority as the priority attribute in described message template.
Described the message template with same index to be recorded in same message template set, to comprise:
According to the priority of message template described in each, the message template with same index is recorded in same message template set by order according to the priority.
In the embodiment that the disclosure provides, when there being multiple message template in message template set, in order to improve efficiency and the accuracy of note identification, it can be each message template configuration preference level, then in message template set, the message template that priority is high is arranged in front, and for preferentially carrying out note identification, thus improves the efficiency of note identification.
Wherein, obtain the priority of message template, can be get by manually arranging, also can be utilize the natural language processing algorithm in correlation technique to process rear automatic marking to all message template, and acquire after manual examination and verification checking after automatic marking again.Such as, can be the contents attribute read in each message template, the priority determined according to the taking byte of contents attribute, such as can the message template priority taking byte of contents attribute higher; Or can also determine according to the property value of other attributes.
In an optional implementation, described template attributes comprises template identification quantitative attribute.
Described method also comprises:
Obtain the template recognition result that terminal sends, record in described template recognition result and identify successful message template.
According to the template identification quantity of described message template in described template recognition result statistics Preset Time, using the property value of described template identification quantity as the template identification quantitative attribute in described message template.
In the embodiment that the disclosure provides, when terminal utilizes message template successfully to identify note, the template recognition result that terminal sends can be obtained, according to the template identification quantity of the described message template in described template recognition result statistics Preset Time, using the property value of described template identification quantity as the template identification quantitative attribute in described message template, by recording the identification quantity of message template, can analyze the recognition accuracy of message template, to improve the identification accuracy of message template.
In an optional implementation, the disposal route of above-mentioned template also can comprise:
According to described template identification quantity, by the machine learning algorithm preset, abnormal template detection is carried out to message template described to be pushed, filter out abnormal message template.
In the embodiment that the disclosure provides, machine learning algorithm can be existing algorithm in correlation technique, utilize machine learning algorithm can carry out abnormal monitoring to message template, to the message template of the exception filtered out, keeper can be fed back to audit, or can suppressing exception message template, be all normal message template to ensure to be pushed to the message template of terminal, to improve the recognition accuracy of message template.
In an optional implementation, described template attributes comprises template term of validity attribute;
Described method also comprises:
According to the property value of described template term of validity attribute, in message template described to be pushed, filter out not message template before the deadline.
In the embodiment that the disclosure provides, the template attributes of message template can also comprise term of validity attribute, the term of validity of message template can be the term of validity of human configuration, also can be the template term of validity utilizing short message text digging technology and determine, be recorded in message template using this term of validity as the property value of term of validity attribute, then service end treats the message template of propelling movement, its term of validity can be monitored, filter out expired template, only have message template before the deadline, just can be pushed to terminal.
In disclosure embodiment, message template can be detected whether before the deadline according to the property value of template term of validity attribute, to filter out invalid message template, ensure that the message template being pushed to terminal is all effective template, reduce the maintenance difficulties of template.
In an optional implementation, described described message template set and described index set are pushed to terminal, comprise:
According to preset time period, described message template set and described index set are pushed to terminal.
This preset time period can be 5 days, 7 days or 10 days equal time cycles, and those skilled in the art can flexible configuration according to actual needs.
In disclosure embodiment, message template set and index set can be pushed to terminal according to preset time period, make terminal can receive up-to-date template on time.
In an optional implementation, described message template and described index store with the form of database; Adopt the form of database to store message template and index in service end, message template and index can be safeguarded preferably.
As shown in Figure 3, Fig. 3 is the process flow diagram of the note recognition methods according to an exemplary embodiment, this note recognition methods can be applied in and can get in the terminal of note, realize the identification to target information in the content of text of note, as shown in Figure 3, this note recognition methods comprises the following steps 301-304:
In step 301, note to be identified is obtained.
Method in disclosure embodiment can be applied in the terminal, and terminal can be smart mobile phone, panel computer, PDA (PersonalDigitalAssistant, personal digital assistant) etc.Terminal can be provided with short message application program, receives note by short message application program, and terminal can carry out the identification of target information to the note received.
In step 302, determine and the index that described note matches in the index set prestored.
Terminal can obtain index set and the message template set of above-mentioned Fig. 1 or middle service end transmission embodiment illustrated in fig. 2 in advance.After getting note to be identified, first can determine the index matched with it, because index is associated with a message template set, in message template set, have recorded at least one message template, the identification of target information can be carried out by the message template corresponding according to the index of this coupling.
In an optional implementation, described method also comprises:
Receive index set and the message template set of service end transmission, wherein, at least comprise an index in described index set, in described index set, message template set described in each index association one, at least comprises a message template in described message template set.
In the embodiment that the disclosure provides, index set and message template set can be obtained from service end, owing to recording all indexes in index set, message template set comprises one or more message template, thus can improve the efficiency of management of index and message template.
In an optional implementation, describedly to determine and the index that described note matches in the index set prestored, comprising:
Judge whether the presupposed information in the customizing messages of described note and described index matches;
When the presupposed information in the customizing messages and described index of described note matches, determine that described index and described note match.
In the embodiment that the disclosure provides, the customizing messages of note can be all or part of word in the content of text of note, or can also comprise other information such as sender number and take over party's ownership place of note; Presupposed information in index can comprise the information such as sender number, take over party's ownership place and key word.Because index determines according to the objective attribute target attribute in message template, index indicates the characteristic of message template, therefore, presupposed information in index can be used for mating with the customizing messages of note, search from index set and can carry out with the customizing messages of note the index that mates, to judge which kind of message template set is this note need adopt identify.
In an optional implementation, the presupposed information in described index at least comprises sender number, take over party's ownership place and key word;
Described judge note customizing messages and described index in presupposed information whether match, comprising:
Read the sender number in described index, take over party's ownership place and key word;
Obtain sender number and take over party's ownership place of described note;
From the content of text of described note, search whether record described key word;
When the sender number recorded in the sender number of described note and take over party's ownership place and described index, take over party's ownership place match, and when recording described key word in the content of text of described note, determine that the presupposed information in the customizing messages of described note and described index matches.
Such as, with index: " millet issue voucher+Delivery Co., Ltd ^1069 [0-9] 8, the 15} $ whole nation " be example, when the smart mobile phone (subscriber phone number ownership place is " Beijing ") of user receives following note:
< " 106571005610091150 ", " [millet] your millet issue voucher 514081645010250401 outbound, Delivery Co., Ltd reaches (Shenzhen), express delivery odd numbers: 514081645010250401 as wind.Details please log in millet net " >
Utilize " millet issue voucher "+" Delivery Co., Ltd " in index, telephone number, and take over party's ownership place mates with note to be identified, because the sender number of index and note to be identified, take over party's ownership place and key word all match, then this index and note to be identified match, thus the message template in the message template set associated with index can be utilized to identify this note.
Wherein, when carrying out take over party's ownership place coupling, if template take over party ownership place is " whole nation ", then China all mates in " whole nation " in place arbitrarily; If template take over party ownership place is " Hubei ", then Hubei is local as mated in " Hubei " in " Wuhan ", " Jing Zhou " etc. arbitrarily.The coupling of above-mentioned take over party's ownership place, in actual applications, according to geographic territory, can preset the corresponding relation between each area.
As seen from the above-described embodiment, utilize the sender number in index, take over party's ownership place and key word to mate with note to be identified, which is easy to realize, and the accuracy of coupling is higher.
In step 303, the message template set associated with described index is determined.
From Fig. 1 or embodiment illustrated in fig. 2, index and message template set have incidence relation, determine index, can determine the message template set corresponding with it.
In step 304, the target information in the content of text of note described in the message template identification in described message template set is utilized.
In the embodiment that the disclosure provides, the information in content of text can be extracted by message template, thus the target information in note can be identified; When utilizing message template to carry out the identification of target information, the recognition methods in correlation technique can be adopted.
Such as, for in express delivery order category information, the target information identified can be the information such as express company and order number, and the target information that hotel's sequence information identifies can be move in city, hotel's name, move in the date or move in the information such as people, thus after identifying target information, other function can be performed further according to target information for terminal, such as can utilize express company and order number automatically for the logistics that user feedback is up-to-date is in progress, the time can be moved according to hotel's sequence information reminding user, move in the weather condition etc. in city, thus provide convenience for user.
In an optional implementation, the target information in the content of text of note described in the described message template identification utilized in described message template set, can comprise:
According to the record order of message template from described message template set, extract the target information in the content of text of note described in message template identification.
If the message template None-identified of current extraction goes out described target information, then in described message template set, extract next message template successively, if the message template of current extraction identifies described target information, then stop extracting message template.
In the embodiment that the disclosure provides, multiple message template can be recorded in message template set, each message template configuration preference level, in message template set, the message template that priority is high is arranged in front, can in order according to the priority of message template, the message template extracting priority higher carries out note identification.When extracting message template in message template set, can extract according to the record of message template in message template set order.If the message template None-identified of current extraction goes out described target information, then in described message template set, extract next message template successively, if the message template of current extraction identifies described target information, then can stop extracting message template.
As seen from the above-described embodiment, owing to have recorded multiple message template in message template set, message template can be extracted according to the record order of message template, the target information in note can be identified when the message template extracted, then can stop extracting message template, thus the efficiency of the note identification improved.
In an optional implementation, described note recognition methods also can comprise:
After target information in the described content of text utilizing note described in described message template identification, template recognition result is sent to service end, described template recognition result comprises the successful message template of identification, for the template identification quantity of service end according to described template recognition result statistics message template.
In disclosure embodiment, the recognition result of message template can be fed back to service end, for the recognition accuracy of service end statistics message template, whether monitoring short message template is abnormal in time.
In an optional implementation, described index set stores with the form of text, and all index stores in described index set are in one text file.
Described message template set stores with the form of text, and all message template in each message template set are stored in one text file, and different message template set is stored in different texts.
In disclosure embodiment, the mode of text can be adopted to store index set and message template set, which is safeguarded simple, can improve the efficiency of searching index He searching message template.
In an optional implementation, also store template path corresponding to each index in the text that described index set stores, described template path is the mark of the text storing the message template set associated with described index.
The described message template set determining to associate with described index, comprising:
Obtain the template path that described index is corresponding.
According to described mark, search the text storing the message template set associated with described index, obtain the message template set associated with described index.
In disclosure embodiment, can set the template path pointing to the message template set associated with it in the index, this template path can be the title of the text of this message template set, or the memory location etc. of text file; When needing to determine the message template set associated with described index, obtaining this template path, the text of the message template set associated with described index can be found, obtain the message template set associated with described index.
In disclosure embodiment, the text of index set also stores template path corresponding to each index, and therefore can determine according to template path the message template set that associates with described index rapidly, its search efficiency is higher.
As shown in Figure 4, Fig. 4 is the treating apparatus block diagram of a kind of template of the disclosure according to an exemplary embodiment, and described device comprises: message template acquisition module 41, extraction module 42 and pushing module 43.
Wherein, message template acquisition module 41, is configured to obtain message template to be pushed, and described message template comprises template attributes and the property value corresponding with template attributes.
Extraction module 42, is configured to the To Template attribute according to presetting, and extracts the property value corresponding with described To Template attribute as the index associated with described message template from described message template.
Pushing module 43, is configured to described message template to be pushed to terminal with the index associated, and utilizes the target information in the content of text of the message template identification note associated with described index for terminal.
As seen from the above-described embodiment, by setting up index for message template, index is used for associating with message template, when message template upgrades, index and message template can be pushed to terminal, get up-to-date message template for terminal, complexity when message template upgrades can be reduced, improve the renewal efficiency of message template.
As shown in Figure 5, Fig. 5 is the treating apparatus block diagram of the another kind of template of the disclosure according to an exemplary embodiment, and this embodiment is on aforementioned basis embodiment illustrated in fig. 4, and described device also comprises: template record module 44 and index record module 45.Described pushing module 43 comprises: set pushes submodule 431.
Wherein, template record module 44, be configured to the message template with same index to be recorded in same message template set, obtain one or more message template set, in each message template set, comprise one or more message template with same index.
Index record module 45, is configured to all index records in index set.
Set pushes submodule 431, is configured to described message template set and described index set to be pushed to terminal.
As seen from the above-described embodiment, because this message template set can record one or more message template with same index, therefore the multiple message template recorded in message template set may be used to the note identifying same field, only need an index can associate with multiple message template, the efficiency of management to message template can be improved.
As shown in Figure 6, Fig. 6 is the treating apparatus block diagram of the another kind of template of the disclosure according to an exemplary embodiment, and this embodiment is on aforementioned basis embodiment illustrated in fig. 5, and described template attributes comprises priority attribute.Described device also comprises: priority acquisition module 46.
Wherein, priority acquisition module 46, is configured to the priority obtaining described message template, using the property value of described priority as described message template medium priority attribute.
Described template record module 44, comprising: template record submodule 441.
Wherein, template record submodule 441, is configured to the priority according to message template described in each, and the message template with same index is recorded in same message template set by order according to the priority.
As seen from the above-described embodiment, when there being multiple message template in message template set, it can be each message template configuration preference level, then in message template set, the message template that priority is high is arranged in front, and for preferentially carrying out note identification, thus improves the efficiency of note identification.
As shown in Figure 7, Fig. 7 is the treating apparatus block diagram of the another kind of template of the disclosure according to an exemplary embodiment, and this embodiment is on aforementioned basis embodiment illustrated in fig. 4, and described template attributes comprises template identification quantitative attribute.
Described device also comprises: recognition result acquisition module 47 and statistical module 48.
Wherein, recognition result acquisition module 47, is configured to the template recognition result obtaining terminal transmission, records and identify successful message template in described template recognition result.
Statistical module 48, is configured to the template identification quantity according to the described message template in described template recognition result statistics Preset Time, using the property value of described template identification quantity as the template identification quantitative attribute in described message template.
As seen from the above-described embodiment, the template recognition result that terminal sends can be obtained, according to the template identification quantity of the described message template in described template recognition result statistics Preset Time, using the property value of described template identification quantity as the template identification quantitative attribute in described message template, by recording the identification quantity of message template, can analyze the recognition accuracy of message template, to improve the identification accuracy of message template.
As shown in Figure 8, Fig. 8 is the treating apparatus block diagram of the another kind of template of the disclosure according to an exemplary embodiment, and this embodiment is on aforementioned basis embodiment illustrated in fig. 7, and described device also comprises: abnormality detection module 49.
Wherein, abnormality detection module 49, is configured to the property value according to described template term of validity attribute, carries out abnormal template detection, filter out abnormal message template by the machine learning algorithm preset to message template described to be pushed.
As seen from the above-described embodiment, utilizing machine learning algorithm can carry out abnormal monitoring to message template, filter out abnormal message template, is all normal message template to ensure to be pushed to the message template of terminal, improves the recognition accuracy of message template.
As shown in Figure 9, Fig. 9 is the treating apparatus block diagram of another template of the disclosure according to an exemplary embodiment, and this embodiment is on aforementioned basis embodiment illustrated in fig. 4, and described template attributes comprises template term of validity attribute; Described device also comprises: term of validity screening module 40.
Wherein, term of validity screening module 40, is configured to the property value according to described template term of validity attribute, filters out not message template before the deadline in message template described to be pushed.
As seen from the above-described embodiment, message template can be detected whether before the deadline according to the property value of template term of validity attribute, to filter out invalid message template, ensure that the message template being pushed to terminal is all effective template, reduce the maintenance difficulties of template.
As shown in Figure 10, Figure 10 is the treating apparatus block diagram of the another kind of template of the disclosure according to an exemplary embodiment, and this embodiment is on aforementioned basis embodiment illustrated in fig. 5, and described pushing module, comprises cycle propelling movement submodule 432.
Wherein, the cycle pushes submodule 432, is configured to, according to preset time period, described message template set and described index set are pushed to terminal.
As seen from the above-described embodiment, message template set and index set can be pushed to terminal according to preset time period, make terminal can receive up-to-date template on time.
In one embodiment, described message template and described index store with the form of database.
As seen from the above-described embodiment, adopt the form of database to store message template and index in service end, message template and index can be safeguarded preferably.
As shown in figure 11, Figure 11 is a kind of note recognition device block diagram of the disclosure according to an exemplary embodiment, and described device comprises: note acquisition module 111, index determination module 112, template determination module 113 and identification module 114.
Wherein, note acquisition module 111, is configured to obtain note to be identified.
Index determination module 112, is configured to determine and the index that described note matches in the index set prestored.
Template determination module 113, is configured to the message template set determining to associate with described index.
Identification module 114, is configured to the target information utilized in the content of text of note described in the message template identification in described message template set.
As seen from the above-described embodiment, by determining and the index that note to be identified matches, index is used for associating with message template, and index can be utilized to get the message template be associated rapidly and identify, its note recognition efficiency is higher.
As shown in figure 12, Figure 12 is the another kind of note recognition device block diagram of the disclosure according to an exemplary embodiment, and this embodiment is on aforementioned basis embodiment illustrated in fig. 11, and described device also comprises: set receiver module 115.
Set receiver module 115, be configured to receive the index set of service end transmission and one or more described message template set, wherein, an index is at least comprised in described index set, in described index set, message template set described in each index association one, at least comprises a message template in described message template set.
As seen from the above-described embodiment, can obtain index set and message template set from service end, owing to recording all indexes in index set, message template set comprises one or more message template, can improve the efficiency of management of index and message template.
As shown in figure 13, Figure 13 is the another kind of note recognition device block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 11, and described index determination module 112, comprising: matching judgment submodule 1121 and coupling determine submodule 1122.
Wherein, matching judgment submodule 1121, is configured to judge whether the presupposed information in the customizing messages of described note and described index matches.
Coupling determines submodule 1122, is configured to, when the presupposed information in the customizing messages and described index of described note matches, determine that described index and described note match.
As seen from the above-described embodiment, by judging that the presupposed information in the customizing messages of described note and described index matches, determine that the very fast accuracy of mode matching efficiency that index mates with note is high.
As shown in figure 14, Figure 14 is the another kind of note recognition device block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 13, and the presupposed information in described index at least comprises sender number, take over party's ownership place and key word.
Described matching judgment submodule 1121, comprising: reading submodule 11211, obtain submodule 11212, search submodule 11213 and determine submodule 11214.
Wherein, reading submodule 11211, is configured to the sender number, take over party's ownership place and the key word that read in described index.
Obtain submodule 11212, be configured to the sender number and the take over party's ownership place that obtain described note.
Search submodule 11213, be configured to search whether record described key word from the content of text of described note.
Determine submodule 11214, be configured to when the sender number recorded in the sender number of described note and take over party's ownership place and described index, take over party's ownership place match, and when recording described key word in the content of text of described note, determine that the presupposed information in the customizing messages of described note and described index matches.
As seen from the above-described embodiment, utilize the sender number in index, take over party's ownership place and key word to mate with note to be identified, which is easy to realize, and the accuracy of coupling is higher.
As shown in figure 15, Figure 15 is the another kind of note recognition device block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 11, and described identification module 114, comprising: information recognin module 1141 and template extraction submodule 1142.
Wherein, information recognin module 1141, is configured to the message template set according to associating with described index, according to the record order of message template from described message template set, extracts the target information in the content of text of note described in message template identification.
Template extraction submodule 1142, if the message template None-identified being configured to current extraction goes out described target information, then in described message template set, extract next message template successively, if the message template of current extraction identifies described target information, then stop extracting message template.
As seen from the above-described embodiment, owing to have recorded multiple message template in message template set, message template can be extracted according to the record order of message template, the target information in note can be identified when the message template extracted, then can stop extracting message template, thus the efficiency of the note identification improved.
As shown in figure 16, Figure 16 is the another kind of note recognition device block diagram of the disclosure according to an exemplary embodiment, and this embodiment is on aforementioned basis embodiment illustrated in fig. 11, and described device also comprises: sending module 116.
Wherein, sending module 116, after being configured to the target information in the described content of text utilizing note described in described message template identification, template recognition result is sent to service end, described template recognition result comprises the successful message template of identification, for the template identification quantity of service end according to described template recognition result statistics message template.
As seen from the above-described embodiment, the recognition result of message template can be fed back to service end, for the recognition accuracy of service end statistics message template, whether monitoring short message template is abnormal in time.
In one embodiment, described index set stores with the form of text, and all index stores in described index set are in one text file;
Described message template set stores with the form of text, and all message template in each message template set are stored in one text file, and different message template set is stored in different texts.
As seen from the above-described embodiment, the mode of text can be adopted to store index set and message template set, all index stores are in one text file, all message template in each message template set are stored in one text file, and different message template set is stored in different texts; Which is safeguarded simple, can improve the efficiency of searching index He searching message template.
As shown in figure 17, Figure 17 is the another kind of note recognition device block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 11, also store template path corresponding to each index in the text that described index set stores, described template path is the mark of the text storing the message template set associated with described index.
Described template determination module 113, comprising: path obtains submodule 1131 and set obtains submodule 1132.
Wherein, path obtains submodule 1131, is configured to obtain template path corresponding to described index.
Set obtains submodule 1132, is configured to according to described mark, searches the text storing the message template set associated with described index, obtains the message template set associated with described index.
As seen from the above-described embodiment, the text of index set is also written with template path corresponding to each index, and therefore can determine according to template path the message template set that associates with described index rapidly, its search efficiency is higher.
Accordingly, the disclosure also provides a kind for the treatment of apparatus of template, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain message template to be pushed, described message template comprises template attributes and the property value corresponding with template attributes;
According to the To Template attribute preset, from described message template, extract the property value corresponding with described To Template attribute as the index associated with described message template;
Described message template is pushed to terminal with the index associated, utilizes the target information in the content of text of the message template identification note corresponding with described index for terminal.
The disclosure also provides a kind of note recognition device, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain note to be identified;
Determine and the index that described note matches in the index set prestored;
Determine the message template set associated with described index;
Utilize the target information in the content of text of note described in the message template identification in described message template set.
In said apparatus, the implementation procedure of the function and efficacy of modules specifically refers to the implementation procedure of corresponding step in said method, does not repeat them here.
For device embodiment, because it corresponds essentially to embodiment of the method, so relevant part illustrates see the part of embodiment of the method.Device embodiment described above is only schematic, the wherein said module illustrated as separating component can or may not be physically separates, parts as module display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of disclosure scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
Figure 18 is the block diagram of a kind for the treatment of apparatus 1800 for the template shown in Fig. 4 according to an exemplary embodiment.Such as, device 1800 may be provided in a server.With reference to Figure 18, device 1800 comprises processing components 1822, and it comprises one or more processor further, and the memory resource representated by storer 1832, can such as, by the instruction of the execution of processing element 1822, application program for storing.The application program stored in storer 1832 can comprise each module corresponding to one group of instruction one or more.In addition, processing components 1822 is configured to perform instruction, to perform the method for above-mentioned identification calling party.
Device 1800 can also comprise the power management that a power supply module 1826 is configured to actuating unit 1800, and a wired or wireless network interface 1850 is configured to device 1800 to be connected to network, and input and output (I/O) interface 1858.Device 1800 can operate the operating system based on being stored in storer 1832, such as WindowsServerTM, MacOSXTM, UnixTM, LinuxTM, FreeBSDTM or similar.
As shown in figure 19, Figure 19 is a kind of block diagram for note recognition device 1900 Figure 11 shown in of the disclosure according to an exemplary embodiment.Such as, device 1900 can be the mobile phone with routing function, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Figure 19, device 1900 can comprise following one or more assembly: processing components 1902, storer 1904, power supply module 1906, multimedia groupware 1908, audio-frequency assembly 1910, the interface 1912 of I/O (I/O), sensor module 1914, and communications component 1916.
The integrated operation of the usual control device 1900 of processing components 1902, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 1902 can comprise one or more processor 1920 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 1902 can comprise one or more module, and what be convenient between processing components 1902 and other assemblies is mutual.Such as, processing components 1902 can comprise multi-media module, mutual with what facilitate between multimedia groupware 1908 and processing components 1902.
Storer 1904 is configured to store various types of data to be supported in the operation of device 1900.The example of these data comprises for any application program of operation on device 1900 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 1904 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), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that power supply module 1906 is device 1900 provide electric power.Power supply module 1906 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 1900 and be associated.
Multimedia groupware 1908 is included in the screen providing an output interface between described device 1900 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 1908 comprises a front-facing camera and/or post-positioned pick-up head.When device 1900 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 1910 is configured to export and/or input audio signal.Such as, audio-frequency assembly 1910 comprises a microphone (MIC), and when device 1900 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 1904 further or be sent via communications component 1916.In certain embodiments, audio-frequency assembly 1910 also comprises a loudspeaker, for output audio signal.
I/O interface 1912 is for providing interface between processing components 1902 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 module 1914 comprises one or more sensor, for providing the state estimation of various aspects for device 1900.Such as, sensor module 1914 can detect the opening/closing state of device 1900, the relative positioning of assembly, such as described assembly is display and the keypad of device 1900, the position of all right pick-up unit 1900 of sensor module 1914 or device 1900 assemblies changes, the presence or absence that user contacts with device 1900, the temperature variation of device 1900 orientation or acceleration/deceleration and device 1900.Sensor module 1914 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 1914 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 1914 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer, microwave remote sensor or temperature sensor.
Communications component 1916 is configured to the communication being convenient to wired or wireless mode between device 1900 and other equipment.Device 1900 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 1916 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 1916 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 1900 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) (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 storer 1904 of instruction, above-mentioned instruction can perform said method by the processor 1920 of device 1900.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 terminal, make terminal can perform a kind of note recognition methods, described method comprises:
Obtain note to be identified.
Determine and the index that described note matches in the index set prestored.
Determine the message template set associated with described index.
Utilize the target information in the content of text of note described in the message template identification in described message template set.
Those skilled in the art, at consideration instructions and after putting into practice invention disclosed herein, will easily expect other embodiment of the present disclosure.The disclosure 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.Instructions 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.
The foregoing is only preferred embodiment of the present disclosure, not in order to limit the disclosure, all within spirit of the present disclosure and principle, any amendment made, equivalent replacements, improvement etc., all should be included within scope that the disclosure protects.

Claims (34)

1. a disposal route for template, is characterized in that, comprising:
Obtain message template to be pushed, described message template comprises template attributes and the property value corresponding with template attributes;
According to the To Template attribute preset, from described message template, extract the property value corresponding with described To Template attribute as the index associated with described message template;
Described message template is pushed to terminal with the index associated, utilizes the target information in the content of text of the message template identification note associated with described index for terminal.
2. method according to claim 1, is characterized in that, described method also comprises:
The message template with same index is recorded in same message template set, obtains one or more message template set;
By all index records in index set;
The described index by described message template and correspondence is pushed to terminal, comprising:
Described message template set and described index set are pushed to terminal.
3. method according to claim 2, is characterized in that, described template attributes comprises priority attribute;
Described method also comprises:
Obtain the priority of described message template, using the property value of described priority as described message template medium priority attribute;
Described the message template with same index to be recorded in same message template set, to comprise:
According to the priority of message template described in each, the message template with same index is recorded in same message template set by order according to the priority.
4. method according to claim 1, is characterized in that, described template attributes comprises template identification quantitative attribute;
Described method also comprises:
Obtain the template recognition result that terminal sends, record in described template recognition result and identify successful message template;
According to the template identification quantity of the described message template in described template recognition result statistics Preset Time, using the property value of described template identification quantity as the template identification quantitative attribute in described message template.
5. method according to claim 4, is characterized in that, described method also comprises:
According to described template identification quantity, by the machine learning algorithm preset, abnormal template detection is carried out to message template described to be pushed, filter out abnormal message template.
6. method according to claim 5, is characterized in that, described template attributes comprises template term of validity attribute;
Described method also comprises:
According to the property value of described template term of validity attribute, in message template described to be pushed, filter out not message template before the deadline.
7. according to the arbitrary described method of claim 1 to 6, it is characterized in that, described described message template set and described index set be pushed to terminal, comprising:
According to preset time period, described message template set and described index set are pushed to terminal.
8., according to the arbitrary described method of claim 1 to 6, it is characterized in that, described message template and described index store with the form of database.
9. a note recognition methods, is characterized in that, described method comprises:
Obtain note to be identified;
Determine and the index that described note matches in the index set prestored;
Determine the message template set associated with described index;
Utilize the target information in the content of text of note described in the message template identification in described message template set.
10. method according to claim 9, is characterized in that, described method also comprises:
Receive the described index set of service end transmission and one or more described message template set, wherein, at least comprise an index in described index set, in described index set, message template set described in each index association one, at least comprises a message template in described message template set.
11. methods according to claim 9, is characterized in that, describedly determine and the index that described note matches in the index set prestored, and comprising:
Judge whether the presupposed information in the customizing messages of described note and described index matches;
When the presupposed information in the customizing messages and described index of described note matches, determine that described index and described note match.
12. methods according to claim 11, is characterized in that, the presupposed information in described index at least comprises sender number, take over party's ownership place and key word;
Described judge described note customizing messages and described index in presupposed information whether match and comprise:
Read the sender number in described index, take over party's ownership place and key word;
Obtain sender number and take over party's ownership place of described note;
From the content of text of described note, search whether record described key word;
When the sender number in the sender number of described note and take over party's ownership place and described index, take over party's ownership place match, and when recording described key word in the content of text of described note, determine that the presupposed information in the customizing messages of described note and described index matches.
13. methods according to claim 10, is characterized in that, the target information in the content of text of note described in the described message template identification utilized in described message template set, comprising:
According to the record order of message template from described message template set, extract the target information in the content of text of note described in message template identification;
If the message template None-identified of current extraction goes out described target information, then in described message template set, extract next message template successively, if the message template of current extraction identifies described target information, then stop extracting message template.
14. methods according to claim 13, is characterized in that, described method also comprises:
After target information in the described content of text utilizing note described in described message template identification, template recognition result is sent to service end, described template recognition result comprises the successful message template of identification, for the template identification quantity of service end according to described template recognition result statistics message template.
15., according to the arbitrary described method of claim 9 to 14, is characterized in that,
Described index set stores with the form of text, and all index stores in described index set are in one text file;
Described message template set stores with the form of text, and all message template in each message template set are stored in one text file, and different message template set is stored in different texts.
16. methods according to claim 15, it is characterized in that, also store template path corresponding to each index in the text that described index set stores, described template path is the mark of the text storing the message template set associated with described index;
The described message template set determining to associate with described index, comprising:
Obtain the template path that described index is corresponding;
According to described mark, search the text storing the message template set associated with described index, obtain the message template set associated with described index.
The treating apparatus of 17. 1 kinds of templates, is characterized in that, comprising:
Message template acquisition module, is configured to obtain message template to be pushed, and described message template comprises template attributes and the property value corresponding with template attributes;
Extraction module, is configured to the To Template attribute according to presetting, and extracts the property value corresponding with described To Template attribute as the index associated with described message template from described message template;
Pushing module, is configured to described message template to be pushed to terminal with the index associated, and utilizes the target information in the content of text of the message template identification note associated with described index for terminal.
18. devices according to claim 17, is characterized in that, described device also comprises:
Template record module, is configured to the message template with same index to be recorded in same message template set, obtains one or more message template set;
Index record module, is configured to all index records in index set;
Described pushing module, comprising:
Set pushes submodule, is configured to described message template set and described index set to be pushed to terminal.
19. devices according to claim 18, is characterized in that, described template attributes comprises priority attribute;
Described device also comprises:
Priority acquisition module, is configured to the priority obtaining described message template, using the property value of described priority as described message template medium priority attribute;
Described template record module, comprising:
Template record submodule, is configured to the priority according to message template described in each, and the message template with same index is recorded in same message template set by order according to the priority.
20. devices according to claim 17, is characterized in that, described template attributes comprises template identification quantitative attribute;
Described device also comprises:
Recognition result acquisition module, is configured to the template recognition result obtaining terminal transmission, records and identify successful message template in described template recognition result;
Statistical module, is configured to the template identification quantity according to the described message template in described template recognition result statistics Preset Time, using the property value of described template identification quantity as the template identification quantitative attribute in described message template.
21. devices according to claim 20, it is characterized in that, described device also comprises: abnormality detection module, be configured to according to described template identification quantity, by the machine learning algorithm preset, abnormal template detection is carried out to message template described to be pushed, filter out abnormal message template.
22. devices according to claim 17, is characterized in that, described template attributes comprises template term of validity attribute;
Described device also comprises:
Term of validity screening module, is configured to the property value according to described template term of validity attribute, filters out not message template before the deadline in message template described to be pushed.
23. devices according to claim 17, is characterized in that, described pushing module, comprising:
Cycle pushes submodule, is configured to, according to preset time period, described message template set and described index set are pushed to terminal.
24. devices according to claim 17, is characterized in that, described message template and described index store with the form of database.
25. 1 kinds of note recognition devices, is characterized in that, described device comprises:
Note acquisition module, is configured to obtain note to be identified;
Index determination module, is configured to determine and the index that described note matches in the index set prestored;
Template determination module, is configured to the message template set determining to associate with described index;
Identification module, is configured to the target information utilized in the content of text of note described in the message template identification in described message template set.
26. devices according to claim 25, is characterized in that, described device also comprises:
Set receiver module, be configured to receive the index set of service end transmission and one or more described message template set, wherein, an index is at least comprised in described index set, in described index set, message template set described in each index association one, at least comprises a message template in described message template set.
27. devices according to claim 25, is characterized in that, described index determination module, comprising:
Matching judgment submodule, is configured to judge whether the presupposed information in the customizing messages of described note and described index matches;
Coupling determines submodule, is configured to, when the presupposed information in the customizing messages and described index of described note matches, determine that described index and described note match.
28. devices according to claim 27, is characterized in that, the presupposed information in described index at least comprises sender number, take over party's ownership place and key word;
Described matching judgment submodule, comprising:
Reading submodule, is configured to the sender number, take over party's ownership place and the key word that read in described index;
Obtain submodule, be configured to the sender number and the take over party's ownership place that obtain described note;
Search submodule, be configured to search whether record described key word from the content of text of described note;
Determine submodule, be configured to when the sender number recorded in the sender number of described note and take over party's ownership place and described index, take over party's ownership place match, and when recording described key word in the content of text of described note, determine that the presupposed information in the customizing messages of described note and described index matches.
29. devices according to claim 25, is characterized in that, described identification module, comprising:
Information recognin module, is configured to the record order according to message template from described message template set, extracts the target information in the content of text of note described in message template identification;
Template extraction submodule, if the message template None-identified being configured to current extraction goes out described target information, then in described message template set, extract next message template successively, if the message template of current extraction identifies described target information, then stop extracting message template.
30. devices according to claim 25, is characterized in that, described device also comprises:
Sending module, after being configured to the target information in the described content of text utilizing note described in described message template identification, template recognition result is sent to service end, described template recognition result comprises the successful message template of identification, for the template identification quantity of service end according to described template recognition result statistics message template.
31. devices according to claim 25, is characterized in that, described index set stores with the form of text, and all index stores in described index set are in one text file;
Described message template set stores with the form of text, and all message template in each message template set are stored in one text file, and different message template set is stored in different texts.
32. devices according to claim 31, it is characterized in that, also store template path corresponding to each index in the text that described index set stores, described template path is the mark of the text storing the message template set associated with described index;
Described template determination module, comprising:
Path obtains submodule, is configured to obtain template path corresponding to described index;
Set obtains submodule, is configured to according to described mark, searches the text storing the message template set associated with described index, obtains the message template set associated with described index.
The treating apparatus of 33. 1 kinds of templates, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain message template to be pushed, described message template comprises template attributes and the property value corresponding with template attributes;
According to the To Template attribute preset, from described message template, extract the property value corresponding with described To Template attribute as the index associated with described message template;
Described message template is pushed to terminal with the index associated, utilizes the target information in the content of text of the message template identification note corresponding with described index for terminal.
34. 1 kinds of note recognition devices, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain note to be identified;
Determine and the index that described note matches in the index set prestored;
Determine the message template set associated with described index;
Utilize the target information in the content of text of note described in the message template identification in described message template set.
CN201510728730.8A 2015-10-30 2015-10-30 Processing method and processing device, short message recognition methods and the device of template Active CN105354284B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510728730.8A CN105354284B (en) 2015-10-30 2015-10-30 Processing method and processing device, short message recognition methods and the device of template

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510728730.8A CN105354284B (en) 2015-10-30 2015-10-30 Processing method and processing device, short message recognition methods and the device of template

Publications (2)

Publication Number Publication Date
CN105354284A true CN105354284A (en) 2016-02-24
CN105354284B CN105354284B (en) 2019-12-03

Family

ID=55330256

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510728730.8A Active CN105354284B (en) 2015-10-30 2015-10-30 Processing method and processing device, short message recognition methods and the device of template

Country Status (1)

Country Link
CN (1) CN105354284B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943775A (en) * 2017-11-24 2018-04-20 泰康保险集团股份有限公司 Method, apparatus, storage medium and the electronic equipment of message push
CN108595448A (en) * 2017-03-17 2018-09-28 北京京东尚科信息技术有限公司 Information-pushing method and device
CN111598545A (en) * 2020-05-19 2020-08-28 甬矽电子(宁波)股份有限公司 Business data processing method and device, computer equipment and readable storage medium
CN111757282A (en) * 2020-06-11 2020-10-09 上海乾臻信息科技有限公司 Short message sending method and device
CN113572680A (en) * 2021-07-30 2021-10-29 康键信息技术(深圳)有限公司 Template message sending method, device, equipment and storage medium
CN115510366A (en) * 2022-11-21 2022-12-23 北京白龙马云行科技有限公司 Business message pushing method and device, computer equipment and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101137087A (en) * 2007-08-01 2008-03-05 浙江大学 Short message monitoring center and monitoring method
CN101335959A (en) * 2008-08-06 2008-12-31 统庆通信设备(深圳)有限公司 Mobile phone short message batch processing method
CN100574340C (en) * 2007-09-27 2009-12-23 中兴通讯股份有限公司 A kind of method of searching SMS
EP2172854A1 (en) * 2008-10-02 2010-04-07 Vodafone Holding GmbH At least partially automised providing of information for the use by a terminal operable in a communication network
CN101807273A (en) * 2010-03-25 2010-08-18 上海合合信息科技发展有限公司 Method and system for performing financial management by extracting consumption information in credit card short message
CN102082876A (en) * 2011-02-28 2011-06-01 北京飞天诚信科技有限公司 Short message management method and device thereof
CN102142127A (en) * 2010-07-30 2011-08-03 华为技术有限公司 Method and device for managing consumption details of user
CN102170405A (en) * 2010-02-25 2011-08-31 腾讯科技(深圳)有限公司 Mail processing method, mail server and mail system
CN102663111A (en) * 2012-04-17 2012-09-12 电信科学技术研究院 Method and equipment for acquiring information
CN103108290A (en) * 2011-11-09 2013-05-15 北京华中融合科技有限公司 Short message handling method and device
US8521757B1 (en) * 2008-09-26 2013-08-27 Symantec Corporation Method and apparatus for template-based processing of electronic documents
CN103458379A (en) * 2012-05-31 2013-12-18 腾讯科技(深圳)有限公司 Information sending method, device and system and information push method, device and system
CN103929723A (en) * 2014-04-30 2014-07-16 小米科技有限责任公司 Junk short message recognition method and device

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101137087A (en) * 2007-08-01 2008-03-05 浙江大学 Short message monitoring center and monitoring method
CN100574340C (en) * 2007-09-27 2009-12-23 中兴通讯股份有限公司 A kind of method of searching SMS
CN101335959A (en) * 2008-08-06 2008-12-31 统庆通信设备(深圳)有限公司 Mobile phone short message batch processing method
US8521757B1 (en) * 2008-09-26 2013-08-27 Symantec Corporation Method and apparatus for template-based processing of electronic documents
EP2172854A1 (en) * 2008-10-02 2010-04-07 Vodafone Holding GmbH At least partially automised providing of information for the use by a terminal operable in a communication network
CN102170405A (en) * 2010-02-25 2011-08-31 腾讯科技(深圳)有限公司 Mail processing method, mail server and mail system
CN101807273A (en) * 2010-03-25 2010-08-18 上海合合信息科技发展有限公司 Method and system for performing financial management by extracting consumption information in credit card short message
CN102142127A (en) * 2010-07-30 2011-08-03 华为技术有限公司 Method and device for managing consumption details of user
CN102082876A (en) * 2011-02-28 2011-06-01 北京飞天诚信科技有限公司 Short message management method and device thereof
CN103108290A (en) * 2011-11-09 2013-05-15 北京华中融合科技有限公司 Short message handling method and device
CN102663111A (en) * 2012-04-17 2012-09-12 电信科学技术研究院 Method and equipment for acquiring information
CN103458379A (en) * 2012-05-31 2013-12-18 腾讯科技(深圳)有限公司 Information sending method, device and system and information push method, device and system
CN103929723A (en) * 2014-04-30 2014-07-16 小米科技有限责任公司 Junk short message recognition method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
STEVEN HOLZNER: "《XSLT技术内幕》", 31 January 2002, 北京:机械工业出版社 *
俞锫 等: "《广播非线性编辑》", 31 May 2009, 北京:中国传媒大学出版社 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108595448A (en) * 2017-03-17 2018-09-28 北京京东尚科信息技术有限公司 Information-pushing method and device
CN107943775A (en) * 2017-11-24 2018-04-20 泰康保险集团股份有限公司 Method, apparatus, storage medium and the electronic equipment of message push
CN111598545A (en) * 2020-05-19 2020-08-28 甬矽电子(宁波)股份有限公司 Business data processing method and device, computer equipment and readable storage medium
CN111757282A (en) * 2020-06-11 2020-10-09 上海乾臻信息科技有限公司 Short message sending method and device
CN113572680A (en) * 2021-07-30 2021-10-29 康键信息技术(深圳)有限公司 Template message sending method, device, equipment and storage medium
CN115510366A (en) * 2022-11-21 2022-12-23 北京白龙马云行科技有限公司 Business message pushing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN105354284B (en) 2019-12-03

Similar Documents

Publication Publication Date Title
CN105354284A (en) Template processing method and apparatus and short message identification method and apparatus
CN104378441A (en) Schedule creating method and device
CN104808501A (en) Intelligent scene deleting method and device
CN105488112A (en) Information pushing method and device
CN106170004A (en) Process the method and device of identifying code
CN104301532A (en) Communication message identification method and device
CN105224462A (en) The recognition methods of control element and device
CN104679599A (en) Application program duplicating method and device
CN105068976A (en) Ticket information exhibition method and device
CN105447109A (en) Key word searching method and apparatus
CN104219378A (en) Information processing method and device
CN105550643A (en) Medical term recognition method and device
CN104268129A (en) Message reply method and message reply device
CN105550235A (en) Information acquisition method and information acquisition apparatuses
CN107678888A (en) database data backup method and device
CN104391878A (en) Book search method and book search device
CN104809158A (en) Network content filter method and device
CN104933071A (en) Information retrieval method and corresponding device
CN105162984A (en) Telephone number identification method and device
CN104636164A (en) Generating method and device for starting page
CN106453528A (en) Method and device for pushing message
CN105353938A (en) Suspended short message display method and apparatus
CN104951470A (en) Electric coupon content showing method and device
CN105183586A (en) Method and apparatus for restoring accidentally deleted file in EXT file system and intelligent device
CN106921958A (en) The method and apparatus for quitting the subscription of business

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant