CN102236420A - Method and device for loading word and method and device for adjusting word - Google Patents

Method and device for loading word and method and device for adjusting word Download PDF

Info

Publication number
CN102236420A
CN102236420A CN2010101581263A CN201010158126A CN102236420A CN 102236420 A CN102236420 A CN 102236420A CN 2010101581263 A CN2010101581263 A CN 2010101581263A CN 201010158126 A CN201010158126 A CN 201010158126A CN 102236420 A CN102236420 A CN 102236420A
Authority
CN
China
Prior art keywords
speech
solid top
order
appointment
tabulation
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.)
Pending
Application number
CN2010101581263A
Other languages
Chinese (zh)
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.)
Shenzhen Shiji Guangsu Information Technology Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN2010101581263A priority Critical patent/CN102236420A/en
Publication of CN102236420A publication Critical patent/CN102236420A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method and device for loading a word and a method and device for adjusting the word, and belongs to the field of computers. The method for loading the word comprises the following steps of: receiving a coded character string; acquiring top words corresponding to the coded character string and sequence of the top words from a preset top word list; and loading the top words into a blank candidate word list according to the sequence. The method for adjusting the word comprises the following steps of: receiving an adjusting command which carries a specified word; acquiring the coded character string corresponding to the specified word; and adjusting the word in the top word list according to the coded character string, the specified word and the adjusting command. The device for loading the word comprises a first receiving module, a first acquiring module and a first loading module. The device for adjusting the word comprises a second receiving module, a second acquiring module and an adjusting module. By adopting the methods and the devices, convenience can be brought for a user to input Chinese characters, and the position of the word is adjusted according to user need.

Description

A kind of method and device that loads speech and adjust speech
Technical field
The present invention relates to computer realm, particularly a kind of method and device that loads speech and adjust speech.
Background technology
The user is input to Chinese character in the computer with input in Chinese software usually.The process of input in Chinese software input Chinese character is: receive the coded string of user's input, this coded string can be forms such as phonetic or 5-stroke coding; In the coded string of from self, storing and the corresponding relation of speech, find out all speech of the coded string correspondence of reception,, each speech of searching is carried in the tabulation of candidate speech according to the frequency of utilization of each speech of searching.The user selects certain speech from the tabulation of candidate speech then, by input in Chinese software the speech that the user selects is input in the computer again.
In realizing process of the present invention, the inventor finds that there is following problem at least in prior art:
The user is when the input Chinese character, wish that the speech that oneself is commonly used is fixed on the front portion of candidate speech tabulation, but present input in Chinese software is loaded into each speech in the tabulation of candidate speech by frequency of utilization, so, import same coded string for the user, and the speech that at every turn is carried in the candidate speech tabulation front portion all might be different, and using to the user makes troubles.In addition, the user also can't be according to the speech in the needs adjustment candidate speech tabulation of oneself.
Summary of the invention
In order to bring convenience to the users and to adjust the position of the speech in the tabulation of candidate speech, the invention provides a kind of method and device that loads speech and adjust speech according to user's self needs.Described technical scheme is as follows:
A kind of method that loads speech, described method comprises:
The received code character string;
Obtain the order of the solid top speech and the described solid top speech of described coded string correspondence from the solid top speech tabulation that sets in advance, the speech tabulation of described solid top is used for the order of the solid top speech and the described solid top speech of memory encoding character string and its correspondence;
According to described order described solid top speech is carried in the blank candidate speech tabulation.
The described candidate speech that described top speech admittedly is carried in blank according to described order specifically comprises in tabulating:
If the number of described solid top speech is less than or equal to preset threshold value, then described solid top speech is carried in the candidate speech tabulation of described blank according to described order;
If the number of described solid top speech greater than described threshold value, then according to described order, is carried in described solid top speech in the candidate speech tabulation of described blank several times, and each described threshold value solid top speech that loads at most.
Described be carried in blank candidate speech tabulation by self order described solid top speech after, also comprise:
If it is full that described candidate speech tabulation does not load, from the speech tabulation, search corresponding speech according to described coded string, institute's predicate tabulation is used for the corresponding relation of memory encoding character string and speech;
From institute's predicate, remove solid top speech, with remaining speech as non-solid top speech;
In the tabulation of described candidate speech, the described non-top speech of consolidating is carried in after last solid top speech.
A kind of method of adjusting speech, described method comprises:
Receive and adjust order, the speech of appointment is carried in described adjustment order;
Obtain the speech corresponding codes character string of described appointment;
According to the speech of described coded string and described appointment and according to described adjustment order, adjust the speech in the speech tabulation of solid top.
Described adjustment order is for adding order, and the speech of appointment is carried in described interpolation order; Correspondingly,
Described according to the speech of described coded string and described appointment and according to described adjustment order, adjust the speech in the speech tabulation of solid top, specifically comprise:
According to described interpolation order, for the speech of described appointment is provided with order, with the sequential storage of the speech of the speech of the described appointment of described coded string correspondence and described appointment in the speech tabulation of described solid top.
Described for the speech of described appointment is provided with order, specifically comprise:
Search the speech tabulation of described solid top according to described coded string;
If find out the solid top speech of described coded string correspondence from the speech tabulation of described solid top, then the order of the speech of described appointment is set to after last solid top speech in the solid top speech of described coded string correspondence;
If do not find out the solid top speech of described coded string correspondence from the speech tabulation of described solid top, then the order of the speech of described appointment is set to first.
Described adjustment order is mandatum cassatorium, and the solid top speech of appointment is carried in described mandatum cassatorium; Correspondingly,
Described according to the speech of described coded string and described appointment and according to described adjustment order, adjust the speech in the speech tabulation of solid top, specifically comprise:
According to described mandatum cassatorium, from the speech tabulation of described solid top, search and delete the order of the solid top speech of the solid top speech of described appointment of described coded string correspondence and described appointment;
In the speech of the solid top of described coded string correspondence,, then the order of the solid top speech after the solid top speech that comes described appointment is made amendment if existence comes the solid top speech solid top speech afterwards of described appointment in proper order.
Described adjustment order is the reach order, and the solid top speech of appointment is carried in described reach order; Correspondingly,
According to the speech of described coded string and described appointment and according to described adjustment order, adjust the speech in the speech tabulation of solid top, specifically comprise:
From the described order of consolidating the solid top speech of the described appointment of searching described coded string correspondence the speech tabulation of top;
According to default reach threshold value and described reach order, adjust the order of the solid top speech of described appointment forward;
In the speech of the solid top of described coded string correspondence, will make amendment in the order of order before the adjustment of the solid top of described appointment speech and the solid top speech between the adjusted order.
Described adjustment order moves order after being, moves the solid top speech that appointment is carried in order after described; Correspondingly,
According to the speech of described coded string and described appointment and according to described adjustment order, adjust the speech in the speech tabulation of solid top, specifically comprise:
From the described order of consolidating the solid top speech of the described appointment of searching described coded string correspondence the speech tabulation of top;
According to move after default threshold value and described after move order, adjust the order of the solid top speech of described appointment backward;
In the speech of the solid top of described coded string correspondence, will make amendment in the order of order before the adjustment of the solid top of described appointment speech and the solid top speech between the adjusted order.
A kind of device that loads speech, described device comprises:
First receiver module is used for the received code character string;
First acquisition module, be used for obtaining from the solid top speech tabulation that sets in advance the order of the solid top speech and the described solid top speech of described coded string correspondence, the speech tabulation of described solid top is used for the order of the solid top speech and the described solid top speech of memory encoding character string and its correspondence;
First load-on module is used for according to described order described solid top speech being carried in blank candidate speech tabulation.
Described first load-on module specifically comprises:
First loading unit is less than or equal to preset threshold value if be used for the number of described solid top speech, then described solid top speech is carried in the candidate speech tabulation of described blank according to described order;
Second loading unit, if the number that is used for described solid top speech greater than described threshold value, then according to described order, is carried in described solid top speech in the candidate speech tabulation of described blank several times, and each described threshold value solid top speech that loads at most.
Described device also comprises:
Second load-on module, loading is full if be used for described candidate speech tabulation, searches corresponding speech according to described coded string from the speech tabulation, and institute's predicate tabulation is used for the corresponding relation of memory encoding character string and speech; From institute's predicate, remove solid top speech, with remaining speech as non-solid top speech; In the tabulation of described candidate speech, the described non-top speech of consolidating is carried in after last solid top speech.
A kind of device of adjusting speech, described device comprises:
Second receiver module is used for receiving and adjusts order, and the speech of appointment is carried in described adjustment order;
Second acquisition module is used to obtain the speech corresponding codes character string of described appointment;
Adjusting module is used for according to the speech of described coded string and described appointment and according to described adjustment order, adjusts the speech in the speech tabulation of solid top.
Described adjustment order is for adding order, and the speech of appointment is carried in described interpolation order; Correspondingly,
Described adjusting module specifically is used for according to described interpolation order, for the speech of described appointment is provided with order, with the sequential storage of the speech of the speech of the described appointment of described coded string correspondence and described appointment in the speech tabulation of described solid top.
Described adjusting module specifically comprises:
First searches the unit, is used for searching the speech tabulation of described solid top according to described coded string;
First is provided with the unit, if be used for finding out from the speech tabulation of described solid top the solid top speech of described coded string correspondence, then the order of the speech of described appointment is set to after last solid top speech in the solid top speech of described coded string correspondence;
Second is provided with the unit, if be used for not finding out from the speech tabulation of described solid top the solid top speech of described coded string correspondence, then the order of the speech of described appointment is set to first;
First storage unit is used for sequential storage with the speech of the speech of the described appointment of described coded string correspondence and described appointment in the speech tabulation of described solid top.
Described adjustment order is mandatum cassatorium, and the solid top speech of appointment is carried in described mandatum cassatorium; Correspondingly,
Described adjusting module specifically comprises:
Delete cells is used for according to described mandatum cassatorium, searches and delete the order of the solid top speech of the solid top speech of described appointment of described coded string correspondence and described appointment from the speech tabulation of described solid top;
First revises the unit, is used at the solid top of described coded string correspondence speech, if existence comes the solid top speech solid top speech afterwards of described appointment in proper order, then the order of the solid top speech after the solid top speech that comes described appointment is made amendment.
Described adjustment order is the reach order, and the solid top speech of appointment is carried in described reach order; Correspondingly,
Described adjusting module specifically comprises:
Second searches the unit, is used for searching from the speech tabulation of described solid top the order of solid top speech of the described appointment of described coded string correspondence;
The reach unit is used for adjusting the order of the solid top speech of described appointment forward according to default reach threshold value and described reach order;
Second revises the unit, is used at the solid top of described coded string correspondence speech, will make amendment in the order of order before the adjustment of the solid top of described appointment speech and the solid top speech between the adjusted order.
Described adjustment order moves order after being, moves the solid top speech that appointment is carried in order after described; Correspondingly,
Described adjusting module specifically comprises:
The 3rd searches the unit, is used for searching from the speech tabulation of described solid top the order of solid top speech of the described appointment of described coded string correspondence;
After move the unit, be used for according to move after default threshold value and described after move order, adjust the order of the solid top speech of described appointment backward;
The 3rd revises the unit, is used at the solid top of described coded string correspondence speech, will make amendment in the order of order before the adjustment of the solid top of described appointment speech and the solid top speech between the adjusted order.
As solid top speech, when the user repeatedly imported same coded string, the solid top speech with this coded string correspondence loaded in the blank candidate speech tabulation regularly at every turn, so brings convenience to the users by speech that the user is used always; In addition, receive the adjustment order that the user submits to, the speech of user's appointment is carried in this adjustment order, and obtain the speech corresponding codes character string of appointment, speech according to this coded string and appointment is ordered according to adjusting, adjust the speech in the speech tabulation of solid top, thereby realize adjusting the position of the speech in the tabulation of candidate speech, the position of so realizing adjusting the speech in the tabulation of candidate speech according to user's needs.
Description of drawings
Fig. 1 is a kind of method flow diagram that loads speech that the embodiment of the invention 1 provides;
Fig. 2 is the candidate speech tabulation synoptic diagram that the embodiment of the invention 2 provides;
Fig. 3 is a kind of method flow diagram that loads speech that the embodiment of the invention 2 provides
Fig. 4 is a kind of method flow diagram of adjusting speech that the embodiment of the invention 3 provides;
Fig. 5 is a kind of method flow diagram of adjusting speech that the embodiment of the invention 4 provides;
Fig. 6 is first kind of candidate speech tabulation synoptic diagram that the embodiment of the invention 4 provides;
Fig. 7 is second kind of candidate speech tabulation synoptic diagram that the embodiment of the invention 4 provides;
Fig. 8 is a kind of method flow diagram of adjusting speech that the embodiment of the invention 5 provides;
Fig. 9 is the synoptic diagram of first kind of candidate speech tabulation of providing of the embodiment of the invention 5;
Figure 10 is the synoptic diagram of second kind of candidate speech tabulation of providing of the embodiment of the invention 5;
Figure 11 is a kind of method flow diagram of adjusting speech that the embodiment of the invention 6 provides;
Figure 12 is the synoptic diagram of a kind of candidate speech tabulation that provides of the embodiment of the invention 6;
Figure 13 is a kind of method flow diagram of adjusting speech that the embodiment of the invention 7 provides;
Figure 14 is first kind of candidate speech tabulation synoptic diagram that the embodiment of the invention 7 provides;
Figure 15 is second kind of candidate speech tabulation synoptic diagram that the embodiment of the invention 7 provides;
Figure 16 is a kind of device synoptic diagram that loads speech that the embodiment of the invention 8 provides;
Figure 17 is a kind of device synoptic diagram of adjusting speech that the embodiment of the invention 9 provides.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
Embodiment 1
As shown in Figure 1, the embodiment of the invention provides a kind of method that loads speech, comprising:
Step 101: received code character string;
Step 102: from the solid top speech tabulation that sets in advance, obtain the solid top speech of this coded string correspondence and the order of being somebody's turn to do solid top speech;
Wherein, Gu speech tabulation in top is used for the solid top speech of memory encoding character string and its correspondence and the order of being somebody's turn to do solid top speech.
Step 103: the solid top speech that will obtain according to the order of obtaining is carried in the blank candidate speech tabulation.
In embodiments of the present invention, when the Chinese character of each certain coded string correspondence of input, all at first obtain the solid top speech of this coded string correspondence and the order of being somebody's turn to do solid top speech, and each solid top speech that all will obtain according to the order of obtaining earlier is carried in the blank candidate speech tabulation, so in the tabulation of candidate speech, Gu the invariant position of top lexeme before the speech of non-solid top and between each solid top speech, and solid top speech all is the speech that the user uses always, so, the speech of selecting self to use always to the user brings convenience.
Embodiment 2
The embodiment of the invention provides a kind of method that loads speech, wherein, the speech tabulation of solid top is set in advance, and this solid top speech tabulation is used for the solid top speech of memory encoding character string and its correspondence and the order of being somebody's turn to do solid top speech, and usually that frequency of utilization is higher speech is as solid top speech.Solid top speech tabulation as shown in table 1, the second row memory encoding character string " wo " of table 1 and the solid top speech " I " of its correspondence and the order " 1 " of solid top speech " I ".
Table 1
Coded string Gu top speech In proper order
wo I 1
wo {。##.##1}, 2
ba {。##.##1}, 1
ba {。##.##1}, 2
ba Father 3
chang Long 1
...... ...... ......
As shown in Figure 2, in the tabulation of candidate speech, the solid top speech of certain coded string correspondence is carried in before the non-solid top speech of this coded string correspondence, and identify each solid top speech by fixed signal, wherein, Gu the top speech is loaded in the tabulation of candidate speech by the order of self, and the order between each solid top speech can not change along with the change that makes frequency, thereby, when loading solid top speech in the tabulation of candidate speech, and the position of each solid top speech can not change along with the change of frequency of utilization.In the tabulation of candidate speech, the non-solid top speech of this coded string correspondence follows closely after last solid top speech.For example, in table 1, be respectively " 1 " and " 2 " for " I " and " " two the solid top speech of coded string " wo " correspondence and the order of these two solid top speech, two solid top speech " I " that coded string " wo " is corresponding and " " are carried in during blank candidate speech tabulates by self order respectively in the tabulation of the candidate speech of blank, and identify each solid top speech with two fixed signals respectively, the non-solid top speech that coded string " wo " is corresponding is respectively " nest ", " hold " and " crouching " etc., and in the tabulation of candidate speech, the non-solid top speech that coded string " wo " is corresponding is carried in last solid top speech " " afterwards, and the candidate speech tabulation that obtains as shown in Figure 2.
Referring to Fig. 3, this method specifically comprises:
Step 201: the coded string that receives user's input;
Further, behind the coded string that receives user's input, can also carry out normalizing operation to the coded string of user's input, for example, when coded string was the phonetic form, if the phonetic of user's input is wrong phonetic, then the phonetic to user's input carried out automatic error correction.Wherein, can adopt existing algorithm that the phonetic that the user imports is carried out normalizing operation, no longer do detailed description in the present embodiment.
Step 202: according to the coded string that receives, search the speech tabulation of solid top, if find out the order of each solid top speech and each solid top speech of this coded string correspondence, then execution in step 203, otherwise, execution in step 207;
For example, the coded string of supposing user's input is " wo ", after received code character string " wo ", search solid top speech tabulation as shown in table 1 according to this coded string " wo ", and finding out the corresponding solid top speech " I " of coded string " wo " and order " 1 ", solid top speech " " and order " 2 ", execution in step 203 then.
Step 203: statistics is consolidated the number of top speech, whether judges the number of consolidating the top speech less than preset threshold value, if, execution in step 204; If not, execution in step 206 then;
Wherein, threshold value is provided with the capability value that the candidate speech is tabulated for the user, and the user can be provided with the value of threshold value as required.For example, supposes that the value that the user is provided with threshold value is 6, in step 202, find out corresponding two the solid top speech of coded string " wo ", and the number that counts solid top speech is 2 that the number of judging solid top speech is less than threshold value 6, and execution in step 204.
Step 204: the order by each solid top speech is loaded into each solid top speech in the blank candidate speech tabulation;
Further, can also in the tabulation of candidate speech, a fixed signal be set for each solid top speech.
For example, for solid top speech " I ", the order of himself is " 1 ", for solid top speech " ", the order of himself is " 2 ", to consolidate top speech " I " and " " and be carried in the blank candidate speech tabulation by separately order respectively, be respectively solid top speech " I " simultaneously and " " is provided with fixed signal.
Step 205: obtain the non-solid top speech of this coded string correspondence, in the tabulation of candidate speech, the non-solid top speech that obtains is carried in after last solid top speech;
Particularly, according to this coded string, from the speech tabulation, find out corresponding speech; From the speech of searching, remove solid top speech, if also there is remaining speech, then with remaining speech as non-solid top speech, threshold value is done difference operation with the number of solid top speech obtains first intermediate value; Add up the number of non-solid top speech, whether the number of judging non-solid top speech greater than first intermediate value, if not, in the tabulation of candidate speech with all non-solid top speech be loaded into last Gu Ding with speech after; If then select first an intermediate value non-solid top speech, after the non-solid top speech that will select is carried in last solid top speech in the tabulation of candidate speech.
Wherein, the speech tabulation is set in advance, this speech tabulation is used for the corresponding relation of all speech of memory encoding character string and its correspondence, as shown in table 2, all speech of memory encoding character string " wo " and its correspondence are respectively " I ", " nest ", " ", " holding ", " irrigating ", " crouching ", " flat stone with ropes attached at the sides " in second row of table 2 ....
Table 2
Coded string Speech
wo I, nest, oh, hold, irrigate, crouch, flat stone with ropes attached at the sides ...
...... ......
For example, from speech tabulation as shown in table 2, find out corresponding speech according to coded string " wo " and be respectively " I ", " nest ", " ", " holding ", " irrigating " and " crouching " etc.From the speech of searching, remove solid top speech " I " and " ", with remaining speech " nest ", " holding ", " irrigate " and " crouching " etc. as the non-top speech of consolidating, threshold value 6 is done difference operation with the number 2 of solid top speech obtain first intermediate value 4, the number of judging non-solid top speech is greater than first intermediate value 4, then select 4 non-solid top speech to be respectively " nest ", " holding ", " irrigating " and " crouching ", and being carried in last solid top speech " " afterwards, the candidate speech tabulation that obtains is as shown in Figure 2.
Wherein, if the user also need in candidate speech tabulation, show under the speech of one page, then one page command request shows the speech of one page down by submitting to down.When receiving following one page order that the user submits to, if also there is the non-solid top speech that does not load, then empty the tabulation of candidate speech, when the number of the non-solid top speech that does not load during, select a threshold value non-solid top speech that does not load also to be carried in the tabulation of candidate speech greater than threshold value; When the number of the non-solid top speech that does not load is less than or equal to threshold value, the non-solid top speech that does not load is loaded in the tabulation of candidate speech; The non-solid top speech that does not if there is no load, then end operation.Wherein, if the user also need in candidate speech tabulation, show under one page speech, then repeat said process.
Step 206: selecting sequence is the solid top of a preceding threshold value speech from the solid top speech of searching, and each the solid top speech that will select is carried in during blank candidate speech tabulates by self order;
Wherein, if the user also need in candidate speech tabulation, show under the speech of one page, and after the user submits down one page order to, load other speech of this coded string correspondence by the step of following (1)-(6), comprising:
(1): judge whether also to exist the solid top speech that does not load,, then carry out (2), if there is no, then carry out (5) if exist
(2): receive following one page order of user's submission, whether the number of the solid top speech that statistics does not load, the number of judging the solid top speech that does not load be less than threshold value, if then execution (3) if not, is then carried out (5);
(3): empty candidate speech tabulation, each solid top speech of not loading order by self is carried in the blank candidate speech tabulation;
(4): obtain the non-solid top speech of this coded string correspondence, the non-solid top speech that obtains is carried in the tabulation of candidate speech;
Concrete body, from the speech tabulation, search corresponding speech according to this coded string, from the speech of searching, remove solid top speech, if also there is remaining speech, with remaining speech as non-solid top speech, add up the number of non-solid top speech, threshold value is done difference operation with the number of the solid top speech that does not load obtain difference, whether judge the non-number of consolidating the top speech greater than this difference, if, select the non-solid top of this difference speech, and the non-solid top speech that will select is carried in after last solid top speech in the tabulation of candidate speech; If not, directly non-solid top speech is carried in after last solid top speech in the tabulation of candidate speech.
Wherein, if when the user submits down one page order once more to, when receiving the order of this time one page, if then also there is the non-solid top speech that does not load, then empty candidate speech tabulation and load the non-solid top speech that does not load to it, concrete load step is identical with corresponding contents in the step 205, and this repeats no more again.
(5): empty candidate speech tabulation, selecting sequence is a preceding threshold value solid top speech that does not load, and each solid top speech of selecting order by self is carried in the blank candidate speech tabulation;
Wherein, if the user submits down one page order once more to, then begin to carry out from (1) again.
(6): obtain the non-solid top speech of this coded string correspondence, empty the tabulation of candidate speech, and the non-solid top speech that will obtain is carried in the tabulation of candidate speech.
Particularly, according to this coded string, from the speech tabulation, search corresponding speech, from the speech of searching, remove solid top speech, if also there is remaining speech, remaining speech as non-solid top speech, is emptied the tabulation of candidate speech, when the number of non-solid top speech greater than threshold value, then select a threshold value non-solid top speech and be carried in the tabulation of candidate speech; When the non-number of top speech admittedly is less than or equal to threshold value, then non-solid top speech is loaded in the tabulation of candidate speech.
Wherein, if when the user submits down one page order once more to, when receiving the order of this time one page, if then also there is the non-solid top speech that does not load, then empty candidate speech tabulation and load the non-solid top speech that does not load to it, concrete load step is identical with corresponding contents in the step 205, and this repeats no more again.
Step 207:, from the speech tabulation, find out corresponding speech, if the number of the speech of searching is greater than threshold value according to the coded string that receives, then select a threshold value speech, and the speech of selecting is carried in the tabulation of candidate speech, otherwise, directly the speech of searching is carried in the candidate list.
Wherein, in the present embodiment, the corresponding relation of speech and frequency of utilization being set in advance, is 0 for the initial value of the frequency of utilization of each speech correspondence, when the user uses certain speech, then in the corresponding relation of speech and frequency of utilization, the frequency of utilization of this speech correspondence is added 1.
Correspondingly, when when loading non-solid top speech, from the corresponding relation of speech and frequency of utilization, find out the frequency of utilization of each non-solid top speech correspondence earlier, select non-solid top speech and in the tabulation of candidate speech, load non-solid top speech according to frequency of utilization then according to frequency of utilization.
Wherein, each speech that is carried in the tabulation of candidate speech all is that the user need select to be input to the speech in the terminal device, and the user can directly select to be input to certain speech in the terminal device in the tabulation of candidate speech.
Wherein, after the speech that the user is selected is input in the terminal device, also from the corresponding relation of speech and frequency of utilization, find out the frequency of utilization of the speech correspondence of user's selection, increase the frequency of utilization of searching.
Wherein, in the present embodiment,, also the coded string that receives is stored in the tabulation of candidate speech, after the speech that the user is selected is input in the terminal device, also empties the tabulation of candidate speech when the time at every turn to candidate speech tabulation loading speech.
In embodiments of the present invention, the speech that the user is used always is as solid top speech, and when the speech of each certain coded string correspondence of input, all from the speech tabulation of solid top, search the solid top speech of this coded string correspondence earlier, and the solid top speech that all will search is carried in blank candidate speech tabulation by the loading sequence of himself at every turn, so, the speech of selecting self to use always to the user brings convenience.
Embodiment 3
As shown in Figure 4, the embodiment of the invention provides a kind of method of adjusting speech, comprising:
Step 301: receive and adjust order, the speech of appointment is carried in this adjustment order;
Step 302: the speech corresponding codes character string of obtaining appointment;
Step 303: adjust order according to the speech of this coded string and appointment and according to this, adjust the speech in the speech tabulation of solid top.
Wherein, in the present embodiment, after execution of step 303, can also be according to the coded string that obtains, in the tabulation of candidate speech, load speech by the method that the 2 loading speech that provide are provided, like this by adjusting the speech in the speech tabulation of solid top, realize according to the speech in the tabulation of user's needs adjustment candidate speech.
In embodiments of the present invention, receive and adjust order, obtain and adjust the speech corresponding codes character string that appointment is carried in order, adjust order, adjust the speech in the speech tabulation of solid top according to the speech of this coded string and appointment and according to this.Wherein, realize adjusting speech in the tabulation of candidate speech, so, realize adjusting the position of the speech in the tabulation of candidate speech according to user's needs by adjusting speech in the tabulation of solid top speech.
Embodiment 4
As shown in Figure 5, the embodiment of the invention provides a kind of method of adjusting speech, comprising:
Step 401: receive the interpolation order that the user submits to, wherein, the speech of user's appointment is carried in this interpolation order, obtains the speech corresponding codes character string of appointment from the tabulation of candidate speech;
Wherein, after the user imported a coded string, the method for the loading speech that provides by embodiment 2 was carried in the speech of this coded string correspondence in the tabulation of candidate speech.Then, the user specifies a speech from the tabulation of candidate speech, and submits to and add order, and carries the speech of appointment in this interpolation order.
For example, candidate speech tabulation as shown in Figure 6, the user can utilize mouse to specify a speech " to hold ", submit to then and add order, and the speech that appointment is carried in this interpolation order " is held ".When the user submit to add order after, receive the interpolation order that the user submits to, obtaining speech that this interpolations order carries appointment from candidate speech tabulation as shown in Figure 6, " to hold " the corresponding codes character string be " wo ".
In addition, the user can directly specify a speech, and is provided with and adds order and carry the speech of appointment, submits this interpolations order then to.After the user submits this interpolation order to, receive this interpolation order, carry the speech of appointment according to this interpolation order then, from the speech tabulation, find out the corresponding codes character string, execution in step 402.
Wherein, the speech of user's appointment is a non-solid top speech.
Step 402: whether the speech of judging appointment is non-solid top speech, if the order of the speech of appointment is set;
Particularly, search the speech tabulation of solid top according to the coded string that obtains, if do not comprise the speech of appointment in the solid top speech that finds out corresponding solid top speech and search, then the speech of appointment is a non-solid top speech, after last the solid top speech in the solid top speech that the order of the speech of appointment is set to search; If do not find out corresponding solid top speech, then the speech of appointment is a non-solid top speech, and the order of the speech of appointment is arranged to first.
Wherein, the operation after last the solid top speech in the solid top speech that the order of the speech of appointment is set to search can be specially: the number of the solid top speech that statistics is searched adds 1 order that obtains the speech of appointment with this number.The operation of the order of the speech of appointment being arranged to first can be specially: with the order of numerical value 1 as the speech of appointment.
For example, according to the coded string that obtains " wo ", search solid top speech tabulation as shown in table 1, and from the solid top speech tabulation shown in the table 1, search the corresponding solid top speech of this coded string " wo " and be respectively " I " and " ", counting the solid top speech number of searching is 2, and number 2 is added the order 3 that 1 speech that obtains appointment " is held ".
Step 403: with the sequential storage of the speech of the speech of the coded string that obtains, appointment and appointment in the speech tabulation of solid top.
For example, the speech of coded string " wo ", appointment " held " and the order 3 of himself is stored in the solid top speech tabulation as shown in table 1, the result who obtains is as shown in table 3.
Table 3
Coded string Gu top speech In proper order
Wo I 1
Wo {。##.##1}, 2
Wo Hold 3
Ba {。##.##1}, 1
Ba {。##.##1}, 2
Ba Father 3
Chang Long 1
...... ...... ......
Wherein, be stored in the speech tabulation of solid top, promptly realized the speech of appointment is added to solid top speech adding the speech that carries appointment in the order.
Further, can also empty the tabulation of candidate speech, according to the coded string that obtains, the method that provides by embodiment 2 loads corresponding speech in the tabulation of candidate speech, and the solid top speech that is loaded into this moment in the tabulation of candidate speech comprises that adding order carries the speech of appointment.For example, empty candidate speech tabulation as shown in Figure 6, in the tabulation of candidate speech, reload corresponding speech according to the method that the coded string that obtains " wo " provides by embodiment 2, the result who obtains as shown in Figure 7.Wherein, in candidate speech tabulation as shown in Figure 7, existed solid top speech " to hold ".
In embodiments of the present invention, the interpolation order of the speech of appointment is carried in reception, wherein, the speech of appointment is the non-solid top speech of user's appointment, obtain the speech corresponding codes character string of appointment, the sequential storage of the speech of the speech of the coded string that obtains, appointment and appointment in the speech tabulation of solid top, has been realized in the tabulation of candidate speech the non-solid top speech of user's appointment is added to solid top speech.So, realize adding solid top speech, make things convenient for the user from candidate list, to select speech according to user's needs.
Embodiment 5
As shown in Figure 8, the embodiment of the invention provides a kind of method of adjusting speech, comprising:
Step 501: receive the mandatum cassatorium that the user submits to, wherein, carry the solid top speech of user's appointment in this mandatum cassatorium, from the tabulation of candidate speech, obtain the solid top speech corresponding codes character string of appointment;
Wherein, after the user imported a coded string, the method for the loading speech that provides by embodiment 2 was carried in the speech of this coded string correspondence in the tabulation of candidate speech.The user specifies a solid top speech from the tabulation of candidate speech, submit mandatum cassatorium then to, and the solid top speech of user's appointment is carried in this mandatum cassatorium.
For example, the user can specify solid top speech " " with mouse from candidate speech tabulation as shown in Figure 9, submit mandatum cassatorium then to, and the solid top speech " " of appointment is carried in this mandatum cassatorium.
After the user submits mandatum cassatorium to, receive the mandatum cassatorium that the user submits to, from the tabulation of candidate speech, obtain solid top speech " " the corresponding codes character string that this mandatum cassatorium carries appointment and be " wo ".
In addition, the user can directly specify a solid top speech and the solid top speech that appointment is carried in mandatum cassatorium is set, and directly submits this mandatum cassatorium then to.After the user submits this mandatum cassatorium to, receive this mandatum cassatorium, the solid top speech that carries appointment according to this mandatum cassatorium finds out the corresponding codes character string, execution in step 502 from the speech tabulation then.
Step 502: according to this coded string, the order of from the speech tabulation of solid top, searching solid top speech and each solid top speech of this coded string correspondence;
Wherein, owing to should solid top speech be one of solid top speech of this coded string correspondence, so comprise the order of this solid top speech in the order of the solid top of each of searching speech.
For example, from solid top speech tabulation as shown in table 3, search the corresponding solid top speech of coded string " wo " and be respectively " I ", " " and " holding ", and the order of each solid top speech is respectively " 1 ", " 2 " and " 3 ".
Step 503: the order of the solid top speech of the coded string that deletion is obtained from the speech tabulation of solid top, the solid top speech of appointment and appointment;
Step 504: in the speech of the solid top of this coded string correspondence, judge whether the solid top speech of existence order greater than the order of the solid top speech of appointment, if exist, execution in step 505, otherwise, end operation;
Step 505: in the speech of the solid top of this coded string correspondence, selecting sequence is greater than the solid top speech of the order of the solid top speech of appointment, and the order of the solid top speech selected is made amendment.
Wherein, the step that the order of the Gu Ding that selects is made amendment can be specially: the order of the solid top of each that will select speech subtracts 1 respectively.
For example, the coded string " wo " that deletion is obtained from solid top speech tabulation as shown in table 3, solid top speech " " and its order " 2 " of appointment, the i.e. corresponding relation of the 3rd line display of table 3, in remaining solid top speech " I " and " holding ", judge order " 3 " that solid top speech " holds " order " 2 " greater than the solid top speech " " of appointment, to consolidate the order " 3 " that the top speech " holds " and subtract 1, the result who obtains is as shown in table 4.
Table 4
Coded string Gu top speech In proper order
wo I 1
wo Hold 2
ba {。##.##1}, 1
ba {。##.##1}, 2
ba Father 3
chang Long 1
...... ...... ......
Wherein, will carry solid top speech deletion from the speech tabulation of solid top of user's appointment in the mandatum cassatorium, promptly realized the solid top speech cancellation of appointment is non-solid top speech.
Further, can also empty candidate speech tabulation, according to the coded string that obtains, the method that provides by embodiment 2 loads corresponding speech in the tabulation of candidate speech, wherein, is loaded into the solid top speech that solid top speech in the tabulation of candidate speech does not comprise appointment this moment.For example, empty candidate speech tabulation as shown in Figure 9, in the tabulation of candidate speech, reload corresponding speech according to the method that the coded string that obtains " wo " provides by embodiment 2, the result who obtains as shown in figure 10.Wherein, the solid top speech " " that in candidate speech tabulation as shown in figure 10, has not had appointment.
In embodiments of the present invention, receive mandatum cassatorium, the solid top speech of user's appointment is carried in this mandatum cassatorium, from the top speech is tabulated admittedly the solid top speech of appointment is deleted in proper order with it, having realized in the tabulation of candidate speech the solid top speech of user's appointment being transferred in the speech of non-solid top from the solid top speech of front portion and it being cancelled is non-top speech admittedly.So, realize making things convenient for the user from the tabulation of candidate speech, to select speech according to the solid top of user's needs cancellation speech.
Embodiment 6
As shown in figure 11, the embodiment of the invention provides a kind of method of adjusting speech, comprising:
Step 601: receive the reach order that the user submits to, wherein, the solid top speech of user's appointment is carried in this reach order, obtains the solid top speech corresponding codes character string of appointment from the tabulation of candidate speech;
Wherein, after the user imported a coded string, the method for the loading speech that provides by embodiment 2 was carried in the speech of this coded string correspondence in the tabulation of candidate speech.The user specifies a solid top speech in the tabulation of candidate speech, and submits the reach order to, and the solid top speech of appointment is carried in this reach order.
For example, the user utilizes mouse to specify a solid top speech " to hold " in candidate speech tabulation as shown in Figure 7, submit the reach order then to, and the solid top speech that appointment is carried in this reach order " is held ".
After the user submits reach order to, receive the reach order that the user submits to, and from candidate speech tabulation as shown in Figure 7, obtain solid top speech that the reach order carries appointment and " hold " the corresponding codes character string and be " wo ".
In addition, the user can directly specify a solid top speech and the reach order is set and carry the solid top speech of appointment, submits this reach order then to.After the user submits this reach order to, receive this reach order, the solid top speech that carries appointment according to this reach order finds out the corresponding codes character string, execution in step 602 from speech is tabulated then.
Wherein, the solid top speech of user's appointment is the solid top speech of non-first place.
Step 602: according to the coded string that obtains, the order of from the speech tabulation of solid top, searching each solid top speech and each solid top speech of this coded string correspondence;
Wherein, because the solid top speech of appointment is one of solid top speech of this coded string correspondence, so comprise the order of the solid top speech of appointment in the order of the solid top of each of searching speech.
Further, judge also whether the solid top speech of appointment is the solid top speech of non-first place, be specially: whether the order of judging the solid top speech of appointment is the order of first solid top speech of this coded string correspondence, and if not, then the solid top speech of appointment is the Gu Ding of non-first place.
For example, according to the coded string that obtains " wo ", the solid top speech of searching this coded string correspondence from solid top speech tabulation as shown in table 3 is respectively " I ", " " and " holding ", and the order of these solid top speech is respectively " 1 ", " 2 " and " 3 ".
Step 603: whether the order of solid top speech of judging appointment is greater than the reach threshold value, if then execution in step 604, if not, then execution in step 605;
Wherein, the reach threshold value is the numerical value that the user is provided with as required in advance, for example, it is 1 that the reach threshold value can be set, and is " 3 " and find out the order that solid top speech " holds " in step 602, therefore, judge order that solid top speech " holds " in this step greater than the reach threshold value, and execution in step 604.
Step 604: according to reach order, the order of the solid top speech of appointment is adjusted reach threshold value position forward, and the order that will be positioned at the solid top speech of order before the adjustment of solid top speech of appointment and adjusted order is made amendment;
Particularly, the order of the solid top speech of appointment is done difference operation with the reach threshold value obtain second intermediate value, selecting sequence is more than or equal to second intermediate value and less than the solid top speech of the order of the solid top speech of appointment from each solid top speech of searching, the order of each solid top speech of selecting is added 1, is second intermediate value with the sequential update of the solid top speech of appointment.
For example, to consolidate order 3 that the top speech " holds " does difference operation with reach threshold value 1 and obtains second intermediate value 2, from the solid top speech " I " searched, " " and " holding ", selecting sequence is more than or equal to 2 and less than 3 solid top speech " ", the order 2 of the solid top speech " " selected is added 1, the order that obtains solid top speech " " is 3, and the sequential update that will consolidate top speech " " is second intermediate value 2, the result such as the table 5 that obtain.
Table 5
Coded string Gu top speech In proper order
wo I 1
wo Hold 2
wo {。##.##1}, 3
ba {。##.##1}, 1
ba {。##.##1}, 2
ba Father 3
chang Long 1
...... ...... ......
Step 605: according to reach order, the order of the solid top speech of appointment is adjusted into first, and the order that will be positioned at the solid top speech of order before the adjustment of solid top speech of appointment and adjusted order is made amendment.
Particularly, selecting sequence adds 1 more than or equal to 1 and less than the solid top speech of the order of the solid top speech of appointment with the order of each solid top speech of selecting from each solid top speech of searching, is 1 with the sequential update of the solid top speech of appointment.
Wherein, in the speech tabulation of solid top, by the order of carrying the solid top speech of appointment in the reach order is adjusted forward, should solid top speech thereby realized moving forward.
Further, can also empty the tabulation of candidate speech, according to the coded string that obtains, the method that provides by embodiment 2 loads corresponding speech in the tabulation of candidate speech.For example, empty candidate speech tabulation as shown in Figure 7, in the tabulation of candidate speech, reload corresponding speech according to the method that the coded string that obtains " wo " provides by embodiment 2, the result who obtains as shown in figure 12.Wherein, in candidate speech tabulation as shown in figure 12, will consolidate the top speech and " hold " one of reach.
In embodiments of the present invention, receive the solid top speech of the needs reach of user's appointment, this solid top speech can be the high speech of frequency of utilization, in the speech tabulation of solid top, the solid top word order of appointment is adjusted forward.So, realized needs reach solid top speech commonly used, made things convenient for the user from the tabulation of candidate speech, to select speech according to the user.
Embodiment 7
As shown in figure 13, the embodiment of the invention provides a kind of method of adjusting speech, comprising:
Step 701: move order after the reception user submission, wherein, move the solid top speech that user's appointment is carried in order after this, from the tabulation of candidate speech, obtain the solid top speech corresponding codes character string of appointment;
Wherein, after the user imported a coded string, the method for the loading speech that provides by embodiment 2 was carried in the speech of this coded string correspondence in the tabulation of candidate speech.The user specifies a solid top speech in the tabulation of candidate speech, move order after submitting to then, and move the solid top speech that appointment is carried in order after this.
For example, in candidate speech tabulation as shown in figure 14, the user can utilize mouse to specify a solid top speech " I ", moves order after submitting to then, and moves the solid top speech " I " that appointment is carried in order after this.
After after the user submits to, moving order, move order after the reception user submission, and move solid top speech " I " the corresponding codes character string " wo " that appointment is carried in order after from candidate speech tabulation as shown in figure 14, obtaining.
In addition, the user can specify a solid top speech and be provided with after move the solid top speech that appointment is carried in order, move order after submitting this then to.After after the user submits this to, moving order, move order after receiving this, from the speech tabulation, find out the corresponding codes character string, execution in step 702 according to moving the solid top speech that order carries appointment after this then.
Wherein, the solid top speech of user's appointment is non-last solid top speech.
Step 702: according to the coded string that obtains, the order of from the speech tabulation of solid top, searching each solid top speech and each solid top speech of this coded string correspondence;
Wherein, because the solid top speech of appointment is one of solid top speech of this coded string correspondence, so comprise the order of the solid top speech of appointment in the order of the solid top of each of searching speech.
Further, whether the solid top speech of judging appointment is last solid top speech, be specially: whether the order of judging the solid top speech of appointment is last the order of Gu Ding of this coded string correspondence, and if not, then the solid top speech of appointment is non-last solid top speech.
For example, according to the coded string that obtains " wo ", from solid top speech tabulation as shown in table 3, search corresponding solid top speech and be respectively " I ", " " and " holding ", and the order of these solid top speech is respectively " 1 ", " 2 " and " 3 ".
Step 703: the number of the solid top speech searched of statistics, the order of the solid top speech of the number of statistics and appointment is done difference operation obtain the 3rd intermediate value;
For example, in step 702, find out solid top speech and be respectively " I ", " " and " holding ", the number of the solid top speech that statistics is searched is 3, and the number 3 and the order " 1 " of solid top speech " I " of statistics are done difference operation, obtains the 3rd intermediate value 2.
Step 704: judge the 3rd intermediate value whether greater than after move threshold value, if then execution in step 705, if not, then execution in step 706;
Wherein, the reach threshold value is the numerical value that the user is provided with as required, for example, can equipment reach threshold value be 1, judges second intermediate value 2 greater than reach threshold value 1, execution in step 705.
Step 705: according to after move order, move the threshold value position after the order of the solid top speech of appointment is adjusted backward, and will make amendment in the order of the adjustment front sequence of the solid top of appointment speech and the solid top speech between the adjusted order;
Particularly, the order of the solid top speech of appointment done with computing with the reach threshold value obtain the 4th intermediate value, selecting sequence is greater than the order of the solid top speech of appointment and be less than or equal to the solid top speech of the 4th intermediate value in each solid top speech, the order of each solid top speech of selecting is subtracted 1, is the 4th intermediate value with the sequential update of this solid top speech.
For example, the order " 1 " that to consolidate top speech " I " is done with computing with reach threshold value " 1 " and is obtained the 4th intermediate value 2, in solid top speech " I ", " " and " holding ", selecting sequence is greater than 1 and be less than or equal to 2 solid top speech " ", the order of the solid top speech " " selected is subtracted 1, the sequential update that to consolidate top speech " I " is the 4th intermediate value 2, and the result who obtains is as shown in table 6.
Table 6
Coded string Gu top speech In proper order
Wo {。##.##1}, 1
Wo I 2
Wo Hold 3
Ba {。##.##1}, 1
Ba {。##.##1}, 2
Ba Father 3
Chang Long 1
...... ...... ......
Step 706: according to after move order, the order of the solid top speech of appointment is adjusted into last position, and will makes amendment in the order of order before the adjustment of the solid top of appointment speech and the solid top speech between the adjusted order;
Particularly, from each solid top speech, selecting sequence is greater than the order of the solid top speech of appointment and be less than or equal to the solid top speech of the number of statistics, and the order of each solid top speech of selecting is subtracted 1, with the sequential update of the solid top speech of the appointment number for statistics.
Wherein, in the speech tabulation of solid top, by to after move the solid top speech that carries appointment in the order order adjust backward, thereby move the solid top speech of appointment after having realized.
Further, can also empty the tabulation of candidate speech, according to the coded string that obtains, the method that provides by embodiment 2 loads corresponding speech in the tabulation of candidate speech.For example, empty candidate speech tabulation as shown in figure 14, in the tabulation of candidate speech, reload corresponding speech according to the method that the coded string that obtains " wo " provides by embodiment 2, the result who obtains as shown in figure 15.Wherein, move one after in the tabulation of as shown in figure 15 candidate speech, will having consolidated top speech " I ".
In embodiments of the present invention, receive the solid top speech that moves behind the needs of user's appointment, this solid top speech can be the lower speech of frequency of utilization, in the speech tabulation of solid top, the order of the solid top speech of appointment is adjusted backward.So, realized moving the solid top speech that is of little use behind the needs according to the user, made things convenient for the user from the tabulation of candidate speech, to select speech.
Embodiment 8
As described in Figure 16, the embodiment of the invention provides a kind of device that loads speech, comprising:
First receiver module 801 is used for the received code character string;
First acquisition module 802, be used for obtaining the solid top speech of this coded string correspondence and the order of being somebody's turn to do solid top speech from the solid top speech tabulation that sets in advance, wherein, Gu speech tabulation in top is used for the solid top speech of memory encoding character string and its correspondence and the order of being somebody's turn to do solid top speech;
First load-on module 803 is used for being carried in blank candidate speech tabulation according to the solid top speech that obtains and order will be obtained.
Wherein, first load-on module 801 specifically comprises:
First loading unit, if the number of the solid top speech that is used for obtaining is less than or equal to preset threshold value, then the solid top speech that will obtain according to the order of obtaining is carried in the blank candidate speech tabulation;
Second loading unit, if the number of the solid top speech that is used for obtaining greater than threshold value, then according to the order of obtaining, the solid top speech that will obtain several times is carried in the candidate speech tabulation of described blank, and each threshold values solid top speech that loads at most;
Wherein, in the tabulation of candidate speech, can also a fixed signal be set for each solid top speech.
Further, this device also comprises:
Second load-on module, loading is full if be used for the tabulation of candidate speech, searches corresponding speech according to this coded string from the speech tabulation, and wherein, the speech tabulation is used for the corresponding relation of memory encoding character string and speech; From the speech of searching, remove solid top speech, with remaining speech as non-solid top speech; In candidate speech tabulation, will non-ly consolidate the top speech and be carried in after last solid top speech;
Wherein, first receiver module 801 can also be to carrying out normalizing operation by coded string after receiving coded string.
Wherein, the apparatus and method embodiment that present embodiment provides belongs to same design, and its specific implementation process sees method embodiment for details, repeats no more here.
In embodiments of the present invention, the speech that the user is used always is as solid top speech, and when the speech of each certain coded string correspondence of input, all from the speech tabulation of solid top, search the solid top speech of this coded string correspondence earlier, and the solid top speech that all will search is carried in blank candidate speech tabulation by the loading sequence of himself at every turn, so, the speech of selecting self to use always to the user brings convenience.
Embodiment 9
As shown in figure 17, the embodiment of the invention provides a kind of device of adjusting speech, comprising:
Second receiver module 901 is used for receiving and adjusts order, and the speech of appointment is carried in this adjustment order;
Second acquisition module 902 is used to obtain the speech corresponding codes character string of appointment;
Adjusting module 903 is used for adjusting the speech in the speech tabulation of solid top according to the speech of this coded string and appointment and according to this adjustment order.
Wherein, this adjusts order for adding order, and the speech of appointment is carried in this interpolation order; Correspondingly,
Adjusting module 903 specifically is used for according to this interpolation order, for the speech of appointment is provided with order, with the sequential storage of the speech of the speech of the appointment of this coded string correspondence and appointment in the speech tabulation of solid top;
Wherein, adjusting module 903 specifically comprises:
First searches the unit, is used for searching the speech tabulation of solid top according to this coded string;
First is provided with the unit, if be used for finding out from the speech tabulation of solid top the solid top speech of this coded string correspondence, then the order of the speech of appointment is set to after last solid top speech in the solid top speech of this coded string correspondence;
Second is provided with the unit, if be used for not finding out from the speech tabulation of solid top the solid top speech of this coded string correspondence, then the order of the speech of appointment is set to first;
First storage unit is used for sequential storage with the speech of the speech of the appointment of this coded string correspondence and appointment in the speech tabulation of solid top;
Wherein, this is adjusted order and is mandatum cassatorium, and the solid top speech of appointment is carried in this mandatum cassatorium; Correspondingly,
Adjusting module 903 specifically comprises:
Delete cells is used for according to this mandatum cassatorium, searches and delete the order of the solid top speech of the solid top speech of appointment of this coded string correspondence and appointment from the speech tabulation of solid top;
First revises the unit, is used at the solid top of this coded string correspondence speech, if existence comes the solid top speech solid top speech afterwards of appointment in proper order, then the order of the solid top speech after the solid top speech that comes appointment is made amendment;
Wherein, this is adjusted order and is the reach order, and the solid top speech of appointment is carried in this reach order; Correspondingly,
Adjusting module 903 specifically comprises:
Second searches the unit, is used for searching from the speech tabulation of solid top the order of solid top speech of the appointment of this coded string correspondence;
The reach unit is used for adjusting the order of the solid top speech of appointment forward according to default reach threshold value and this reach order;
Second revises the unit, is used at the solid top of this coded string correspondence speech, will make amendment in the order of order before the adjustment of the solid top of appointment speech and the solid top speech between the adjusted order;
Wherein, this adjustment order moves order after being, moves the solid top speech that appointment is carried in order after this; Correspondingly,
Adjusting module 903 specifically comprises:
The 3rd searches the unit, is used for searching from the speech tabulation of solid top the order of solid top speech of the appointment of this coded string correspondence;
After move the unit, be used for according to move after default threshold value and after move order, adjust the order of the solid top speech of appointment backward;
The 3rd revises the unit, is used at the solid top of this coded string correspondence speech, will make amendment in the order of order before the adjustment of the solid top of appointment speech and the solid top speech between the adjusted order.
Further, after this device has been adjusted speech in the speech tabulation of solid top, the coded string that can also basis obtains, the method for the loading speech that provides by embodiment 2 loads speech in the candidate speech is tabulated.
Wherein, the apparatus and method embodiment that present embodiment provides belongs to same design, and its specific implementation process sees method embodiment for details, repeats no more here.
In embodiments of the present invention, receive and adjust order, obtain and adjust the speech corresponding codes character string that appointment is carried in order, adjust order, adjust the speech in the speech tabulation of solid top according to the speech of this coded string and appointment and according to this.Wherein, realize adjusting speech in the tabulation of candidate speech, so, realize adjusting the position of the speech in the tabulation of candidate speech according to user's needs by adjusting speech in the tabulation of solid top speech.
All or part of content in the technical scheme that above embodiment provides can realize that its software program is stored in the storage medium that can read by software programming, storage medium for example: the hard disk in the computing machine, CD or floppy disk.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (18)

1. a method that loads speech is characterized in that, described method comprises:
The received code character string;
Obtain the order of the solid top speech and the described solid top speech of described coded string correspondence from the solid top speech tabulation that sets in advance, the speech tabulation of described solid top is used for the order of the solid top speech and the described solid top speech of memory encoding character string and its correspondence;
According to described order described solid top speech is carried in the blank candidate speech tabulation.
2. the method for claim 1 is characterized in that, the described candidate speech that described top speech admittedly is carried in blank according to described order specifically comprises in tabulating:
If the number of described solid top speech is less than or equal to preset threshold value, then described solid top speech is carried in the candidate speech tabulation of described blank according to described order;
If the number of described solid top speech greater than described threshold value, then according to described order, is carried in described solid top speech in the candidate speech tabulation of described blank several times, and each described threshold value solid top speech that loads at most.
3. the method for claim 1 is characterized in that, described be carried in blank candidate speech tabulation by self order described solid top speech after, also comprise:
If it is full that described candidate speech tabulation does not load, from the speech tabulation, search corresponding speech according to described coded string, institute's predicate tabulation is used for the corresponding relation of memory encoding character string and speech;
From institute's predicate, remove solid top speech, with remaining speech as non-solid top speech;
In the tabulation of described candidate speech, the described non-top speech of consolidating is carried in after last solid top speech.
4. a method of adjusting speech is characterized in that, described method comprises:
Receive and adjust order, the speech of appointment is carried in described adjustment order;
Obtain the speech corresponding codes character string of described appointment;
According to the speech of described coded string and described appointment and according to described adjustment order, adjust the speech in the speech tabulation of solid top.
5. method as claimed in claim 4 is characterized in that, described adjustment order is for adding order, and the speech of appointment is carried in described interpolation order; Correspondingly,
Described according to the speech of described coded string and described appointment and according to described adjustment order, adjust the speech in the speech tabulation of solid top, specifically comprise:
According to described interpolation order, for the speech of described appointment is provided with order, with the sequential storage of the speech of the speech of the described appointment of described coded string correspondence and described appointment in the speech tabulation of described solid top.
6. method as claimed in claim 5 is characterized in that, and is described for the speech of described appointment is provided with order, specifically comprises:
Search the speech tabulation of described solid top according to described coded string;
If find out the solid top speech of described coded string correspondence from the speech tabulation of described solid top, then the order of the speech of described appointment is set to after last solid top speech in the solid top speech of described coded string correspondence;
If do not find out the solid top speech of described coded string correspondence from the speech tabulation of described solid top, then the order of the speech of described appointment is set to first.
7. method as claimed in claim 4 is characterized in that, described adjustment order is mandatum cassatorium, and the solid top speech of appointment is carried in described mandatum cassatorium; Correspondingly,
Described according to the speech of described coded string and described appointment and according to described adjustment order, adjust the speech in the speech tabulation of solid top, specifically comprise:
According to described mandatum cassatorium, from the speech tabulation of described solid top, search and delete the order of the solid top speech of the solid top speech of described appointment of described coded string correspondence and described appointment;
In the speech of the solid top of described coded string correspondence,, then the order of the solid top speech after the solid top speech that comes described appointment is made amendment if existence comes the solid top speech solid top speech afterwards of described appointment in proper order.
8. method as claimed in claim 4 is characterized in that, described adjustment order is the reach order, and the solid top speech of appointment is carried in described reach order; Correspondingly,
According to the speech of described coded string and described appointment and according to described adjustment order, adjust the speech in the speech tabulation of solid top, specifically comprise:
From the described order of consolidating the solid top speech of the described appointment of searching described coded string correspondence the speech tabulation of top;
According to default reach threshold value and described reach order, adjust the order of the solid top speech of described appointment forward;
In the speech of the solid top of described coded string correspondence, will make amendment in the order of order before the adjustment of the solid top of described appointment speech and the solid top speech between the adjusted order.
9. method as claimed in claim 4, its feature exists, and described adjustment order moves order after being, moves the solid top speech that appointment is carried in order after described; Correspondingly,
According to the speech of described coded string and described appointment and according to described adjustment order, adjust the speech in the speech tabulation of solid top, specifically comprise:
From the described order of consolidating the solid top speech of the described appointment of searching described coded string correspondence the speech tabulation of top;
According to move after default threshold value and described after move order, adjust the order of the solid top speech of described appointment backward;
In the speech of the solid top of described coded string correspondence, will make amendment in the order of order before the adjustment of the solid top of described appointment speech and the solid top speech between the adjusted order.
10. a device that loads speech is characterized in that, described device comprises:
First receiver module is used for the received code character string;
First acquisition module, be used for obtaining from the solid top speech tabulation that sets in advance the order of the solid top speech and the described solid top speech of described coded string correspondence, the speech tabulation of described solid top is used for the order of the solid top speech and the described solid top speech of memory encoding character string and its correspondence;
First load-on module is used for according to described order described solid top speech being carried in blank candidate speech tabulation.
11. device as claimed in claim 10 is characterized in that, described first load-on module specifically comprises:
First loading unit is less than or equal to preset threshold value if be used for the number of described solid top speech, then described solid top speech is carried in the candidate speech tabulation of described blank according to described order;
Second loading unit, if the number that is used for described solid top speech greater than described threshold value, then according to described order, is carried in described solid top speech in the candidate speech tabulation of described blank several times, and each described threshold value solid top speech that loads at most.
12. device as claimed in claim 10 is characterized in that, described device also comprises:
Second load-on module, loading is full if be used for described candidate speech tabulation, searches corresponding speech according to described coded string from the speech tabulation, and institute's predicate tabulation is used for the corresponding relation of memory encoding character string and speech; From institute's predicate, remove solid top speech, with remaining speech as non-solid top speech; In the tabulation of described candidate speech, the described non-top speech of consolidating is carried in after last solid top speech.
13. a device of adjusting speech is characterized in that, described device comprises:
Second receiver module is used for receiving and adjusts order, and the speech of appointment is carried in described adjustment order;
Second acquisition module is used to obtain the speech corresponding codes character string of described appointment;
Adjusting module is used for according to the speech of described coded string and described appointment and according to described adjustment order, adjusts the speech in the speech tabulation of solid top.
14. device as claimed in claim 13 is characterized in that, described adjustment order is for adding order, and the speech of appointment is carried in described interpolation order; Correspondingly,
Described adjusting module specifically is used for according to described interpolation order, for the speech of described appointment is provided with order, with the sequential storage of the speech of the speech of the described appointment of described coded string correspondence and described appointment in the speech tabulation of described solid top.
15. device as claimed in claim 14 is characterized in that, described adjusting module specifically comprises:
First searches the unit, is used for searching the speech tabulation of described solid top according to described coded string;
First is provided with the unit, if be used for finding out from the speech tabulation of described solid top the solid top speech of described coded string correspondence, then the order of the speech of described appointment is set to after last solid top speech in the solid top speech of described coded string correspondence;
Second is provided with the unit, if be used for not finding out from the speech tabulation of described solid top the solid top speech of described coded string correspondence, then the order of the speech of described appointment is set to first;
First storage unit is used for sequential storage with the speech of the speech of the described appointment of described coded string correspondence and described appointment in the speech tabulation of described solid top.
16. device as claimed in claim 13 is characterized in that, described adjustment order is mandatum cassatorium, and the solid top speech of appointment is carried in described mandatum cassatorium; Correspondingly,
Described adjusting module specifically comprises:
Delete cells is used for according to described mandatum cassatorium, searches and delete the order of the solid top speech of the solid top speech of described appointment of described coded string correspondence and described appointment from the speech tabulation of described solid top;
First revises the unit, is used at the solid top of described coded string correspondence speech, if existence comes the solid top speech solid top speech afterwards of described appointment in proper order, then the order of the solid top speech after the solid top speech that comes described appointment is made amendment.
17. device as claimed in claim 13 is characterized in that, described adjustment order is the reach order, and the solid top speech of appointment is carried in described reach order; Correspondingly,
Described adjusting module specifically comprises:
Second searches the unit, is used for searching from the speech tabulation of described solid top the order of solid top speech of the described appointment of described coded string correspondence;
The reach unit is used for adjusting the order of the solid top speech of described appointment forward according to default reach threshold value and described reach order;
Second revises the unit, is used at the solid top of described coded string correspondence speech, will make amendment in the order of order before the adjustment of the solid top of described appointment speech and the solid top speech between the adjusted order.
18. device as claimed in claim 13, its feature exists, and described adjustment order moves order after being, moves the solid top speech that appointment is carried in order after described; Correspondingly,
Described adjusting module specifically comprises:
The 3rd searches the unit, is used for searching from the speech tabulation of described solid top the order of solid top speech of the described appointment of described coded string correspondence;
After move the unit, be used for according to move after default threshold value and described after move order, adjust the order of the solid top speech of described appointment backward;
The 3rd revises the unit, is used at the solid top of described coded string correspondence speech, will make amendment in the order of order before the adjustment of the solid top of described appointment speech and the solid top speech between the adjusted order.
CN2010101581263A 2010-04-27 2010-04-27 Method and device for loading word and method and device for adjusting word Pending CN102236420A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101581263A CN102236420A (en) 2010-04-27 2010-04-27 Method and device for loading word and method and device for adjusting word

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101581263A CN102236420A (en) 2010-04-27 2010-04-27 Method and device for loading word and method and device for adjusting word

Publications (1)

Publication Number Publication Date
CN102236420A true CN102236420A (en) 2011-11-09

Family

ID=44887138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101581263A Pending CN102236420A (en) 2010-04-27 2010-04-27 Method and device for loading word and method and device for adjusting word

Country Status (1)

Country Link
CN (1) CN102236420A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106066706A (en) * 2016-05-26 2016-11-02 珠海市魅族科技有限公司 A kind of data processing method and intelligent terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6674372B1 (en) * 1999-04-16 2004-01-06 Matsushita Electric Industrial Co., Ltd. Chinese character input method using numeric keys and apparatus thereof
CN101271459A (en) * 2007-03-22 2008-09-24 北京搜狗科技发展有限公司 Word library generation method, input method and input method system
CN101334769A (en) * 2008-06-30 2008-12-31 腾讯科技(深圳)有限公司 Method and device for regulating candidate word sequence
CN101989128A (en) * 2009-08-03 2011-03-23 北京搜狗科技发展有限公司 Method and device for showing candidate words in fixed position

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6674372B1 (en) * 1999-04-16 2004-01-06 Matsushita Electric Industrial Co., Ltd. Chinese character input method using numeric keys and apparatus thereof
CN101271459A (en) * 2007-03-22 2008-09-24 北京搜狗科技发展有限公司 Word library generation method, input method and input method system
CN101334769A (en) * 2008-06-30 2008-12-31 腾讯科技(深圳)有限公司 Method and device for regulating candidate word sequence
CN101989128A (en) * 2009-08-03 2011-03-23 北京搜狗科技发展有限公司 Method and device for showing candidate words in fixed position

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106066706A (en) * 2016-05-26 2016-11-02 珠海市魅族科技有限公司 A kind of data processing method and intelligent terminal
CN106066706B (en) * 2016-05-26 2019-01-11 珠海市魅族科技有限公司 A kind of data processing method and intelligent terminal

Similar Documents

Publication Publication Date Title
US20190087084A1 (en) User-centric soft keyboard predictive technologies
CN103514236A (en) Retrieval condition error correction prompt processing method based on Pinyin in retrieval application
CN101634927B (en) Method and device for displaying candidate items in character input
CN102866782A (en) Input method and input method system for improving sentence generating efficiency
CN103294657A (en) Method and system for text editing
CN105677742A (en) Method and apparatus for storing files
CN101493821A (en) Data caching method and device
CN102750629B (en) Schedule association method and device
CN101887310B (en) Method and device for switching input state and keyboard style
CN101676911A (en) Contact person searching system and method
CN104636349A (en) Method and equipment for compression and searching of index data
CN109063068B (en) Picture retrieval method and device
US6895559B2 (en) Auto-completion algorithm for dialing telephone numbers
CN101071397A (en) Character output method and device
CN103034426B (en) A kind of terminal and contact person's searching method thereof
CN102236420A (en) Method and device for loading word and method and device for adjusting word
CN103324704A (en) Method and system for dynamically updating knowledge base
CN103870511A (en) Shared memory-based information inquiring equipment and method
CN101364233A (en) Management system and management method for searching network resource
CN102843369B (en) The Network Access Method at UI interface and system
CN102866781A (en) Pinyin-to-character conversion method and pinyin-to-character conversion system
CN102004598B (en) Media player and character input method thereof
CN105786939A (en) Memory database optimization method and apparatus
CN102346559A (en) Method and device for deleting lexical items in input method as well as character input tool
CN101706732A (en) Method and device for dynamically loading common list

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: SHENZHEN SHIJI LIGHT SPEED INFORMATION TECHNOLOGY

Free format text: FORMER OWNER: TENGXUN SCI-TECH (SHENZHEN) CO., LTD.

Effective date: 20131104

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 518000 SHENZHEN, GUANGDONG PROVINCE TO: 518057 SHENZHEN, GUANGDONG PROVINCE

TA01 Transfer of patent application right

Effective date of registration: 20131104

Address after: A Tencent Building in Shenzhen Nanshan District City, Guangdong streets in Guangdong province science and technology 518057 16

Applicant after: Shenzhen Shiji Guangsu Information Technology Co., Ltd.

Address before: 518000, Guangdong Shenzhen hi tech park, Nanshan District science and technology Tencent Building, building 23, R & D management patent group

Applicant before: Tencent Technology (Shenzhen) Co., Ltd.

RJ01 Rejection of invention patent application after publication

Application publication date: 20111109

RJ01 Rejection of invention patent application after publication