CN111198620A - Method, device and equipment for presenting input candidate items - Google Patents
Method, device and equipment for presenting input candidate items Download PDFInfo
- Publication number
- CN111198620A CN111198620A CN201811385754.8A CN201811385754A CN111198620A CN 111198620 A CN111198620 A CN 111198620A CN 201811385754 A CN201811385754 A CN 201811385754A CN 111198620 A CN111198620 A CN 111198620A
- Authority
- CN
- China
- Prior art keywords
- word
- input
- group
- character string
- result
- 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
- 238000000034 method Methods 0.000 title claims abstract description 143
- 230000015572 biosynthetic process Effects 0.000 abstract description 39
- 238000004891 communication Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 10
- 238000012545 processing Methods 0.000 description 10
- 241000219357 Cactaceae Species 0.000 description 8
- 238000006243 chemical reaction Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 230000001960 triggered effect Effects 0.000 description 5
- 230000003993 interaction Effects 0.000 description 4
- YOBAEOGBNPPUQV-UHFFFAOYSA-N iron;trihydrate Chemical compound O.O.O.[Fe].[Fe] YOBAEOGBNPPUQV-UHFFFAOYSA-N 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000011664 signaling Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000011218 segmentation Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000003825 pressing Methods 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
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/0236—Character input methods using selection techniques to select from displayed items
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Document Processing Apparatus (AREA)
- Machine Translation (AREA)
Abstract
The invention discloses a method for presenting input candidate items, which comprises the following steps: if a user inputs a character string on an input interface corresponding to an input method system, the input method system firstly acquires the input character string; determining a first group of word results corresponding to the input character string and presenting the first group of word results as input candidate items; and if the triggering event of presenting a plurality of word group candidates is responded, determining a second word group result corresponding to the input character string and presenting the second word group result as the input candidate. The method provided by the embodiment of the invention solves the problem of low hit rate caused by only presenting a word formation result completely corresponding to the input character string to the user, increases the possibility that the word formation result meets the requirements of the user, and does not need the user to obtain the target word formation result completely corresponding to the input character string through complicated operation, so that the input operation of the user is simpler and more convenient, thereby improving the user experience. In addition, the invention also discloses a device and equipment for presenting the input candidate items.
Description
Technical Field
The present invention relates to the field of input methods, and in particular, to a method, an apparatus, and a device for presenting input candidate items.
Background
When a user uses the input method system for inputting, the user often directly inputs a longer character string in the character input area, and at the moment, the input method system can obtain a complete first input candidate item corresponding to the character string in a word forming mode. For example, when the user inputs the character string "tashouolema", the input method system obtains the input candidate "he said" by combining words of the terms "he", "say", "did" and "do" and presents the input candidate as the first input candidate.
However, there are often a large number of possible ways of composing words for a character string entered by a user. Particularly, at present, a nine-square input keyboard is commonly used on a mobile terminal, a number string input by a user using the input keyboard usually corresponds to a plurality of possible pinyin strings, and each pinyin string corresponds to a plurality of possible word forming modes. In this case, if only one word formation result corresponding to the complete character string is provided to the user as an input candidate, it is often difficult to hit the user's requirement, and in this case, the user needs to sequentially select a plurality of input candidates corresponding to the partial character strings to form an input result corresponding to the complete character string in a segmented screen-up manner, which results in low input efficiency.
Disclosure of Invention
In order to solve the above problems, the present invention provides a method, an apparatus, and a device for presenting input candidate items, so that an input method system can provide more word formation results corresponding to a complete character string to a user for a character string input by the user, and increase the possibility that the word formation results meet the user requirements, thereby making the input operation of the user simpler and more convenient.
In a first aspect, to solve the above technical problem, an embodiment of the present invention provides a method for presenting input candidates, including:
acquiring an input character string;
determining a first group of word results corresponding to the input character string and presenting the first group of word results as input candidate items;
and if the triggering event of presenting a plurality of word group candidates is responded, determining a second word group result corresponding to the input character string and presenting the second word group result as the input candidate item.
Optionally, the triggering events of the plurality of word group candidates include: the user triggers an operation for instructing presentation of a plurality of word group candidates.
Optionally, the operation for indicating presentation of a plurality of word group candidates is specifically an operation performed on an input candidate of the first word group result.
Optionally, the triggering events of the plurality of word group candidates include: and the second word group result is a recorded multivariate relation in the input method system.
Optionally, the multivariate relationship is a binary relationship.
Optionally, the triggering events of the multiple word formation results include: the probability of the first set of word outcomes and the probability of the second set of word outcomes are both greater than a probability threshold.
Optionally, the method further comprises:
determining a third group of word results corresponding to partial character strings in the input character string and presenting the third group of word results as input candidate items;
if the selection operation of the input candidate items aiming at the third group of word results is responded, determining a fourth group of word results corresponding to the input character string and presenting the fourth group of word results as the input candidate items; wherein the fourth set of word results is composed based on the third set of word results.
Optionally, the method further comprises:
segmenting the input character string to obtain at least one group of segmented character strings;
searching words matched with each group of the segmented character strings in a word bank and combining words to obtain at least one word combination result corresponding to each group of the switched character strings, wherein the word combination result is used as a word combination result corresponding to the input character string;
calculating the probability of the word forming result corresponding to each input character string;
the first word group result is the word group result with the highest probability in the word group results corresponding to the input method character string, and the second word group result is the word group result selected from the word group results corresponding to the input character string according to the probability of the word group results corresponding to the input method character string.
In a second aspect, an embodiment of the present invention further provides an apparatus for presenting input candidates, including:
an acquisition unit configured to acquire an input character string;
the first presentation unit is used for determining a first group of word results corresponding to the input character string and presenting the first group of word results as input candidate items;
and the second presentation unit is used for determining a second word group result corresponding to the input character string and presenting the second word group result as the input candidate item if a trigger event for presenting a plurality of word group candidates is responded.
Optionally, the triggering events of the plurality of word group candidates include: the user triggers an operation for instructing presentation of a plurality of word group candidates.
Optionally, the operation for indicating presentation of a plurality of word group candidates is specifically an operation performed on an input candidate of the first word group result.
Optionally, the triggering events of the plurality of word group candidates include: and the second word group result is a recorded multivariate relation in the input method system.
Optionally, the multivariate relationship is a binary relationship.
Optionally, the triggering events of the multiple word formation results include: the probability of the first set of word outcomes and the probability of the second set of word outcomes are both greater than a probability threshold.
Optionally, the apparatus further comprises:
the first determining unit is used for determining a third group of word results corresponding to partial character strings in the input character string and presenting the third group of word results as input candidates;
a second determining unit, configured to determine a fourth group of word results corresponding to the input character string and present the fourth group of word results as input candidate items if a selection operation of the input candidate items for the third group of word results is responded; wherein the fourth set of word results is composed based on the third set of word results.
Optionally, the apparatus further comprises:
the segmentation unit is used for segmenting the input character string to obtain at least one group of segmented character strings;
the word group unit is used for searching words matched with each group of the segmented character strings in a word bank and combining the words to obtain at least one word group result corresponding to each group of the switched character strings, and the word group result is used as a word group result corresponding to the input character string;
the calculation unit is used for calculating the probability of the word combination result corresponding to each input character string;
the first word group result is the word group result with the highest probability in the word group results corresponding to the input method character string, and the second word group result is the word group result selected from the word group results corresponding to the input character string according to the probability of the word group results corresponding to the input method character string.
In a third aspect, an embodiment of the present invention further provides an apparatus for presenting input candidates, including a memory, and one or more programs, where the one or more programs are stored in the memory, and configured to be executed by the one or more processors includes a processor configured to execute the method according to the first aspect.
In a fourth aspect, embodiments of the present invention also provide a non-transitory computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method according to the first aspect.
Compared with the prior art, the embodiment of the invention has the following advantages:
in the embodiment of the invention, if a user wants to input a word group, a character string can be input on an input interface corresponding to an input method system, and then the input method system can firstly acquire the input character string; determining a first group of word results corresponding to the input character string and presenting the first group of word results as input candidate items; and if the triggering event of presenting a plurality of word group candidates is responded, determining a second word group result corresponding to the input character string and presenting the second word group result as the input candidate. Therefore, more word forming results completely corresponding to the input character string can be provided for the user aiming at the character string input by the user, the problem that the probability of directly hitting the target word forming result required by the user is lower due to the fact that only one word forming result completely corresponding to the input character string is presented to the user is solved, the possibility that the word forming result meets the user requirement is increased, in addition, the target word forming result completely corresponding to the input character string is obtained without the user through complicated operations such as segmented screen-up and the like, the input operation of the user is simpler and more convenient, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram illustrating an example of an interface for presenting input candidates according to an embodiment of the present invention;
FIG. 2 is a block diagram of an exemplary application scenario in an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for presenting input candidates according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating another method for presenting input candidates according to an embodiment of the present invention;
fig. 5 is a signaling flowchart of an application scenario example provided in an embodiment of the present invention;
FIG. 6 is a schematic diagram of a corresponding input interface of the example application scenario shown in FIG. 5;
fig. 7 is a signaling flowchart of another example application scenario provided in the embodiment of the present invention;
FIG. 8 is a schematic diagram of a corresponding input interface of the example application scenario shown in FIG. 7;
FIG. 9 is a diagram illustrating an exemplary configuration of an apparatus for presenting input candidates according to an embodiment of the present invention;
FIG. 10 is a diagram illustrating an exemplary configuration of an apparatus for presenting input candidates according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a server in an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The applicant finds that, in the prior art, when a user wants to input a long sentence, a long input character string is often input on an input method interface, at this time, an input method system obtains a first input candidate completely corresponding to the input character string in a word forming mode, and displays the first input candidate and other candidates corresponding to partial character strings in the input character string to the user for the user to select. However, for an input character string, an input method system often has a plurality of word-group results, so that the probability that a first input candidate item hits a target sentence which a user wants to input is low, and once the first input candidate item is not the target sentence of the user, the user is required to select candidate items corresponding to partial character strings in the input character string in sequence, the target sentence is obtained by means of multiple segmentation and screen-up, and the input operation is very complicated and inconvenient.
For example, assuming that the target sentence that the user wants to obtain is "necessary", the input character string input by the user on the squared figure input interface may be "2249833", and at this time, the input method system needs to convert "2249833" into a corresponding pinyin string: "caiwude", "baixuef", "caixued", and "abixude", etc., and then word-grouping corresponding to each pinyin string yields the first input candidate "learned", other candidates may include: "snow", "white science", "finance" and "property" etc. As shown in a in fig. 1, the candidate words displayed on the input method interface include: talent, finance, snow and white school. At this time, the user may slide the pinyin string candidate area on the left side to sequentially determine the pinyin strings "a", "bi", "xu", and "de" to obtain the interface shown in fig. 1 b, where "necessary de" is obtained by respectively selecting and displaying "o", "must", and "whisker", and "necessary de" is selected to completely display the necessary target sentence "o" on the input area, which is very cumbersome for the user.
In order to solve the above problem, in an embodiment of the present invention, for an input character string input by a user, an input method system may determine at least two word formation results corresponding to the input character string as a whole, and once a requirement for presenting a plurality of word formation candidates is triggered, the input method system may use the determined at least two word formation results completely corresponding to the input character string as input candidates, and display the corresponding at least two input candidates on an input method interface corresponding to the input method system, so that the user may select a desired output result. Therefore, more word forming results completely corresponding to the input character string are provided for the user, the probability that the input candidate item directly hits the target word forming result required by the user is improved, the possibility that the input candidate item meets the user requirement is increased, the input operation of the user is simplified, and the user experience is improved.
It can be understood that the method for presenting input candidate items provided by the embodiment of the present invention may be completely executed by an input method system; or part of the input method system can be executed, and part of the input method system can be executed by a corresponding server; but also can be completely executed by a server corresponding to the input method system. The server corresponding to the input method system can be an entity server or a cloud server. The execution subject of the present invention is not particularly limited as long as the actions disclosed in the embodiments of the present invention are executed.
In addition, the embodiment of the present invention is only for convenience of description, and the pinyin input is taken as an example for expansion and introduction, but is not limited to a specific scenario of the chinese input method.
It should be noted that the above application scenarios are only presented to facilitate understanding of the present invention, and the embodiments of the present invention are not limited in any way in this respect. Rather, embodiments of the present invention may be applied to any scenario where applicable.
Various non-limiting embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Exemplary method
Referring to fig. 3, a method of presenting input candidates in an embodiment of the invention is shown. In this embodiment, the method may specifically include:
When a user needs to input on an application client on a terminal, an input method client installed on the user terminal is often required to be started and called through user operation triggering, and the input method client displays an input interface on the application client; the input interface can display a 26-key pinyin keyboard and can also display a 9-key pinyin keyboard (namely, a nine-square input keyboard), and a user can switch the keyboard displayed on the input interface by triggering the function keys on the input interface.
In specific implementation, when a user inputs a character string on the input interface of the application client, the input method system corresponding to the input method client may acquire the input character string input by the user. As an example, if the current input interface is a 26-key pinyin keyboard, then the input string is a pinyin string; as another example, if the current input interface is a 9-key pinyin keyboard, then the input string is a numeric string.
For example: assuming that a user wants to input "necessary" on a chat client, the user can input "a", "b", "i", "x", "u", "d", and "e" in sequence on the 26-key pinyin keyboard, and at this time, the input character string that can be obtained is "abixude"; alternatively, "2", "4", "9", "8", "3", and "3" may be sequentially input on the 9-key pinyin keyboard, and at this time, the input character string may be "2249833".
It should be noted that, when the current input interface is a 9-key pinyin keyboard, each of the numbers "2 to 9" on the keyboard corresponds to three or four pinyins, for example, "2" corresponds to "abc" and "9" corresponds to "wxyz". Then, in order to better determine the corresponding input candidate item through the input character string, when the input character string is acquired as a numeric string, the numeric string needs to be converted into a corresponding pinyin string. For example, if the obtained input string is "2249833", the numeric string may also be converted into pinyin strings "caiwude", "baixuef", and "abixude", etc.
It can be understood that after the input character string is obtained, the input method system can determine the first group word result corresponding to the input character string. The first word group result is a word group result that completely corresponds to the acquired input character string, and specifically, "correspond" is a conversion result that covers all characters included in the input character string.
For example: assuming that the obtained input character string is "abixude", the "necessary" is a word group result covering conversion results of all characters included in the "abixude" (specifically, the conversion results are "a" - "bi" - "must", "xu" - "must", and "de" - "), and may be used as a first word group result; the "abbe" includes only the conversion results corresponding to "a" and "bi", and cannot be used as the first word group result.
In some possible implementation manners, between step 301 and step 302 in this embodiment, determining a word formation result corresponding to the input character string according to the input character string may further be included, as shown in fig. 4, specifically, the method may further include:
During specific implementation, the input method system can segment the acquired input character string, and a group of segmented character strings can be obtained after the input character string is segmented for one time; typically, an input string may be segmented at least once, and then the input string may be segmented into at least one segmented string.
For example, for the input character string "xianren", the input character string "xianren" may be divided into "xian 'ren", or "xi' an 'ren", or "xian're 'n", or "xi' an're' n", that is, the input character string "xianren" may be divided into at least one group of divided character strings: "xian 'ren", "xi' an 'ren", "xian're 'n", and "xi' an're' n".
It can be understood that a word stock can be established in advance in the input method system, and the content in the word stock is continuously enriched according to the input action of the user. The word stock stores the corresponding relation between the character strings and the words, and the input method system can determine the words matched with each group of segmented character strings through searching and group words, so that the word group result is used as a word group result corresponding to the group of segmented character strings.
For example: assuming that the input character string is "xianrenhao", and the two groups of segmented character strings obtained in step 401 are "xian 'ren' hao" and "xi 'an' ren 'hao", then, for the first group of segmented character strings "xian' ren 'hao", words matched with "xian' ren" including "incumbent", "idler", "lineman", and "cacian", and words matched with "hao" including "good" and "luxury", etc. may be found in the lexicon, and performing word grouping on the matched words to obtain a word grouping result corresponding to "xian 'ren' hao", may include: "incumbent good", "incumbent luxury", "leisure good", "line good" and "fairy good", etc. For the second group of segmented character strings "xi ' an ' ren ' hao", the words matched with "xi ' an" including "shaan" and "west bank", the words matched with "ren" including "person", the words matched with "hao" including "good" and "hao", etc. may be found in the lexicon, and performing word grouping on the matched words to obtain the word grouping result corresponding to "xi ' an ' ren ' hao" may include: "Xian ren Hao", "Xibank Hao", etc.
And 403, calculating the probability of the word forming result corresponding to each input character string.
It can be understood that after the word formation result corresponding to the input character string is determined, all word formation results cannot be displayed to the user through the input interface at the same time due to the space limitation of the input interface corresponding to the input method system, and then a part of word formation results in the searched word formation results corresponding to the input character string need to be selected and displayed to the user. In order to improve the intelligence and accuracy of the input method system, the word formation result most likely to hit the input requirement of the user needs to be displayed to the user, and thus, the probability of each word formation result corresponding to the input character string needs to be calculated to determine the specific word formation result to be presented to the user and the presentation sequence of the word formation result.
In specific implementation, the probability of the word group result corresponding to the input character string can be calculated according to at least one parameter of the system word frequency, the probability of adjacent system words, the user word frequency, the probability of adjacent user words, the input context association probability and the association probability corresponding to the input scene.
As an example, the probability of the word-group result corresponding to the input character string may be calculated according to the system word frequency and the probability of the adjacent occurrence of the system word. The specific calculation method may be: step one, calculating the product of system word frequencies of all words in the word combination result; secondly, calculating the product of adjacent probabilities of every two adjacent words in the word group result in the system; and thirdly, multiplying the product obtained in the first step and the product obtained in the second step to obtain the probability of the word forming result corresponding to the input character string. If u (X) represents the system word frequency of the word X, and B (X, y) represents the probability of the adjacent occurrence between the word X and the word y, then the probability X ═ u (X) X |, B (X, y) of the word group result corresponding to the input character string.
For example: assuming that the input character string is "xianrenhao", obtaining the word combination result corresponding to the input character string according to steps 401 and 402 may include: "good cactus" and "good west ampere", then the probability X for "good cactus" may be: x ═ U (cactus) U (good) ] + B (cactus, good); the probability Y for "good sienna" may be: y ═ U (sienna) U (human) U (good) ] [ B (sienna, human) B (human, good) ].
After determining the word formation result corresponding to the input character string according to steps 401 to 403 and calculating the probability of the word formation result corresponding to each input character string, step 302 may specifically determine the first word formation result corresponding to the input character string according to the probability of the word formation result corresponding to the input character string.
It can be understood that the first word group result is presented as an input candidate and may be displayed to the user through the input interface, and then, in order to improve the probability that the first word group result presented to the user hits the input requirement of the user and improve the input experience brought to the user by the input method system, the input method system may specifically present the word group result with the highest probability in the word group results corresponding to the input character string as the first word group result to the user.
In addition, besides presenting the input candidate of the first group of word results, the input interface can also present words corresponding to the conversion results of partial characters in the input character string. For example: assuming that the input character string is "xianrenhao" and the determined first group of words results in "good west ann", then the input candidates that can be displayed in the input interface include: "xi' an good", "spare", "incumbent" and "precedent", etc.
It is to be understood that the second group word result refers to at least one group word result that completely corresponds to the acquired input character string, except for the first group word result, and specifically, the "corresponding" refers to a conversion result that covers all characters included in the input character string. The second word-group result may be specifically one word-group result, or may be multiple word-group results, and the number of the second word-group results may be set by the user, or may be determined by the input method system, which is not limited herein.
In particular implementations, the manner of determining the second set of word results may be: and determining a second word group result according to the calculated probability of the word group result corresponding to the input character string in the step 403, presenting the second word group result as an input candidate, and displaying the second word group result to the user through an input interface.
As an example, in order to improve the probability that the second word group result presented to the user hits the input requirement of the user and improve the input experience brought by the input method system to the user, the input method system may specifically present, as the second word group result, the word group result with the probability being next to the highest probability (i.e., the probability of the first word group result) in the word group results corresponding to the input character string to the user.
For example: if the input character string is 'xianrenhao' and the determined first word group result is 'good in western anren', if the number of the second word group results is 1, the 'good in celestial being' with the second highest probability in the word group results corresponding to the input character string can be determined as the second word group result; if the number of the second word group result is 3, the word group results corresponding to the input character string, including "xianren good", "incumbent good" and "lineman good" with the second to fourth highest probabilities, may be determined as the second word group result.
As another example, the input method system may also document words that occur adjacent in the system as binary pairs. Then, the manner of determining the second set of word results may also be: and searching the binary pairs which are recorded by the system in the word forming result corresponding to the input character string, searching the binary pairs with the highest probability from the recorded binary pairs, and forming words to obtain a second word forming result.
For example: if the input character string is ' xianrenhao ' and the determined first word group result is ' good for xi ' ann ', then if the number of the second word group result is 1 and the recorded binary pairs in the input method system include ' incumbent-good ', ' lineman-good ' and ' good for xian-good ', the ' good for xian ' with higher probability in the two can be word-grouped to obtain the second word group result ' good for xian '; if the number of the second word group result is 2, the recorded binary pairs corresponding to the input character string with higher probability of "good cactus" and "good now" can be word-grouped and determined as the second word group result of "good cactus" and "good now".
In some possible implementations, after determining the first and second set of word results according to steps 302 and 303, respectively, the first and second set of word results may be presented as input candidates.
In one case, the input method system may present the first word group result and the second word group result simultaneously through the input interface, i.e., the triggering event of the plurality of word group results may be triggered internally by the input method system without being triggered by the user.
In this case, as an example, the triggering events of the multiple word group candidates in step 303 may specifically be: the second set of word results is a recorded multivariate relationship in the input method system, and in one example, the second set of word results may be a recorded dyadic relationship in the input method system.
For example: assuming that the input string is "jinianshangwu", since the binary relations "today-morning" and "today-morning" have been recorded in the input method system, and "today-morning" is a certain first set of word results, then "today morning" can be presented as a second set of word results simultaneously with the first set of word results as input candidates for selection by the user.
As another example, the triggering events of the multiple word group candidates in step 303 may specifically be: the probability of the first set of word outcomes and the probability of the second set of word outcomes are both greater than a probability threshold. In specific implementation, the input method system may preset a probability threshold value, which represents the minimum probability value that the word group result can be presented as an input candidate, and is used to determine whether the word group result is displayed, and if the probability of a certain word group result is greater than the probability threshold value, the word group result may be displayed; otherwise, if the probability of a certain word group result is not greater than the probability threshold, the word group result cannot be displayed to the user.
For example: assuming that the input character string is 'xianrenhao', the preset probability threshold in the input method system is 0.5, and the probabilities of the word formation results 'xi' an hao ',' xian 'hao', 'incumbent hao' and 'lineman hao' are respectively: 0.7, 0.65, 0.4 and 0.2, only the probabilities of "good west ann" and "good xianren" exceed the probability threshold value of 0.5, so that the "good west ann" with the highest probability can be used as the first word group result, the "good xianren" with the second highest probability can be used as the second word group result, and the first word group result and the second word group result can be used as input candidates and simultaneously presented and displayed to the user for the user to select.
In addition, in the case that the triggering events of the multiple word formation results are triggered by the inside of the input method system, the first word formation result and the second word formation result may also be homophone word replacement, that is, the input method system may present the word formation results of the multiple synonym word replacements to the input interface according to the N-Gram language model and the LSTM language model. For example: the input string is "tashouole", and multiple input word-forming results, such as "he said", "she said", and "it said", may be presented on the input interface.
In another case, the input method system may present the first word group result to the user through the input interface, and if the first word group result is not the input requirement of the user, may trigger the input interface to display the second word group result through a user operation (e.g., clicking or long-pressing), that is, the trigger events of the multiple word group results may also be generated by the user through the trigger input interface.
In this case, as one possible example, the triggering event of the multiple word formation result may refer to: the user triggers an operation for instructing presentation of a plurality of word group candidates. In a specific implementation, the operation for indicating presentation of a plurality of word group candidates may specifically be an operation performed on an input candidate of the first word group result; the operation for indicating the presentation of the multiple word group candidates may specifically be an operation performed on a trigger area, where the trigger area is a preset specific area for triggering the presentation of the multiple word group candidates.
As an example, the operation triggered by the user to indicate that multiple word group candidates are presented may specifically be a long-press operation on the first word group result or the trigger area, a click operation on the first word group result or the trigger area, or any other arbitrary trigger operation that can implement the input of the candidate item, which is not limited herein.
In other possible implementations, if neither the first group of word results nor the second group of results in the presented input candidates hit the input requirement of the user, the embodiment of the present invention may further include:
s1, determining a third group of word results corresponding to partial character strings in the input character string and presenting the third group of word results as input candidates;
s2, if responding to the selection operation of the input candidate item aiming at the third group of word results, determining the fourth group of word results corresponding to the input character string and presenting the fourth group of word results as the input candidate item; wherein the fourth set of word results is composed based on the third set of word results.
It can be understood that, when none of the complete input candidates corresponding to the presented input pinyin string hit the input requirement of the user, the input method system may further determine a third set of word results corresponding to a part of the input strings, and present the third set of word results to the user for selection by the user.
In a specific implementation, when the user selects the third group word result by clicking or long-pressing, the input method system may determine that the third group word result hits a part of the user-required input result, and then, as an example, the input method system determines a remaining character string of the input character string, except for a part of the character string corresponding to the third group word result, and determines, based on the third group word result, a remaining group word result that corresponds to the remaining character string and has a high association probability with the third group word result; the input method system may then group the third word result and the remaining word group results into a fourth word group result in the order of the characters in the input string, which is presented to the user as an input candidate.
For example: assuming that a user inputs a character string "jiniazaoshangzuodietie", if a presented input candidate does not hit the input requirement of the user, a third set of word results "today" corresponding to a part of the character string "jinian" in the input character string may be determined first, and "today" is presented to the user as an input candidate; if the user selects "today", the remaining word group result corresponding to the remaining character string "zaoshangzuodinie" and having a high association probability with "today" can be determined based on "today", and is specifically determined as "sitting on the subway in the morning"; finally, the fourth group word result "sit in the morning today subway" is composed of "sit in the morning subway today" and "sit in the morning subway today" in the order of "jianzaoshangzudatiie", and "sit in the morning today subway" is presented to the user as an input candidate.
As another example, the input method system may further determine, based directly on the third set of word results, a fourth set of word results that correspond to the complete input string and that have a higher probability of being associated with the third set of word results; the input method system may then present the fourth set of word results to the user as input candidates.
For example: assuming that a user inputs a character string "jiniazaoshangzuodietie", if a presented input candidate does not hit the input requirement of the user, a third set of word results "today" corresponding to a part of the character string "jinian" in the input character string may be determined first, and "today" is presented to the user as an input candidate; if the user selects 'today', a fourth group word result which corresponds to the input character string 'jianzaoshangzudatiie' and has a higher association probability with 'today' can be determined based on 'today', and is specifically determined to be 'sitting on the subway in the morning today'; finally, the fourth set of word results, "sit underground in the morning today," is presented to the user as input candidates.
Therefore, the word forming result corresponding to the partial character string in the input character string is presented for the user to select, once the user selects the word forming result corresponding to the partial character string, the complete word forming result corresponding to the complete input character string and comprising the selected word forming result is determined based on the selected word forming result, the complete word forming result is presented to the user as the input candidate item, the probability that the input candidate item presented to the user hits the input requirement of the user is improved, and therefore the input experience of the user can be improved.
Therefore, if a user wants to input content, the method provided by the embodiment of the invention can be used for inputting the character string on the input interface corresponding to the input method system, and then the input method system can firstly acquire the input character string; determining a first group of word results corresponding to the input character string and presenting the first group of word results as input candidate items; and if the triggering event of presenting a plurality of word group candidates is responded, determining a second word group result corresponding to the input character string and presenting the second word group result as the input candidate. Therefore, more word forming results completely corresponding to the input character string can be provided for the user aiming at the character string input by the user, the problem that the probability of directly hitting the target word forming result required by the user is lower due to the fact that only one word forming result completely corresponding to the input character string is presented to the user is solved, the possibility that the word forming result meets the user requirement is increased, in addition, the target word forming result completely corresponding to the input character string is obtained without the user through complicated operations such as segmented screen-up and the like, the input operation of the user is simpler and more convenient, and the user experience is improved.
In addition, in order to simplify the user operation and display more word group results corresponding to the input character strings for the user, an expansion display plug-in button can be added near the area presenting the input candidate items, and more second word group results are displayed for the user by clicking the plug-in button; or, a sliding display function can be added in the area where the input candidates are presented, and more second group word results can be displayed to the user by sliding the presented input candidates. Therefore, the user can obtain more word formation results completely corresponding to the input character string through simple operation, so that the required word formation results can be simply and conveniently obtained, and the input experience of the user is improved.
Application scenario examples
The above is a detailed description of the method for presenting input candidate items provided by the embodiment of the present invention, and in order to make the scheme of the present invention clearer and more complete, a specific application scenario example of the method for presenting input candidate items is described below.
The application scene comprises an input interface A and an input method system B, wherein the input interface A and the input method system B are independently displayed in order to clearly show the interaction relationship between the input interface A and the input method system B, but the input interface A is arranged on the terminal equipment of a user; the input method system B may be an application program on the terminal device of the user, or may be a server that implements the functions of the input method system.
Specifically, the input method system B is used for monitoring the operation of the user on the input interface a in real time, analyzing and executing the received operation, and feeding back the analysis and execution result to the input interface a, so as to provide convenience for the user; and the input interface A realizes the interaction between the input method system B and the user.
Fig. 5 is a signaling flowchart of an application scenario example of a method for presenting input candidates, as shown in fig. 5, in a specific implementation, the method for presenting input candidates includes:
step 501, a user inputs a character string 'woshixianren' on an input interface A;
step 502, the input method system B divides the input character string to obtain divided character strings "wo ' shi ' xi ' an ' ren" and "wo ' shi ' xi ' ren";
step 503, the input method system B searches for words and phrases matched with the two groups of segmented character strings in the word bank and composes words to obtain word composition results "i am a west ampere person", "i am a leisure person", and "i am a celestial person" corresponding to the input character string "woshixianren";
step 504, the input method system B calculates the probability of the word formation result corresponding to each input character string, wherein the probability of "i am a seattle" is 0.65, the probability of "i am a leisure person" is 0.4, and the probability of "i am a cactus" is 0.3;
step 505, the input method system B compares the probability of each word group result with a probability threshold of 0.35, and determines that "i is a west ampere person" and "i is a free person" as a first word group result and a second word group result, respectively;
step 506, the input method system B sends the 'I is the Xian man' and the 'I is the idle man' to the input interface A;
in step 507, the input interface a presents "i am a west-safe person" and "i am a free person" to the user at the same time as input candidates.
Fig. 6 is a schematic interface diagram of input candidates presented in the derived input interface a according to the embodiment provided in fig. 5.
Fig. 7 is a signaling flowchart of another application scenario example of a method for presenting input candidates, as shown in fig. 7, in a specific implementation, the method for presenting input candidates includes:
step 701, a user inputs a character string 'woshixianren' on an input interface A;
step 702, the input method system B divides the input character string to obtain divided character strings "wo ' shi ' xi ' an ' ren" and "wo ' shi ' xi ' ren";
step 703, the input method system B searches for words and phrases matching the two groups of segmented character strings in the lexicon and composes words to obtain the phrase composition results "i am a west man", "i am a leisure man", and "i am a celestial man" corresponding to the input character string "woshixianren";
step 704, the input method system B calculates the probability of the word formation result corresponding to each input character string, wherein the probability of "i am a seattle" is 0.65, the probability of "i am a leisure person" is 0.4, and the probability of "i am a cactus" is 0.3;
step 705, the input method system B determines the word formation result "i am a member of sienna" with the highest probability as the first word formation result;
step 706, the input method system B sends the ' I is the Sai ' man ' to the input interface A;
step 707, the input interface a takes "i am a member of the west security" as an input candidate and presents the input candidate to the user;
step 708, the user presses the input candidate "i am a" on the input interface a for a long time;
step 709, the input method system B monitors a trigger event presenting a plurality of word group candidates;
step 710, the input method system B determines that "I is a leisure person" and "I is a celestial person" as the second group word result;
it is understood that the number of the second word result set in the input method system B is 2.
Step 711, the input method system B sends the 'i is a leisure person' and the 'i is a fairy person' to the input interface A;
in step 712, input interface a presents "i am a leisure person" and "i am a fairy person" to the user as input candidates as well.
Fig. 8 is a schematic interface diagram of input candidates presented in the derived input interface a according to the embodiment provided in fig. 7.
Exemplary device
Referring to fig. 9, there is shown an apparatus for presenting input candidates in an embodiment of the present invention, the apparatus including:
an acquisition unit 901 configured to acquire an input character string;
a first presenting unit 902, configured to determine a first group of word results corresponding to the input character string and present the first group of word results as input candidates;
a second presenting unit 903, configured to determine a second word group result corresponding to the input character string and present the second word group result as an input candidate item if a trigger event for presenting multiple word group candidates is responded.
Optionally, the triggering events of the plurality of word group candidates include: the user triggers an operation for instructing presentation of a plurality of word group candidates.
Optionally, the operation for indicating presentation of a plurality of word group candidates is specifically an operation performed on an input candidate of the first word group result.
Optionally, the triggering events of the plurality of word group candidates include: and the second word group result is a recorded multivariate relation in the input method system.
Optionally, the multivariate relationship is a binary relationship.
Optionally, the triggering events of the multiple word formation results include: the probability of the first set of word outcomes and the probability of the second set of word outcomes are both greater than a probability threshold.
Optionally, the apparatus further comprises:
the first determining unit is used for determining a third group of word results corresponding to partial character strings in the input character string and presenting the third group of word results as input candidates;
a second determining unit, configured to determine a fourth group of word results corresponding to the input character string and present the fourth group of word results as input candidate items if a selection operation of the input candidate items for the third group of word results is responded; wherein the fourth set of word results is composed based on the third set of word results.
Optionally, the apparatus further comprises:
the segmentation unit is used for segmenting the input character string to obtain at least one group of segmented character strings;
the word group unit is used for searching words matched with each group of the segmented character strings in a word bank and combining the words to obtain at least one word group result corresponding to each group of the switched character strings, and the word group result is used as a word group result corresponding to the input character string;
the calculation unit is used for calculating the probability of the word combination result corresponding to each input character string;
the first word group result is the word group result with the highest probability in the word group results corresponding to the input method character string, and the second word group result is the word group result selected from the word group results corresponding to the input character string according to the probability of the word group results corresponding to the input method character string.
The apparatus shown in fig. 9 is an apparatus corresponding to the method shown in fig. 3, and the specific implementation manner and the achieved effect are similar to the method shown in fig. 3, and refer to the description in the method shown in fig. 3, which is not described again here.
Referring to fig. 10, the apparatus 1000 may include one or more of the following components: processing component 1002, memory 1004, power component 1006, multimedia component 1006, audio component 1010, input/output (I/O) interface 1012, sensor component 1014, and communications component 1016.
The processing component 1002 generally controls the overall operation of the device 1000, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 1002 may include one or more processors 1020 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 1002 may include one or more modules that facilitate interaction between processing component 1002 and other components. For example, the processing component 1002 can include a multimedia module to facilitate interaction between the multimedia component 1006 and the processing component 1002.
The memory 1004 is configured to store various types of data to support operation at the device 1000. Examples of such data include instructions for any application or method operating on device 1000, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1004 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 1006 provides power to the various components of the device 1000. The power components 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 1000.
The multimedia component 1006 includes a screen that provides an output interface between the device 1000 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1006 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 1000 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1010 is configured to output and/or input audio signals. For example, audio component 1010 includes a Microphone (MIC) configured to receive external audio signals when apparatus 1000 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 1004 or transmitted via the communication component 1016. In some embodiments, audio component 1010 also includes a speaker for outputting audio signals.
I/O interface 1012 provides an interface between processing component 1002 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1014 includes one or more sensors for providing various aspects of status assessment for the device 1000. For example, sensor assembly 1014 may detect the open/closed status of device 1000, the relative positioning of components, such as a display and keypad of apparatus 1000, sensor assembly 1014 may also detect a change in position of apparatus 1000 or a component of apparatus 1000, the presence or absence of user contact with apparatus 1000, orientation or acceleration/deceleration of apparatus 1000, and a change in temperature of apparatus 1000. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1014 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1014 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1016 is configured to facilitate communications between the apparatus 1000 and other devices in a wired or wireless manner. The device 1000 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1016 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1016 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1000 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
Specifically, the present invention provides an apparatus for presenting input candidates, which may be embodied as a device 1000, including a memory 1004, and one or more programs, wherein the one or more programs are stored in the memory 1004 and configured to be executed by one or more processors 1020, and the one or more programs include instructions for:
acquiring an input character string;
determining a first group of word results corresponding to the input character string and presenting the first group of word results as input candidate items;
and if the triggering event of presenting a plurality of word group candidates is responded, determining a second word group result corresponding to the input character string and presenting the second word group result as the input candidate item.
Optionally, the triggering events of the plurality of word group candidates include: the user triggers an operation for instructing presentation of a plurality of word group candidates.
Optionally, the operation for indicating presentation of a plurality of word group candidates is specifically an operation performed on an input candidate of the first word group result.
Optionally, the triggering events of the plurality of word group candidates include: and the second word group result is a recorded multivariate relation in the input method system.
Optionally, the multivariate relationship is a binary relationship.
Optionally, the triggering events of the multiple word formation results include: the probability of the first set of word outcomes and the probability of the second set of word outcomes are both greater than a probability threshold.
Optionally, the processor 1020 is further configured to execute the one or more programs including instructions for:
determining a third group of word results corresponding to partial character strings in the input character string and presenting the third group of word results as input candidate items;
if the selection operation of the input candidate items aiming at the third group of word results is responded, determining a fourth group of word results corresponding to the input character string and presenting the fourth group of word results as the input candidate items; wherein the fourth set of word results is composed based on the third set of word results.
Optionally, the processor 1020 is further configured to execute the one or more programs including instructions for:
segmenting the input character string to obtain at least one group of segmented character strings;
searching words matched with each group of the segmented character strings in a word bank and combining words to obtain at least one word combination result corresponding to each group of the switched character strings, wherein the word combination result is used as a word combination result corresponding to the input character string;
calculating the probability of the word forming result corresponding to each input character string;
the first word group result is the word group result with the highest probability in the word group results corresponding to the input method character string, and the second word group result is the word group result selected from the word group results corresponding to the input character string according to the probability of the word group results corresponding to the input method character string.
Embodiments of the present invention also provide a non-transitory computer-readable storage medium, such as the memory 1004, comprising instructions executable by the processor 1020 of the device 1000 to perform the above-described method. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a method of presenting input candidates, the method comprising:
acquiring an input character string;
determining a first group of word results corresponding to the input character string and presenting the first group of word results as input candidate items;
and if the triggering event of presenting a plurality of word group candidates is responded, determining a second word group result corresponding to the input character string and presenting the second word group result as the input candidate item.
Optionally, the triggering events of the plurality of word group candidates include: the user triggers an operation for instructing presentation of a plurality of word group candidates.
Optionally, the operation for indicating presentation of a plurality of word group candidates is specifically an operation performed on an input candidate of the first word group result.
Optionally, the triggering events of the plurality of word group candidates include: and the second word group result is a recorded multivariate relation in the input method system.
Optionally, the multivariate relationship is a binary relationship.
Optionally, the triggering events of the multiple word formation results include: the probability of the first set of word outcomes and the probability of the second set of word outcomes are both greater than a probability threshold.
Optionally, the method further includes:
determining a third group of word results corresponding to partial character strings in the input character string and presenting the third group of word results as input candidate items;
if the selection operation of the input candidate items aiming at the third group of word results is responded, determining a fourth group of word results corresponding to the input character string and presenting the fourth group of word results as the input candidate items; wherein the fourth set of word results is composed based on the third set of word results.
Optionally, the method further includes:
segmenting the input character string to obtain at least one group of segmented character strings;
searching words matched with each group of the segmented character strings in a word bank and combining words to obtain at least one word combination result corresponding to each group of the switched character strings, wherein the word combination result is used as a word combination result corresponding to the input character string;
calculating the probability of the word forming result corresponding to each input character string;
the first word group result is the word group result with the highest probability in the word group results corresponding to the input method character string, and the second word group result is the word group result selected from the word group results corresponding to the input character string according to the probability of the word group results corresponding to the input method character string.
Fig. 11 is a schematic structural diagram of a server in an embodiment of the present invention. The server 1100 may vary widely in configuration or performance and may include one or more Central Processing Units (CPUs) 1122 (e.g., one or more processors) and memory 1132, one or more storage media 1130 (e.g., one or more mass storage devices) storing applications 1142 or data 1144. Memory 1132 and storage media 1130 may be, among other things, transient storage or persistent storage. The program stored on the storage medium 1130 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, the central processor 1122 may be provided in communication with the storage medium 1130 to execute a series of instruction operations in the storage medium 1130 on the server 1100.
The server 1100 may also include one or more power supplies 1126, one or more wired or wireless network interfaces 1150, one or more input-output interfaces 1158, one or more keyboards 1156, and/or one or more operating systems 1141, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is only limited by the appended claims
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (10)
1. A method of presenting input candidates, comprising:
acquiring an input character string;
determining a first group of word results corresponding to the input character string and presenting the first group of word results as input candidate items;
and if the triggering event of presenting a plurality of word group candidates is responded, determining a second word group result corresponding to the input character string and presenting the second word group result as the input candidate item.
2. The method of claim 1, wherein the triggering event for the plurality of word group candidates comprises: the user triggers an operation for instructing presentation of a plurality of word group candidates.
3. The method of claim 2, wherein the operation for indicating the presentation of the plurality of word group candidates is specifically an operation performed on an input candidate of the first word group result.
4. The method of claim 1, wherein the triggering event for the plurality of word group candidates comprises: and the second word group result is a recorded multivariate relation in the input method system.
5. The method of claim 1, wherein the triggering event for the plurality of word-grouping results comprises: the probability of the first set of word outcomes and the probability of the second set of word outcomes are both greater than a probability threshold.
6. The method of any one of claims 1 to 5, further comprising:
determining a third group of word results corresponding to partial character strings in the input character string and presenting the third group of word results as input candidate items;
if the selection operation of the input candidate items aiming at the third group of word results is responded, determining a fourth group of word results corresponding to the input character string and presenting the fourth group of word results as the input candidate items; wherein the fourth set of word results is composed based on the third set of word results.
7. The method of any one of claims 1 to 5, further comprising:
segmenting the input character string to obtain at least one group of segmented character strings;
searching words matched with each group of the segmented character strings in a word bank and combining words to obtain at least one word combination result corresponding to each group of the switched character strings, wherein the word combination result is used as a word combination result corresponding to the input character string;
calculating the probability of the word forming result corresponding to each input character string;
the first word group result is the word group result with the highest probability in the word group results corresponding to the input method character string, and the second word group result is the word group result selected from the word group results corresponding to the input character string according to the probability of the word group results corresponding to the input method character string.
8. An apparatus for presenting input candidates, comprising:
an acquisition unit configured to acquire an input character string;
the first presentation unit is used for determining a first group of word results corresponding to the input character string and presenting the first group of word results as input candidate items;
and the second presentation unit is used for determining a second word group result corresponding to the input character string and presenting the second word group result as the input candidate item if a trigger event for presenting a plurality of word group candidates is responded.
9. An apparatus for presenting input candidates, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and wherein the one or more programs configured to be executed by the one or more processors comprise instructions for performing the method of any of the preceding claims 1-7.
10. A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of an electronic device, enable the electronic device to perform the method of any of preceding claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811385754.8A CN111198620B (en) | 2018-11-20 | 2018-11-20 | Method, device and equipment for presenting input candidate items |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811385754.8A CN111198620B (en) | 2018-11-20 | 2018-11-20 | Method, device and equipment for presenting input candidate items |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111198620A true CN111198620A (en) | 2020-05-26 |
CN111198620B CN111198620B (en) | 2024-07-19 |
Family
ID=70746995
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811385754.8A Active CN111198620B (en) | 2018-11-20 | 2018-11-20 | Method, device and equipment for presenting input candidate items |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111198620B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112199031A (en) * | 2020-10-15 | 2021-01-08 | 科大讯飞股份有限公司 | Input method, device, equipment and storage medium |
CN112925469A (en) * | 2021-03-31 | 2021-06-08 | 维沃移动通信有限公司 | Content display method, content display device, storage medium and electronic equipment |
CN113360004A (en) * | 2021-07-01 | 2021-09-07 | 北京华宇信息技术有限公司 | Input method candidate word recommendation method and device |
CN113900635A (en) * | 2020-07-06 | 2022-01-07 | 阿里巴巴集团控股有限公司 | Code recommendation method and device |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5734749A (en) * | 1993-12-27 | 1998-03-31 | Nec Corporation | Character string input system for completing an input character string with an incomplete input indicative sign |
CN1240037A (en) * | 1996-10-16 | 1999-12-29 | 夏普公司 | Character input apparatus and storage medium in which character input program is stored |
CN101071342A (en) * | 2007-06-01 | 2007-11-14 | 腾讯科技(深圳)有限公司 | Method for providing candidate whole sentence in input method and word input system |
CN101634927A (en) * | 2008-12-04 | 2010-01-27 | 北京搜狗科技发展有限公司 | Method and device for displaying candidate items in character input |
CN101763208A (en) * | 2008-12-31 | 2010-06-30 | 北京搜狗科技发展有限公司 | Method and device for displaying interface of input method |
CN102455845A (en) * | 2010-10-14 | 2012-05-16 | 北京搜狗科技发展有限公司 | Character entry method and device |
CN102929864A (en) * | 2011-08-05 | 2013-02-13 | 北京百度网讯科技有限公司 | Syllable-to-character conversion method and device |
WO2016202101A1 (en) * | 2015-06-16 | 2016-12-22 | 北京奇虎科技有限公司 | Method and device for displaying candidate item based on input method |
CN106896936A (en) * | 2017-02-24 | 2017-06-27 | 百度在线网络技术(北京)有限公司 | Vocabulary method for pushing and device |
CN107544684A (en) * | 2016-06-29 | 2018-01-05 | 北京搜狗科技发展有限公司 | A kind of candidate word display methods and device |
CN108073294A (en) * | 2016-11-11 | 2018-05-25 | 北京搜狗科技发展有限公司 | A kind of intelligent word method and apparatus, a kind of device for intelligent word |
-
2018
- 2018-11-20 CN CN201811385754.8A patent/CN111198620B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5734749A (en) * | 1993-12-27 | 1998-03-31 | Nec Corporation | Character string input system for completing an input character string with an incomplete input indicative sign |
CN1240037A (en) * | 1996-10-16 | 1999-12-29 | 夏普公司 | Character input apparatus and storage medium in which character input program is stored |
CN101071342A (en) * | 2007-06-01 | 2007-11-14 | 腾讯科技(深圳)有限公司 | Method for providing candidate whole sentence in input method and word input system |
CN101634927A (en) * | 2008-12-04 | 2010-01-27 | 北京搜狗科技发展有限公司 | Method and device for displaying candidate items in character input |
CN101763208A (en) * | 2008-12-31 | 2010-06-30 | 北京搜狗科技发展有限公司 | Method and device for displaying interface of input method |
CN102455845A (en) * | 2010-10-14 | 2012-05-16 | 北京搜狗科技发展有限公司 | Character entry method and device |
CN102929864A (en) * | 2011-08-05 | 2013-02-13 | 北京百度网讯科技有限公司 | Syllable-to-character conversion method and device |
WO2016202101A1 (en) * | 2015-06-16 | 2016-12-22 | 北京奇虎科技有限公司 | Method and device for displaying candidate item based on input method |
CN107544684A (en) * | 2016-06-29 | 2018-01-05 | 北京搜狗科技发展有限公司 | A kind of candidate word display methods and device |
CN108073294A (en) * | 2016-11-11 | 2018-05-25 | 北京搜狗科技发展有限公司 | A kind of intelligent word method and apparatus, a kind of device for intelligent word |
CN106896936A (en) * | 2017-02-24 | 2017-06-27 | 百度在线网络技术(北京)有限公司 | Vocabulary method for pushing and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113900635A (en) * | 2020-07-06 | 2022-01-07 | 阿里巴巴集团控股有限公司 | Code recommendation method and device |
CN112199031A (en) * | 2020-10-15 | 2021-01-08 | 科大讯飞股份有限公司 | Input method, device, equipment and storage medium |
CN112925469A (en) * | 2021-03-31 | 2021-06-08 | 维沃移动通信有限公司 | Content display method, content display device, storage medium and electronic equipment |
CN113360004A (en) * | 2021-07-01 | 2021-09-07 | 北京华宇信息技术有限公司 | Input method candidate word recommendation method and device |
Also Published As
Publication number | Publication date |
---|---|
CN111198620B (en) | 2024-07-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11120078B2 (en) | Method and device for video processing, electronic device, and storage medium | |
CN111198620B (en) | Method, device and equipment for presenting input candidate items | |
CN107291260B (en) | Information input method and device for inputting information | |
CN110795014B (en) | Data processing method and device and data processing device | |
CN107422872B (en) | Input method, input device and input device | |
CN109725736B (en) | Candidate sorting method and device and electronic equipment | |
CN109799916B (en) | Candidate item association method and device | |
CN110648657A (en) | Language model training method, language model construction method and language model construction device | |
CN109901726B (en) | Candidate word generation method and device and candidate word generation device | |
CN107340881B (en) | Input method and electronic equipment | |
CN110780749A (en) | Character string error correction method and device | |
CN112083811B (en) | Candidate item display method and device | |
CN112987941B (en) | Method and device for generating candidate words | |
CN111522448B (en) | Method, device and equipment for providing input candidate items | |
CN108227952B (en) | Method and system for generating custom word and device for generating custom word | |
CN109917927B (en) | Candidate item determination method and device | |
CN113589954A (en) | Data processing method and device and electronic equipment | |
CN113589949A (en) | Input method and device and electronic equipment | |
CN112306251A (en) | Input method, input device and input device | |
CN111103986A (en) | User word stock management method and device and input method and device | |
CN110244861B (en) | Data processing method and device | |
CN111722726B (en) | Method and device for determining pigment and text | |
CN110413133B (en) | Input method and device | |
CN112214154B (en) | Interface processing method and device and interface processing device | |
CN110580126B (en) | Virtual keyboard and input method based on virtual keyboard |
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 |