Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of expression input method and device, and this method and device can be simplified the complexity of expression input.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of expression input method, described method comprises step: A, determine that the user imports word, list default corresponding expression with word; The expression instruction is selected in B, reception, determines that the user selects to express one's feelings and export.
Before the expression input method steps A of the present invention, further comprise: the default and corresponding expression of word.
Determine described in the expression input method steps A of the present invention that the user imports word and specifically comprises: accept user's input, provide and select the speech tabulation, receive user's word selection instruction.
Wherein, describedly accept user input, can be to receive the input of user's keyboard, or receive user's handwriting input, or receive the user speech input, or receive the optical character identification input.
In the expression input method steps A of the present invention, after determining that the user imports word, further comprise: judge the corresponding with it expression whether determined word is not preset, if not then determine that the user imports for common words, directly export described word, this flow process finishes, otherwise lists the corresponding expression of predetermined word.
Wherein, after the judgement word has corresponding expression, judge further whether the application of current reception user input is instantaneous communication system, if not determining that then the user is the common words input, directly export described word, this flow process finishes, otherwise lists the corresponding expression of predetermined word.
Wherein, described default corresponding expression with word is listed in proper order according to the expression and the degree of association of word.
Wherein, described default comprise: receive the word expression correspondence setting instruction of user's input, the set word and the corresponding relation of expression in the storage instruction with the corresponding expression of word.
Wherein, described presetting with the corresponding expression of word comprises: search the user who has expression and import record; The input record that is found is carried out word segmentation processing, isolate word wherein; Determine the distance of each isolated word and expression, and determine that the inverse of described distance is the degree of association of each isolated word and expression; Whether the degree of association of judging word and expression has record in default word and expression mapping table, if not then in described word and expression mapping table, increase new record, and insert the degree of association of word and expression for this new record, corresponding relation as this word and expression, otherwise in original record, increase the degree of association of described word and expression, as the corresponding relation of this word and expression; Judge whether to search all users and import record, if then finish to search, otherwise the user who continues to search next band espressiove imports record.
A kind of expression input media, comprise that the user imports word determining unit, the corresponding expression storage unit of word, output unit, selection expression command reception unit, the user selects the determining unit of expressing one's feelings, wherein, input word determining unit, be used for importing according to the user, provide and select the speech tabulation, receive user's word selection instruction; The corresponding expression storage unit of word is used to store the corresponding expression of default word; Output unit is used for the word selection instruction according to the user, and the corresponding expression of the word of storage, lists default corresponding expression with word, and the expression of output user selection; Select expression command reception unit, be used for receiving and select the expression instruction, and the instruction of described selection expression is transferred to the user selects the determining unit of expressing one's feelings; The user selects the determining unit of expressing one's feelings, and is used for according to selecting the expression instruction to determine the expression that the user selects.
Described device also comprises input block, and described input block is the keyboard input block, or the handwriting input unit, or voice-input unit, or the optical character identification input block, is used to receive user's input.
Wherein, described device also comprises the current application judgement unit, is used to judge whether the application of current reception user input is instantaneous communication system.
Wherein, described device also comprises word expression correspondence setting command reception unit, is used to receive the word expression correspondence setting instruction of user's input, takes out the word set in the instruction and the corresponding relation of expression.
Described device also comprises the default unit of the corresponding expression of word, be used to search the user who has expression and import record, the input record that is found is carried out word segmentation processing, isolate word wherein, and determine the degree of association of each isolated word and expression, and determine the corresponding relation of word and expression according to the described degree of association.
Expression input method of the present invention has following advantage: this method does not need to select the interface for the user provides expression, with receive the expression that the user selects from the interface, but directly by input method input expression, to select expression as the subsequent step of selecting word, therefore can convenient and swift input express one's feelings; In addition, can instruct according to the word expression correspondence setting of user's input in this method and be provided with and the corresponding expression of word, or determine and the corresponding expression of word according to user's input record, therefore can directly provide to meet the expression that user's needs or user are accustomed to.
The present invention's input media of expressing one's feelings has the following advantages: this apparatus structure is simple, can convenient and swift input express one's feelings, in addition, this device can instruct according to the word expression correspondence setting of user's input and be provided with and the corresponding expression of word, or determine and the corresponding expression of word according to user's input record, therefore can more convenient input meet the expression that user's needs or user are accustomed to.
Embodiment
Basic thought of the present invention is: determine that the user imports word, list the corresponding expression of default word; Receive and select the expression instruction as the expression input.
Below in conjunction with the drawings and specific embodiments the present invention is further described.
The present invention's input media of expressing one's feelings comprises that the user imports word determining unit, the corresponding expression storage unit of word, output unit, selection expression command reception unit, the user selects the determining unit of expressing one's feelings, wherein,
Input word determining unit is used for the input according to the user, provides and selects the speech tabulation, receives user's word selection instruction;
The corresponding expression storage unit of word is used to store the expression of default word correspondence;
Output unit is used for the word selection instruction according to the user, and the corresponding expression of the word of storage, lists default corresponding expression with word, and the expression of output user selection;
Select expression command reception unit, be used for receiving and select the expression instruction, and the instruction of described selection expression is transferred to the user selects the determining unit of expressing one's feelings;
The user selects the determining unit of expressing one's feelings, and is used for according to selecting the expression instruction to determine the expression that the user selects.
In addition, the present invention's input media of expressing one's feelings also comprises input block, current application judgement unit, word expression correspondence setting command reception unit, the default unit of the corresponding expression of word, wherein,
Described input block is the keyboard input block, or the handwriting input unit, or voice-input unit, or the optical character identification input block, is used to receive user's input;
The current application judgement unit is used to judge whether the application of current reception user input is instantaneous communication system;
Word expression correspondence setting command reception unit is used to receive the word expression correspondence setting instruction of user's input, takes out the word set in the instruction and the corresponding relation of expression;
The default unit of the corresponding expression of word, be used to search the user who has expression and import record, the input record that is found is carried out word segmentation processing, isolate word wherein, and determine the degree of association of each isolated word and expression, and determine the corresponding relation of word and expression according to the described degree of association.
Utilize above-mentioned expression input media, as shown in Figure 1, expression input method of the present invention may further comprise the steps:
Step 101: the default and corresponding expression of word.
Described default can the instruction according to the word expression correspondence setting of user's input with the corresponding expression of word is provided with, particularly, in user's the word expression correspondence setting instruction, the corresponding relation that comprises a word and a kind of concrete expression, expression input method program of the present invention is stored the corresponding relation of this word and expression after receiving the instruction of user's transmission.Described corresponding relation can be stored as the form of word and expression mapping table.
Described and the corresponding expression of word can determine that also particularly, as shown in Figure 2, the described definite operation with the corresponding expression of word of record of importing according to the user may further comprise the steps according to user's the record of input:
Step 101a, search the user who has expression and import record.
At first, the user who finds a band espressiove imports record, and for example " today is very happy, heartily
".
Step 101b, the input that found record is carried out word segmentation processing, isolate word wherein.Described word segmentation processing is identical with participle recognition method of the prior art, for example with " today is very happy, heartily
" carry out word segmentation processing, isolate word " today ", " very ", " happily " and " heartily ".
Step 101c, determine the distance of each isolated word and expression, and determine that the inverse of described distance is the degree of association of each isolated word and expression.
As above word " today " in the example, " very ", " happily " and " heartily " and expression
Distance be respectively 4,3,2,1, then determine word " today ", " very ", " happily " and " heartily " and express one's feelings
The degree of association be respectively 0.25,0.33,0.5 and 1.
Whether step 101d, the degree of association of judging word and expression have record in default word and expression mapping table, if not then in described word and expression mapping table, increase new record, and insert the degree of association of word and expression for this new record, corresponding relation as this word and expression, otherwise in original record, increase the degree of association of described word and expression, as the corresponding relation of this word and expression.
Word " today " and expression in for example above-mentioned example
The degree of association in default word and expression mapping table, do not have record, then in described word and expression mapping table, add new record, put down in writing word " today " and expression in the new record
The degree of association be 0.25, as word " today " and the expression
Corresponding relation.
Or in for example above-mentioned example word " heartily " and the expression
Existing record in default word and expression mapping table, and put down in writing word " heartily " and expression in this record
The degree of association be 5, then in this record, increase word " heartily " and the expression
The degree of association be 5+1=6.As word " heartily " and expression
Corresponding relation.
Step 101e, judge whether to search all users and import record, if then finish to search, otherwise continue execution in step 101a, the user who searches next band espressiove imports record.
By the operation among the above step 101a-101e, to analyze all users and import record, the word that all are relevant with expression and the corresponding relation of this expression store, as default corresponding expression with word.
Step 102: the expression input method program is accepted user's input, provides and selects the speech tabulation, receives user's word selection instruction.
Wherein, describedly accept user input, can be to receive the input of user's keyboard, or receive user's handwriting input, or receive the user speech input, or receive a kind of in optical character identification (OCR, the Optical CharacterRecognition) input.
Provide and select the speech tabulation, for according to different input methods, provide and corresponding word of user's input or word, described word can be a Chinese, also can be English or other literal.Wherein, for Chinese, a kind of individual character word also can be thought in individual character, also is referred to as word at this.
Receive user's word selection instruction then, promptly finished the word that definite user imported.
Step 103: the expression input method program is judged the corresponding with it expression that described word is whether not default, if not then determine that the user for the common words input, directly exports described word, the end of this flow process, otherwise execution in step 104.
Described common words is input as that determined user imports word in the direct output step 102, and according to word output expression.
Step 104: the expression input method program judges whether the application of current reception user input is instantaneous communication system, and if not determining that then the user for the common words input, directly exports described word, this flow process finishes, otherwise execution in step 105.
By this step, the application scenario of expression input method of the present invention has been limited in the instantaneous communication system, be for fear of not needing to import at some in the application of expression, during for example document input etc. is used, avoid occurring listing and the corresponding expression of word.
If the application scenario with expression input method of the present invention is not limited in the instantaneous communication system, this step can be omitted, directly execution in step 105.
Step 105: list default corresponding expression with word.
Described and the corresponding expression of word can have one or more than.List in this step set according to step 101 with the corresponding expression of word.Listing the mode of expression can enumerate in proper order according to the degree of association of word and expression.
Step 106: the expression input method program receives user's selection expression instruction, and the output expression.
Described expression can be a secondary picture, one section animation or one section content such as video clipping.The user selects expression in listed and the corresponding expression of word from step 105 after, the expression input method program is accepted user's selection expression instruction, and the output expression, can be to export in screen window, printer or the file.
The above; it only is preferred embodiment of the present invention; be not to be used to limit protection scope of the present invention; those skilled in that art should be able to associate; utilize the corresponding relation of default word of different modes and expression; define the correlation degree of word and expression by different modes; utilize different modes input word; expression comprises the content of more kinds of types; expression input method of the present invention is limited to the different application occasion; expression exports various objectives to, and other is equal to accordingly to change or replace according to technical scheme of the present invention and design thereof and all should belongs to protection scope of the present invention.