Embodiment
The invention provides a kind of intelligent association input system, can be applied on all kinds of fields that need input characters, as computer, PDA, mobile phone, embedded system etc., it adopts special association function, by also association concluded in the universally recognized various meanings of word are identical or close in people's daily life phrase or short sentence, to strengthen the new word function of input system.
With reference to shown in Figure 1, this input system comprises: load module 1, corpus 2, association module 3, output module 4 and central processing unit 5.Control the transmission of mutual work of each functional module and signal respectively by central processing unit 5, make and literal output in some way after processing procedures such as decoding, association's search of being imported allow the user can in wider corpus, search out related target text.
In the present invention, described load module 1 is used for input characters, and this literal comprises individual character or word or sentence.This load module 1 can be keyboard, as digitizing keyboard or keyboard with touch screen, has several signs that the enter key of kinds of characters is arranged on the load module 1, sends instruction or input characters by the corresponding enter key of thump to input system.Character on the described enter key can be provided with according to the difference of system language, and described character can be selected from one or more in letter, numeral, the symbol.
Described corpus 2 is used to store several literal, and this literal comprises individual character or word or sentence.Be provided with several meaning of word signature identifications in each literal, in meaning of word signature identification, this meaning of word signature identification is used for the meaning of word relation between mark or character and the literal.
Described meaning of word signature identification can define in the attribute of literal, definable several literal identical, close, upper, the next or relevant with the meaning of word of this literal during several meaning of word mark sheets are known.As in phrase " computer ", during the same characteristic features table was known, the literal that has identical or the close meaning of word with this phrase comprised: computing machine, notebook etc.Certainly, be not that all literal all have the literal of all above-mentioned incidence relations.Wherein, described literal can be the combination of different word lengths such as word, phrase or sentence, and described literal can be the literal of any language, preferred Chinese character.According to the difference of system applies language, can store the literal of different language in the corpus 2.
Described association module 3 searches out the literal relevant with this meaning of word according to the meaning of word of the literal of described load module input from corpus.Association module 3 comprises coordination meaning of word association module, upper meaning of word association module, the next meaning of word association module, relevant meaning of word association module.Wherein, coordination meaning of word association module is used for searching out the literal identical or close with this meaning of word according to the meaning of word of the literal of described load module input from corpus; Similarly, upper meaning of word association module is used for the meaning of word according to the literal of described load module input and searches out relatively from corpus that this literal has the literal of the upper meaning of word; The next meaning of word association module is used for the meaning of word according to the literal of described load module input and searches out relatively from corpus that this literal has the literal of the next meaning of word; Relevant meaning of word association module is used for searching out the literal that is associated with this meaning of word from corpus according to the meaning of word of the literal of described load module input.Is ferret out by each association module 3 with the meaning of word of literal, uses specific index rule to extract corresponding literal from corpus 2, and it is offered the user as the candidate, therefrom chooses desirable literal and output shows for the user.
Described output module 4 is used for the literal that described association module 3 searches out is outputed to display device, extracts any one group of literal output for the user from the alternatives that includes several literal.The mode of described output can be literal output or voice output.When the way of output is literal output, be about to literal and be presented on the display device; When the way of output is voice output, the target text that people are selected plays back, and people can select variety of way to export selected destination object.
In a preferred embodiment of the invention, intelligent association input system also further comprises decoder module, described decoder module 2 is used to receive the code of the sign literal that is transmitted by load module 1, with its analysis of decoding, and decoded result is submitted to association module 3 carry out the association type search.
In another preferred embodiment of the present invention, intelligent association input system also further comprises display device, is used to show several literal of being exported by output module 4, therefrom chooses for the user.Described display device can be display screen.
In the present invention, described association module adopts the index rule to search at corpus according to the meaning of word of the literal of being imported.Described index rule comprises meaning of word association rule and combination association rule, and the index rule can be provided with on operation interface or revise.Wherein, described meaning of word association rule is that the literal meaning with the literal of being imported is a search for, adopts mode signature identification according to literal in corpus of associating to search out the literal that several are associated with the literal of being imported.For example, if the literal of being imported is: " wife ", when adopting described meaning of word association rule to carry out the corpus index, with its literal meaning as search for, can find out the different phrases that the meaning of word is identical or close with it such as " madam ", " Mrs ", " wife " as alternatives, choose suitable destination object therein arbitrarily by people.Described literal can be the literal or the symbol combination of different word lengths, can pass through any form performance such as word, phrase or short sentence, and described literal meaning is the implication of whole literal, and the implication of each single character in non-legible.Adopt the index rule of meaning of word association rule, not only widened and selected the speech scope, and enriched the style of writing style, can help people to choose suitable technical term or life term according to different term environment as input system.
In the present invention, described meaning of word association rule includes appositive concept variant association rule, upperseat concept association rule, subordinate concept association's rule and related notion association rule.
Wherein, described coordination meaning of word association module adopts appositive concept variant association rule to carry out the corpus index, have synonym or near synonym association function, can be according to the literal meaning of institute's input characters, the signature identification according to literal in corpus finds out the literal (as phrase or short sentence) identical or close with the meaning of word (or meaning of a word) of this literal.For example: when input characters was " cook ", the literal that generates through the association of appositive concept variant had: cook, cook, mess cook, cook, blister fourth, army cook etc., people can therefrom choose in the adaptive literal with output.
Similarly, described upper meaning of word association module adopts upperseat concept association rule to carry out the corpus index, association function with upperseat concept, can be according to the literal meaning of institute's input characters, signature identification according to literal in corpus finds out the literal (as phrase or short sentence) of its upperization relatively, promptly refer to compile of the same clan or similar item and blanket notion, or based on the notion of the blanket plural item of certain common property.For example, when input characters was " cook ", the literal that generates through the upperseat concept association had: occupation, work etc., people can therefrom choose in the adaptive literal with output.
Similarly, described the next meaning of word association module adopts subordinate concept association rule to carry out the corpus index, association function with subordinate concept, can be according to the literal meaning of institute's input characters, signature identification according to literal in corpus finds out the literal (as phrase or short sentence) of its nextization relatively, and the promptly relative literal of importing is notion more specifically.For example, when input characters was " cook ", the literal that generates through the subordinate concept association had: red board, white board etc., people can therefrom choose in the adaptive literal with output.
Similarly, described relevant meaning of word association module adopts related notion association rule to carry out the corpus index, association function with meaning of word related term, for example, when input characters is " cook ", the literal that generates through the related notion association has: culinary art, food and drink, diet, cuisines, restaurant etc., people can therefrom choose in the adaptive literal with output.
According to the meaning of word difference of each literal, the literal that adopts different association module to use different meaning of word associations rule to be searched out is also different.Certainly, if adopt two kinds or above meaning of word association rule simultaneously, association module is carried out the corpus index respectively, two or more sets literal that then will search out at various meaning of word associations rule.As when choosing appositive concept variant association rule and related notion association rule, when input characters is " cook ", then have: cook, cook, mess cook, cook, blister fourth, army cook through the literal that the appositive concept variant is associated and the related notion association forms; Culinary art, food and drink, diet, cuisines, restaurant etc.
In described corpus, the various meaning of word signature identifications that are provided with in literal are regular corresponding with the association of the specific meaning of word respectively, promptly in meaning of word signature identification, when definition adopts the specific meaning of word association rule of different meaning of word association module utilizations to carry out the corpus search respectively, has the relation between the literal of the related meaning of word.
At different meaning of word association rules, same literal will be associated with different literal combinations.Each signature identification characterizes with character or code.This meaning of word signature identification is used for the meaning of word relation between mark or character and the literal, and described association module searches out the relevant literal of importing with described load module of the literal meaning of word from corpus by meaning of word signature identification.The user can select various associating modes.
When selecting the association of the upper meaning of word regular, with literal " TV " is example, if the upper meaning of word of " TV " is designated 11,, thereby includes the upper meaning of word in the attribute of literal such as household electrical appliances, electrical equipment and be designated 11 because literal such as household electrical appliances, electrical equipment are the upper meaning of word speech of " TV ".When load module input characters " TV ", upper meaning of word association module searches out literal such as household electrical appliances with upper meaning of word sign 11, electrical equipment from corpus according to the upper meaning of word sign 11 of " TV ".The literal that described output module searches out upper meaning of word association module is according to the order output of successively decreasing with the degree of closeness of the upper meaning of word of described input characters.The degree of closeness of this upper meaning of word can indicate in the attribute of literal.If literal " household electrical appliances " is than literal " electrical equipment " during more near the upper meaning of word of " TV ", if the degree of closeness of upper meaning of word sign is 3 in the attribute of literal " household electrical appliances ", then the degree of closeness of upper meaning of word sign is 2 in literal " electrical equipment " attribute, the big more expression degree of closeness of numeral that the degree of closeness of the upper meaning of word indicates is big more, promptly represent like this literal " household electrical appliances " than literal " electrical equipment " more near the upper meaning of word of " TV ".Described output module is according to the sign in literal " household electrical appliances ", " electrical equipment " attribute, first output character " household electrical appliances ", and back output character " electrical equipment ", promptly literal " household electrical appliances " is arranged in the front of literal " electrical equipment " for the user candidate on the display.
When selecting the association of the next meaning of word regular, if the next meaning of word of " TV " is designated 22, because literal such as LCD TV, flat panel TV, Digital Television are the next meaning of word speech of " TV ", thereby include the upper meaning of word in the attribute of literal such as LCD TV, flat panel TV, Digital Television and be designated 22.When load module input characters " TV ", the next meaning of word association module searches out literal such as LCD TV with the next meaning of word sign 22, flat panel TV, Digital Television from corpus according to the next meaning of word sign 22 of " TV ".The literal that described output module searches out the next meaning of word association module is according to the order output of successively decreasing with the degree of closeness of the next meaning of word of described input characters.The degree of closeness of this next meaning of word also can indicate in the attribute of each literal or define, and method can be regular with reference to the association of the upper meaning of word, just repeats no more here.
When selecting coordination meaning of word association rule, with literal " wife " be example, if literal " wife " the coordination meaning of word be designated 33, since literal such as wife, interior people, young married woman with " wife " and the meaning of word identical or close, thereby the attribute kit of literal such as wife, interior people, young married woman contains the coordination meaning of word and identifies 33.When the load module input characters " wife " time, coordination meaning of word association module according to " wife " and coordination meaning of word sign 22 from corpus, search out literal such as the wife with coordination meaning of word sign 22, interior people, young married woman.The literal that described output module searches out coordination meaning of word association module, according to the order of the successively decreasing output of the degree of closeness of the meaning of word of described input characters, method can just repeat no more here with reference to upper meaning of word association rule.
It is a kind of association's rule commonly used that rule is associated in described combination, and it as search for, searches out several phrases that can be combined into speech with it mutually, short sentence or commonly used collocation combination with last character in the literal of being imported.For example, if the literal of being imported is: " wife ", when then adopting combination association rule to carry out the corpus index, with the last character in this phrase is search for, can find out the combination that several can be combined into speech or habitual collocation with " son ", as " woman ", " bullet ", " grandson ", " younger brother " or the like, from these literal, choose suitable target by people according to the wish of oneself and come and group of text compound word of being imported and output.Adopt combination association rule can find out apace and can be combined into speech or habitual collocation, it as alternatives, is chosen desirable target for people and come the combined and output with institute's input characters, can significantly improve the output efficiency of literal with institute's input characters.
With reference to shown in Figure 2, in one embodiment of the invention, with the intelligent association input system that is applied in the computer is example, be provided with in the interface in input system, the user can set up on their own as required shortcut, association function definition, candidate's page turning of shortcut that Chinese and English switches, association's mode switch shortcut, whether the function of " deciding word with speech " etc. is set.Wherein, in the function setting that Chinese and English switches, the shortcut that the character keys on the keyboard is switched as Chinese and English can be selected whether to enable, and any one shortcut that switches as Chinese and English among character keys " Shift ", " Ctrl ", " Alt " and " Tab " can be selected arbitrarily; In the function setting that association module is switched, character keys on the keyboard can be selected whether to enable as the shortcut that switches between combination association's pattern and the meaning of word association pattern, and any one shortcut among character keys " Shift ", " Ctrl ", " Alt " and " Tab " can be selected arbitrarily as association's mode switch; In meaning of word association mode-definition, can choose one or morely as association's pattern from " association of appositive concept variant ", " upperseat concept association ", " subordinate concept association " and " related notion association " four in the meaning of word association pattern arbitrarily, input system is carried out input operation under this single or compound association pattern.In the definition of candidate's page-turning function, can from the various character keys that Fig. 2 indicated, choose one or more shortcuts as page turning.
Deciding word with speech is to import individual character in the mode of speech, to reduce repeated code, saves the selected trouble of page turning, to simplify input process.For example, import " force " word, " force, nothing, noon, five, thing, affair ... " a lot of alternative words then can appear in input Pinyin coding " wu ".If input coding " wuhan " or " wuh " (equivalent " Wuhan "), " [" can import " the last screen of force " word is by "] " the then back word of key " Chinese " to decide the word shortcut in order to speech again.In input system of the present invention is set, enabling when decide the function of word with speech, can choose any one word in the phrase by the character keys that sets, help the literal that people export apace to be needed, with raising literal input efficiency.Certainly, unrestricted as being provided with of shortcut, can from keyboard, choose the shortcut of any character key according to people's use habit as a certain function.
With reference to shown in Figure 3, the present invention also provides a kind of method that adopts described intelligent association input system to import:
Step 1) is by the load module input characters;
Step 2) from corpus, searches out the literal relevant by association module according to the meaning of word of the literal of described load module input with this meaning of word;
Step 3) outputs to display device by output module with the literal that described association module searches out, and selects input for the user.
Wherein, further comprising the steps of before described step 1): that the literal in the described corpus is provided with meaning of word signature identification, this meaning of word signature identification is used for the meaning of word relation between mark or character and the literal, described step 2) from corpus, search out the literal relevant by described meaning of word signature identification with the literal meaning of word of described input.
Wherein, in step 11), at first being provided with in the interface of input system, respectively the shortcut of the shortcut of the shortcut that Chinese and English is switched, association's mode switch, association function definition, candidate's page turning, whether systemic-functions such as " deciding word with speech " be set be provided with.Select whether to adopt meaning of word association rule to carry out the corpus index by association's mode switch shortcut, define by association function and to select to adopt any kind of meaning of word association rule, the association of the corresponding respectively corresponding meaning of word of each association module is regular, described meaning of word association rule includes appositive concept variant association rule, upperseat concept is associated rule, subordinate concept association's rule and related notion association rule, selectes certain meaning of word association rule by the interface that is provided with of input system.
Then, in step 12), by load module 1 input characters, described load module 1 can be keyboard, as digitizing keyboard or keyboard with touch screen etc., there are several signs that the enter key of kinds of characters is arranged on the load module 1, send instruction or input characters by the corresponding enter key of thump to input system.Character on the described enter key can be provided with according to the difference of system language, and described character can be selected from one or more in letter, numeral, the symbol.
Then, in step 13), decode, encode to change into unicode, and transmit it in the association module 3, search for according to the index rule of choosing by association module 3 by decoder module 2 reception literal and to it.
In step 2) in, further may further comprise the steps:
Step 21) judge the type of the literal imported:
When step 21a) being symbol or numeral, then do not search for, directly will export by screen on it as if literal;
When step 21b) being literal, then call corpus search as if literal; Change step 22)
Step 22) in corpus 2, extracts several literal that are associated with described literal by the index rule of setting;
In step 22) in, the association module 3 execution index rules of input system, described association module comprises chooses any one kind of them in coordination meaning of word association module, upper meaning of word association module, the next meaning of word association module and the relevant meaning of word association module or multiple, be provided with signature identification in the literal, described a certain association module reads the signature identification of institute's input characters, discern by code, and in corpus, search out the literal that has incidence relation with this signature identification signature identification.Illustrate, if adopt appositive concept variant association rule, the then association module 3 related phrase of signature identification in 1. that will extract the corresponding literal of being imported, and output demonstration chosen for people.
At this moment, if during the selected meaning of word association function of user, then input system is given tacit consent to this index rule and is combination association rule.No matter be to set combination association rule, still any one or the association of the multiple meaning of word are regular, and input system all according to the index rule that sets, is called corpus information, searches out the some groups of literal that are associated with the literal of being imported in corpus.At different language, call different corpus, and according to the literal difference of being imported, the quantity of information of the literal that finds out is also with different under the particular index rule.
In a preferred embodiment of the invention, in the alternatives that under same index rule, is searched out, sort according to descending with the degree of closeness of its meaning of a word.For example, when carrying out the association type search according to appositive concept variant association rule, for input characters " mobile phone ", the alternatives that is searched out sorts as follows by the descending of meaning of a word degree of closeness: mobile phone, portable phone, cell-phone etc.Like this, can find the related phrase that meets search condition most more apace for people
In step 3), also can further may further comprise the steps:
Step 31) user's selected target scheme from described literal; If when exporting in the mode of literal, mode selected generally has two kinds, one, the required target protocol of locking on output module is as the cursor on the moving screen; Its two, the required target protocol of locking locks required target protocol as the cooperation by the character keys on the keyboard on load module, comes each literal is indicated by numerical key usually, can the selected target scheme by numerical key.When the literal of being exported is too much, can search by the shortcut that page turning is searched, to improve the efficient of literal output.
Step 32) selected target protocol is selected to export demonstration in the mode that continues or replace.If export in the mode that continues, then this target protocol shows in the back of screen cursor if export in the mode of replacing, and then this target protocol will be replaced the literal at screen cursor place.Usually, when selecting combination association pattern as the index rule, then input system default objects scheme is exported in the mode that continues and is shown and when selecting meaning of word association pattern as the index rule, then input system default objects scheme is exported demonstration in the mode of replacement.After finishing this literal output, can reenter in the next incoming task, repeat abovementioned steps.
Compared with prior art, intelligent association input system of the present invention and input method thereof have following some advantage:
1) the present invention comes association to import the literal that is associated with this literal meaning of word by the meaning of word of input characters, compare with traditional input method association rule, described meaning of word association rule mainly with the literal meaning of literal as search for, adopt the mode of association in corpus, to search out several literal associated therewith, it is conceptual network association to language polymerization aspect, the degree of depth and the range of input method association had both been promoted, also strengthened the new word function of input system, enriched the style of writing style, but not be confined to linearity association horizontal on the language combination aspect, be a quantum jump in character input method field;
2) the invention allows for several meanings of word and associate rule, as coordination notion variant association rule, upperseat concept association rule, subordinate concept association's rule and related notion association rule, various associations rule has different characteristics respectively, can launch meaning of word association to literal in all directions from the synonym of literal, nearly justice, upperseat concept, subordinate concept and the various angles of related notion; Simultaneously, each associates regular separate setting, can freely choose the regular combination of one or more associations as required for the user literal of being imported is carried out the association type index, accurately choose technical term or the life common saying that adapts to the different language environment to help the user
3) on the way of output, because when adopting meaning of word association rule, the meaning of word of the related literal that is searched out may be identical with former input character/close/relevant, but its literal may be different fully with it, to this, adopted the mode of alternate form output in this input method, can select according to circumstances whether to replace former input character with the target text of choosing for the user, this alternate form way of output more be applicable to meaning of word association rule;
4) in the alternatives that is searched out according to same index rule, on output screen, sort, can find the related phrase that meets search condition most more apace for people according to descending with the meaning of a word degree of closeness of the literal of being imported.
5) this input system is on system's setting and method of operating, and is simple, easy to operate, and the change of existing relatively input method is little, and no matter in any input system, using all can very fast adaptation, satisfies people's use habit.
The above person of thought, it only is preferred embodiment of the present invention, when not limiting scope of the invention process with this, promptly the content of putting down in writing according to claim of the present invention and description of the invention has generally been done simple equivalent and is changed and modify, and all still belongs within the claim of the present invention institute covering scope.