CN108628461A - A kind of input method and device, a kind of method and apparatus of update dictionary - Google Patents
A kind of input method and device, a kind of method and apparatus of update dictionary Download PDFInfo
- Publication number
- CN108628461A CN108628461A CN201710157260.3A CN201710157260A CN108628461A CN 108628461 A CN108628461 A CN 108628461A CN 201710157260 A CN201710157260 A CN 201710157260A CN 108628461 A CN108628461 A CN 108628461A
- Authority
- CN
- China
- Prior art keywords
- string
- entry
- mapping relations
- word frequency
- input string
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
- G06F3/0233—Character input methods
- G06F3/0237—Character input methods using prediction or retrieval techniques
Abstract
An embodiment of the present invention provides a kind of input method and device, a kind of method and apparatus of update dictionary, input method therein specifically includes:It according to the current input string of user, is searched in the mapping relations between input string, entry and word frequency, to obtain the word frequency of the corresponding entry of the current input string and the entry;According to the word frequency of the entry, the entry is ranked up and is showed.The embodiment of the present invention can make ranking results be more in line with the input habit of user, improve the input efficiency of user.
Description
Technical field
The present invention relates to input method technique field more particularly to a kind of input methods and device, a kind of side of update dictionary
Method and device.
Background technology
For such as user of the language such as Chinese, Japanese, Korean, it is typically necessary through input method procedure and calculating
Machine interacts.For example, user can input string by a keyboard entry, then reflected by the input method procedure standard preset according to its
Candidate item and displaying that the input string is converted to corresponding language by rule are penetrated, and then will be shielded in the candidate item of user's selection.
Existing input method procedure can update in dictionary according to the upper screen word of user in input process and correspond to entry
Word frequency facilitates user to select so that screen word can come position more forward in candidate item in subsequent input process on this
It selects.For example, in certain input process, it is assumed that the corresponding candidate item of input string " wod " includes:" I ", " I all ", " I
Band ", " my younger brother " etc., and user will shield on " me ", then input method procedure can increase the word frequency of entry in dictionary " I ";Then
When input string in follow-up input process is " wod ", entry " I " can appear in preferred location or two choosings of candidate item
Position, in order to shield on user.
However, in practical applications, user may have following personalized input habit:It is right for specific entry simplicity
In most of entry spelling, for example, custom is by spelling input string " wodou " input " I all ", and pass through simplicity input string
" wod " input " I ".Assuming that in input process again, user has input input string " wodou " again, and has selected candidate
" I all " carries out screen, then input method procedure can equally increase the word frequency of " I all ";In this way, when user is subsequently intended to pass through input
String " wod " input " I " when, since input string " wod " is the simplicity of " wodou ", therefore input method procedure can be according to " wod "
Corresponding entry " I ", " I all " etc. are found in dictionary, when being more than the word frequency of " I " in the word frequency of " I all ", entry
" I all " will be come before " me ", and user, which needs to manually select " I " in candidate item, could realize the upper of " me "
Screen operation, this will influence input efficiency.
Invention content
The embodiment of the present invention provides a kind of input method, input unit and the device for input and a kind of more neologisms
The method in library, the device for updating dictionary and the device for updating dictionary, to solve, input efficiency is lower in the prior art asks
Topic.
To solve the above-mentioned problems, the invention discloses a kind of input methods, including:
According to the current input string of user, searched in the mapping relations between input string, entry and word frequency,
To obtain the word frequency of the corresponding entry of the current input string and the entry;
According to the word frequency of the entry, the entry is ranked up and is showed.
Optionally, upper screen content it is corresponding be originally inputted string it is identical as the input string in the mapping relations when, it is described
The word frequency that upper screen content corresponds to entry described in mapping relations is increased the first increment, and, it is corresponding original in upper screen content
When input string is related to the input string in the mapping relations, upper screen content described in the mapping relations corresponds to the word frequency of entry
It is increased the second increment;First increment is more than second increment.
Optionally, the corresponding string that is originally inputted of the upper screen content is related to the input string in the mapping relations, including:
It is described to be originally inputted the input string that string is full form, and the input string in the mapping relations is described original defeated
Enter to go here and there the input string of corresponding simplicity form;And/or
It is described to be originally inputted the input string that string is simplicity form, and the input string in the mapping relations is described original defeated
Enter to go here and there corresponding full form and/or except it is described be originally inputted string in addition to other simplicity forms input string.
Optionally, the entry in the mapping relations includes the corresponding entry of different language.
Optionally, the method further includes:
According to the current input string of user, searched in system dictionary, it is corresponding to obtain the current input string
The word frequency of system entry and the system entry;
According to the word frequency of the entry and the word frequency of the system entry, to the entry and the system
Entry is ranked up and shows.
On the other hand, the invention discloses a kind of methods of update dictionary, including:
According to user upper screen content and its it is corresponding be originally inputted string, by reflecting between input string, entry and word frequency
The word frequency that upper screen content corresponds to entry described in relationship is penetrated to be updated;
Upper screen content described in the mapping relations by between input string, entry and word frequency corresponds to the word frequency of entry
It is updated, including:
If the string that is originally inputted is identical as the input string in the mapping relations, on described in the mapping relations
The word frequency that screen content corresponds to entry increases by the first increment;And
If the string that is originally inputted is related to the input string in the mapping relations, on described in the mapping relations
The word frequency that screen content corresponds to entry increases by the second increment;Wherein, first increment is more than second increment.
Optionally, the method further includes:
The mesh to match with the upper screen content of user is obtained from the mapping relations between input string, entry and word frequency
Mark data record;
Then the string that is originally inputted is identical as the input string in the mapping relations, including:It is described to be originally inputted string and institute
The input string stated in target data record is identical;The string that is originally inputted is related to the input string in the mapping relations, including:
It is described be originally inputted string it is related to the input string in the target data record.
Optionally, the string that is originally inputted is related to the input string in the mapping relations, including:
It is described to be originally inputted the input string that string is full form, and the input string in the mapping relations is described original defeated
Enter to go here and there the input string of corresponding simplicity form;And/or
It is described to be originally inputted the input string that string is simplicity form, and the input string in the mapping relations is described original defeated
Enter to go here and there corresponding full form and/or except it is described be originally inputted string in addition to other simplicity forms input string.
Optionally, the method further includes:
According to user upper screen content and its it is corresponding be originally inputted string, establish between input string, entry and word frequency
Mapping relations.
Optionally, the entry in the mapping relations includes the corresponding entry of different language.
Another aspect, the invention discloses a kind of input units, including:
First searching module, for the current input string according to user, reflecting between input string, entry and word frequency
It penetrates in relationship and is searched, to obtain the word frequency of the corresponding entry of the current input string and the entry;
The display module that sorts is ranked up and shows to the entry for the word frequency according to the entry.
Optionally, described device further includes:
Word frequency update module, for upper screen content it is corresponding be originally inputted string and the input string phase in the mapping relations
Meanwhile the word frequency that upper screen content corresponds to entry described in the mapping relations is increased the first increment, and, in upper screen content pair
Answer be originally inputted string it is related to the input string in the mapping relations when, upper screen content equivalent described in the mapping relations
The word frequency of item is increased the second increment;First increment is more than second increment.
Optionally, the corresponding string that is originally inputted of the upper screen content is related to the input string in the mapping relations, including:
It is described to be originally inputted the input string that string is full form, and the input string in the mapping relations is described original defeated
Enter to go here and there the input string of corresponding simplicity form;And/or
It is described to be originally inputted the input string that string is simplicity form, and the input string in the mapping relations is described original defeated
Enter to go here and there corresponding full form and/or except it is described be originally inputted string in addition to other simplicity forms input string.
Optionally, the entry in the mapping relations includes the corresponding entry of different language.
Optionally, described device further includes:
Second searching module is searched for the current input string according to user in system dictionary, described to obtain
The word frequency of the current corresponding system entry of input string and the system entry;
The sequence display module is additionally operable to the word frequency of the word frequency and the system entry according to the entry,
The entry and the system entry are ranked up and are showed.
In another aspect, the invention discloses a kind of devices of update dictionary, including:
Update module, for according to user upper screen content and its it is corresponding be originally inputted string, by input string, entry, with
And the word frequency that upper screen content corresponds to entry described in the mapping relations between word frequency is updated;
The update module, including:
First update submodule will if identical as the input string in the mapping relations for the string that is originally inputted
The word frequency that upper screen content corresponds to entry described in the mapping relations increases by the first increment;And
Second update submodule will if related to the input string in the mapping relations for the string that is originally inputted
The word frequency that upper screen content corresponds to entry described in the mapping relations increases by the second increment;Wherein, first increment is more than institute
State the second increment.
Optionally, described device further includes:Third searching module;
The third searching module, for acquisition and user from the mapping relations between input string, entry and word frequency
The data record that matches of upper screen content;Then the string that is originally inputted is identical as the input string in the mapping relations, including:
It is described be originally inputted string it is identical as the input string in the data record;It is described be originally inputted string with it is defeated in the mapping relations
It is related to enter string, including:It is described be originally inputted string it is related to the input string in the data record.
Optionally, the string that is originally inputted is related to the input string in the mapping relations, including:
It is described to be originally inputted the input string that string is full form, and the input string in the mapping relations is described original defeated
Enter to go here and there the input string of corresponding simplicity form;And/or
It is described to be originally inputted the input string that string is simplicity form, and the input string in the mapping relations is described original defeated
Enter to go here and there corresponding full form and/or except it is described be originally inputted string in addition to other simplicity forms input string.
Optionally, described device further includes:
Establish module, for according to user upper screen content and its it is corresponding be originally inputted string, establish input string, entry,
And the mapping relations between word frequency.
Optionally, the entry in the mapping relations includes the corresponding entry of different language.
Include memory and one or one in another aspect, the invention discloses a kind of device for input
Above program, one of them either more than one program be stored in memory and be configured to by one or one with
It includes the instruction for being operated below that upper processor, which executes the one or more programs,:
According to the current input string of user, searched in the mapping relations between input string, entry and word frequency,
To obtain the word frequency of the corresponding entry of the current input string and the entry;
According to the word frequency of the entry, the entry is ranked up and is showed.
In another aspect, the invention discloses a kind of devices for updating dictionary, which is characterized in that include memory,
And one either more than one program one of them or more than one program be stored in memory, and be configured to
It includes the finger for being operated below to execute the one or more programs by one or more than one processor
It enables:
According to user upper screen content and its it is corresponding be originally inputted string, by reflecting between input string, entry and word frequency
The word frequency that upper screen content corresponds to entry described in relationship is penetrated to be updated;
Upper screen content described in the mapping relations by between input string, entry and word frequency corresponds to the word frequency of entry
It is updated, including:
If the string that is originally inputted is identical as the input string in the mapping relations, on described in the mapping relations
The word frequency that screen content corresponds to entry increases by the first increment;And
If the string that is originally inputted is related to the input string in the mapping relations, on described in the mapping relations
The word frequency that screen content corresponds to entry increases by the second increment;Wherein, first increment is more than second increment.
The embodiment of the present invention includes following advantages:
The embodiment of the present invention according to user upper screen content and its it is corresponding be originally inputted string, by input string, entry and
In mapping relations between word frequency, the process that word frequency that the upper screen content corresponds to entry is updated may include:If described
It is identical as the input string in the mapping relations to be originally inputted string, then upper screen content described in the mapping relations is corresponded into entry
Word frequency increase the first increment;And if it is described be originally inputted string it is related to the input string in the mapping relations, will described in
The word frequency that upper screen content corresponds to entry described in mapping relations increases by the second increment, and above-mentioned first increment is more than the second increment;Its
In, it is originally inputted string, input in above-mentioned mapping relations identical with the input string in the mapping relations in the case that described
String and entry are the input string and its corresponding upper screen content (such as input string " wodou " and its corresponding upper screen that user inputted
Content " I all ", alternatively, input string " wod " and its corresponding upper screen content " I "), and input string that user inputted and its
Input habit of the user for upper screen content can be reflected by shielding content in correspondence, and therefore, reflection will be more capable of in the embodiment of the present invention
User corresponds to original input string in the mapping relations of the input habit of upper screen content the increment of the word frequency increase bigger of entry.
The embodiment of the present invention, can be according to the current input string of user, in preset input string, word in input process
It is searched in mapping relations between item and word frequency, to obtain the corresponding entry of the input string and the mesh
The word frequency of entry is marked, and according to the word frequency of the entry, the entry is ranked up and is showed;Due to the present invention
Embodiment will be more capable of reflection user and increase bigger for the word frequency of entry in the mapping relations of the input habit of upper screen content
Increment, therefore ranking results can be made to be more in line with the input habit of user, improve the input efficiency of user.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the present invention
Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 is a kind of step flow chart of the embodiment of the method for update dictionary of the present invention;
Fig. 2 is a kind of step flow chart of input method embodiment of the present invention;
Fig. 3 is a kind of structure diagram of input unit embodiment of the present invention;
Fig. 4 is a kind of structure diagram of the device embodiment of update dictionary of the present invention;
Fig. 5 is a kind of block diagram of device 800 for input of the present invention;And
Fig. 6 is the structural schematic diagram of server in some embodiments of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
For for example Chinese language, Chinese feature allows simplicity and spelling to correspond to identical entry.And
After existing input method procedure shields operation in user's execution, the upper screen content of user is often based upon to adjust the word of related entry
Frequently, however, this adjustable strategies do not account for the personalized input habit of user, therefore simplicity and spelling correspondence are easy to cause
Sequence conflict between entry.For example, if user's custom by spelling input string " wodou " input " I all ", and passes through
Simplicity input string " wod " input " I ", and the user by shield on spelling input string " wodou " number of " I all " compared with
More, then upper screen content based on user adjusts the word frequency of related entry in the prior art, will make in dictionary the word of " I all "
Frequency is higher;In this way, when user inputs simplicity input string " wod ", since " wod " is the simplicity of " wodou ", " wod " is right
The candidate item answered includes " I all ", and since the word frequency of " I all " is higher, and candidate item " I all " can be come preferred location, user
The upper screen operation for the candidate item " I " for meeting intention could be realized by needing to manually select candidate item in candidate item, affect head
Select rate and input efficiency.In addition, if user because maloperation (such as clicking space) on shielded mistake preference, also need by
It is re-entered again after the upper screen content of backspace key deletion error, the not input of only user is made troubles, and reduces input
Efficiency.
As can be seen that since different input strings " wodou " and " wod " can correspond to identical entry " I ", user
In screen " I all " in input " wodou ", the word frequency of " I all " is caused to increase, so as to cause the corresponding entry of input string " wod "
Sequence conflict between " me all " and " I ".
To solve the above problems, the embodiment of the present invention increases input string in the structure of dictionary, specifically, pass through dictionary
Record the mapping relations between input string and entry;Also, the embodiment of the present invention is in the process according to upper screen content update dictionary
In, different word frequency has been carried out to the corresponding entry of different input string type and has been adjusted so that same entry is in different input string classes
Corresponding word frequency is different under type, can be directed to the corresponding different input string type of current input string respectively in this way in input process
It obtains corresponding entry and word frequency and sorts.
Specifically, the different input string type of the embodiment of the present invention may include:It is originally inputted string and correlated inputs string,
In, it is originally inputted string and can be used for characterizing the input string that user is originally inputted, correlated inputs string can be used for indicating and be originally inputted string
Relevant input string, in general, the correlated inputs string is from this, to be originally inputted string different and be originally inputted string with this and be corresponding with same words
Item, if for example, " wodou " by shielding " I " on input string " wodou ", can be known as being originally inputted string by user, with
And " wod ", " wd " etc. can be known as to the correlated inputs string of " wodou ";For another example, if user on input string " wod " by shielding
" I ", then " wod " can be known as being originally inputted string, and " wodou ", " wd " etc. are known as to the correlated inputs string of " wod ".
The embodiment of the present invention according to user upper screen content and its it is corresponding be originally inputted string, by input string, entry and
In mapping relations between word frequency, the process that word frequency that the upper screen content corresponds to entry is updated may include:If described
It is identical as the input string in the mapping relations to be originally inputted string, then upper screen content described in the mapping relations is corresponded into entry
Word frequency increase the first increment;And if it is described be originally inputted string it is related to the input string in the mapping relations, will described in
The word frequency that upper screen content corresponds to entry described in mapping relations increases by the second increment;Wherein, it is described be originally inputted string with it is described
In the case of input string in mapping relations is identical, input string and entry in above-mentioned mapping relations are the input that user inputted
String and its corresponding upper screen content (such as input string " wodou " and its corresponding upper screen content " I all ", alternatively, input string " wod "
And its corresponding upper screen content " I "), the input string that was inputted due to user and its it is corresponding on screen content can reflect user
For the input habit of upper screen content, therefore, the embodiment of the present invention will be more capable of reflection user and the input of upper screen content practised
Original input string corresponds to the increment of the word frequency increase bigger of entry in used mapping relations, ranking results can be made to be more in line with use
The input habit at family improves initial selection and the input efficiency of user.
Through the embodiment of the present invention, in input process, can according to the current input string of user, input string, entry,
And searched in the mapping relations between word frequency, to obtain the corresponding entry of the input string and the target
The word frequency of entry, and according to the word frequency of the entry, the entry is ranked up and is showed;Due to of the invention real
Apply the word that reflection user will be more capable of for entry in the mapping relations for the input habit for shielding content on input string and its correspondence in example
Frequency increases the increment of bigger, therefore ranking results can be made to be more in line with the input habit of user, improves initial selection and user
Input efficiency.
In a kind of application example of the present invention, if user's custom by spelling input string " wodou " input " I all ",
And by simplicity input string " wod " input " I ", and the user on spelling input string " wodou " by shielding " I "
Number is more, then the embodiment of the present invention can safeguard the mapping relations between input string, entry and word frequency, and be based on user
Upper screen content and its corresponding be originally inputted string to adjust in above-mentioned mapping relations the word frequency of related entry:
May include a plurality of number in the embodiment of the present invention, in the mapping relations between above-mentioned input string, entry and word frequency
According to record.For example, by spelling input string " wodou " input " I all ", corresponding mapping relations may include:
Data record 1 and the correlated inputs string (such as " wod ", " wd ") of " wodou ", " I of " wodou ", " I all " and word frequency
All " and the data record of word frequency 2, since the input string in data record 1 is identical as string " wodou " is originally inputted, therefore can be with needle
Increase the word frequency of entry in data record 1 the first larger increment x;Due in data record 2 input string be originally inputted
String " wodou " is related, therefore the second increment y that the word frequency increase that can be directed to entry in data record 2 is smaller.Thus, it is possible to make
In dictionary input string " wodou " correspond to entry " I all " word frequency it is larger, and input string " wod " corresponds to the word of entry " I all "
Frequency is smaller.
For another example, by simplicity input string " wod " input " I ", corresponding mapping relations may include:
Data record 3 and the correlated inputs string (such as " wodou ", " wd ") of " wod ", " me " of " wod ", " I " and word frequency
With the data record 4 of word frequency, since the input string in data record 3 is identical as string " wod " is originally inputted, therefore data can be directed to
The word frequency of entry increases the first larger increment x in record 3;Due in data record 4 input string and be originally inputted string " wod "
Correlation, therefore can be for the second smaller increment y of the word frequency increase of entry in data record 4.Thus, it is possible to so that defeated in dictionary
Enter string " wod " correspond to entry " I " word frequency it is larger.
As can be seen that it is defeated by spelling input string " wodou " input " I all " and custom to pass through simplicity in user's custom
In the case of entering string " wod " input " I ", the word frequency of the embodiment of the present invention, which updates, can make spelling input string in dictionary
" wodou " correspond to entry " I all " word frequency is larger and simplicity input string " wod " correspond to entry " I " word frequency it is larger.
In this way, when user inputs simplicity input string " wod ", since the word frequency that " wod " corresponds to entry " I " is larger, and " wod "
The word frequency of corresponding entry " I all " is smaller, can to meet user input the candidate item " I " being intended to can come it is forward
Initial selection and user are improved in position, such as preferred location, therefore ranking results can be made to be more in line with the input habit of user
Input efficiency.
Embodiment of the method one
Referring to Fig.1, the step flow chart for showing a kind of embodiment of the method for update dictionary of the present invention, can specifically wrap
It includes:
According to user upper screen content and its it is corresponding be originally inputted string, by reflecting between input string, entry and word frequency
The word frequency that upper screen content corresponds to entry described in relationship is penetrated to be updated;
Upper screen content described in the above-mentioned mapping relations by between input string, entry and word frequency corresponds to the word frequency of entry
It is updated, may include:
If step 101, the string that is originally inputted are identical as the input string in the mapping relations, by the mapping relations
Described in upper screen content corresponds to word frequency the first increment of increase of entry;And
If step 102, the string that is originally inputted are related to the input string in the mapping relations, by the mapping relations
Described in upper screen content corresponds to word frequency the second increment of increase of entry;Wherein, first increment can be more than described second and increase
Amount.
The embodiment of the present invention can be applied to the input method of the input modes such as keyboard symbol input, handwriting input, voice input
Program, for ease of description, the coded string that user inputs under above-mentioned input mode is known as input string by the embodiment of the present invention.
Input method field usually can be defeated by user for the input method procedure of such as Chinese, Japanese, Korean or other Languages
The input string entered is converted into the candidate item of corresponding language.Below mainly by taking Chinese as an example to the present invention update dictionary process and
Input process illustrates, and other Languages is cross-referenced.It is appreciated that the Chinese character coding input method can include but is not limited to
Spelling, simplicity, stroke, five etc., the embodiment of the present invention does not limit the corresponding specific input method procedure of certain language.
Wherein, input method procedure may operate on intelligent terminal, and above-mentioned intelligent terminal specifically includes but unlimited:Intelligent hand
Machine, tablet computer, E-book reader, MP3 (dynamic image expert's compression standard audio level 3, Moving Picture
Experts Group Audio Layer III) player, MP4 (dynamic image expert's compression standard audio levels 4, Moving
Picture Experts Group Audio Layer IV) player, pocket computer on knee, vehicle-mounted computer, desk-top meter
Calculation machine, set-top box, intelligent TV set, wearable device etc..
According to some embodiments, above-mentioned input string can include but is not limited to:User is pressed by one that button is inputted
The combination of keysym or multiple key symbols.The key symbols can specifically include:Phonetic, stroke, assumed name etc..
In the embodiment of the present invention, upper screen content can be used for indicating one or more characters corresponding with input string.Upper screen
Content can be the character of the language such as Chinese character, English character, Japanese character, and upper screen content may be the forms such as face word
Symbol combination.Wherein, the face word includes but not limited to the picture that lines, symbol, word are formed, for example, the face
The example of word may include:“:P”、“:-o”、“:) " etc..
The embodiment of the present invention increases the input string of user in the structure of dictionary, specifically, is recorded and is inputted by dictionary
Mapping relations between string entry corresponding with upper screen content;Also, the embodiment of the present invention is according to upper screen content update dictionary
In the process, it has carried out different word frequency to the corresponding entry of different input string type to adjust so that same entry is in different inputs
Corresponding word frequency is different under string type.According to some embodiments, for storing the mapping between input string, entry and word frequency
The dictionary of relationship can be user thesaurus etc., it will be understood that the embodiment of the present invention for be used to store input string, entry and
The specific dictionary of mapping relations between word frequency does not limit.
In a kind of alternative embodiment of the present invention, the method can also include:From input string, entry and word frequency
Between mapping relations in obtain the target data record to match with the upper screen content of user;
Then the above-mentioned string that is originally inputted is identical as the input string in the mapping relations, may include:It is described to be originally inputted string
It is identical as the input string in the target data record;The string that is originally inputted is related to the input string in the mapping relations,
May include:It is described be originally inputted string it is related to the input string in the target data record.
For example, user is on spelling input string " wodou " by shielding " I ", then it can be from input string, entry and word frequency
Between mapping relations in obtain the following target data record to match with the upper screen content of user:" wodou ", " I all " and
The data record 1 of word frequency and the correlated inputs string (such as " wod ", " wd ") of " wodou ", " I all " and word frequency data note
Record 2.Since the input string in data record 1 is identical as string " wodou " is originally inputted, therefore entry in data record 1 can be directed to
Word frequency increase the first larger increment x;Since the input string in data record 2 is related to string " wodou " is originally inputted, therefore can
With the second smaller increment y of the word frequency increase for entry in data record 2.
For ease of description, in the embodiment of the present invention, the mapping relations between input string, entry and word frequency can wrap
It includes:First mapping relations and the second mapping relations;Specifically, it can will be originally inputted between string, the first entry and word frequency
Corresponding mapping relations are known as the first mapping relations, such as by the data record of " wodou " in above-mentioned example, " I all " and word frequency
1 can be the corresponding data record of the first mapping relations.In first mapping relations, " wodou " is known as being originally inputted string,
" I all " is known as the first entry, and the word frequency characterization of " I all " is known as the word frequency of the first entry.By correlated inputs string, the second word
Mapping relations between item and word frequency are known as the second mapping relations, such as by " wod " in above-mentioned example, " I all " and word frequency
Data record 2 can be the corresponding data record of the second mapping relations.In second mapping relations, " wod " is known as correlation
Input string, " I " are known as the second entry, and the word frequency characterization of " I all " is known as the word frequency of the second entry.
In practical applications, may include a plurality of data record in first mapping relations and the second mapping relations,
Above-mentioned first mapping relations and the second mapping relations can be stored to identical or different dictionary, it will be understood that this hair
Bright embodiment does not limit the specific storage mode of first mapping relations and the second mapping relations.
It is described to be originally inputted string and the input string phase in the mapping relations in a kind of alternative embodiment of the present invention
It closes, can specifically include:
It is described to be originally inputted the input string that string is full form, and the input string in the mapping relations is described original defeated
Enter to go here and there the input string of corresponding simplicity form;And/or
It is described to be originally inputted the input string that string is simplicity form, and the input string in the mapping relations is described original defeated
Enter to go here and there corresponding full form and/or except it is described be originally inputted string in addition to other simplicity forms input string.
In embodiments of the present invention, when the input string input by user for being originally inputted string as full form, for example, user
The string that is originally inputted of input is " wodou ", and upper screen content is " I all ", wherein " wodou " is the defeated of the full form of " I all "
Enter string, " wodou " corresponding correlated inputs string may include:The input string of the simplicity forms such as " wod ", " wd ".Input method procedure
It gets and is originally inputted after string " wodou ", upper screen content " I all " and correlated inputs string " wod ", " wd ", first is reflected
The word frequency for penetrating corresponding first entry of original input string " wodou " in relationship " I all " increases by the first increment, and is reflected to second
The word frequency for penetrating corresponding second entry of correlated inputs string " wod " in relationship " I all " increases by the second increment, and maps second
The word frequency of corresponding second entry of correlated inputs string " wd " in relationship " I all " increases by the second increment.
When the input string input by user for being originally inputted string as simplicity form, for example, input by user be originally inputted string
For " wod ", upper screen content is " I ", wherein " wod " is the input string of the simplicity form of " I ", " wod " corresponding correlation
Input string may include:The input string " wode " of full form and the input string " wd " of simplicity form.Input method procedure obtains
To after being originally inputted string " wod ", upper screen content " I " and correlated inputs string " wode ", " wd ", by the first mapping relations
In the word frequency of corresponding first entry of original input string " wod " " I " increase by the first increment, and in the second mapping relations
The word frequency of corresponding second entry of correlated inputs string " wode " " I " increases by the second increment, and to phase in the second mapping relations
The word frequency for closing input string " wd " corresponding second entry " I " increases by the second increment.
In another alternative embodiment of the present invention, the method can also include:According to user upper screen content and
Its corresponding mapping relations for being originally inputted string, establishing between input string, entry and word frequency.
In embodiments of the present invention, can according to the input process of user, establish and update the input string, entry,
And the mapping relations between word frequency, such as it is originally inputted corresponding first mapping relations of string and correlated inputs string corresponding second
Mapping relations.Specifically, when user uses input method procedure for the first time, first mapping relations and the second mapping relations can be with
For sky, after user generates screen content by input method procedure, input method procedure can be according to the upper screen content of user in word
Corresponding first mapping relations of input string and the second mapping relations are established in library, when user generates identical upper screen content next time
When, input method procedure can be updated established first mapping relations and the second mapping relations in dictionary.
The method of update dictionary in order to illustrate the embodiments of the present invention more clearly, illustrates this hair with reference to specific example
The realization process of the method for bright update dictionary.
Using example 1
With reference to table 1, the mapping relations between a kind of input string, entry and the word frequency of the embodiment of the present invention are shown
Example.
Table 1
Input string | Entry | Word frequency |
wod | I | 100 |
wod | I am | 105 |
wod | I obtains | 110 |
wod | I am right | 115 |
wod | I arrives | 120 |
wode | I | 200 |
wode | I obtains | 205 |
wode | Ward | 210 |
wodou | I am | 300 |
Assuming that certain input process of user produces upper screen content " I " by " wod ", then can be carried out to table 1
Update, to obtain table 2, wherein second increments of the first increment x of " wod " correspondence " I " more than " wode " correspondence " I "
y。
Table 2
Assuming that the input process again of user produces upper screen content " I obtains " by " wode ", then can to table 2 into
Row update, to obtain table 3, wherein the first increment x of " wode " correspondence " I obtains " is more than second increasing of " wod " correspondence " I obtains "
Measure y.
Table 3
Input string | Entry | Word frequency |
wod | I | 100+x |
wod | I am | 105 |
wod | I obtains | 110+y |
wod | I am right | 115 |
wod | I arrives | 120 |
wode | I | 200+y |
wode | I obtains | 205+x |
wode | Ward | 210 |
wodou | I am | 300 |
Using example 2
Step A1, user produces upper screen content " I " by input string " wod ";
Step A2, the first mapping relations are inquired according to being originally inputted string " wod " and upper screen content " I ", it is assumed that be not present
Corresponding first mapping relations (are originally inputted the mapping relations of string " wod ", the first entry " I " between word frequency), then build
Corresponding first mapping relations are found, according to some embodiments, the initial word frequency of the first entry can be in first mapping relations
0;
Step A3, the word frequency of the first entry in the first mapping relations is increased by the first increment x, updated first mapping is closed
System is as shown in table 4;
Table 4
It is originally inputted string | First entry | Word frequency |
wod | I | x |
Step A4, " I " corresponding correlated inputs string, including the input string " wode " of full form and other letters are obtained
Input string " wde ", " wd " of spell shape formula;For example, being reflected according to correlated inputs string " wode " and the second entry " I " inquiry second
Penetrate relationship, it is assumed that corresponding second mapping relations are not present, then establish corresponding second mapping relations (correlated inputs string
The mapping relations of " wode ", the second entry " I " between word frequency), according to some embodiments, in second mapping relations
The initial word frequency of two entries can be 0;
Step A5, the word frequency of the second entry in the second mapping relations is increased by the second increment y, updated second mapping is closed
System is as shown in table 5;
Table 5
Correlated inputs string | Second entry | Word frequency |
wode | I | y |
wde | I | y |
wd | I | y |
Step A6, user produces upper screen content " I " by input string " wodou ";
Step A7, the first mapping relations are inquired according to being originally inputted string " wodou " and upper screen content " I all ", it is assumed that do not deposit
Corresponding first mapping relations (being originally inputted the mapping relations of string " wodou ", the first entry " I all " between word frequency), then
Corresponding first mapping relations are established, according to some embodiments, the initial word frequency of the first entry can be in first mapping relations
It is 0;
Step A8, the word frequency of the first entry in the first mapping relations is increased by the first increment x, updated first mapping is closed
System is as shown in table 6;
Table 6
It is originally inputted string | First entry | Word frequency |
wodou | I am | x |
Step A9, " I all " corresponding correlated inputs string is obtained, including the input string " wod " of other simplicity forms,
" wde " and " wd ";For example, according to correlated inputs string " wod " and the second entry " I all " the second mapping relations of inquiry, it is assumed that no
There are corresponding second mapping relations, then create the second mapping relations (correlated inputs string " wod ", the second entry " I all " and word
Mapping relations between frequency), according to some embodiments, the initial word frequency of the second entry can be 0 in second mapping relations;
Step A10, the word frequency of the second entry in the second mapping relations is increased into the second increment y, updated second mapping
Relationship is as shown in table 7;
Table 7
Correlated inputs string | Second entry | Word frequency |
wod | I am | y |
wde | I am | y |
wd | I am | y |
As can be seen that the embodiment of the present invention is for being originally inputted corresponding first entry of string and correlated inputs string corresponding the
Two entries assign different word frequency increments, specifically, assign corresponding first entry of string that is originally inputted of user to larger word
Frequency increment, and assign corresponding second entry of correlated inputs string to smaller word frequency increment, the original in above-mentioned first mapping relations
Beginning input string and entry be the input string that user inputted and its shield content on corresponding, and input string that user inputted and its right
The input habit that screen content can reflect user for screen content on input string and its correspondence should be gone up so that updated word frequency is more
Add the input habit for meeting user.
To sum up, the prior art is not distinguished to being originally inputted string and the corresponding entry of correlated inputs string, causes user current
Required entry is come below, and currently unwanted entry is come front to user, or even comes preferred location, is reduced
Initial selection.
To solve the above-mentioned problems to improve initial selection, the embodiment of the present invention increases the defeated of user in the structure of dictionary
Enter string, specifically, the mapping relations between screen content and the input string of user is recorded by dictionary;Also, the present invention is implemented
Example according to user upper screen content and its it is corresponding be originally inputted string, by the mapping relations between input string, entry and word frequency
Described in the process that is updated of the upper screen content word frequency that corresponds to entry may include:If described be originally inputted string and the mapping
Input string in relationship is identical, then the word frequency that upper screen content corresponds to entry described in the mapping relations is increased by the first increment;
And if the string that is originally inputted is related to the input string in the mapping relations, will be gone up in screen described in the mapping relations
The word frequency for holding corresponding entry increases by the second increment, and above-mentioned first increment is more than the second increment;Wherein, it is described be originally inputted string with
In the case of input string in the mapping relations is identical, input string and entry in above-mentioned mapping relations are what user inputted
Input string and its it is corresponding on screen content (such as input string " wodou " and its corresponding " I all ", alternatively, input string " wod " and its corresponding
" I "), and screen content can reflect user on input string and its correspondence on the input string and its correspondence that user inputted
Shield the input habit of content, therefore, reflection user will be more capable of for shielding content on input string and its correspondence in the embodiment of the present invention
Input habit mapping relations in original input string correspond to entry word frequency increase bigger increment so that updated
Word frequency is more in line with the input habit of user.
Embodiment of the method two
With reference to Fig. 2, shows a kind of step flow chart of input method embodiment of the present invention, can specifically include:
Step 201, the current input string according to user, in the mapping relations between input string, entry and word frequency into
Row is searched, to obtain the word frequency of the corresponding entry of the current input string and the entry;
Step 202, according to the word frequency of the entry, the entry is ranked up and is showed.
Current input string can be used for the input string for indicating that user currently inputs, that is, what input method procedure was currently received
Input string.
The embodiment of the present invention in input process, can according to the current input string of user, input string, entry and
It is searched in mapping relations between word frequency, to obtain the corresponding entry of the input string and the entry
Word frequency, and according to the word frequency of the entry, be ranked up and show using the entry as candidate item.
The present invention a kind of alternative embodiment in, upper screen content it is corresponding be originally inputted string with the mapping relations in
Input string it is identical when, the word frequency that upper screen content corresponds to entry described in the mapping relations can be increased the first increment, and,
Upper screen content it is corresponding be originally inputted string it is related to the input string in the mapping relations when, described in the mapping relations on
The word frequency that screen content corresponds to entry can be increased the second increment;First increment is more than second increment.Due to the present invention
Reflection user will be more capable of for entry in the mapping relations for the input habit for shielding content on input string and its correspondence in embodiment
Word frequency increases the increment of bigger, therefore the ranking results in input process can be made to be more in line with the input habit of user, improves
Initial selection and the input efficiency of user.
In a kind of alternative embodiment of the present invention, the upper screen content is corresponding to be originally inputted string and the mapping relations
In input string it is related, can specifically include:
It is described to be originally inputted the input string that string is full form, and the input string in the mapping relations is described original defeated
Enter to go here and there the input string of corresponding simplicity form;And/or
It is described to be originally inputted the input string that string is simplicity form, and the input string in the mapping relations is described original defeated
Enter to go here and there corresponding full form and/or except it is described be originally inputted string in addition to other simplicity forms input string.
Still by taking application example two as an example, illustrate the input method of the present invention.Completion is executed in step A1 to step A10
Afterwards, it is assumed that when user is intended to again through input string " wod " input " I ", input method procedure can execute following steps:
Step B1, input method procedure is according to the current input string " wod " of user, between input string, entry and word frequency
Mapping relations in searched, can search to obtain the corresponding entry of current input string " wod " include:" I ", " I
All " etc.;Wherein, the word frequency that current input string " wod " corresponds to entry " I " is x, and current input string " wod " corresponds to target
The word frequency of entry " I all " is y;
Step B2, according to the word frequency of the entry, the entry is ranked up and is showed, due to target word
The word frequency x of item " I " is more than the word frequency y of entry " I ", and therefore, " I " still can come before " me all ",
Preferred location even is come, user can quickly select required candidate item, improve the input efficiency of user.
In practical applications, the dictionary of input method procedure can there are many, for example, in addition to the embodiment of the present invention is for depositing
Except the dictionary for storing up the mapping relations between input string, entry and word frequency, the dictionary of input method procedure can also include:System
System dictionary, cell dictionary, language model dictionary etc., covering for candidate item is corresponded in order to improve the current input string presented to user
Lid rate, some embodiments of the present invention, can also by addition to the embodiment of the present invention for store input string, entry and
Other dictionaries except the dictionary of mapping relations between word frequency obtain the corresponding candidate item of current input string, in such cases,
Above-mentioned entry will participate in sorting jointly with the entry from other dictionaries, in corresponding sequencer procedure, it is understood that there may be word
Duplicate removal process, if for example, entry is repeated with the entry from other dictionaries, it is preferential to retain entry, abandon source
From the entry etc. of other dictionaries, it will be understood that the embodiment of the present invention is for above-mentioned entry and the word for being originated from other dictionaries
The specific sequencer procedure of item does not limit.
In a kind of alternative embodiment of the present invention, the method can also include:According to the current input string of user,
It is searched in system dictionary, to obtain the word frequency of the corresponding system entry of the current input string and the system entry;
According to the word frequency of the entry and the word frequency of the system entry, the entry and the system entry are carried out
It sorts and shows.
Using example three
In practical applications, user is upper under Chinese language state shields English words, if the simplicity of certain Chinese words and English words weight
Code is then susceptible to sequence conflict between Chinese word and English words.Such as:User is produced by input string " hold " first
Shield content " hold ", upper screen content " traffic lights " is then produced by input string " honglvdeng ", then user is intended to lead to again
When crossing screen English words " hold " on input string " hold ", since " hold " is the simplicity of " honglvdeng ", Chinese word is " red green
Lamp " may be come front, and the English words " hold " needed for user are come below, and user need to manually select " hold ".
The problem of for sequence conflict is susceptible between Chinese word and English words, in a kind of alternative embodiment of the present invention
In, the entry in the mapping relations may include the corresponding entry of different language, such as first entry and described second
Entry can be the corresponding entry of different language, can solve the sequence conflict between the corresponding entry of different language, example in this way
Such as solve the sequence conflict between English words and Chinese word.
The method and input method of Word library updating can solve between above-mentioned English words and Chinese word through the invention
Sort collision problem, and specific processing procedure may include:
Step C1, user is by shielding content (English words) " hold " in input string " hold " generation;
Step C2, be directed to upper screen content " hold " and its it is corresponding be originally inputted string " hold ", establish it is following first map
Relationship:It is originally inputted the mapping relations of string " hold ", the first entry " hold " between word frequency, it is assumed that the first entry " hold "
Initial word frequency be 0;
Step C3, the word frequency of the first entry increases by the first increment x in the first mapping relations for creating step C2;First word
The current word frequency of item " hold " is x;
Since upper screen content " hold " is English words, therefore " hold " can not update corresponding without corresponding correlated inputs string
The second mapping relations.
Step C4, user is by shielding content " traffic lights " in input string " honglvdeng " generation;
Step C5, be directed to upper screen content " traffic lights " and its it is corresponding be originally inputted string " honglvdeng ", it is newly-built as follows
First mapping relations:It is originally inputted the mapping relations of string " honglvdeng ", the first entry " traffic lights " between word frequency;It is false
If the initial word frequency of the first entry " traffic lights " is 0;
Step C6, the word frequency of the first entry increases by the first increment x in the first mapping relations for creating step C5;First word
The current word frequency of item " traffic lights " is x;
Step C7, corresponding correlated inputs string of acquisition " traffic lights ", including the input string " hold " of other simplicity forms,
" hongld " etc.;By taking correlated inputs string " hold " as an example, following second mapping relations can be created:Correlated inputs string " hold ",
Mapping relations of second entry " traffic lights " between word frequency;The initial word frequency of second entry " traffic lights " is 0;
Step C8, the word frequency of the second entry increases by the second increment y in the second mapping relations for creating step C7;Second word
The current word frequency of item " traffic lights " is y;
Step C9, the current input string " hold " for receiving user is being inputted according to the current input string " hold " of user
It is searched in mapping relations between string, entry and word frequency, can search to obtain the corresponding mesh of current input string " hold "
Marking entry includes:" hold ", " traffic lights " etc.;Wherein, the word frequency of entry " hold " is x, entry " traffic lights "
Word frequency is y;
Step C14, according to the word frequency of the entry, the entry is ranked up and is showed, due to target
The word frequency x of entry " hold " is more than the word frequency y of entry " traffic lights ", therefore, before " hold " can come " traffic lights "
Face, or even preferred location is come, user can quickly select required candidate item, improve the input efficiency of user.
Using example four
The embodiment of the present invention can also be applied to solve the sequence conflict in zero initial simple or compound vowel of a Chinese syllable.Wherein, zero initial simple or compound vowel of a Chinese syllable refers to
Be such as a, e, o both can independently as an independent spelling syllable, can also be used as ai, an, ang, ao;ei、en、
eng、er;The simple or compound vowel of a Chinese syllable of the simplicity of other syllables such as ou.
Such as:User is by shielding content " small amount " in input string " xiaoe " generation;Then user passes through input string
Shield content " small two " in " xiaoer " generation;When user inputs current input string " xiaoe " again, due to zero initial simple or compound vowel of a Chinese syllable
" e " is the simplicity of syllable " er ", that is, input string " xiaoe " is the simplicity of input string " xiaoer ", then " small two " can for candidate item
It can come before " small amount ", and " small two " are come below the candidate item needed for user, and user need to manually select " small two ".
The method and input method of Word library updating can solve the punching of the sequence in above-mentioned zero initial simple or compound vowel of a Chinese syllable through the invention
Prominent problem.Specific implementation process is similar with using example two and application example three, and and therefore not to repeat here.
To sum up, the embodiment of the present invention is in input process, can according to the current input string of user, input string, entry,
And searched in the mapping relations between word frequency, to obtain the corresponding entry of the input string and the target
The word frequency of entry, and according to the word frequency of the entry, the entry is ranked up and is showed;Due to of the invention real
Apply the word that reflection user will be more capable of for entry in the mapping relations for the input habit for shielding content on input string and its correspondence in example
Frequency increases the increment of bigger, therefore ranking results can be made to be more in line with the input habit of user, improves initial selection and user
Input efficiency.
Device embodiment one
With reference to Fig. 3, shows a kind of structure diagram of input unit embodiment of the present invention, can specifically include:
First searching module 301, according to the current input string of user, the mapping between input string, entry and word frequency
It is searched in relationship, to obtain the word frequency of the corresponding entry of the current input string and the entry;
The display module 302 that sorts is ranked up and opens up to the entry for the word frequency according to the entry
It is existing.
In a kind of alternative embodiment of the present invention, described device can also include:
Word frequency update module, for upper screen content it is corresponding be originally inputted string and the input string phase in the mapping relations
Meanwhile the word frequency that upper screen content corresponds to entry described in the mapping relations is increased the first increment, and, in upper screen content pair
Answer be originally inputted string it is related to the input string in the mapping relations when, upper screen content equivalent described in the mapping relations
The word frequency of item is increased the second increment;First increment is more than second increment.
In another alternative embodiment of the present invention, the corresponding string that is originally inputted of the upper screen content is closed with the mapping
Input string in system is related, can specifically include:
It is described to be originally inputted the input string that string is full form, and the input string in the mapping relations is described original defeated
Enter to go here and there the input string of corresponding simplicity form;And/or
It is described to be originally inputted the input string that string is simplicity form, and the input string in the mapping relations is described original defeated
Enter to go here and there corresponding full form and/or except it is described be originally inputted string in addition to other simplicity forms input string.
In another alternative embodiment of the present invention, the entry in the mapping relations includes the corresponding word of different language
Item.
In another alternative embodiment of the present invention, described device can also include:
Second searching module is searched for the current input string according to user in system dictionary, described to obtain
The word frequency of the current corresponding system entry of input string and the system entry;
The sequence display module is additionally operable to the word frequency of the word frequency and the system entry according to the entry,
The entry and the system entry are ranked up and are showed.
Device embodiment two
With reference to Fig. 4, shows a kind of structure diagram of the device embodiment of update dictionary of the present invention, can specifically wrap
It includes:
Update module, for according to user upper screen content and its it is corresponding be originally inputted string, by input string, entry, with
And the word frequency that upper screen content corresponds to entry described in the mapping relations between word frequency is updated;
The update module, can specifically include:
First update submodule 401, if identical as the input string in the mapping relations for the string that is originally inputted,
The word frequency that upper screen content corresponds to entry described in the mapping relations is increased by the first increment;And
Second update submodule 402, if related to the input string in the mapping relations for the string that is originally inputted,
The word frequency that upper screen content corresponds to entry described in the mapping relations is increased by the second increment;Wherein, first increment is more than
Second increment.
In a kind of alternative embodiment of the present invention, described device can also include:Third searching module;
The third searching module, for acquisition and user from the mapping relations between input string, entry and word frequency
The target data record that matches of upper screen content;Then the string that is originally inputted is identical as the input string in the mapping relations,
Including:It is described be originally inputted string it is identical as the input string in the target data record;It is described to be originally inputted string and the mapping
Input string in relationship is related, including:It is described be originally inputted string it is related to the input string in the target data record.
It is described to be originally inputted string and the input string phase in the mapping relations in another alternative embodiment of the present invention
It closes, can specifically include:
It is described to be originally inputted the input string that string is full form, and the input string in the mapping relations is described original defeated
Enter to go here and there the input string of corresponding simplicity form;And/or
It is described to be originally inputted the input string that string is simplicity form, and the input string in the mapping relations is described original defeated
Enter to go here and there corresponding full form and/or except it is described be originally inputted string in addition to other simplicity forms input string.
In another alternative embodiment of the present invention, described device can also include:
Establish module, for according to user upper screen content and its it is corresponding be originally inputted string, establish input string, entry,
And the mapping relations between word frequency.
In another alternative embodiment of the present invention, the entry in the mapping relations includes the corresponding word of different language
Item.
For device embodiments, since it is basically similar to the method embodiment, so fairly simple, the correlation of description
Place illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiment, the same or similar parts between the embodiments can be referred to each other.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 5 be shown according to an exemplary embodiment it is a kind of for input device 800 as intelligent terminal when knot
Structure block diagram.For example, device 800 can be mobile phone, and computer, digital broadcast terminal, messaging devices, game control
Platform, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
With reference to Fig. 5, device 800 may include following one or more components:Processing component 802, memory 804, power supply
Component 806, multimedia component 808, audio component 810, the interface 812 of input/output (I/O), sensor module 814, and
Communication component 816.
The integrated operation of 802 usual control device 800 of processing component, such as with display, call, data communication, phase
Machine operates and record operates associated operation.Processing element 802 may include that one or more processors 820 refer to execute
It enables, to perform all or part of the steps of the methods described above.In addition, processing component 802 may include one or more modules, just
Interaction between processing component 802 and other assemblies.For example, processing component 802 may include multi-media module, it is more to facilitate
Interaction between media component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in equipment 800.These data are shown
Example includes instruction for any application program or method that are operated on device 800, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group
It closes and realizes, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile
Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash
Device, disk or CD.
Power supply module 806 provides electric power for the various assemblies of device 800.Power supply module 806 may include power management system
System, one or more power supplys and other generated with for device 800, management and the associated component of distribution electric power.
Multimedia component 808 is included in the screen of one output interface of offer between described device 800 and user.One
In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings
Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action
Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers
Body component 808 includes a front camera and/or rear camera.When equipment 800 is in operation mode, such as screening-mode or
When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike
Wind (MIC), when device 800 is in operation mode, when such as call model, logging mode and speech recognition mode, microphone by with
It is set to reception external audio signal.The received audio signal can be further stored in memory 804 or via communication set
Part 816 is sent.In some embodiments, audio component 810 further includes a loud speaker, is used for exports audio signal.
I/O interfaces 812 provide interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Sensor module 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented
Estimate.For example, sensor module 814 can detect the state that opens/closes of equipment 800, and the relative positioning of component, for example, it is described
Component is the display and keypad of device 800, and sensor module 814 can be with 800 1 components of detection device 800 or device
Position change, the existence or non-existence that user contacts with device 800,800 orientation of device or acceleration/deceleration and device 800
Temperature change.Sensor module 814 may include proximity sensor, be configured to detect without any physical contact
Presence of nearby objects.Sensor module 814 can also include optical sensor, such as CMOS or ccd image sensor, at
As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device
800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or combination thereof.In an exemplary implementation
In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 816 further includes near-field communication (NFC) module, to promote short range communication.Example
Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application application-specific integrated circuit (ASIC), number
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, it includes the non-transitorycomputer readable storage medium instructed, example to additionally provide a kind of
Such as include the memory 804 of instruction, above-metioned instruction can be executed by the processor 820 of device 800 to complete the above method.For example,
The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
Fig. 6 is the structural schematic diagram of server in some embodiments of the present invention.The server 1900 can be because of configuration or property
Energy is different and generates bigger difference, may include one or more central processing units (central processing
Units, CPU) 1922 (for example, one or more processors) and memory 1932, one or more storage applications
The storage medium 1930 (such as one or more mass memory units) of program 1942 or data 1944.Wherein, memory
1932 and storage medium 1930 can be of short duration storage or persistent storage.The program for being stored in storage medium 1930 may include one
A or more than one module (diagram does not mark), each module may include to the series of instructions operation in server.More into
One step, central processing unit 1922 could be provided as communicating with storage medium 1930, and storage medium is executed on server 1900
Series of instructions operation in 1930.
Server 1900 can also include one or more power supplys 1926, one or more wired or wireless nets
Network interface 1950, one or more input/output interfaces 1958, one or more keyboards 1956, and/or, one or
More than one operating system 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM
Etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by device (intelligent terminal
Or server) processor execute when so that device is able to carry out a kind of input method, the method includes:According to user
Current input string, searched in the mapping relations between input string, entry and word frequency, it is described current defeated to obtain
Enter to go here and there the word frequency of corresponding entry and the entry;According to the word frequency of the entry, to the target word
Item is ranked up and shows.
Optionally, upper screen content it is corresponding be originally inputted string it is identical as the input string in the mapping relations when, it is described
The word frequency that upper screen content corresponds to entry described in mapping relations is increased the first increment, and, it is corresponding original in upper screen content
When input string is related to the input string in the mapping relations, upper screen content described in the mapping relations corresponds to the word frequency of entry
It is increased the second increment;First increment is more than second increment.
Optionally, the corresponding string that is originally inputted of the upper screen content is related to the input string in the mapping relations, including:
It is described to be originally inputted the input string that string is full form, and the input string in the mapping relations is that the string that is originally inputted corresponds to
Simplicity form input string;And/or it is described be originally inputted the input string that string is simplicity form, and it is defeated in the mapping relations
Enter string to be originally inputted the corresponding full form of string for described in and/or be originally inputted the defeated of other simplicity forms in addition to going here and there except described
Enter string.
Optionally, the entry in the mapping relations includes the corresponding entry of different language.
Optionally, the method further includes:According to the current input string of user, searched in system dictionary, with
To the word frequency of the current corresponding system entry of input string and the system entry;According to the word frequency of the entry
And the word frequency of the system entry, the entry and the system entry are ranked up and are showed.
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by device (intelligent terminal
Or server) processor execute when so that device be able to carry out it is a kind of update dictionary method, the method includes:According to
According to user upper screen content and its it is corresponding be originally inputted string, by institute in the mapping relations between input string, entry and word frequency
It states screen content and corresponds to the word frequency of entry and be updated;Institute in the mapping relations by between input string, entry and word frequency
It states screen content and corresponds to the word frequency of entry and be updated, including:If described be originally inputted string and the input in the mapping relations
It goes here and there identical, then upper screen content described in the mapping relations is corresponded into word frequency the first increment of increase of entry;And if the original
Beginning input string is related to the input string in the mapping relations, then upper screen content described in the mapping relations is corresponded to entry
Word frequency increases by the second increment;Wherein, first increment is more than second increment.
Optionally, the method further includes:It obtains and uses from the mapping relations between input string, entry and word frequency
The target data record that the upper screen content at family matches;It is then described to be originally inputted string and the input string phase in the mapping relations
Together, including:It is described be originally inputted string it is identical as the input string in the target data record;The string that is originally inputted is reflected with described
The input string penetrated in relationship is related, including:It is described be originally inputted string it is related to the input string in the target data record.
Optionally, the string that is originally inputted is related to the input string in the mapping relations, including:It is described to be originally inputted string
For the input string of full form, and the input string in the mapping relations is described to be originally inputted the defeated of the corresponding simplicity form of string
Enter string;And/or it is described be originally inputted string be simplicity form input string, and the input string in the mapping relations be it is described original
The corresponding full form of input string and/or except it is described be originally inputted string in addition to other simplicity forms input string.
Optionally, the method further includes:According to user upper screen content and its it is corresponding be originally inputted string, establish and input
Mapping relations between string, entry and word frequency.
Optionally, the entry in the mapping relations includes the corresponding entry of different language.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the present invention
Its embodiment.The present invention is directed to cover the present invention any variations, uses, or adaptations, these modifications, purposes or
Person's adaptive change follows the general principle of the present invention and includes the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be understood that the invention is not limited in the precision architectures for being described above and being shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.
Above to a kind of input method provided by the present invention, a kind of input unit and a kind of device for input, with
And device and a kind of device for updating dictionary of a kind of method of update dictionary, a kind of update dictionary, carry out detailed Jie
It continues, principle and implementation of the present invention are described for specific case used herein, and the explanation of above example is only
It is the method and its core concept for being used to help understand the present invention;Meanwhile for those of ordinary skill in the art, according to this hair
Bright thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not manage
Solution is limitation of the present invention.
Claims (14)
1. a kind of input method, which is characterized in that the method includes:
According to the current input string of user, searched in the mapping relations between input string, entry and word frequency, with
To the word frequency of the current corresponding entry of input string and the entry;
According to the word frequency of the entry, the entry is ranked up and is showed.
2. according to the method described in claim 1, it is characterized in that, being gone here and there and the mapping in corresponding be originally inputted of upper screen content
When input string in relationship is identical, the word frequency that upper screen content corresponds to entry described in the mapping relations is increased the first increment,
And upper screen content it is corresponding be originally inputted string it is related to the input string in the mapping relations when, in the mapping relations
The word frequency that the upper screen content corresponds to entry is increased the second increment;First increment is more than second increment.
3. according to the method described in claim 2, it is characterized in that, the corresponding string that is originally inputted of the upper screen content is reflected with described
The input string penetrated in relationship is related, including:
It is described to be originally inputted the input string that string is full form, and the input string in the mapping relations is originally inputted string to be described
The input string of corresponding simplicity form;And/or
It is described to be originally inputted the input string that string is simplicity form, and the input string in the mapping relations is originally inputted string to be described
Corresponding full form and/or except it is described be originally inputted string in addition to other simplicity forms input string.
4. method according to claim 1 or 2, which is characterized in that the entry in the mapping relations includes different language
Corresponding entry.
5. according to the method described in claim 1, it is characterized in that, the method further includes:
It according to the current input string of user, is searched in system dictionary, to obtain the corresponding system of the current input string
The word frequency of entry and the system entry;
According to the word frequency of the entry and the word frequency of the system entry, to the entry and the system entry
It is ranked up and shows.
6. a kind of method of update dictionary, which is characterized in that the method includes:
According to user upper screen content and its it is corresponding be originally inputted string, by between input string, entry and word frequency mapping pass
The word frequency that upper screen content corresponds to entry described in system is updated;
The word frequency that upper screen content corresponds to entry described in the mapping relations by between input string, entry and word frequency carries out
Update, including:
It, will be in upper screen described in the mapping relations if the string that is originally inputted is identical as the input string in the mapping relations
The word frequency for holding corresponding entry increases by the first increment;And
It, will be in upper screen described in the mapping relations if the string that is originally inputted is related to the input string in the mapping relations
The word frequency for holding corresponding entry increases by the second increment;Wherein, first increment is more than second increment.
7. according to the method described in claim 6, it is characterized in that, the method further includes:
The number of targets to match with the upper screen content of user is obtained from the mapping relations between input string, entry and word frequency
According to record;
Then the string that is originally inputted is identical as the input string in the mapping relations, including:It is described to be originally inputted string and the mesh
The input string marked in data record is identical;The string that is originally inputted is related to the input string in the mapping relations, including:It is described
It is related to the input string in the target data record to be originally inputted string.
8. according to the method described in claim 6, it is characterized in that, described be originally inputted string and the input in the mapping relations
String is related, including:
It is described to be originally inputted the input string that string is full form, and the input string in the mapping relations is originally inputted string to be described
The input string of corresponding simplicity form;And/or
It is described to be originally inputted the input string that string is simplicity form, and the input string in the mapping relations is originally inputted string to be described
Corresponding full form and/or except it is described be originally inputted string in addition to other simplicity forms input string.
9. according to any method in claim 6 to 8, which is characterized in that the method further includes:
Upper screen content according to user and its corresponding mapping for being originally inputted string, establishing between input string, entry and word frequency
Relationship.
10. according to any method in claim 6 to 8, which is characterized in that the entry in the mapping relations includes not
The corresponding entry with language.
11. a kind of input unit, which is characterized in that described device includes:
First searching module, for the current input string according to user, the mapping between input string, entry and word frequency is closed
It is searched in system, to obtain the word frequency of the corresponding entry of the current input string and the entry;
The display module that sorts is ranked up and shows to the entry for the word frequency according to the entry.
12. a kind of device of update dictionary, which is characterized in that described device includes:
Update module, for according to user upper screen content and its it is corresponding be originally inputted string, by input string, entry and word
The word frequency that upper screen content corresponds to entry described in mapping relations between frequency is updated;
The update module, including:
First update submodule will be described if identical as the input string in the mapping relations for the string that is originally inputted
The word frequency that upper screen content corresponds to entry described in mapping relations increases by the first increment;And
Second update submodule will be described if related to the input string in the mapping relations for the string that is originally inputted
The word frequency that upper screen content corresponds to entry described in mapping relations increases by the second increment;Wherein, first increment is more than described the
Two increments.
13. a kind of device for input, which is characterized in that include memory and one or more than one program,
Either more than one program is stored in memory and is configured to be executed by one or more than one processor for one of them
The one or more programs include the instruction for being operated below:
According to the current input string of user, searched in the mapping relations between input string, entry and word frequency, with
To the word frequency of the current corresponding entry of input string and the entry;
According to the word frequency of the entry, the entry is ranked up and is showed.
14. a kind of for updating the device of dictionary, which is characterized in that include memory and one or more than one
Program, either more than one program is stored in memory and is configured to by one or more than one processing for one of them
It includes the instruction for being operated below that device, which executes the one or more programs,:
According to user upper screen content and its it is corresponding be originally inputted string, by between input string, entry and word frequency mapping pass
The word frequency that upper screen content corresponds to entry described in system is updated;
The word frequency that upper screen content corresponds to entry described in the mapping relations by between input string, entry and word frequency carries out
Update, including:
It, will be in upper screen described in the mapping relations if the string that is originally inputted is identical as the input string in the mapping relations
The word frequency for holding corresponding entry increases by the first increment;And
It, will be in upper screen described in the mapping relations if the string that is originally inputted is related to the input string in the mapping relations
The word frequency for holding corresponding entry increases by the second increment;Wherein, first increment is more than second increment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710157260.3A CN108628461B (en) | 2017-03-16 | 2017-03-16 | Input method and device and method and device for updating word stock |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710157260.3A CN108628461B (en) | 2017-03-16 | 2017-03-16 | Input method and device and method and device for updating word stock |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108628461A true CN108628461A (en) | 2018-10-09 |
CN108628461B CN108628461B (en) | 2022-07-08 |
Family
ID=63686742
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710157260.3A Active CN108628461B (en) | 2017-03-16 | 2017-03-16 | Input method and device and method and device for updating word stock |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108628461B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109542248A (en) * | 2018-11-16 | 2019-03-29 | 上海二三四五网络科技有限公司 | A kind of control method and control device of incremental update dictionary data |
CN112035597A (en) * | 2020-09-04 | 2020-12-04 | 常州新途软件有限公司 | Vehicle-mounted input method |
CN113722470A (en) * | 2021-09-06 | 2021-11-30 | 杭州安恒信息技术股份有限公司 | Information prompting method, device, equipment and storage medium |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1409193A (en) * | 2001-09-25 | 2003-04-09 | 张凯旋 | Pyramid Chinese character intelligent mixed spelling input method and keyboard |
CN101051323A (en) * | 2007-05-22 | 2007-10-10 | 北京搜狗科技发展有限公司 | Character input method, input method system and method for updating word stock |
CN101079060A (en) * | 2007-03-26 | 2007-11-28 | 腾讯科技(深圳)有限公司 | Chinese character input simple 'pinyin' implementation method and system |
CN101178741A (en) * | 2007-12-24 | 2008-05-14 | 腾讯科技(深圳)有限公司 | Method and device for updating user's word stock |
CN101216854A (en) * | 2008-01-15 | 2008-07-09 | 腾讯科技(深圳)有限公司 | Computer words input method and system and its word library maintenance method and device |
KR20080086070A (en) * | 2007-03-21 | 2008-09-25 | 강윤기 | Words retrieving method |
CN101382866A (en) * | 2008-09-26 | 2009-03-11 | 腾讯科技(深圳)有限公司 | System and method for correcting input characters |
CN102053974A (en) * | 2009-11-03 | 2011-05-11 | 新浪网技术(中国)有限公司 | Chinese character input method and device |
CN102129440A (en) * | 2010-01-13 | 2011-07-20 | 腾讯科技(北京)有限公司 | Method and system for directional push of information |
CN102722483A (en) * | 2011-03-29 | 2012-10-10 | 百度在线网络技术(北京)有限公司 | Method, apparatus and equipment for determining candidate-item sequence of input method |
CN104267829A (en) * | 2014-10-16 | 2015-01-07 | 浪潮软件集团有限公司 | Input method based on embedded QT |
-
2017
- 2017-03-16 CN CN201710157260.3A patent/CN108628461B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1409193A (en) * | 2001-09-25 | 2003-04-09 | 张凯旋 | Pyramid Chinese character intelligent mixed spelling input method and keyboard |
KR20080086070A (en) * | 2007-03-21 | 2008-09-25 | 강윤기 | Words retrieving method |
CN101079060A (en) * | 2007-03-26 | 2007-11-28 | 腾讯科技(深圳)有限公司 | Chinese character input simple 'pinyin' implementation method and system |
CN101051323A (en) * | 2007-05-22 | 2007-10-10 | 北京搜狗科技发展有限公司 | Character input method, input method system and method for updating word stock |
CN101178741A (en) * | 2007-12-24 | 2008-05-14 | 腾讯科技(深圳)有限公司 | Method and device for updating user's word stock |
CN101216854A (en) * | 2008-01-15 | 2008-07-09 | 腾讯科技(深圳)有限公司 | Computer words input method and system and its word library maintenance method and device |
CN101382866A (en) * | 2008-09-26 | 2009-03-11 | 腾讯科技(深圳)有限公司 | System and method for correcting input characters |
CN102053974A (en) * | 2009-11-03 | 2011-05-11 | 新浪网技术(中国)有限公司 | Chinese character input method and device |
CN102129440A (en) * | 2010-01-13 | 2011-07-20 | 腾讯科技(北京)有限公司 | Method and system for directional push of information |
CN102722483A (en) * | 2011-03-29 | 2012-10-10 | 百度在线网络技术(北京)有限公司 | Method, apparatus and equipment for determining candidate-item sequence of input method |
CN104267829A (en) * | 2014-10-16 | 2015-01-07 | 浪潮软件集团有限公司 | Input method based on embedded QT |
Non-Patent Citations (2)
Title |
---|
CQCPL: "有研究输入法的吗?词频调整如何处理?", 《HTTPS://TIEBA.BAIDU.COM/P/4027176614》 * |
余泳: "基于XIM的简体中文输入法FCITX", 《中国工程物流研究院第七届电子技术青年学术交流会论文集》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109542248A (en) * | 2018-11-16 | 2019-03-29 | 上海二三四五网络科技有限公司 | A kind of control method and control device of incremental update dictionary data |
CN112035597A (en) * | 2020-09-04 | 2020-12-04 | 常州新途软件有限公司 | Vehicle-mounted input method |
CN112035597B (en) * | 2020-09-04 | 2023-11-21 | 常州新途软件有限公司 | Vehicle-mounted input method |
CN113722470A (en) * | 2021-09-06 | 2021-11-30 | 杭州安恒信息技术股份有限公司 | Information prompting method, device, equipment and storage medium |
CN113722470B (en) * | 2021-09-06 | 2024-03-08 | 杭州安恒信息技术股份有限公司 | Information prompting method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108628461B (en) | 2022-07-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107608532B (en) | Association input method and device and electronic equipment | |
CN107527619A (en) | The localization method and device of Voice command business | |
CN108008832A (en) | A kind of input method and device, a kind of device for being used to input | |
CN108255940A (en) | A kind of cross-language search method and apparatus, a kind of device for cross-language search | |
CN109144285A (en) | A kind of input method and device | |
CN109582768A (en) | A kind of text entry method and device | |
CN108958503A (en) | input method and device | |
CN112068711A (en) | Information recommendation method and device of input method and electronic equipment | |
CN108073292A (en) | A kind of intelligent word method and apparatus, a kind of device for intelligent word | |
WO2021046958A1 (en) | Speech information processing method and apparatus, and storage medium | |
CN109961791A (en) | A kind of voice information processing method, device and electronic equipment | |
CN110069624A (en) | Text handling method and device | |
CN108628819A (en) | Treating method and apparatus, the device for processing | |
CN108628461A (en) | A kind of input method and device, a kind of method and apparatus of update dictionary | |
CN109002184A (en) | A kind of association method and device of input method candidate word | |
CN112133295B (en) | Speech recognition method, device and storage medium | |
CN109388249B (en) | Input information processing method and device, terminal and readable storage medium | |
CN108073293A (en) | A kind of definite method and apparatus of target phrase | |
CN109783244A (en) | Treating method and apparatus, the device for processing | |
CN107436896A (en) | Method, apparatus and electronic equipment are recommended in one kind input | |
CN113923517B (en) | Background music generation method and device and electronic equipment | |
CN109901726A (en) | A kind of candidate word generation method, device and the device generated for candidate word | |
CN109799916A (en) | A kind of candidate item association method and device | |
CN110399468A (en) | A kind of data processing method, device and the device for data processing | |
CN108549627B (en) | Chinese character processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |