The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on
State a kind of method of displaying candidate item based on input method of problem and a kind of corresponding displaying candidate item based on input method
Device.
According to one aspect of the present invention, there is provided a kind of method of the displaying candidate item based on input method, including:
It is determined that the target string of current non-selected candidate item, the candidate item include candidate's phrase or candidate word;
Search candidate's phrase with the part or all of target character String matching;
Search the candidate word with first character match in the target string;
At least part candidate phrase, at least part candidate word are shown in candidate bar.
Alternatively, the target string includes:
The character string of initial input;
Or,
Character string in the character string of initial input, in addition to the character string for having determined that candidate item.
Alternatively, the candidate bar includes the first candidate region, the second candidate region;
Described shown in candidate bar includes the step of at least part candidate phrase, at least part candidate word:
At least part candidate's phrase is shown in the first candidate region;
At least part candidate word is shown in the second candidate region.
Alternatively, in addition to:
When detecting the trigger action specified, shown in candidate bar adjacent with current candidate's phrase and candidate word
Candidate's phrase and candidate word.
Alternatively, the candidate bar includes the first candidate region, the second candidate region;
The step that the candidate phrase adjacent with current candidate's phrase and candidate word and candidate word are shown in candidate bar
Suddenly include:
The adjacent candidate's phrase of current candidate's phrase is shown in the first candidate region;
The adjacent candidate word of current candidate word is shown in the second candidate region.
According to another aspect of the present invention, there is provided a kind of device of the displaying candidate item based on input method, including:
Target string determining module, it is adapted to determine that the target string of current non-selected candidate item, the candidate item bag
Include candidate's phrase or candidate word;
Candidate's phrase looks into module, suitable for searching candidate's phrase with the part or all of target character String matching;
Candidate word searching modul, suitable for searching the candidate word with first character match in the target string;
First candidate item display module, suitable for showing at least part candidate phrase, at least part candidate word in candidate bar.
Alternatively, the target string includes:
The character string of initial input;
Or,
Character string in the character string of initial input, in addition to the character string for having determined that candidate item.
Alternatively, the candidate bar includes the first candidate region, the second candidate region;
The first candidate item display module is further adapted for:
At least part candidate's phrase is shown in the first candidate region;
At least part candidate word is shown in the second candidate region.
Alternatively, in addition to:
Second candidate item display module, suitable for when detecting the trigger action specified, being shown in candidate bar and current
Candidate's phrase and the adjacent candidate's phrase and candidate word of candidate word.
Alternatively, the candidate bar includes the first candidate region, the second candidate region;
The second candidate item display module is further adapted for:
The adjacent candidate's phrase of current candidate's phrase is shown in the first candidate region;
The adjacent candidate word of current candidate word is shown in the second candidate region.
The embodiment of the present invention passes through displaying simultaneously and the candidate word of part or all of target character String matching in candidate bar
Group, the candidate word with first character match in target string so that when without correct result, user can directly exist
Candidate bar carries out the selection of individual character, reduces the operation such as page turning, slip, improves input speed and lifting Consumer's Experience, meanwhile, input
Method reduces resource consumption without responding the operation such as page turning, slip repeatedly.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by the embodiment of the present invention.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
Completely it is communicated to those skilled in the art.
Reference picture 1, the method for showing a kind of displaying candidate item based on input method according to an embodiment of the invention
The step flow chart of embodiment, specifically may include steps of:
Step 101, it is determined that the target string of current non-selected candidate item;
It should be noted that the embodiment of the present invention can apply to have in the electronic equipment of input function, the electronics is set
It is standby to include mobile device, for example, mobile phone, tablet personal computer, wearable device (such as bracelet, wrist-watch, glasses), can also be wrapped
Fixed equipment is included, for example, PC etc., the embodiment of the present invention is not any limitation as to this.
These electronic equipments can generally be supported to include Windows, Android (Android), IOS, WindowsPhone etc.
Operating system, the application program that operation can be supported to be inputted by keyboard (such as dummy keyboard or physical keyboard) mode.
Wherein, the keyboard can include nine grids keyboard, full keyboard (such as QWERT keyboards), and the application program can be with
Including input method etc..
Generally, typically there are multiple buttons, the button is often re-used, and each button can map one or more in keyboard
Individual character, it can specifically include numerical character, English character, Chinese character (including pinyin character, stroke character, five words
Symbol), sign character etc., with input numeral, English, Chinese and symbol etc..
For example, in nine grids keyboard, numerical character " 2 " generally with 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 " are mapped to same button.
After user presses one or more buttons on keyboard, the character of button mapping can form character string.
Furthermore, the character string being made up of pinyin character can be referred to as pinyin character string, be made up of English character
Character string can be referred to as English character string, the character string being made up of numerical character can be referred to as digit strings, by spelling
At least both character strings of composition can be referred to as mixed characters string, etc. in sound character, English character, numerical character.
In embodiments of the present invention, the character string can be pinyin character string, English character string, digit strings, mixing
Character string, etc., to make those skilled in the art more fully understand the embodiment of the present invention, in embodiments of the present invention, by phonetic
Character string illustrates as a kind of example of character string.
Using the embodiment of the present invention, before displaying candidate item every time, it may be determined that the target of current non-selected candidate item
Character string, to search matching candidate item.
In the specific implementation, target string can include it is following two:
The character string of initial input;
In embodiments of the present invention, the character string of initial input can refer to the character string that user is originally inputted.
It is initial defeated if user clicks on " q ", " c ", " h ", " i ", " f " successively in full keyboard by taking pinyin character string as an example
The character string (pinyin character string) entered is " qchif ".
Or,
Character string in the character string of initial input, in addition to the character string for having determined that candidate item.
In embodiments of the present invention, user can be selected by clicking on the numerical key of candidate item, clicking on the modes such as candidate item
The candidate item of partial character string, remaining character string are target string.
For example, user have selected the candidate item of " q " in the character string (pinyin character string) " qchif " of initial input, it is left
Character string (pinyin character string) " chif " be target string.
Step 102, candidate's phrase with the part or all of target character String matching is searched;
In embodiments of the present invention, the candidate item of lookup can include candidate's phrase, i.e., including two or more
The candidate item of word.
For pinyin character string, input method can search in dictionary has the pronunciation (part or all of pinyin character string)
Candidate's phrase be shown.
It should be noted that matching can be spelling (" chi " in such as pinyin character string " qchif ") matching, can also
It is simplicity (" q ", " f " in such as pinyin character string " qchif ") matching.
For example, for pinyin character string " qchif ", the time matched with the pinyin character string " qchif " of whole can be searched
Select phrase " please have a meal ", candidate's phrase " please eat " for being matched with the pinyin character string " qchi " of part, " seven foot ", " canine tooth ", " open
Tooth ", etc..
In another example if " q " determines candidate item in pinyin character string " qchif ", target string is " chif ", can be with
Candidate's phrase " having a meal ", " eating powder ", " eating method ", " Chifeng ", " abnormally fat " matched with the pinyin character string " chif " of whole is searched,
Etc..
Step 103, the candidate word with first character match in the target string is searched;
In embodiments of the present invention, the candidate item of lookup can also include candidate word, that is, include in addition to candidate's phrase
The candidate item of one file.
For pinyin character string, input method can search in dictionary has the pronunciation (the first character of pinyin character string)
Candidate word be shown.
For example, for pinyin character string " qchif ", can search matched with first character " q " candidate word " going ",
" and ", " preceding ", " rising ", " cutting " etc..
In another example if " q " determines candidate item in pinyin character string " qchif ", target string is " chif ", can
To search the candidate word " from " matched with first character " c ", " ", " eating ", " removing ", " going out " etc..
It should be noted that first character can be first phonetic, or first syllable, the embodiment of the present invention is to this
It is not any limitation as.
For example, for pinyin character string " chif " (target string), first character can be first phonetic " c ", also may be used
Think first syllable " chi ".
Step 104, at least part candidate phrase, at least part candidate word are shown in candidate bar.
In embodiments of the present invention, input method can generate candidate bar, and the candidate bar can be window.
Generally, the position of candidate bar is limited, and the quantity of candidate's phrase, candidate word may be relatively more, therefore, one
As in candidate bar candidate bar show at least part candidate phrase, at least part candidate word.
In the specific implementation, input method can be ranked up to candidate's phrase, candidate word respectively, i.e., between candidate's phrase
It is ranked up, is ranked up between candidate word, at least part candidate phrase, extremely is shown in candidate bar according to the order of sequence
Small part candidate word.
In a kind of mode, it can be ranked up according to the frequency of use of group of subscribers, i.e., beforehand through collection of server
The input historical data of different user, count each candidate's phrase, the frequency of use of candidate word.
Generally, frequency of use is higher, and before sequence more, more preferential displaying, conversely, frequency of use is lower, sequence is got over
Afterwards.
Certainly, in order to ensure the right of privacy of user and right to know, it can first check whether the user of the input method adds
Plan is specified, if it is, confirming that the acquisition operations of input historical data of the user of the input method to server are awarded
Power, input method can continue executing with the transmission flow of input historical data, if the user of the input method, which does not add, performs meter
Draw, then confirm that the acquisition operations of input historical data of the user of the input method not to server authorize, input method terminates
Perform the transmission flow of input historical data.Wherein, specified plan can include but is not limited to what the affiliated platform of input method was initiated
Consumer's Experience plan etc..
In a further mode of operation, it can be ranked up according to the frequency of use of active user, i.e., gather active user in advance
Input historical data, count each candidate's phrase, the frequency of use of candidate word.
Generally, frequency of use is higher, and before sequence more, more preferential displaying, conversely, frequency of use is lower, sequence is got over
Afterwards.
In a further mode of operation, it can be ranked up according to current input environment information, that is, detect current input ring
Border, input environment information (search column of such as search engine, the chat window of immediate communication tool) is obtained, according to each time
The matching degree of phrase, candidate word and input environment information is selected to be ranked up.
Generally, matching degree is higher, and before sequence more, more preferential displaying, conversely, matching degree is lower, sequence is got over
Afterwards.
Certainly, above-mentioned sortord is intended only as example, when implementing the embodiment of the present invention, can be set according to actual conditions
Other sortords are put, for example, believing by the frequency of use of above-mentioned group of subscribers, the frequency of use of active user, with input environment
Weight corresponding to the matching degree configuration of breath, generates comprehensive weight, be ranked up according to comprehensive weight etc., the embodiment of the present invention
This is not any limitation as.In addition, in addition to above-mentioned sortord, those skilled in the art can also use it according to being actually needed
Its sortord, the embodiment of the present invention are not also any limitation as to this.
In a kind of alternative embodiment of the present invention, the candidate bar can include the first candidate region, the second candidate region;
Then in embodiments of the present invention, step 104 can include following sub-step:
Sub-step S11, at least part candidate's phrase is shown in the first candidate region;
Sub-step S12, at least part candidate word is shown in the second candidate region.
In embodiments of the present invention, candidate's phrase, candidate word can be shown with subfield.
For example, as shown in Figure 2 A, in candidate bar 200, for the pinyin character string 201 " qchif " of user's input, the
Candidate's phrase " please have a meal " that displaying matches with the pinyin character string " qchif " of whole in one candidate region 202, the spelling with part
Candidate's phrase " please eat " of sound character string " qchi " matching, " seven foot ", " canine tooth ", " opening one's mouth ", open up in the second candidate region 203
Show matched with first character " q " candidate word " going ", " and ", " preceding ", " rising ", " cutting ".
It should be noted that the first candidate region and the second display area are configurable, i.e., user can set first
The quantity of candidate region and the second display area (such as line number).
For example, as shown in Figure 2 C, if user's input Pinyin character string " zkhxq ", it is possible to specify first three behavior first candidate
Region, displaying and candidate's phrase of all or part of pinyin character String matching, the rear display area of two behavior second, displaying with
The first character of pinyin character string is with first candidate word.
The embodiment of the present invention passes through displaying simultaneously and the candidate word of part or all of target character String matching in candidate bar
Group, the candidate word with first character match in target string so that when without correct result, user can directly exist
Candidate bar carries out the selection of individual character, reduces the operation such as page turning, slip, improves input speed and lifting Consumer's Experience, meanwhile, input
Method reduces resource consumption without responding the operation such as page turning, slip repeatedly.
If for example, user's input Pinyin character string " qchif ", it is intended that input " going to have a meal ", as a result as shown in Figure 2 A, have no
Correct result, the then candidate word that user can select " q " matching are " going ", and input method searches " chif " candidate item, knot again
As shown in Figure 2 B, pinyin character string 201 is " to remove chif ", represent that user selectes " going ", then user can be in the first candidate regions to fruit
Candidate's phrase that " chif " matching is selected in domain 202 is " having a meal ", completes the input of " going to have a meal ".
In a kind of alternative embodiment of the present invention, this method can also comprise the following steps:
Step 105, when detecting the trigger action specified, displaying and current candidate's phrase and candidate in candidate bar
Word adjacent candidate's phrase and candidate word.
Trigger action, page turn over operation, slide etc. can be referred to.
User can click on what is specified by clicking on the control (page turning key 204 as shown in Figure 2 A) specified in keyboard
The modes such as button (such as the key where "-" or "=") trigger the trigger action specified, and the operation such as page turning, slip are carried out, with displaying
The candidate phrase adjacent with current candidate's phrase and candidate word and candidate word.
In a kind of alternative embodiment of the present invention, the candidate bar can include the first candidate region, the second candidate regions
Domain;Then in embodiments of the present invention, step 105 can include following sub-step:
Sub-step S21, the adjacent candidate's phrase of current candidate's phrase is shown in the first candidate region;
Sub-step S22, the adjacent candidate word of current candidate word is shown in the second candidate region.
In the specific implementation, the candidate phrase adjacent with current candidate's phrase and current candidate can be searched respectively
The adjacent candidate word of word, it is shown respectively in the first candidate region, the second candidate region.
For embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of combination of actions, but this area
Technical staff should know that the embodiment of the present invention is not limited by described sequence of movement, because implementing according to the present invention
Example, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know, specification
Described in embodiment belong to preferred embodiment, necessary to the involved action not necessarily embodiment of the present invention.
Reference picture 3, show a kind of device of displaying candidate item based on input method according to an embodiment of the invention
The structured flowchart of embodiment, it can specifically include following module:
Target string determining module 301, it is adapted to determine that the target string of current non-selected candidate item, the candidate item
Including candidate's phrase or candidate word;
Candidate's phrase looks into module 302, suitable for searching candidate's phrase with the part or all of target character String matching;
Candidate word searching modul 303, suitable for searching the candidate word with first character match in the target string;
First candidate item display module 304, suitable for showing at least part candidate phrase, at least part candidate in candidate bar
Word.
In the specific implementation, the target string can include:
The character string of initial input;
Or,
Character string in the character string of initial input, in addition to the character string for having determined that candidate item.
In a kind of alternative embodiment of the present invention, the candidate bar can include the first candidate region, the second candidate regions
Domain;
The first candidate item display module 304 can be adapted to:
At least part candidate's phrase is shown in the first candidate region;
At least part candidate word is shown in the second candidate region.
In a kind of alternative embodiment of the present invention, the device can also include following module:
Second candidate item display module, suitable for when detecting the trigger action specified, being shown in candidate bar and current
Candidate's phrase and the adjacent candidate's phrase and candidate word of candidate word.
In a kind of alternative embodiment of the present invention, the candidate bar can include the first candidate region, the second candidate regions
Domain;
The second candidate item display module can be adapted to:
The adjacent candidate's phrase of current candidate's phrase is shown in the first candidate region;
The adjacent candidate word of current candidate word is shown in the second candidate region.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related
Part illustrates referring to the part of embodiment of the method.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein.
Various general-purpose systems can also be used together with teaching based on this.As described above, required by constructing this kind of system
Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that it can utilize various
Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention
Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect,
Above in the description to the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor
The application claims of shield features more more than the feature being expressly recited in each claim.It is more precisely, such as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself
Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment
Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any
Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power
Profit requires, summary and accompanying drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation
Replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be realized with hardware, or to be run on one or more processor
Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that it can use in practice
Microprocessor or digital signal processor (DSP) realize the displaying candidate item according to embodiments of the present invention based on input method
Equipment in some or all parts some or all functions.The present invention is also implemented as being used to perform institute here
The some or all equipment or program of device of the method for description are (for example, computer program and computer program production
Product).Such program for realizing the present invention can store on a computer-readable medium, or can have one or more
The form of signal.Such signal can be downloaded from internet website and obtained, and either be provided or on carrier signal to appoint
What other forms provides.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of some different elements and being come by means of properly programmed computer real
It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame
Claim.