CN104571586B - Character input method and device - Google Patents

Character input method and device Download PDF

Info

Publication number
CN104571586B
CN104571586B CN201410850557.4A CN201410850557A CN104571586B CN 104571586 B CN104571586 B CN 104571586B CN 201410850557 A CN201410850557 A CN 201410850557A CN 104571586 B CN104571586 B CN 104571586B
Authority
CN
China
Prior art keywords
sequence
word
stroke
aided filter
strokes sequence
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.)
Active
Application number
CN201410850557.4A
Other languages
Chinese (zh)
Other versions
CN104571586A (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 Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410850557.4A priority Critical patent/CN104571586B/en
Publication of CN104571586A publication Critical patent/CN104571586A/en
Application granted granted Critical
Publication of CN104571586B publication Critical patent/CN104571586B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention discloses a kind of character input method, it is related to input method technique field.The described method includes:For under the Two bors d's oeuveres input pattern of input method, receiving keystroke sequence input by user;Judge whether the keystroke sequence includes aided filter strokes sequence;It is pinyin string by the recognition by pressing keys in the keystroke sequence if the keystroke sequence does not include aided filter strokes sequence;If the keystroke sequence includes aided filter strokes sequence, then for the keystroke sequence before or after the aided filter strokes sequence corresponding to pinyin string, matched with the aided filter strokes sequence with the word corresponding to the pinyin string and/or the first strokes sequence of word;According to auxiliary strokes sequence and the matching result of the first strokes sequence, the display location of the corresponding each word of each pinyin string and/or word is adjusted.Achieving can be directly by user in input process, you can input aided filter strokes sequence, to reduce candidate's character/word, improves candidate's character/word hit rate, improve the beneficial effect of user's input efficiency.

Description

Character input method and device
Technical field
The present invention relates to input method technique field, and in particular to a kind of character input method and device.
Background technology
In various computer systems, the input language of acquiescence is the character in English.English input can directly select Letter can be inputted.And the input of other language is then more troublesome, for example Chinese language has a characters up to ten thousand, completely can not Directly inputted simply by button, it is necessary to encoded to Chinese character, for example, according to Chinese character pronunciation characteristics to Chinese character into Row coding (corresponding spelling input method), it is (right that Chinese character is encoded according to the font characteristic (such as stroke and radical) of Chinese character Answer font input method) etc., each key combination can then be carried out with encoding of chinese characters it is corresponding, so as to carry out the input of Chinese character.
By taking Chinese character inputs as an example, most sounds are made of initial consonant and simple or compound vowel of a Chinese syllable two parts in the Chinese phonetic alphabet, a small number of such as " ", " peace ", " " etc. only have simple or compound vowel of a Chinese syllable.And initial consonant and simple or compound vowel of a Chinese syllable can be divided into it is single-letter and golygram --- in addition to zh, ch, sh All initial consonants are all single-letters, and all simple or compound vowel of a Chinese syllable are all golygrams in addition to a, e, i, o, u, v6 vowels.Advised based on this kind Rule, there are a kind of double-spelling Chinese character input method, double-spelling Chinese character input method refers to the initial consonant of Chinese character, simple or compound vowel of a Chinese syllable respectively with letter (or individual symbol) generation For the Pinyin coding of composition, then button input by user sequentially directly can correspond to Chinese character according to the rule of the initial and the final, For example women corresponds to words such as " we ".In double-spelling Chinese character input method, the identification for the button of input is according to itself and initial consonant, rhythm Female correspondence is come what is identified, and the combination of each initial consonant, simple or compound vowel of a Chinese syllable, corresponding many words, find target candidate item in numerous words It is comparatively laborious thing, it may be necessary to which page turning is searched, and may be needed multiple page turning and be kept high during page turning Degree notice can just find target candidate item, influence very much the input efficiency of user.
The content of the invention
In view of the above problems, it is proposed that the present invention overcomes the above problem in order to provide one kind or solves at least in part State the input device of problem and corresponding character input method.
According to one aspect of the present invention, there is provided a kind of character input method, including:
For under the Two bors d's oeuveres input pattern of input method, receiving keystroke sequence input by user;
Judge whether the keystroke sequence includes aided filter strokes sequence;
If the keystroke sequence includes aided filter strokes sequence, for before the aided filter strokes sequence or The pinyin string corresponding to keystroke sequence after person, with the word corresponding to the aided filter strokes sequence and the pinyin string And/or the first strokes sequence of word is matched;
According to auxiliary strokes sequence and the first strokes sequence matching result, adjust the corresponding each word of each pinyin string and/or The display location of word.
Preferably, it is described to judge whether the keystroke sequence includes aided filter strokes sequence and include:
Judge whether there is filtering boot symbol in the keystroke sequence;
If there is filtering boot symbol in the keystroke sequence, at least one button behind the filtering boot symbol is known Wei not aided filter strokes sequence.
Preferably, it is described to judge whether the keystroke sequence includes aided filter strokes sequence and include:
Judge whether there is filtering boot symbol first symbol in the keystroke sequence;
If there is filtering guiding first symbol in the keystroke sequence, the filtering is sequentially guided into pressing behind first symbol Key is identified as aided filter stroke, until recognizing filtering guiding end mark, obtains aided filter strokes sequence.
Preferably, it is described to judge whether the keystroke sequence includes aided filter strokes sequence and include:
Judge whether functional button is combined with the input of character keys in the keystroke sequence;
Judge that functional button is combined with the input of character keys in the keystroke sequence, then by the input combination Character keys are identified as aided filter strokes sequence.
Preferably, further include:
Setting different key corresponds to each stroke of the writing system respectively, obtains the correspondence of button and stroke.
Preferably, include when identifying aided filter stroke:
It is aided filter stroke by corresponding recognition by pressing keys according to the button and the correspondence of stroke.
Preferably, the first of the word and/or word with corresponding to the aided filter strokes sequence and the pinyin string Strokes sequence, which carries out matching, to be included:
Combine, will use for the pinyin string corresponding to the keystroke sequence before or after the aided filter strokes sequence The aided filter strokes sequence of family input, is formed with by least first stroke of the corresponding each word of each pinyin string and/or word The first strokes sequence matched.
Preferably, the phonetic corresponding to the keystroke sequence for before or after the aided filter strokes sequence String combination, by aided filter strokes sequence input by user, and by least first of the corresponding each word of each pinyin string and/or word The first strokes sequence that stroke is formed, which carries out matching, to be included:
The aided filter strokes sequence is formed with by the complete strokes sequence of the corresponding each word of each pinyin string and/or word The first strokes sequence matched;
And/or by the aided filter strokes sequence and the first stroke group by the corresponding each word of each pinyin string and/or word Into the first strokes sequence match.
Preferably, the pinyin string corresponding to the keystroke sequence before or after for the aided filter strokes sequence Combination, by aided filter strokes sequence input by user, with least first pen by the corresponding each word of each pinyin string and/or word Draw before the first formed strokes sequence is matched and further include:
For each initial candidate item, the first strokes sequence of each initial candidate item is obtained from dictionary.
Preferably, the phonetic corresponding to the keystroke sequence for before or after the aided filter strokes sequence String combination, by aided filter strokes sequence input by user, and by least first of the corresponding each word of each pinyin string and/or word The first strokes sequence that stroke is formed carries out matching and further includes:
When the first strokes sequence Incomplete matching of the aided filter strokes sequence and the initial candidate item, utilize Error correcting model based on stroke judges the first strokes sequence of the strokes sequence input by user and the initial candidate item The probability matched somebody with somebody;
When the matched probability is more than threshold value, then the aided filter strokes sequence and the initial candidate item are judged The first stroke sequences match on.
Preferably, further include:
Using the binary or n-tuple relation of words in phrase and/or sentence, the error correcting model based on stroke is built;
And/or using the binary or n-tuple relation between the stroke for forming each word, build the entangling based on stroke Mismatch type.
According to another aspect of the present invention, there is provided a kind of input device, including:
Keystroke sequence receiving module, bond order is pressed suitable under the Two bors d's oeuveres input pattern for input method, reception is input by user Row;
Auxiliary sequencel judgment module, suitable for judging whether the keystroke sequence includes aided filter strokes sequence;
Filtering module is matched, if including aided filter strokes sequence suitable for the keystroke sequence, for the auxiliary Filter strokes sequence before or after keystroke sequence corresponding to pinyin string, with the aided filter strokes sequence with it is described First strokes sequence of word and/or word corresponding to pinyin string is matched;
Candidate item adjusts module, suitable for the matching result according to auxiliary strokes sequence and the first strokes sequence, adjusts each spelling The display location of the corresponding each word of sound string and/or word.
Preferably, the auxiliary sequencel judgment module includes:
First judgment module, suitable for judging whether there is filtering boot symbol in the keystroke sequence;
First identification module, if suitable for having filtering boot symbol in the keystroke sequence, after the filtering boot symbol At least one recognition by pressing keys in face is aided filter strokes sequence.
Preferably, the auxiliary sequencel judgment module includes:
Second judgment module, suitable for judging whether to have in the keystroke sequence filtering boot symbol first symbol;
Second identification module, if suitable for there is filtering guiding first symbol in the keystroke sequence, sequentially by the filtering It is aided filter stroke to guide the recognition by pressing keys behind first symbol, until recognizing filtering guiding end mark, obtains aided filter Strokes sequence.
Preferably, the auxiliary sequencel judgment module includes:
3rd judgment module, suitable for judge in the keystroke sequence whether the input group of functional button and character keys Close;
3rd identification module, suitable for judging that functional button is combined with the input of character keys in the keystroke sequence, then Character keys in the input combination are identified as aided filter strokes sequence.
Preferably, further include:
Stroke respective modules, each stroke of the writing system is corresponded to suitable for setting different key respectively, obtain button with The correspondence of stroke.
Preferably, include when first identification module or the second identification module or three identification modules:
4th identification module, is to aid in by corresponding recognition by pressing keys suitable for the correspondence according to the button and stroke Filter stroke.
Preferably, the matching filtering module includes:
First matching filtering module, suitable for for the keystroke sequence institute before or after the aided filter strokes sequence Corresponding pinyin string combination, by aided filter strokes sequence input by user, and by the corresponding each word of each pinyin string and/or word The first strokes sequence that at least first stroke is formed is matched.
Preferably, the first matching filtering module includes:
Complete match module, suitable for by the aided filter strokes sequence with by the corresponding each word of each pinyin string and/or word Complete strokes sequence composition the first strokes sequence matched;
And/or the first sum of matching module, suitable for by the aided filter strokes sequence with by the corresponding each word of each pinyin string And/or the first strokes sequence of the first stroke composition of word matches.
Preferably, further included before the first matching filtering module:
First stroke retrieval module, suitable for for each initial candidate item, each initial candidate is obtained from dictionary First strokes sequence of item.
Preferably, the first matching filtering module further includes:
Correction module, suitable for when the first strokes sequence of the aided filter strokes sequence and the initial candidate item it is endless During full matching, judge the of the strokes sequence input by user and the initial candidate item using the error correcting model based on stroke The probability of unicursal sequences match;When the matched probability is more than threshold value, then judge the aided filter strokes sequence with In first stroke sequences match of the initial candidate item.
Preferably, further include:
First model construction module, suitable for using the binary or n-tuple relation of words in phrase and/or sentence, described in structure Error correcting model based on stroke;
And/or second model construction module, suitable for utilizing the binary between the stroke for forming each word or polynary pass System, builds the error correcting model based on stroke.
Character input method according to the present invention be able to can input during input by user before any phonetic Aided filter strokes sequence, the corresponding word of phonetic and/or word to the phonetic and afterwards screen, and reduce follow-up character/word Scope, it is comparatively laborious thing thus to solve and target candidate item is found in numerous words, it may be necessary to page turning is searched, and And multiple page turning may be needed and keep intensive concentration just to find target candidate item during page turning, influence very much user Input efficiency the problem of, achieving can be directly by user in input process, you can input aided filter strokes sequence, with Candidate's character/word is reduced, improves candidate's character/word hit rate, improves the beneficial effect of user's input efficiency.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this area Technical staff will be clear understanding.Attached drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And in whole attached drawing, identical component is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows a kind of flow diagram of character input method according to an embodiment of the invention;
Fig. 2 shows a kind of flow diagram of character input method according to an embodiment of the invention;
Fig. 3 shows a kind of flow diagram of character input method according to an embodiment of the invention;
Fig. 4 shows a kind of flow diagram of character input method according to an embodiment of the invention;
Fig. 5 shows a kind of flow diagram of character input method according to an embodiment of the invention;
Fig. 6 shows a kind of structure diagram of input device according to an embodiment of the invention;
Fig. 7 shows a kind of structure diagram of input device according to an embodiment of the invention;
Fig. 8 shows a kind of structure diagram of input device according to an embodiment of the invention;
Fig. 9 shows a kind of structure diagram of input device according to an embodiment of the invention;
Figure 10 shows a kind of structure diagram of input device according to an embodiment of the invention.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
One of core concept of the present invention is:Aided filter strokes sequence recognition rule is pre-set, is being inputted in user Input button corresponding with aided filter strokes sequence can be clicked in method keyboard at an arbitrary position, then press to input by user In key sequence, Direct Recognition aided filter strokes sequence input by user, so as to be carried out to the corresponding words of phonetic below Filter, reduces the range of choice of follow-up character/word, so as to improve input efficiency.
Embodiment one
With reference to Fig. 1, it illustrates a kind of flow diagram of character input method of the present invention, can specifically include:
Step 110, under the Two bors d's oeuveres input pattern of input method, receiving keystroke sequence input by user;
In embodiments of the present invention, the extra recognition rule for keystroke sequence can be pre-set, that is, is used to identify auxiliary The recognition rule of filtering strokes sequence is helped, such as, button " hspdz " is corresponding " Philosophy folding " respectively, such as h-" one ", s- " Shu ", p-" Pie ", d-" Dian ", z-" second ", then set the button being of little use in guiding button, such as the input method such as #, when defeated When entering in method some or certain several buttons in input guiding button+foregoing hspdz, then the hspdz is accordingly identified For stroke.
It is i.e. preferable, further include:
Sub-step 101, setting different key correspond to each stroke of the writing system, obtain pair of button and stroke respectively It should be related to.
I.e. such as foregoing h-" one ", s-" Shu ", p-" Pie ", d-" Dian ", z-" second ".
Certainly, further include default aided filter strokes sequence and correspond to the pinyin string for filtering which position.
User then can click on respective keys by rule as needed under above-mentioned rule in click keys.
Step 120, judge whether the keystroke sequence includes aided filter strokes sequence;If the keystroke sequence includes Aided filter strokes sequence, then enter step 130;
The keystroke sequence so inputted for user in double-spelling Chinese character input method, can identify therein auxiliary according to above-mentioned rule Help filtering strokes sequence.For not aided filter strokes sequence then, will be according to the normal recognition logic of double-spelling Chinese character input method, will Recognition by pressing keys is phonetic.
Preferably, it is described to judge whether the keystroke sequence includes aided filter strokes sequence and include:
Sub-step 121, judges whether there is filtering boot symbol in the keystroke sequence;
For example using # as guide key, 1 (can certainly be n) button for representing next to input is aided filter Stroke.And may also dictate that it is that stroke filtering is carried out to a Chinese phonetic alphabet string before #.Ta#pmen is so inputted with user Exemplified by.First and second recognition by pressing keys are Chinese phonetic alphabet string ta, and the 3rd is #, then has filtering boot symbol.According to foregoing rule Then, 1 button behind is needed to be identified as stroke.
Sub-step 122, if there is filtering boot symbol in the keystroke sequence, is filtered described behind boot symbol at least One recognition by pressing keys is aided filter strokes sequence;
For example by the p behind #, it is identified as " Pie " according to the correspondence of p and stroke.
I.e. wherein, include when identifying aided filter stroke:
Sub-step 1221, is aided filter stroke by corresponding recognition by pressing keys according to the button and the correspondence of stroke.
If the button behind the # is not the foregoing button for having correspondence with stroke, according to the normal of input method Recognition logic is identified, for example input by user is ta#omen, then is identified as ta#pmen, i.e., not auxiliary in the keystroke sequence Filtering strokes sequence is helped, certainly for this kind of situation, the character of defined quantity behind # can not also be handled.
Preferably, it is described to judge whether the keystroke sequence includes aided filter strokes sequence and include:
Sub-step 123, judges whether there is filtering boot symbol first symbol in the keystroke sequence;
The embodiment of the present invention can also pass through Macintosh or two guide keys (filtering boot symbol first symbol and filtering boot symbols End mark) input multidigit aided filter stroke.
For example " () " corresponding filtering boot symbol first symbol and filtering boot symbol end mark respectively, character among bracket can be with It is identified as aided filter strokes sequence.And may also dictate that it is that stroke filtering is carried out to a pinyin string before " () ".Such as User inputs ta (ps) men, and first and second recognition by pressing keys are Chinese phonetic alphabet string ta, the 3rd for (, then have filtering guiding First symbol.According to aforementioned rule, n button behind is needed to be identified as stroke, until recognizing).
Sub-step 124, if there is filtering guiding first symbol in the keystroke sequence, sequentially starts the filtering guiding The recognition by pressing keys of symbol below is aided filter stroke, until recognizing filtering guiding end mark, obtains aided filter strokes sequence.
Ps can be so identified as to aided filter strokes sequence " Pie Shu ".
If the button in () is not the foregoing button for having correspondence with stroke, according to the positive general knowledge of input method Other logic is identified, for example input by user is ta (po) men, then is identified as ta (po) men, or user inputs ta (ab) Men, then be identified as ta (ab) men, i.e., do not have aided filter strokes sequence in the keystroke sequence, certainly for this kind of situation, () and character therein can not be handled.
Preferably, it is described to judge whether the keystroke sequence includes aided filter strokes sequence and include:
Sub-step 125, judges whether functional button is combined with the input of character keys in the keystroke sequence;
In embodiments of the present invention, function button can also be set, receive the character that user inputs together with function button Button, for example, ctrl+ " p ", wherein p could alternatively be arbitrarily with the relevant character of stroke.And also could dictate that it is to ctrl+p A pinyin string before carries out stroke filtering.For example user inputs ta ctrl+pctrl+s men, wherein the ta first inputted, Ctrl and p is to input at the same time, and ctrl and s is to input at the same time afterwards, then the men inputted.
Sub-step 126, judges that functional button is combined with the input of character keys in the keystroke sequence, then will be described defeated The character keys entered in combination are identified as aided filter strokes sequence.
For previous example, then first and second recognition by pressing keys for the Chinese phonetic alphabet string ta, ctrl and p are while defeated Enter, identification p correspondences " Pie ", ctrl and s are to input at the same time, and identification s corresponds to " Shu ", then obtains aided filter strokes sequence " Pie Shu ".
If the character keys inputted at the same time with function button certainly are not the foregoing buttons for having correspondence with stroke, It can fail to see and be clipped in the pinyin string of input method.Such as ta ctrl+octrl+s men, then pinyin string ta and men, and auxiliary are identified Stroke s is filtered, since o does not correspond to stroke, then nonrecognition, is also not input in pinyin string.
If the keystroke sequence does not include aided filter strokes sequence, it is by the recognition by pressing keys in the keystroke sequence Pinyin string;
Step 130, for the keystroke sequence before or after the aided filter strokes sequence corresponding to pinyin string, Matched with the aided filter strokes sequence with the word corresponding to the pinyin string and/or the first strokes sequence of word;
, can be according to advance regulation, to aided filter strokes sequence after identification obtains aided filter strokes sequence Before or after keystroke sequence corresponding to pinyin string, with corresponding to the aided filter strokes sequence and the pinyin string Word and/or the first strokes sequence of word matched.
Such as foregoing regulation, the pinyin string before auxiliary stroke filtration sequence is filtered, for ta#pmen, then with " Pie " the corresponding words of ta are filtered, can obtain " they ";For ta (ps) men, then with " Pie Shu " carry out the corresponding words of ta Filtering, can obtain " they ";For ta ctrl+pctrl+s men, then with " Pie Shu " and the corresponding words of ta are filtered, can be with Obtain " they ".
It is of course also possible to provide to filter the pinyin string before auxiliary stroke filtration sequence, filtering principle is similar.
Step 140, according to auxiliary strokes sequence and the matching result of the first strokes sequence, it is corresponding each to adjust each pinyin string The display location of word and/or word.
Input such as " tamen " for normal Two bors d's oeuveres, can obtain word " they ", " they ", " they ", " pyller " etc. Candidate, then for being filtered mentioned by aided filter strokes sequence to the phonetic before it, then can obtain " they " Deng less, more accurately candidate, then using these more accurately candidate word and/or word as upper screen candidate item initially.
The embodiment of the present invention is due in double-spelling Chinese character input method, for the letter of a-z input by user, by the knowledge of double-spelling Chinese character input method Not, it is that corresponding pinyin string can be split as by the regulation of the initial and the final, and each pinyin string can correspond to different words, is spelled The combination of sound string can also correspond to different words, and the embodiment of the present invention can be clicked at an arbitrary position in user in entering method keyboard Input button corresponding with aided filter strokes sequence, then in keystroke sequence input by user, Direct Recognition user inputs Aided filter strokes sequence, so as to be filtered to the corresponding words of pinyin string below, reduce the selection model of follow-up character/word Enclose, so as to improve input efficiency.
Embodiment two
With reference to Fig. 2, it illustrates a kind of flow diagram of character input method of the present invention, can specifically include:
Step 210, under the Two bors d's oeuveres input pattern of input method, receiving keystroke sequence input by user;
Preferably, further included before step 210:
Step 200, setting different key corresponds to each stroke of the writing system respectively, and it is corresponding with stroke to obtain button Relation;
Such as button " hspdz " is corresponding " Philosophy folding " respectively, such as h-" one ", s-" Shu ", p-" Pie ", d- " Dian ", z-" second ".And stipulated that aided filter strokes sequence filters a corresponding pinyin string before its button.When So, multiple pinyin strings before it can also be filtered, one or more pinyin string after it can be also carried out Filter.
For example user inputs ta#p#smen#pzaishang#sban.
Step 212, judge whether the button in the keystroke sequence filtering boot symbol occurs one by one;If do not filter Boot symbol, then enter step 214;If there is filtering boot symbol, then 216 are entered step;
In embodiments of the present invention for keystroke sequence, usually judged one by one from left to right, when will not hit on Boot symbol is filtered, then is pinyin string by recognition by pressing keys, 216 are then entered step when encountering filtering boot symbol.
Step 214, it is pinyin string by the recognition by pressing keys;
Step 216, it is aided filter strokes sequence by least one recognition by pressing keys behind the filtering boot symbol;By institute The identification process that button unidentified in keystroke sequence enters filtering boot symbol is stated, enters step 212;
218 are entered step for the keystroke sequence after identification.
In embodiments of the present invention, one or more button needs to carry out stroke to it after could dictate that filtering boot symbol Identification, preferably one.
For keystroke sequence ta#p#smen#pzaishang#sban, first and second button is not filtering boot symbol, directly Phonetic " ta " is identified as by double-spelling Chinese character input method rule, the 3rd button # is filtering boot symbol, then a button p after it It is identified as " Pie ", the 5th button is #, then a button s after it is identified as " Shu ", the seven, the eight, nine, it is defeated according to Two bors d's oeuveres Entering method rule to be identified as " men ", the tenth button is #, then a button p after it is identified as " Pie ", and the tenth two to ten Nine recognition by pressing keys is " zai ", " shang ", and the 20th button is #, then a button s after it is identified as " Shu ", it " ban " that recognition by pressing keys is below.
Step 218, for the keystroke sequence before or after the aided filter strokes sequence corresponding to pinyin string, Matched with the aided filter strokes sequence with the word corresponding to the pinyin string and/or the first strokes sequence of word;
In foregoing regulation to a pinyin string before aided filter strokes sequence, it may be determined that first aided filter stroke Sequence " Pie Shu " filter the word of pinyin string " ta ", second aided filter strokes sequence " Pie " to the word of pinyin string " men " into Row filtering, the 3rd aided filter strokes sequence " Shu " filter the word of pinyin string " zai ".The word of " ta " include " he ", The word such as " she ", " it ", " tower ", is filtered available " he ";The word of " men ", which includes word, the filtering such as " ", " door ", " vexed ", to be obtained Words such as " ";The word of " zai ", which includes word, the filtering such as " ", " again ", " load ", can obtain words such as " ".
Step 220, according to auxiliary strokes sequence and the matching result of the first strokes sequence, it is corresponding each to adjust each pinyin string The display location of word and/or word.
For the word after filtering, can be combined with the word of other pinyin strings by word frequency, will combination if can combine Sort forward display, if cannot combine, utilization rate highest word is sorted forward display.So ta#p#smen# Pzaishang#sban, can obtain candidate item " they are on duty ".
The embodiment of the present invention is due in double-spelling Chinese character input method, for the letter of a-z input by user, by the knowledge of double-spelling Chinese character input method Not, it is that corresponding pinyin string can be split as by the regulation of the initial and the final, and each pinyin string can correspond to different words, is spelled The combination of sound string can also correspond to different words, and the embodiment of the present invention can be clicked at an arbitrary position in user in entering method keyboard Input button corresponding with aided filter strokes sequence, then in keystroke sequence input by user, Direct Recognition user inputs Aided filter strokes sequence, so as to be filtered to the corresponding words of pinyin string below, reduce the selection model of follow-up character/word Enclose, so as to improve input efficiency.
Embodiment three
With reference to Fig. 3, it illustrates a kind of flow diagram of character input method of the present invention, can specifically include:
Step 310, under the Two bors d's oeuveres input pattern of input method, receiving keystroke sequence input by user;
Preferably, further included before step 310:
Step 300, setting different key corresponds to each stroke of the writing system respectively, and it is corresponding with stroke to obtain button Relation;
Such as button " hspdz " is corresponding " Philosophy folding " respectively, such as h-" one ", s-" Shu ", p-" Pie ", d- " Dian ", z-" second ".And stipulated that aided filter strokes sequence filters a corresponding pinyin string before its button.When So, multiple pinyin strings before it can also be filtered, one or more pinyin string after it can be also carried out Filter.
For example user inputs ta (ps) men (p) zaishang (s) ban.
Step 312, judge whether the button in the keystroke sequence occurs filtering boot symbol first symbol one by one;If do not go out Boot symbol first symbol is now filtered, then enters step 314;If there is filtering boot symbol first symbol, then 316 are entered step;
Step 314, it is pinyin string by the recognition by pressing keys;
Step 316, it is aided filter stroke the filtering sequentially to be guided the recognition by pressing keys behind first symbol, until identification End mark is guided to filtering, obtains aided filter strokes sequence;Button unidentified in the keystroke sequence is drawn into filtering The identification process of first symbol is led, enters step 312;
318 are entered step for the keystroke sequence after identification.
For keystroke sequence ta (ps) men (p) zaishang (s) ban, first and second button is not filtering boot symbol, directly Connect and be identified as phonetic " ta " by double-spelling Chinese character input method rule, the 3rd button (guides first symbol, then the after from it for filtering One button starts, and carries out Stroke discrimination, then p is identified as " Pie ", and s is identified as " Shu ", recognizes button) terminate for filtering guiding Symbol, then button is re-recognized, the seven, the eight, nine, it is identified as " men " according to double-spelling Chinese character input method rule, the tenth button is (for filtering Guide first symbol, then since first button after it, carry out Stroke discrimination, then p is identified as " Pie ", recognize by Key) for filtering guiding end mark, then button is re-recognized, the 13rd to 20 recognition by pressing keys is " zai ", " shang ", second 11 buttons (guide first symbol, then since first button after it, carry out Stroke discrimination, then s knows for filtering Not Wei " Shu ", recognize button) for filtering guiding end mark, then re-recognize button, recognition by pressing keys is below " ban ".
Step 318, for the keystroke sequence before or after the aided filter strokes sequence corresponding to pinyin string, Matched with the aided filter strokes sequence with the word corresponding to the pinyin string and/or the first strokes sequence of word;
In foregoing regulation to a pinyin string before aided filter strokes sequence, it may be determined that first aided filter stroke Sequence " Pie Shu " filter the word of pinyin string " ta ", second aided filter strokes sequence " Pie " to the word of pinyin string " men " into Row filtering, the 3rd aided filter strokes sequence " Shu " filter the word of pinyin string " zai ".The word of " ta " include " he ", The word such as " she ", " it ", " tower ", is filtered available " he ";The word of " men ", which includes word, the filtering such as " ", " door ", " vexed ", to be obtained Words such as " ";The word of " zai ", which includes word, the filtering such as " ", " again ", " load ", can obtain words such as " ".
Step 320, according to auxiliary strokes sequence and the matching result of the first strokes sequence, it is corresponding each to adjust each pinyin string The display location of word and/or word.
For the word after filtering, can be combined with the word of other pinyin strings by word frequency, will combination if can combine Sort forward display, if cannot combine, utilization rate highest word is sorted forward display.So ta#p#smen# Pzaishang#sban, can obtain candidate item " they are on duty ".
Example IV
With reference to Fig. 4, it illustrates a kind of flow diagram of character input method of the present invention, can specifically include:
Step 410, under the Two bors d's oeuveres input pattern of input method, receiving keystroke sequence input by user;
Preferably, further include before step 410:
Step 400, setting different key corresponds to each stroke of the writing system respectively, and it is corresponding with stroke to obtain button Relation;
Such as button " hspdz " is corresponding " Philosophy folding " respectively, such as h-" one ", s-" Shu ", p-" Pie ", d- " Dian ", z-" second ".And stipulated that aided filter strokes sequence filters a corresponding pinyin string before its button.When So, multiple pinyin strings before it can also be filtered, one or more pinyin string after it can be also carried out Filter.
For example user inputs taCtrl+p Ctrl+smen Ctrl+pzaishang Ctrl+smian.
Step 412, judge that function button whether occur in the keystroke sequence combines with the input of character keys one by one;Such as Fruit does not occur function button and is combined with the input of character keys, then enters step 414;If there is function button and character keys Input combination, then enter step 416;
Step 414, it is pinyin string by the recognition by pressing keys;
Step 416, the character keys in the input combination are identified as aided filter strokes sequence;
The identification that button entered function button unidentified in the keystroke sequence is combined with the input of character keys Journey, enters step 412;
418 are entered step for the keystroke sequence after identification.
Step 418, for the keystroke sequence before or after the aided filter strokes sequence corresponding to pinyin string, Matched with the aided filter strokes sequence with the word corresponding to the pinyin string and/or the first strokes sequence of word;
In foregoing regulation to a pinyin string before aided filter strokes sequence, it may be determined that first aided filter stroke Sequence " Pie Shu " filter the word of pinyin string " ta ", second aided filter strokes sequence " Pie " to the word of pinyin string " men " into Row filtering, the 3rd aided filter strokes sequence " Shu " filter the word of pinyin string " zai ".The word of " ta " include " he ", The word such as " she ", " it ", " tower ", is filtered available " he ";The word of " men ", which includes word, the filtering such as " ", " door ", " vexed ", to be obtained Words such as " ";The word of " zai ", which includes word, the filtering such as " ", " again ", " load ", can obtain words such as " ".
Step 420, according to auxiliary strokes sequence and the matching result of the first strokes sequence, it is corresponding each to adjust each pinyin string The display location of word and/or word.
For the word after filtering, can be combined with the word of other pinyin strings by word frequency, will combination if can combine Sort forward display, if cannot combine, utilization rate highest word is sorted forward display.So ta#p#smen# Pzaishang#sban, can obtain candidate item " they are on duty ".
Embodiment five
With reference to Fig. 5, it illustrates a kind of flow diagram of character input method of the present invention, can specifically include:
Step 510, under the Two bors d's oeuveres input pattern of input method, receiving keystroke sequence input by user;
Step 520, judge whether the keystroke sequence includes aided filter strokes sequence;If the keystroke sequence does not wrap Aided filter strokes sequence is included, then enters step 530;If the keystroke sequence includes aided filter strokes sequence, enter Step 540;
Step 530, then by the recognition by pressing keys in the keystroke sequence it is pinyin string;
Step 540, for the keystroke sequence before or after the aided filter strokes sequence corresponding to pinyin string Combination, by aided filter strokes sequence input by user, with least first pen by the corresponding each word of each pinyin string and/or word The first formed strokes sequence is drawn to be matched;
In embodiments of the present invention, it can specify that multiple pinyin strings of the auxiliary stroke sequence pair before or after it correspond to Word or combinatorics on words filtered.Such as foregoing tamen (ps) zaishangban, pinyin string before (ps) is " ta ", " men ", its combine in dictionary corresponding word and word include " they ", " they ", " pyller ", " they ", " It ", " stepping on ", " door " etc..So the present invention can " Pie Shu " filter these words by (ps) corresponding aided filter strokes sequence.
In embodiments of the present invention, can be with for the first strokes sequence of the corresponding each word of each each pinyin string and/or word At least the first stroke of each word is extracted, by least the first stroke is combined as the first strokes sequence described in each word.For example take the of each word One composition the first stroke screening sequence, or take the first two strokes of each word to form the first stroke screening sequence etc..It is so described Aided filter strokes sequence is formed with by least first stroke of the corresponding each word of each each pinyin string and/or each word of word The first strokes sequence matched.
Preferably, the phonetic corresponding to the keystroke sequence for before or after the aided filter strokes sequence String combination, by aided filter strokes sequence input by user, and by least first of the corresponding each word of each pinyin string and/or word The first strokes sequence that stroke is formed, which carries out matching, to be included:
Sub-step 541, by the aided filter strokes sequence and the complete pen by the corresponding each word of each pinyin string and/or word The first strokes sequence for drawing sequence composition is matched;
The complete stroke of the corresponding each word of each pinyin string and/or each word of word can be extracted in embodiments of the present invention Come, form the first strokes sequence, such as " Asia ", the complete strokes sequence of " Asia " is " a Shu Shu Pie Dian mono- ", the complete stroke in " continent " Sequence is " mono- Dian Pie Dian Shu Dian Shu " of Dian Dian, then the first strokes sequence of composition is " a mono- Dian Dian of Shu Shu Pie Dian, mono- Dian Pie Dian Shu Dian Shu ", the aided filter Strokes sequence can be matched with first strokes sequence.
And/or sub-step 542, by the aided filter strokes sequence with by the corresponding each word of each pinyin string and/or word First strokes sequence of first stroke composition matches.
The complete stroke of the corresponding each word of each pinyin string and/or each word of word can be extracted in embodiments of the present invention Coming, form the first strokes sequence, such as foregoing " Asia ", the first stroke of " Asia " is " one ", and the first stroke in " continent " is " Dian ", The first strokes sequence so formed is " Dian ", and the aided filter strokes sequence can be matched with first strokes sequence.
Preferably, the pinyin string corresponding to the keystroke sequence before or after for the aided filter strokes sequence Combination, by aided filter strokes sequence input by user, with least first pen by the corresponding each word of each pinyin string and/or word Draw before the first formed strokes sequence is matched and further include:
Sub-step 543, for each initial candidate item, obtains the first stroke sequence of each initial candidate item from dictionary Row.
In embodiments of the present invention, the stroke of each word can be preserved in dictionary in advance, which can be when mounted with visitor Family end is installed under the specified path of system.
In the embodiment of the present invention, receive user input aided filter strokes sequence process before, among or afterwards, The first strokes sequence of the corresponding each word of each each pinyin string and/or word can be extracted from dictionary.Certainly such as the institute of embodiment one State, the first stroke that at least first stroke is formed of each word of the corresponding each word of each each pinyin string and/or word can be extracted Draw sequence.
Preferably, the phonetic corresponding to the keystroke sequence for before or after the aided filter strokes sequence String combination, by aided filter strokes sequence input by user, and by least first of the corresponding each word of each pinyin string and/or word The first strokes sequence that stroke is formed carries out matching and further includes:
Sub-step 544, when the first strokes sequence of the aided filter strokes sequence and the initial candidate item is incomplete During matching, the first of the strokes sequence input by user and the initial candidate item is judged using the error correcting model based on stroke The matched probability of strokes sequence;
In practical applications, user input aided filter strokes sequence when, may input error, such as input " fast " word When, by five-stroke input method " one, Shu, Pie, Dian, second " exemplified by, correct stroke order should be " one Pie Dian " of Dian Dian Shu second, and for erect the heart Other input then easily malfunctions, such as " Shu Dian Dian ", then the input of this kind mistake then can by based on the error correcting model of stroke to its into Row judges, judges the first stroke sequences match of strokes sequence input by user each word corresponding with each pinyin string and/or word Probability.
Sub-step 545, when the matched probability is more than threshold value, then judge the aided filter strokes sequence with it is described In first stroke sequences match of initial candidate item.
When judging that the strokes sequence input by user is corresponding with each pinyin string by the error correcting model based on stroke The probability of the first stroke sequences match of each word and/or word when being more than certain threshold value, then it is believed that the aided filter pen In the first stroke sequences match for drawing sequence each word corresponding with each pinyin string and/or word;It is on the contrary, then it is assumed that not match On.
Preferably, further include:
Sub-step 546, it is described based on stroke using the binary or n-tuple relation of words in phrase and/or sentence, structure Error correcting model;
Binary crelation, the probability occurred in succession for representing two elements, i.e. P (B | A), under conditions of representing that A occurs, B The probability of appearance.N-tuple relation is derived by binary crelation.
In embodiments of the present invention, can be straight according to phrase or sentence according to advance statistics phrase and the stroke of words The direct binary of word or n-tuple relation connect determines the probability that stroke occurs.For example happy strokes sequence is " one Pie Dian of Dian Dian Shu second Pie second Shu Pie Dian ", obtain that " the corresponding happy probability of one Pie Dian Pie second Shu Pie Dian " of Dian Shu Dian second is 90%, and " one Pie Dian Pie second Shu Pie Dian " of Shu Dian Dian second are right by statistics It is 79% to answer happy probability, and so on, so as to build the error correcting model based on stroke.In this way, for not matching each spelling The stroke of the corresponding each word of sound string and/or word screens sequence, can judge that stroke is sieved according to the above-mentioned error correcting model based on stroke The matching probability of sequence each word corresponding with each pinyin string and/or word is selected, if greater than threshold value, for example more than 60%, then may be used Think that the corresponding each word of each pinyin string and/or word are matched.
And/or sub-step 547, using the binary or n-tuple relation between the stroke for forming each word, build the base In the error correcting model of stroke.
For example " one Pie Dian " of Dian Dian Shu second are that statistics can obtain strokes sequence, and " one Pie Dian " of Dian Shu Dian second correspond to " fast " word to the stroke of " fast " word Probability be 90%, " probability of corresponding " fast " words of one Pie Dian " of Shu Dian Dian second is 80% to strokes sequence, and similar principles can build and be based on The error correcting model of stroke.Stroke screening sequence and each pinyin string pair can also be judged according to the above-mentioned error correcting model based on stroke The matching probability of each word and/or word answered, if greater than threshold value, such as more than 60%, then it is believed that each pinyin string is corresponding each Word and/or word are matched.
Step 550, according to auxiliary strokes sequence and the matching result of the first strokes sequence, it is corresponding each to adjust each pinyin string The display location of word and/or word.
The embodiment of the present invention is due in double-spelling Chinese character input method, for the letter of a-z input by user, by the knowledge of double-spelling Chinese character input method Not, it is that corresponding pinyin string can be split as by the regulation of the initial and the final, and each pinyin string can correspond to different words, is spelled The combination of sound string can also correspond to different words, and the embodiment of the present invention can be clicked at an arbitrary position in user in entering method keyboard Input button corresponding with aided filter strokes sequence, then in keystroke sequence input by user, Direct Recognition user inputs Aided filter strokes sequence, so as to be filtered to the corresponding words of pinyin string below, reduce the selection model of follow-up character/word Enclose, so as to improve input efficiency.Also, the embodiment of the present invention can realize the filtering of strokes sequence, be not limited to single stroke Filtering.
Embodiment six
With reference to Fig. 6, it illustrates a kind of structure diagram of input device of the present invention, can specifically include:
Keystroke sequence receiving module 610, suitable under the Two bors d's oeuveres input pattern for input method, receiving button input by user Sequence;
Auxiliary sequencel judgment module 620, suitable for judging whether the keystroke sequence includes aided filter strokes sequence;
Filtering module 630 is matched, if including aided filter strokes sequence suitable for the keystroke sequence, for described auxiliary The pinyin string corresponding to the keystroke sequence before or after filtering strokes sequence is helped, with the aided filter strokes sequence and institute The first strokes sequence for stating the word corresponding to pinyin string and/or word is matched;
Candidate item adjusts module 640, each suitable for the matching result according to auxiliary strokes sequence and the first strokes sequence, adjustment The display location of the corresponding each word of pinyin string and/or word.
Wherein, phonetic identification module is further included, if not including aided filter strokes sequence suitable for the keystroke sequence, It is pinyin string by the recognition by pressing keys in the keystroke sequence;
Preferably, the auxiliary sequencel judgment module includes:
First judgment module, suitable for judging whether there is filtering boot symbol in the keystroke sequence;
First identification module, if suitable for having filtering boot symbol in the keystroke sequence, after the filtering boot symbol At least one recognition by pressing keys in face is aided filter strokes sequence.
Preferably, the auxiliary sequencel judgment module includes:
Second judgment module, suitable for judging whether to have in the keystroke sequence filtering boot symbol first symbol;
Second identification module, if suitable for there is filtering guiding first symbol in the keystroke sequence, sequentially by the filtering It is aided filter stroke to guide the recognition by pressing keys behind first symbol, until recognizing filtering guiding end mark, obtains aided filter Strokes sequence.
Preferably, the auxiliary sequencel judgment module includes:
3rd judgment module, suitable for judge in the keystroke sequence whether the input group of functional button and character keys Close;
3rd identification module, suitable for judging that functional button is combined with the input of character keys in the keystroke sequence, then Character keys in the input combination are identified as aided filter strokes sequence.
Preferably, further include:
Stroke respective modules, each stroke of the writing system is corresponded to suitable for setting different key respectively, obtain button with The correspondence of stroke.
Preferably, include when first identification module or the second identification module or three identification modules:
4th identification module, is to aid in by corresponding recognition by pressing keys suitable for the correspondence according to the button and stroke Filter stroke.
Embodiment seven
With reference to Fig. 7, it illustrates a kind of structure diagram of input device of the present invention, can specifically include:
Keystroke sequence receiving module 710, suitable under the Two bors d's oeuveres input pattern for input method, receiving button input by user Sequence;
Auxiliary sequencel judgment module 720, including:
Whether the first judgment module 722, the button suitable for judging one by one in the keystroke sequence there is filtering boot symbol;Such as Fruit does not occur filtering boot symbol, then into phonetic identification module 726;If there is filtering boot symbol, then into the first identification mould 724;
First identification module 724, suitable for being aided filter by least one recognition by pressing keys behind the filtering boot symbol Strokes sequence;For unidentified keystroke sequence, into the first identification mould 724.For the keystroke sequence of identification, into matching Filter module 730.
Phonetic identification module 726, suitable for being pinyin string by the recognition by pressing keys in the keystroke sequence;
Filtering module 730 is matched, if including aided filter strokes sequence suitable for the keystroke sequence, for described auxiliary The pinyin string corresponding to the keystroke sequence before or after filtering strokes sequence is helped, with the aided filter strokes sequence and institute The first strokes sequence for stating the word corresponding to pinyin string and/or word is matched;
Candidate item adjusts module 740, each suitable for the matching result according to auxiliary strokes sequence and the first strokes sequence, adjustment The display location of the corresponding each word of pinyin string and/or word.
Preferably, further include:
Stroke respective modules, each stroke of the writing system is corresponded to suitable for setting different key respectively, obtain button with The correspondence of stroke.
Preferably, include when first identification module or the second identification module or three identification modules:
4th identification module, is to aid in by corresponding recognition by pressing keys suitable for the correspondence according to the button and stroke Filter stroke.
Embodiment eight
With reference to Fig. 8, it illustrates a kind of structure diagram of input device of the present invention, can specifically include:
Keystroke sequence receiving module 810, suitable under the Two bors d's oeuveres input pattern for input method, receiving button input by user Sequence;
Auxiliary sequencel judgment module 820, including:
Second judgment module 822, whether the button suitable for judging one by one in the keystroke sequence, which filtering boot symbol occurs, is opened Begin symbol;If do not occur filtering boot symbol first symbol, into phonetic identification module 826;Start if there is filtering boot symbol Symbol, then into the second identification module 824;
Second identification module 824, is aided filter suitable for the filtering sequentially is guided the recognition by pressing keys behind first symbol Stroke, until recognizing filtering guiding end mark, obtains aided filter strokes sequence;For unidentified keystroke sequence, enter Second judgment module 822.For the keystroke sequence of identification, into matching filtering module 830.
Phonetic identification module 826, suitable for being pinyin string by the recognition by pressing keys in the keystroke sequence;
Filtering module 830 is matched, if including aided filter strokes sequence suitable for the keystroke sequence, for described auxiliary The pinyin string corresponding to the keystroke sequence before or after filtering strokes sequence is helped, with the aided filter strokes sequence and institute The first strokes sequence for stating the word corresponding to pinyin string and/or word is matched;
Candidate item adjusts module 840, each suitable for the matching result according to auxiliary strokes sequence and the first strokes sequence, adjustment The display location of the corresponding each word of pinyin string and/or word.
Preferably, further include:
Stroke respective modules, each stroke of the writing system is corresponded to suitable for setting different key respectively, obtain button with The correspondence of stroke.
Preferably, include when first identification module or the second identification module or three identification modules:
4th identification module, is to aid in by corresponding recognition by pressing keys suitable for the correspondence according to the button and stroke Filter stroke.
Embodiment nine
With reference to Fig. 9, it illustrates a kind of structure diagram of input device of the present invention, can specifically include:
Keystroke sequence receiving module 910, suitable under the Two bors d's oeuveres input pattern for input method, receiving button input by user Sequence;
Auxiliary sequencel judgment module 920, including:
3rd judgment module 922, suitable for judge in the keystroke sequence whether the input of functional button and character keys Combination;If receiving only character keys, into phonetic identification module 926;If receive special key and character keys Input is combined, then the 3rd identification module 924;
3rd identification module 924, suitable for the character keys in the input combination are identified as aided filter strokes sequence; For unidentified keystroke sequence, into the 3rd judgment module 922;For the keystroke sequence of identification, into matching filtering module 930。
Phonetic identification module 926, suitable for being pinyin string by the recognition by pressing keys in the keystroke sequence;
Filtering module 930 is matched, if including aided filter strokes sequence suitable for the keystroke sequence, for described auxiliary The pinyin string corresponding to the keystroke sequence before or after filtering strokes sequence is helped, with the aided filter strokes sequence and institute The first strokes sequence for stating the word corresponding to pinyin string and/or word is matched;
Candidate item adjusts module 940, each suitable for the matching result according to auxiliary strokes sequence and the first strokes sequence, adjustment The display location of the corresponding each word of pinyin string and/or word.
Preferably, further include:
Stroke respective modules, each stroke of the writing system is corresponded to suitable for setting different key respectively, obtain button with The correspondence of stroke.
Preferably, include when first identification module or the second identification module or three identification modules:
4th identification module, is to aid in by corresponding recognition by pressing keys suitable for the correspondence according to the button and stroke Filter stroke.
Embodiment ten
With reference to Figure 10, it illustrates a kind of structure diagram of input device of the present invention, can specifically include:
Keystroke sequence receiving module 1010, suitable under the Two bors d's oeuveres input pattern for input method, receiving input by user press Key sequence;
Auxiliary sequencel judgment module 1020, suitable for judging whether the keystroke sequence includes aided filter strokes sequence;
Phonetic identification module 1030, if not including aided filter strokes sequence suitable for the keystroke sequence, by described in Recognition by pressing keys in keystroke sequence is pinyin string;
Filtering module 1040 is matched, is specifically included:
First matching filtering module 1042, suitable for for pressing bond order before or after the aided filter strokes sequence The corresponding pinyin string of row, with aided filter strokes sequence input by user, and by the corresponding each word of each pinyin string and/or word The first strokes sequence that at least first stroke is formed is matched.
Candidate item adjusts module 1050, suitable for the matching result according to auxiliary strokes sequence and the first strokes sequence, adjustment The display location of the corresponding each word of each pinyin string and/or word.
Preferably, the first matching filtering module includes:
Complete match module, suitable for by the aided filter strokes sequence with by the corresponding each word of each pinyin string and/or word Complete strokes sequence composition the first strokes sequence matched;
And/or the first sum of matching module, suitable for by the aided filter strokes sequence with by the corresponding each word of each pinyin string And/or the first strokes sequence of the first stroke composition of word matches.
Preferably, further included before the first matching filtering module:
First stroke retrieval module, suitable for for each initial candidate item, each initial candidate is obtained from dictionary First strokes sequence of item.
Preferably, the first matching filtering module further includes:
Correction module, suitable for when the first strokes sequence of the aided filter strokes sequence and the initial candidate item it is endless During full matching, judge the of the strokes sequence input by user and the initial candidate item using the error correcting model based on stroke The probability of unicursal sequences match;When the matched probability is more than threshold value, then judge the aided filter strokes sequence with In first stroke sequences match of the initial candidate item.
Preferably, further include:
First model construction module, suitable for using the binary or n-tuple relation of words in phrase and/or sentence, described in structure Error correcting model based on stroke;
And/or second model construction module, suitable for utilizing the binary between the stroke for forming each word or polynary pass System, builds the error correcting model based on stroke.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with teaching based on this.As described above, required by constructing this kind of system Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that it can utilize various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description to the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor The application claims of shield features more more than the feature being expressly recited in each claim.It is more precisely, such as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and attached drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, summary and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation Replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be with hardware realization, or to be run on one or more processor Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that it can use in practice Microprocessor or digital signal processor (DSP) are according to embodiments of the present invention to realizeWord inputsIn equipment some or The some or all functions of person's whole component.The present invention is also implemented as perform method as described herein one Divide either whole equipment or program of device (for example, computer program and computer program product).It is such to realize this hair Bright program can store on a computer-readable medium, or can have the form of one or more signal.It is such Signal can be downloaded from internet website and obtained, and either provided on carrier signal or provided in the form of any other.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of some different elements and being come by means of properly programmed computer real It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.

Claims (22)

1. a kind of character input method, including:
Pre-set the recognition rule for identifying aided filter strokes sequence;
For under the Two bors d's oeuveres input pattern of input method, receiving keystroke sequence input by user;
Whether the keystroke sequence for judging input using the recognition rule includes aided filter strokes sequence;
If the keystroke sequence includes at least one aided filter strokes sequence, respectively for the aided filter stroke sequence The pinyin string corresponding to keystroke sequence before or after row is right with the aided filter strokes sequence and pinyin string institute The word and/or the first strokes sequence of word answered are matched;
According to auxiliary strokes sequence and the matching result of the first strokes sequence, the corresponding each word of each pinyin string and/or word are adjusted Display location.
2. the method as described in claim 1, it is characterised in that whether the keystroke sequence for judging input includes auxiliary Filtering strokes sequence includes:
Judge whether there is filtering boot symbol in the keystroke sequence;
If there is filtering boot symbol in the keystroke sequence, it is by least one recognition by pressing keys behind the filtering boot symbol Aided filter strokes sequence.
3. the method as described in claim 1, it is characterised in that whether the keystroke sequence for judging input includes auxiliary Filtering strokes sequence includes:
Judge whether there is filtering boot symbol first symbol in the keystroke sequence;
If there is filtering guiding first symbol in the keystroke sequence, sequentially the filtering is guided the button behind first symbol know Not Wei aided filter stroke, until recognize filtering guiding end mark, obtain aided filter strokes sequence.
4. the method as described in claim 1, it is characterised in that whether the keystroke sequence for judging input includes auxiliary Filtering strokes sequence includes:
Judge whether functional button is combined with the input of character keys in the keystroke sequence;
Judge that functional button is combined with the input of character keys in the keystroke sequence, then by the character in the input combination Recognition by pressing keys is aided filter strokes sequence.
5. the method as described in one of claim 2-4, it is characterised in that further include:
Setting different key corresponds to each stroke of writing system respectively, obtains the correspondence of button and stroke.
6. method as claimed in claim 5, it is characterised in that include when identifying aided filter stroke:
It is aided filter stroke by corresponding recognition by pressing keys according to the button and the correspondence of stroke.
7. the method as described in claim 1, it is characterised in that described with the aided filter strokes sequence and the pinyin string Corresponding word and/or the first strokes sequence of word, which carry out matching, to be included:
Combined for the pinyin string corresponding to the keystroke sequence before or after the aided filter strokes sequence, user is defeated The aided filter strokes sequence entered, be made of at least first stroke of the corresponding each word of each pinyin string and/or word Unicursal sequence is matched.
8. the method for claim 7, it is characterised in that it is described for before the aided filter strokes sequence or it Pinyin string combination corresponding to keystroke sequence afterwards, it is corresponding with by each pinyin string by aided filter strokes sequence input by user The first strokes sequence that at least first stroke is formed of each word and/or word carry out matching and include:
By the aided filter strokes sequence be made of the complete strokes sequence of the corresponding each word of each pinyin string and/or word Unicursal sequence is matched;
And/or by the aided filter strokes sequence with being made of the first stroke of the corresponding each word of each pinyin string and/or word First strokes sequence matches.
9. the method for claim 7, it is characterised in that before or after for the aided filter strokes sequence Keystroke sequence corresponding to pinyin string combination, it is corresponding with by each pinyin string by aided filter strokes sequence input by user The first strokes sequence that at least first stroke is formed of each word and/or word further includes before being matched:
For each initial candidate item, the first strokes sequence of each initial candidate item is obtained from dictionary.
10. method as claimed in claim 9, it is characterised in that it is described for before the aided filter strokes sequence or Pinyin string combination corresponding to keystroke sequence afterwards, by aided filter strokes sequence input by user, and by each pinyin string pair The first strokes sequence that at least first stroke is formed for each word and/or word answered carries out matching and further includes:
When the first strokes sequence Incomplete matching of the aided filter strokes sequence and the initial candidate item, using based on The error correcting model of stroke judges the strokes sequence input by user and the first stroke sequences match of the initial candidate item Probability;
When the matched probability is more than threshold value, then the of the aided filter strokes sequence and the initial candidate item is judged In unicursal sequences match.
11. method as claimed in claim 10, it is characterised in that further include:
Using the binary or n-tuple relation of words in phrase and/or sentence, the error correcting model based on stroke is built;
And/or using the binary or n-tuple relation between the stroke for forming each word, build the error correction mould based on stroke Type.
12. a kind of input device, including:
Recognition rule setup module, for pre-setting the recognition rule for identifying aided filter strokes sequence;
Keystroke sequence receiving module, suitable under the Two bors d's oeuveres input pattern for input method, receiving keystroke sequence input by user;
Auxiliary sequencel judgment module, suitable for judging whether the keystroke sequence of input includes aiding in using the recognition rule Filter strokes sequence;
Filtering module is matched, if including at least one aided filter strokes sequence suitable for the keystroke sequence, respectively for The pinyin string corresponding to keystroke sequence before or after the aided filter strokes sequence, with the aided filter stroke sequence Row are matched with the word corresponding to the pinyin string and/or the first strokes sequence of word;
Candidate item adjusts module, suitable for the matching result according to auxiliary strokes sequence and the first strokes sequence, adjusts each pinyin string The display location of corresponding each word and/or word.
13. device as claimed in claim 12, it is characterised in that the auxiliary sequencel judgment module includes:
First judgment module, suitable for judging whether there is filtering boot symbol in the keystroke sequence;
First identification module, if suitable for having filtering boot symbol in the keystroke sequence, behind the filtering boot symbol At least one recognition by pressing keys is aided filter strokes sequence.
14. device as claimed in claim 12, it is characterised in that the auxiliary sequencel judgment module includes:
Second judgment module, suitable for judging whether to have in the keystroke sequence filtering boot symbol first symbol;
Second identification module, if suitable for there is filtering guiding first symbol in the keystroke sequence, sequentially guides the filtering Recognition by pressing keys behind first symbol is aided filter stroke, until recognizing filtering guiding end mark, obtains aided filter stroke Sequence.
15. device as claimed in claim 12, it is characterised in that the auxiliary sequencel judgment module includes:
3rd judgment module, suitable for judging whether functional button is combined with the input of character keys in the keystroke sequence;
3rd identification module, suitable for judging that functional button is combined with the input of character keys in the keystroke sequence, then by institute The character keys stated in input combination are identified as aided filter strokes sequence.
16. the device as described in one of claim 13-15, it is characterised in that further include:
Stroke respective modules, each stroke of writing system is corresponded to suitable for setting different key, obtains pair of button and stroke respectively It should be related to.
17. device as claimed in claim 16, it is characterised in that know in the first identification module or the second identification module or the 3rd During other module identification aided filter stroke, including:
4th identification module, is aided filter pen by corresponding recognition by pressing keys suitable for the correspondence according to the button and stroke Draw.
18. device as claimed in claim 12, it is characterised in that the matching filtering module includes:
First matching filtering module, suitable for for corresponding to the keystroke sequence before or after the aided filter strokes sequence Pinyin string combination, by aided filter strokes sequence input by user, with by the corresponding each word of each pinyin string and/or word at least The first strokes sequence that first stroke is formed is matched.
19. device as claimed in claim 18, it is characterised in that the first matching filtering module includes:
Complete match module, suitable for by the aided filter strokes sequence with by the complete of the corresponding each word of each pinyin string and/or word First strokes sequence of whole strokes sequence composition is matched;
And/or the first sum of matching module, suitable for by the aided filter strokes sequence with by the corresponding each word of each pinyin string and/or First strokes sequence of the first stroke composition of word matches.
20. device as claimed in claim 18, it is characterised in that further included before the first matching filtering module:
First stroke retrieval module, suitable for for each initial candidate item, each initial candidate item is obtained from dictionary First strokes sequence.
21. device as claimed in claim 20, it is characterised in that the first matching filtering module further includes:
Correction module, suitable for when incomplete of the first strokes sequence of the aided filter strokes sequence and the initial candidate item Timing, the first stroke of the strokes sequence input by user and the initial candidate item is judged using the error correcting model based on stroke Draw the probability of sequences match;When the matched probability is more than threshold value, then judge the aided filter strokes sequence with it is described In first stroke sequences match of initial candidate item.
22. device as claimed in claim 21, it is characterised in that further include:
First model construction module, suitable for utilizing the binary or n-tuple relation of words in phrase and/or sentence, is based on described in structure The error correcting model of stroke;
And/or second model construction module, suitable for utilizing the binary or n-tuple relation between the stroke for forming each word, structure Build the error correcting model based on stroke.
CN201410850557.4A 2014-12-30 2014-12-30 Character input method and device Active CN104571586B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410850557.4A CN104571586B (en) 2014-12-30 2014-12-30 Character input method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410850557.4A CN104571586B (en) 2014-12-30 2014-12-30 Character input method and device

Publications (2)

Publication Number Publication Date
CN104571586A CN104571586A (en) 2015-04-29
CN104571586B true CN104571586B (en) 2018-05-04

Family

ID=53087859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410850557.4A Active CN104571586B (en) 2014-12-30 2014-12-30 Character input method and device

Country Status (1)

Country Link
CN (1) CN104571586B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109558017B (en) * 2017-09-26 2023-02-03 北京搜狗科技发展有限公司 Input method and device and electronic equipment
CN113641253A (en) * 2021-07-09 2021-11-12 北京搜狗科技发展有限公司 Method, apparatus and medium for screening candidate items

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100569110B1 (en) * 2003-06-27 2006-04-07 주식회사 한국스테노 the method of a chinese character input by the form of collateral word
CN102419645A (en) * 2011-10-28 2012-04-18 汉王科技股份有限公司 Method and device for inputting Chinese characters in combined mode and palm terminal
CN102693090A (en) * 2012-05-16 2012-09-26 刘炳林 Input method and electronic device
CN102768583A (en) * 2011-05-03 2012-11-07 中国移动通信集团公司 Intelligent portable device and method and device for filtering candidate characters input in sentence level for intelligent portable device
CN102929518A (en) * 2011-08-10 2013-02-13 丁万全 Virtual keyboard and information inputting method based on virtual keyboard of touch screen
CN103020253A (en) * 2012-12-20 2013-04-03 北京奇虎科技有限公司 Application search method and equipment
CN103631385A (en) * 2012-08-23 2014-03-12 北京搜狗科技发展有限公司 Method and device for screening candidate items in character input
CN104166462A (en) * 2013-05-17 2014-11-26 北京搜狗科技发展有限公司 Input method and system for characters
CN104216658A (en) * 2008-06-30 2014-12-17 上海触乐信息科技有限公司 Method for realizing hand writing stroke input on touch screen

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100569110B1 (en) * 2003-06-27 2006-04-07 주식회사 한국스테노 the method of a chinese character input by the form of collateral word
CN104216658A (en) * 2008-06-30 2014-12-17 上海触乐信息科技有限公司 Method for realizing hand writing stroke input on touch screen
CN102768583A (en) * 2011-05-03 2012-11-07 中国移动通信集团公司 Intelligent portable device and method and device for filtering candidate characters input in sentence level for intelligent portable device
CN102929518A (en) * 2011-08-10 2013-02-13 丁万全 Virtual keyboard and information inputting method based on virtual keyboard of touch screen
CN102419645A (en) * 2011-10-28 2012-04-18 汉王科技股份有限公司 Method and device for inputting Chinese characters in combined mode and palm terminal
CN102693090A (en) * 2012-05-16 2012-09-26 刘炳林 Input method and electronic device
CN103631385A (en) * 2012-08-23 2014-03-12 北京搜狗科技发展有限公司 Method and device for screening candidate items in character input
CN103020253A (en) * 2012-12-20 2013-04-03 北京奇虎科技有限公司 Application search method and equipment
CN104166462A (en) * 2013-05-17 2014-11-26 北京搜狗科技发展有限公司 Input method and system for characters

Also Published As

Publication number Publication date
CN104571586A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN104571587B (en) The method and apparatus screened to the upper screen candidate item of input method
CN104166462B (en) The input method and system of a kind of word
CN100555203C (en) Revise the system and method for input characters
US8077974B2 (en) Compact stylus-based input technique for indic scripts
CN102455845A (en) Character entry method and device
Abandah et al. Investigating hybrid approaches for Arabic text diacritization with recurrent neural networks
CN104571586B (en) Character input method and device
CN104571584B (en) Character input method and device
CN101577115A (en) Voice input system and voice input method
CN103246354B (en) Input method and the keyboard thereof of Chinese character is expressed with common language literal code
CN105260124B (en) Six button Chinese characters and English touch-screen slide input method
KR101559477B1 (en) System for Inputting Multilingual Using Hangul
CN104820503A (en) Chinese character input system integrating plurality of manners of spelling and encoding character patterns
CN106227363B (en) Accurate encoding of chinese characters and keyboard and input method on the basis of phonetic
CA2958684A1 (en) Lexical dialect analysis system
CA2619015A1 (en) Word recognition
CN110334348A (en) A kind of text method of calibration based in plain text
CN104598046B (en) First syllable code input method of Chinese character
CN110502128B (en) Chinese character multi-element input method and system
Manohar et al. Spellchecker for Malayalam using finite state transition models
CN109766015A (en) Chinese character Latin code inputting method
CN104951094B (en) A kind of five pattern input method of Chinese-character sound-shape
CN1135482C (en) Approximate speech search method for Chinese
Joshi et al. Input Scheme for Hindi Using Phonetic Mapping
CN108459735A (en) Phonetic double-click touch screen method for inputting pinyin

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
TR01 Transfer of patent right

Effective date of registration: 20220725

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right