[summary of the invention]
In view of this, be necessary to provide a kind of method of in computing machine, carrying out the literal input, to reach the purpose that improves text input speed.
In addition, also provide a kind of device that in computing machine, carries out the literal input, to reach the purpose that improves text input speed.
For achieving the above object, following technical scheme is proposed:
A kind of method of carrying out the literal input in computing machine comprises:
A, at least two input patterns of setting are according to the corresponding subject term storehouse of described input pattern structure;
B, switch current input pattern;
C, in the subject term storehouse of current input pattern correspondence, obtain alternative words according to input information;
D, described alternative words is sorted the word that input is selected in alternative word tabulation in described alternative word tabulation;
The historical information of E, recording user input;
Switching current input pattern among the described step B specifically comprises: will give tacit consent to the input pattern of setting input pattern or last time and be made as current input pattern;
Calculate the quantity that the user hits word in the subject term storehouse of each input pattern correspondence according to described historical information, obtain word and be hit the input pattern that quantity reaches the subject term storehouse correspondence of setting value;
The input pattern of described acquisition is set to current input pattern.
Preferably, after the described step C, also comprise before the step D:
The subject term storehouse that puts in order successively to other input pattern correspondences according to degree of relevancy conducts interviews, and obtains alternative words.
Preferably, also comprise after the described step e:
Obtain user's input habit and, create personalized information data in view of the above according to described historical information the access frequency of each dictionary, with described data upload to server.
Preferably, also comprise after the described step D:
Judge whether new input information, if do not have then to select follow-up coupling word in the subject term storehouse of current input pattern correspondence according to the word of described input; Then return execution in step C if having.
Wherein, mate specifically in the subject term storehouse of current input pattern correspondence according to the word of described input and comprise:
In the subject term storehouse of current input pattern correspondence, match follow-up word according to the verbal association strategy.
Wherein, described steps A also comprises:
Under described input pattern, set at least two sub-input patterns;
According to the corresponding subject term storehouse of described sub-input pattern structure.
Wherein, described step C specifically comprises:
C1, input alphabet string;
C2, in the subject term storehouse of current input pattern correspondence, carry out participle, coupling according to described alphabetic string.
A kind of device that carries out the literal input in computing machine comprises:
Dictionary is used for according to two corresponding subject term storehouses of input pattern structure setting at least;
Handover module is used to switch current input pattern;
Select the speech module, be used for obtaining alternative words in the subject term storehouse of current input pattern correspondence according to input information; Also be used for described alternative words is sorted in the alternative word tabulation word that input is selected in described alternative word tabulation;
Logging modle is used for the historical information that recording user is imported;
Described handover module is specially the automatic switchover module, and described automatic switchover module comprises:
Initialization module, the input pattern that is used for setting acquiescence input pattern or last time is set to current input pattern;
Matching module is used for calculating the quantity that the user hits the subject term storehouse word of each input pattern correspondence according to the historical information of described logging modle, obtains word and is hit the input pattern that quantity reaches the subject term storehouse correspondence of setting value;
Adjusting module is adjusted into the input pattern that described matching module obtains with the current input pattern of described initialization module setting.
Preferably, this device also comprises:
Reporting module is used for obtaining user's input habit and to the access frequency of each dictionary, creating personalized information data in view of the above according to the historical information of described logging modle record, and described personalized information data is uploaded onto the server.
As can be seen from the above technical solutions, at first, the inventive method just makes up different subject term storehouses according to different input patterns when making up dictionary, and the subject term storehouse employing of each input pattern correspondence is different selects the speech strategy.Then, the user can select suitable input pattern according to the actual needs of oneself, can improve the hit probability of first-selected speech so that the user can use the different speech strategies that select in different input operations, has improved text input speed.
[embodiment]
Be described in detail below in conjunction with specific embodiment and Figure of description.
A kind of method of carrying out the literal input in computing machine as shown in Figure 1, may further comprise the steps:
S101, at least two input patterns of setting are according to the corresponding subject term storehouse of described input pattern structure.
The input pattern different, for example " register pattern ", " science pattern ", " chat pattern " or the like according to different input requirements set.Can also set sub-input pattern below each load module, for example under " science pattern ", can set " mathematic(al) mode " and " multiplicative model " or the like.According to input pattern, construct corresponding subject term storehouse accordingly, for example corresponding to " register pattern " structure " name dictionary ", corresponding to " science pattern " structure " science dictionary " or the like.
S102, switch current input pattern.Wherein, current input pattern is the current input pattern that is using of user, for example, if the user uses " register pattern ", then " register pattern " is current input pattern, if the user uses " mathematic(al) mode ", then " mathematic(al) mode " is current input pattern.
Select different input patterns for difference input scene.For example when creating a register, no matter be in which application program, to write register, all switch enter " register pattern ", under this pattern, use corresponding subject term storehouse " name dictionary " and the supporting word algorithm that selects thereof, the preferential speech of selecting in " name dictionary ", combination of selecting speech strategy surname, name and name can be preferential commonly used of adopting in " name dictionary " can improve the hit probability of first-selected speech.
Select suitable input pattern for use, can improve the hit probability of first-selected speech, improved text input speed so that the user can use the different speech strategies that select according to the input needs of real work.
S103, in the subject term storehouse of current input pattern correspondence, obtain alternative words according to input information.
This input information can be the alphabetic string information with the input of phonetic form; Also can be with the information of stroke as input, for example five; Also with the information of image as input, for example hand-written version, even with voice as the information of importing.
Use different input patterns to distinguish user's input demand, therefore dictionary and word are wherein needed selectivity.At first, different pattern correspondences different dictionaries, need so a kind ofly to select word algorithm to decide how from dictionary, word to be chosen.For example,,, then should preferentially select " Riemann's guess " if under mathematic(al) mode, and then determine that " Zhang Xiaoming " should not be in the mathematics dictionary as a speech and look for (is not the mathematician because of him) for input " Zhang Xiaoming has proved Riemann's guess "." hanshuzhizhen " should corresponding " function pointer " when writing software development class document for another example, then should corresponding " functional value is true " when writing the mathematics document or " functional value pin (to) ".
S104, described alternative words is sorted the word that input is selected in alternative word tabulation in described alternative word tabulation.After dictionary chooses alternative words, can each alternative word be sorted according to the order of choosing, in the visual interface of alternative word, show then, after the user selects, selecteed word is input in the application program of current operation and goes.
Embodiment one
The inventive method preferred embodiment in, after in according to the subject term storehouse of input information, obtaining alternative words in current input pattern correspondence, except that the subject term storehouse of the current input pattern correspondence of visit, also the subject term storehouse that puts in order successively to other input pattern correspondences according to degree of relevancy conducts interviews, obtain alternative words, and then the alternative words that will obtain in all dictionaries sorts in alternative word tabulation, and the word that will select in described alternative word tabulation is imported.
Like this, when selecting an input pattern, in fact each input pattern correspondence the tabulation of dictionary, the user is switched the different pattern that enters, and by each dictionary in the different prioritization of access dictionary tabulations, realizes the ordering of alternative word.Certainly, arranging in the dictionary of first priority in the dictionary tabulation is exactly the subject term storehouse of this input pattern correspondence, and follow-up dictionary carries out the arrangement of priority according to the degree of relevancy in itself and this subject term storehouse.The subject term storehouse of for example current input pattern correspondence is " a mathematics dictionary ", and comparatively relevant with it so " physics dictionary ", the priority of " chemical dictionary " are also higher.
Present embodiment utilizes the subject term storehouse corresponding with current input pattern at first as much as possible, and sort algorithm also considers to enlarge the coverage of alternative word, avoid that speech in certain dictionary arranged too lean on after.Present embodiment can select the speech of other dictionaries to guarantee the alternative word coverage, can improve the accuracy of alternative word ordering so on the one hand, because a kind of input pattern may also need to use the dictionary under other patterns down; In addition can also to remove utilization rate preferably very high but obviously do not meet the speech of present mode in the aspect.
The method of switching current input pattern comprises manual the switching and the automatic switchover dual mode, and this dual mode is corresponding to following embodiment two and embodiment three.
Embodiment two
In the present embodiment, select current input pattern specifically to comprise among the step S102: the input pattern that at first receives user's input is selected information, and the input pattern in the described then selection information is set to current input pattern.
Selection input information according to the user switches current input pattern.User's selection input information is provided with by the user is manual, and following dual mode is generally arranged:
Mode one:, use shortcut to import selection information, to select corresponding input pattern by shortcut is set.
Mode two: choose the selection information of importing with mouse by clicking " setting " menu.
Embodiment three
Present embodiment is based on embodiment one input pattern of realizing automaticallying switch, promptly based on the embodiment in the subject term storehouse that can visit a plurality of input pattern correspondences.In the present embodiment, can import according to the input pattern of acquiescence when beginning to import, recording user is finally selected to import maximum to be word below the subject term storehouse of that input pattern correspondence, to count the input pattern of the maximum subject term storehouse correspondence of selected word as current input pattern then after setting-up time arrives in back to back one section setting-up time.
At first, the current input pattern of initialization, give tacit consent to input pattern or last time input pattern be set to current input pattern.
User according to record imports historical information and mates then, by calculating the quantity that the user hits word in the subject term storehouse of each input pattern correspondence, obtains word and is hit the input pattern that quantity reaches the subject term storehouse correspondence of setting value;
The input pattern that above-mentioned coupling is obtained is made as current input pattern at last.That is to say that if above-mentioned setting value is made as 10 as long as be hit 10 words in a subject term storehouse, just its corresponding input pattern is set to current input pattern.
The word that present embodiment can be imported according to the user automatically mates in each subject term storehouse, judge that the user is many to the word of which dictionary selection, promptly automatically switch to corresponding input pattern, to provide most probable to be fit to the input pattern of user's request, simplified operating process, used more convenient.
Embodiment four
For the historical information of user's input of writing down among the embodiment three, obtained the customized information that the user uses computer thereby can also gather.
In the present embodiment, at first, the historical information of recording user input after step S104;
Then, obtain user's input habit and, create personalized information data in view of the above according to described historical information the information such as access frequency of each dictionary, and under the situation that the user allows, described personalized information data is uploaded onto the server, upgrade the user personalized information database.
Embodiment five
In the methods of the invention, obtain after word imports, new input information can also be used as in the word of selecting input and obtain follow-up word according to input information.For example, input Pinyin " zaoshang " alphabetic string is obtained literal " morning " afterwards, " morning " can be obtained follow-up word as new input information, such as " good " or the like.Below in conjunction with input information is the embodiment of alphabetic string, and a comparatively complete embodiment is provided.
(1), sets at least two input patterns, according to the corresponding subject term storehouse of described input pattern structure;
(2), switch current input pattern, input alphabet string;
(3), carry out participle, coupling according to described alphabetic string in the subject term storehouse of current input pattern correspondence.In the subject term storehouse of current input pattern correspondence, obtain alternative words according to input information;
(4), described alternative words is sorted in alternative word tabulation, will in described alternative word tabulation, import by selecteed word.
(5) judge whether new alphabetic string (input information) input, if do not have then to select follow-up coupling word according to the word of described selection input in the subject term storehouse of current input pattern correspondence, this process can be carried out repeatedly, to make things convenient for the input of long sentence; If new alphabetic string (input information) input is arranged, then return execution in step (3), until having new alphabetic string input or input operation process to finish.
In the methods of the invention, can in the subject term storehouse of current input pattern correspondence, match follow-up word according to strategies such as verbal association strategy, fuzzy sound strategies.
Present embodiment the input word after with word as new input information, and visit the subject term storehouse of current input pattern correspondence with this new input information, because that adopts that current input pattern is complementary in this dictionary selects the speech strategy, therefore can match follow-up word more rapidly, exactly, improve the speed of literal input greatly.
With reference to figure 2, a kind of device that carries out the literal input in computing machine mainly comprises dictionary, handover module and selects the speech module.
Dictionary is used for according to two corresponding subject term storehouses of input pattern structure setting at least.In dictionary, the input pattern different, for example " register pattern ", " science pattern ", " chat pattern " or the like according to different input requirements set.Can also set sub-input pattern below each load module, for example under " science pattern ", can set " mathematic(al) mode " and " multiplicative model " or the like.According to input pattern, construct corresponding subject term storehouse accordingly, for example corresponding to " register pattern " structure " name dictionary ", corresponding to " science pattern " structure " science dictionary " or the like.
Handover module is used to switch current input pattern.Select different input patterns for difference input scene.For example when creating a register, no matter be in which application program, to write register, all switch enter " register pattern ", under this pattern, use corresponding subject term storehouse " name dictionary " and the supporting word algorithm that selects thereof, the preferential speech of selecting in " name dictionary ", combination of selecting speech strategy surname, name and name can be preferential commonly used of adopting in " name dictionary " can improve the hit probability of first-selected speech.
Select the speech module, be used for obtaining alternative words in the subject term storehouse of current input pattern correspondence according to input information; Also be used for described alternative words is sorted in the alternative word tabulation word that input is selected in described alternative word tabulation.
This input information can be the alphabetic string information with the input of phonetic form; Also can be with the information of stroke as input, for example five; Also with the information of image as input, for example hand-written version, even with voice as the information of importing.
Use different input patterns to distinguish user's input demand, therefore dictionary and word are wherein needed selectivity.At first, different pattern correspondences different dictionaries, need so a kind ofly to select word algorithm to decide how from dictionary, word to be chosen.For example,,, then should preferentially select " Riemann's guess " if under mathematic(al) mode, and then determine that " Zhang Xiaoming " should not be in the mathematics dictionary as a speech and look for (is not the mathematician because of him) for input " Zhang Xiaoming has proved Riemann's guess "." hanshuzhizhen " should corresponding " function pointer " when writing software development class document for another example, then should corresponding " functional value is true " when writing the mathematics document or " functional value pin (to) ".
After dictionary chooses alternative words, can each alternative word be sorted according to the order of choosing, in the visual interface of alternative word, show then, after the user selects, the word of selecting is input in the application program of current operation and goes.
In a preferred embodiment, the device that carries out the literal input in computing machine also comprises logging modle, is used for the historical information of recording user input; And
Reporting module is used for obtaining user's input habit and to the access frequency of each dictionary, creating personalized information data in view of the above according to the historical information of described logging modle record, and described personalized information data is uploaded onto the server.
The historical information of recording user input at first.Then, obtain user's input habit and, create personalized information data in view of the above according to described historical information, and under the situation that the user allows, described data upload to server, is upgraded the user personalized information database the information such as access frequency of each dictionary.
In computing machine, carry out in the device of literal input, switch unit manual switchover module and/or automatic switch unit, switch unit can only be provided with manual switchover, and automatic switchover can only be set; Manual switchover and automatic switchover dual mode can also be set simultaneously, and the user can select wherein a kind of switching mode to switch current input pattern as required.
When handover module was the manual switchover module, described manual switchover module was used to receive the input pattern selection information of user's input; The input pattern that also is used for described selection information is set to current input pattern.
Selection input information according to the user switches current input pattern.User's selection input information is provided with by the user is manual, and following dual mode is generally arranged:
Mode one:, use shortcut to import selection information, to select corresponding input pattern by shortcut is set.
Mode two: choose the selection information of importing with mouse by clicking " setting " menu.
When handover module specifically was the automatic switchover module, the automatic switchover module comprised:
Initialization module, the input pattern that is used for setting acquiescence input pattern or last time is set to current input pattern;
Matching module is used for calculating the quantity that the user hits the subject term storehouse word of each input pattern correspondence according to the historical information of described logging modle, obtains word and is hit the input pattern that quantity reaches the subject term storehouse correspondence of setting value;
Adjusting module is adjusted into the input pattern that described matching module obtains with the current input pattern of described initialization module setting.
The word that automatic switch unit can be imported according to the user automatically mates in each subject term storehouse, judge that the user is many to the word of which dictionary selection, promptly automatically switch to corresponding input pattern, to provide most probable to be fit to the input pattern of user's request, simplified operating process, used more convenient.
The above embodiment has only expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.