Summary of the invention
In view of the above problems, the present invention is proposed to provide a kind of device overcoming the problems referred to above or a kind of method of the displaying candidate item based on input method solved the problem at least in part and a kind of displaying candidate item based on input method accordingly.
According to one aspect of the present invention, provide a kind of method of the displaying candidate item based on input method, comprising:
Determine the target string of current non-selected candidate item, described candidate item comprises candidate's phrase or candidate word;
Search the candidate's phrase with part or all of described target character String matching;
Search the candidate word with first character match in described target string;
At least part of candidate's phrase, at least partly candidate word is shown in candidate bar.
Alternatively, described target string comprises:
The character string of initial input;
Or,
Character string in the character string of initial input, except determining the character string of candidate item.
Alternatively, described candidate bar comprises the first candidate region, the second candidate region;
Describedly in candidate bar, show that the step of at least part of candidate's phrase, at least partly candidate word comprises:
At least part of candidate's phrase is shown in the first candidate region;
At least part of candidate word is shown in the second candidate region.
Alternatively, also comprise:
When the trigger action of specifying being detected, in candidate bar, show the candidate phrase adjacent with candidate word with current candidate's phrase and candidate word.
Alternatively, described candidate bar comprises the first candidate region, the second candidate region;
The step of described candidate's phrase that displaying is adjacent with candidate word with current candidate's phrase in candidate bar and candidate word comprises:
Candidate's phrase that current candidate's phrase is adjacent is shown in the first candidate region;
The candidate word that current candidate word is adjacent is shown in the second candidate region.
According to a further aspect in the invention, provide a kind of device of the displaying candidate item based on input method, comprising:
Target string determination module, be suitable for the target string determining current non-selected candidate item, described candidate item comprises candidate's phrase or candidate word;
Module looked in candidate's phrase, is suitable for searching the candidate's phrase with part or all of described target character String matching;
Candidate word searches module, is suitable for searching the candidate word with first character match in described target string;
First candidate item display module, is suitable in candidate bar, show at least part of candidate's phrase, at least partly candidate word.
Alternatively, described target string comprises:
The character string of initial input;
Or,
Character string in the character string of initial input, except determining the character string of candidate item.
Alternatively, described candidate bar comprises the first candidate region, the second candidate region;
Described first candidate item display module is also suitable for:
At least part of candidate's phrase is shown in the first candidate region;
At least part of candidate word is shown in the second candidate region.
Alternatively, also comprise:
Second candidate item display module, is suitable for when the trigger action of specifying being detected, and shows the candidate phrase adjacent with candidate word with current candidate's phrase and candidate word in candidate bar.
Alternatively, described candidate bar comprises the first candidate region, the second candidate region;
Described second candidate item display module is also suitable for:
Candidate's phrase that current candidate's phrase is adjacent is shown in the first candidate region;
The candidate word that current candidate word is adjacent is shown in the second candidate region.
The embodiment of the present invention by showing and candidate's phrase of part or all of target character String matching, the candidate word with first character match in target string simultaneously in candidate bar, make without in the situations such as correct result, user directly can carry out the selection of individual character in candidate bar, reduce the operation such as page turning, slip, improve input speed and promote Consumer's Experience, meanwhile, input method, without the need to repeatedly responding the operation such as page turning, slip, reduces resource consumption.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of instructions, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
With reference to Fig. 1, show a kind of according to an embodiment of the invention flow chart of steps of embodiment of the method for the displaying candidate item based on input method, specifically can comprise the steps:
Step 101, determines the target string of current non-selected candidate item;
It should be noted that, the embodiment of the present invention can be applied to be had in the electronic equipment of input function, this electronic equipment can comprise mobile device, such as, mobile phone, panel computer, wearable device (as bracelet, wrist-watch, glasses) etc., also can comprise fixed equipment, such as, PC etc., the embodiment of the present invention is not limited this.
These electronic equipments can be supported to comprise the operating system such as Windows, Android (Android), IOS, WindowsPhone usually, can support to run through the application program that the modes such as keyboard (as dummy keyboard or physical keyboard) carry out inputting.
Wherein, this keyboard can comprise nine grids keyboard, full keyboard (as QWERT keyboard) etc., and this application program can comprise input method etc.
Usually, in keyboard, generally there is multiple button, this button is often re-used, each button can map one or more character, specifically can comprise numerical character, English character, Chinese character (comprising pinyin character, stroke character, five characters), sign character etc., to input numeral, English, Chinese and symbol etc.
Such as, in nine grids keyboard, numerical character " 2 " usually and English character " A ", " B ", " C ", " a ", " b ", " c ", pinyin character " a " (simple or compound vowel of a Chinese syllable), " b " (initial consonant), " c " (initial consonant), stroke character " Shu " is mapped to same button.
After user presses one or more button on keyboard, the character that this button maps can form character string.
Furthermore, the character string be made up of pinyin character can be referred to as pinyin character string, the character string be made up of English character can be referred to as English character string, the character string be made up of numerical character can be referred to as digit strings, mixed characters string can be referred to as by the character string that in pinyin character, English character, numerical character, at least both form, etc.
In embodiments of the present invention, this character string can be pinyin character string, English character string, digit strings, mixed characters string, etc., the embodiment of the present invention is understood better for making those skilled in the art, in embodiments of the present invention, a kind of example of pinyin character string as character string is described.
The application embodiment of the present invention, before each displaying candidate item, can determine the target string of current non-selected candidate item, to search the candidate item matched.
In specific implementation, target string can comprise following two kinds:
The character string of initial input;
In embodiments of the present invention, the character string of initial input can refer to the character string of the original input of user.
For pinyin character string, if user clicks " q ", " c ", " h ", " i ", " f " successively in full keyboard, then the character string (pinyin character string) of initial input is " qchif ".
Or,
Character string in the character string of initial input, except determining the character string of candidate item.
In embodiments of the present invention, user can by clicking the numerical key of candidate item, clicking the candidate item of the way selection partial character string such as candidate item, and remaining character string is target string.
Such as, user have selected the candidate item of " q " in the character string (pinyin character string) " qchif " of initial input, and remaining character string (pinyin character string) " chif " is target string.
Step 102, searches the candidate's phrase with part or all of described target character String matching;
In embodiments of the present invention, the candidate item of searching can comprise candidate's phrase, namely comprises the candidate item of two or more word.
For pinyin character string, input method can be searched candidate's phrase with this pronunciation (part or all of pinyin character string) and be shown in dictionary.
It should be noted that, coupling can be spelling (" chi " as in pinyin character string " qchif ") coupling, also can be simplicity (" q ", " f " as in pinyin character string " qchif ") coupling.
Such as, for pinyin character string " qchif ", the candidate's phrase mated with whole pinyin character strings " qchif " can be searched " please have a meal ", " please eat " with candidate's phrase of mating of pinyin character string " qchi " of part, " seven foot ", " canine tooth ", " opening one's mouth ", etc.
Again such as, if " q " determines candidate item in pinyin character string " qchif ", then target string is " chif ", can search that the candidate's phrase mated with whole pinyin character strings " chif " " is had a meal ", " eating powder ", " eating method ", " Chifeng ", " abnormally fat ", etc.
Step 103, searches the candidate word with first character match in described target string;
In embodiments of the present invention, the candidate item of searching, except candidate's phrase, can also comprise candidate word, namely comprises the candidate item of a file.
For pinyin character string, input method can be searched the candidate word with this pronunciation (the first character of pinyin character string) and be shown in dictionary.
Such as, for pinyin character string " qchif ", can search the candidate word mated with first character " q " " go ", " and ", " front ", " rising ", " cutting " etc.
Again such as, if " q " determines candidate item in pinyin character string " qchif ", then target string is " chif ", can search mate with first character " c " candidate word " from ", " ", " eating ", " removing ", " going out " etc.
It should be noted that, first character can be first phonetic, and can be also first syllable, the embodiment of the present invention not be limited this.
Such as, for pinyin character string " chif " (target string), first character can be first phonetic " c ", also can be first syllable " chi ".
Step 104, shows at least part of candidate's phrase, at least partly candidate word in candidate bar.
In embodiments of the present invention, input method can generate candidate bar, and this candidate bar can be window.
Generally, the position of candidate bar is limited, and the quantity of candidate's phrase, candidate word may be many, and therefore, generally in candidate bar, candidate bar shows at least part of candidate's phrase, at least partly candidate word.
In specific implementation, input method can sort to candidate's phrase, candidate word respectively, namely carry out sorting, sorting between candidate word between candidate's phrase, in candidate bar, show at least part of candidate's phrase, at least partly candidate word according to the order of sequence.
In a kind of mode, can sort according to the frequency of utilization of group of subscribers, namely in advance by the input historical data of collection of server different user, add up the frequency of utilization of each candidate's phrase, candidate word.
Generally, frequency of utilization is higher, before sequence more, more preferentially show, otherwise frequency of utilization is lower, after sequence more.
Certainly, in order to ensure the right of privacy and the right to know of user, first can check whether the user of this input method adds appointment plan, if, then confirm that the acquisition operations of the user of this input method to the input historical data of server is authorized, input method can continue the transmission flow performing input historical data, if the user of this input method does not add executive plan, then confirm that the user of this input method does not authorize the acquisition operations of the input historical data of server, input method stops the transmission flow performing input historical data.Wherein, appointment plan can include but not limited to Consumer's Experience plan that platform belonging to input method is initiated etc.
In a further mode of operation, can sort according to the frequency of utilization of active user, namely gather the input historical data of active user in advance, add up the frequency of utilization of each candidate's phrase, candidate word.
Generally, frequency of utilization is higher, before sequence more, more preferentially show, otherwise frequency of utilization is lower, after sequence more.
In a further mode of operation, can sort according to current input environment information, namely current input environment is detected, obtain input environment information (as the search column of search engine, the chat window of immediate communication tool etc.), sort according to the matching degree of each candidate's phrase, candidate word and input environment information.
Generally, matching degree is higher, before sequence more, more preferentially show, otherwise matching degree is lower, after sequence more.
Certainly, above-mentioned sortord just exemplarily, when implementing the embodiment of the present invention, other sortords can be set according to actual conditions, such as, by the frequency of utilization of the frequency of utilization of above-mentioned group of subscribers, active user, configure corresponding weight with the matching degree of input environment information, generate comprehensive weight, carry out sorting etc. according to comprehensive weight, the embodiment of the present invention is not limited this.In addition, except above-mentioned sortord, those skilled in the art can also adopt other sortord according to actual needs, and the embodiment of the present invention is not also limited this.
In a kind of embodiment of the present invention, this candidate bar can comprise the first candidate region, the second candidate region; Then in embodiments of the present invention, step 104 can comprise following sub-step:
Sub-step S11, shows at least part of candidate's phrase in the first candidate region;
Sub-step S12, shows at least part of candidate word in the second candidate region.
In embodiments of the present invention, can subfield show candidate phrase, candidate word.
Such as, as shown in Figure 2 A, in candidate bar 200, for the pinyin character string 201 " qchif " of user's input, in the first candidate region 202, show that the candidate's phrase mated with whole pinyin character strings " qchif " " please be had a meal ", " please eat " with candidate's phrase of mating of pinyin character string " qchi " of part, " seven foot ", " canine tooth ", " opening one's mouth ", in the second candidate region 203, show that the candidate word mated with first character " q " " goes ", " and ", " front ", " rising ", " cutting ".
It should be noted that, the first candidate region and the second display area are configurable, and namely user can arrange the quantity (as line number) of the first candidate region and the second display area.
Such as, as shown in Figure 2 C, if user's input Pinyin character string " zkhxq ", first three behavior first candidate region can be specified, show the candidate's phrase with all or part of pinyin character String matching, rear two behavior second display area, displaying joins first candidate word with the first character of pinyin character string.
The embodiment of the present invention by showing and candidate's phrase of part or all of target character String matching, the candidate word with first character match in target string simultaneously in candidate bar, make without in the situations such as correct result, user directly can carry out the selection of individual character in candidate bar, reduce the operation such as page turning, slip, improve input speed and promote Consumer's Experience, meanwhile, input method, without the need to repeatedly responding the operation such as page turning, slip, reduces resource consumption.
Such as, if user's input Pinyin character string " qchif ", intention input " going to have a meal ", result as shown in Figure 2 A, there is no correct result, then user can select the candidate word that " q " mate is " going ", input method searches candidate item to " chif " again, result as shown in Figure 2 B, pinyin character string 201 is " removing chif ", represent user's selected " going ", then user can select candidate's phrase that " chif " mate in the first candidate region 202 is " having a meal ", completes the input of " going to have a meal ".
In a kind of embodiment of the present invention, the method can also comprise the steps:
Step 105, when the trigger action of specifying being detected, shows the candidate phrase adjacent with candidate word with current candidate's phrase and candidate word in candidate bar.
Trigger action, can refer to page turn over operation, slide etc.
User can by clicking the control (page turning key 204 as shown in Figure 2 A) of specifying, in keyboard, click the modes such as the button (key as "-" or "=" place) of specifying trigger the trigger action of specifying, carry out the operation such as page turning, slip, to show the candidate phrase adjacent with candidate word with current candidate's phrase and candidate word.
In a kind of embodiment of the present invention, described candidate bar can comprise the first candidate region, the second candidate region; Then in embodiments of the present invention, step 105 can comprise following sub-step:
Sub-step S21, shows candidate's phrase that current candidate's phrase is adjacent in the first candidate region;
Sub-step S22, shows the candidate word that current candidate word is adjacent in the second candidate region.
In specific implementation, the candidate phrase adjacent with current candidate's phrase, the candidate word adjacent with current candidate word can be searched respectively, show in the first candidate region, the second candidate region respectively.
For embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the embodiment of the present invention is not by the restriction of described sequence of movement, because according to the embodiment of the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and involved action might not be that the embodiment of the present invention is necessary.
With reference to Fig. 3, show a kind of according to an embodiment of the invention structured flowchart of device embodiment of the displaying candidate item based on input method, specifically can comprise as lower module:
Target string determination module 301, be suitable for the target string determining current non-selected candidate item, described candidate item comprises candidate's phrase or candidate word;
Module 302 looked in candidate's phrase, is suitable for searching the candidate's phrase with part or all of described target character String matching;
Candidate word searches module 303, is suitable for searching the candidate word with first character match in described target string;
First candidate item display module 304, is suitable in candidate bar, show at least part of candidate's phrase, at least partly candidate word.
In specific implementation, described target string can comprise:
The character string of initial input;
Or,
Character string in the character string of initial input, except determining the character string of candidate item.
In a kind of embodiment of the present invention, described candidate bar can comprise the first candidate region, the second candidate region;
Described first candidate item display module 304 can also be suitable for:
At least part of candidate's phrase is shown in the first candidate region;
At least part of candidate word is shown in the second candidate region.
In a kind of embodiment of the present invention, this device can also comprise as lower module:
Second candidate item display module, is suitable for when the trigger action of specifying being detected, and shows the candidate phrase adjacent with candidate word with current candidate's phrase and candidate word in candidate bar.
In a kind of embodiment of the present invention, described candidate bar can comprise the first candidate region, the second candidate region;
Described second candidate item display module can also be suitable for:
Candidate's phrase that current candidate's phrase is adjacent is shown in the first candidate region;
The candidate word that current candidate word is adjacent is shown in the second candidate region.
For device embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In instructions provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary array mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in the equipment of the displaying candidate item based on input method of the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.