WO2022143341A1 - Procédé et appareil d'affichage de mot candidat de procédé d'entrée et dispositif électronique - Google Patents

Procédé et appareil d'affichage de mot candidat de procédé d'entrée et dispositif électronique Download PDF

Info

Publication number
WO2022143341A1
WO2022143341A1 PCT/CN2021/140475 CN2021140475W WO2022143341A1 WO 2022143341 A1 WO2022143341 A1 WO 2022143341A1 CN 2021140475 W CN2021140475 W CN 2021140475W WO 2022143341 A1 WO2022143341 A1 WO 2022143341A1
Authority
WO
WIPO (PCT)
Prior art keywords
character string
input
character
candidate
strings
Prior art date
Application number
PCT/CN2021/140475
Other languages
English (en)
Chinese (zh)
Inventor
江欣华
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2022143341A1 publication Critical patent/WO2022143341A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis

Definitions

  • the present application belongs to the field of communication technologies, and in particular relates to a method, device and electronic device for displaying an input method candidate word.
  • the electronic device can display the character string indicated by these keys and some candidate words corresponding to the character string according to the keys in the input method keyboard clicked by the user, and then The user can select a desired word from these candidate words.
  • the purpose of the embodiments of the present application is to provide an input method candidate word display method, device and electronic device, which can solve the problem that the correct rate of candidate words displayed by the electronic device is low.
  • an embodiment of the present application provides a method for displaying an input method candidate word.
  • the method includes: receiving a first input of a first character string entered on an input method keyboard; When the string satisfies the first preset condition, at least one candidate is displayed according to the first string and N second strings, the N second strings according to the first input on the input method keyboard.
  • the input coordinates are determined, and N is a positive integer.
  • the first preset condition includes at least one of the following: the semantics of the candidate item corresponding to the first character string is incomplete, and the initial and final in the first character string do not match; the at least one candidate item includes at least one of the following: with A candidate item corresponding to the first character string, and a candidate item corresponding to each of the N second character strings.
  • an embodiment of the present application provides an input method candidate word display device, where the input method candidate word display device includes: a receiving module and a display module.
  • the receiving module is used for receiving the first input of the first character string entered on the input method keyboard.
  • a display module configured to display at least one candidate according to the first character string and the N second character strings in response to the first input received by the receiving module, in the case that the first character string satisfies the first preset condition item, the N second character strings are determined according to the input coordinates of the first input on the input method keyboard, and N is a positive integer.
  • the first preset condition includes at least one of the following: the semantics of the candidate item corresponding to the first character string is incomplete, and the initial and final in the first character string do not match; the at least one candidate item includes at least one of the following: with A candidate item corresponding to the first character string, and a candidate item corresponding to each of the N second character strings.
  • an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor.
  • the program or instruction is executed by the processor, the The steps of the method in the first aspect above.
  • an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method in the foregoing first aspect are implemented.
  • an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used for running a program or instruction to implement the method in the first aspect.
  • a first input of inputting a first character string on an input method keyboard may be received; and in response to the first input, in the case that the first character string satisfies the first preset condition, according to the first input
  • the first preset condition includes at least one of the following: the semantics of the candidate item corresponding to the first character string is incomplete, and the initial and final in the first character string do not match; the at least one candidate item includes at least one of the following: with A candidate item corresponding to the first character string, and a candidate item corresponding to each of the N second character strings.
  • N second character strings can be determined according to the input coordinates input on the input method keyboard, so that at least one candidate that may meet the actual needs of the user can be displayed according to the first character string and the N second character strings. In this way, the correct rate of candidate words displayed by the electronic device is improved.
  • FIG. 1 is a schematic diagram of a process of predicting a character string word generation provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of a method for displaying input method candidate words according to an embodiment of the present application
  • FIG. 3 is a schematic diagram of a keyboard layout according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a keyboard key display provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an input method candidate word display device provided by an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 7 is a schematic hardware diagram of an electronic device provided by an embodiment of the present application.
  • words such as “exemplarily” or “for example” are used to represent examples, illustrations or illustrations. Any embodiments or designs described in the embodiments of the present application as “exemplarily” or “for example” should not be construed as being advantageous over other embodiments or designs. Rather, the use of words such as “exemplarily” or “such as” is intended to present the related concepts in a specific manner.
  • Embodiments of the present application provide an input method candidate word display method, device, and electronic device, which receive a first input of a first character string on an input method keyboard; in response to the first input, the first character string satisfies the first
  • the first character string satisfies the first
  • at least one candidate is displayed according to the first character string and N second character strings, and the N second character strings are determined according to the input coordinates of the first input on the input method keyboard, N is a positive integer.
  • the first preset condition includes at least one of the following: the semantics of the candidate item corresponding to the first character string is incomplete, and the initial and final in the first character string do not match; the at least one candidate item includes at least one of the following: with A candidate item corresponding to the first character string, and a candidate item corresponding to each of the N second character strings.
  • the input method candidate word display method is applied to an electronic device.
  • the electronic device includes an input method client, a prediction model and a wording model.
  • the input method client is used to provide different types of input methods and input method keyboards corresponding to the input methods;
  • the prediction model is used to predict the possible input of the user according to the key positions of the user on the input method keyboard provided by the input method client.
  • the wording model is used to retrieve and obtain words or sentences corresponding to the predicted strings from the thesaurus according to the strings predicted by the prediction model, such as candidate words.
  • the electronic device displays an input method keyboard
  • the user can click some keys on the input method keyboard according to actual needs; then the input method client can convert the user's key position information on the input method keyboard and the input method
  • the layout information of the French keyboard is sent to the prediction model; then, when the prediction model determines that there are mistouched characters in the original character string (ie, the first character string) input by the user and corresponding to some of the keys, the The key information on the input method keyboard and the layout information of the input method keyboard are used to obtain a predicted character string (ie, the second character string), and the predicted character string is sent to the wording model; finally, the wording model is based on the original character string. and the predicted character string, retrieved from the thesaurus to obtain a candidate item corresponding to the original character string and the predicted character string, and display the candidate item in the candidate item display area of the input method client.
  • an embodiment of the present application provides a method for displaying an input method candidate word, and the method includes the following S101 and S102.
  • the input method candidate word display device receives a first input of a first character string input on an input method keyboard.
  • the electronic device supports different types of input methods, so that the electronic device can store different types of input method keyboards.
  • the above-mentioned input method keyboard may be any type of input method keyboard in an electronic device, which may be determined according to the actual situation, which is not limited in this embodiment of the present application.
  • the input method keyboard is a pinyin input method 9-key keyboard; for another example, the input method keyboard is a pinyin input method 26-key keyboard.
  • the above-mentioned first character string may be any of the following types of character strings: a Chinese pinyin character string, an English letter character string, a radical character string, or a character string under other possible input method schemes. Specifically, it can be determined according to the actual situation, which is not limited in this embodiment of the present application.
  • the Hanyu Pinyin character string may be a full pinyin character string, a simplified pinyin character string, a fuzzy sound character string, a custom character string, or the like. Specifically, it can be determined according to the actual situation, which is not limited in this embodiment of the present application.
  • the input method keyboard is a pinyin input method keyboard
  • the first character string is a Chinese pinyin string composed of multiple letters.
  • the input method keyboard is an English input method keyboard
  • the first character string is an English letter string composed of multiple letters.
  • the input method keyboard is a stroke input method keyboard, correspondingly, the first character string is a plurality of radicals.
  • the above-mentioned first input may be touch input on an input method keyboard, voice input or other possible input.
  • the touch input is a user's click input on a key on an input method keyboard.
  • the first input may also be other possible inputs, which are not limited in this embodiment of the present application.
  • the input method candidate word display device displays at least one candidate item according to the first character string and N second character strings under the condition that the first character string satisfies the first preset condition .
  • the above-mentioned N second character strings are determined according to the input coordinates of the first input on the input method keyboard, and N is a positive integer, ie.
  • the first preset condition includes at least one of the following: the semantics of the candidate item corresponding to the first character string is incomplete, and the initial consonant and the final consonant in the first character string do not match.
  • the at least one candidate item includes at least one of the following: a candidate item corresponding to the first character string, a candidate item corresponding to each of the N second character strings.
  • the input method candidate word is displayed.
  • the device can determine that when the user inputs the first character string, the user may accidentally touch the keys in the input method keyboard, so that N second character strings can be determined according to the input coordinates of the first input on the input method keyboard. That is, the N second character strings are predicted character strings determined according to the input coordinates of the input first character string.
  • the semantic error of the candidate corresponding to the first string may include the following possible situations:
  • the first candidate item corresponding to the first character string is not a sentence with complete semantic meaning or a word with incomplete semantics.
  • the descriptions about the semantic errors of the candidate items corresponding to the first character string in the foregoing embodiments are only several possible situations provided by the embodiments of the present application.
  • the semantic error of the candidate item corresponding to the first character string may also include other possible situations, which are not limited in this embodiment of the present application.
  • the candidates corresponding to the first character string include S candidates, and the candidates corresponding to the N second character strings include T candidates.
  • some of the S candidates are candidates.
  • the candidates for the item and some of the T candidates may be the same; in another case, the S candidates and the T candidates are completely different. where S and T are both positive integers.
  • the candidate item of the character string may be a word or a sentence. Specifically, it is determined according to the actual situation, which is not limited in this embodiment of the present application.
  • the above S102 may specifically include: in response to the first input, the input method candidate word display device, in the case that the first character string satisfies the first preset condition, according to the first character string and the N second character strings, Obtain a plurality of candidate items matching the first character string and the N second character strings from the thesaurus, and display at least one candidate item of the plurality of candidate items.
  • the method for displaying an input method candidate word may further include: the input method candidate word display device performs deduplication and sorting processing on multiple candidate items; and sequentially displays the multiple candidate items in the sorted order on the in the candidate window of the input method keyboard.
  • the arrangement order of the multiple candidates may be determined according to user historical data, or according to the usage frequency of each candidate item according to big data statistics, or determined according to other possible methods. Specifically, it can be determined according to the actual situation, which is not limited in this embodiment of the present application.
  • the embodiment of the present application may provide the following two possible display modes:
  • the multiple candidates are displayed. That is, at least one candidate is the multiple candidates.
  • the method for displaying an input method candidate word may further include: receiving an input from a user; and displaying a candidate item in the multiple candidate items except at least one candidate item in response to the input.
  • the user can trigger the display of other candidates except at least one of the multiple candidates by clicking the drop-down button.
  • the method for displaying candidate input method words may further include the following S102A and S102B.
  • the input method candidate word display device acquires key layout information of the input method keyboard.
  • the key layout information of the input method keyboard may include information such as the keyboard type of the input method keyboard, the size of the keyboard, and the position coordinates of each key in the input method keyboard.
  • the input method candidate word display device can generate a keyboard layout table with the keyboard type, keyboard size and position coordinates, store the keyboard layout table in the database of the electronic device, and send the keyboard layout table to the electronic device. Predictive models in the device.
  • the keyboard type may be Pinyin full key or Pinyin nine key; the size of the keyboard may include the width and height of the keyboard; the position coordinates of each key may be the coordinates of the upper left corner or the lower right corner of each key.
  • the input method keyboard shown in Figure 3 is the Quanpin keyboard
  • the keyboard size may include the width of the Quanpin keyboard and the height of the Quanpin keyboard, and the coordinates of the upper left corner and the lower right corner are specified for each key. Take the key "F” corresponding to the letter "F" as an example.
  • the coordinates of the upper right corner of the button “F” are (600, 240), and the coordinates of the lower left corner of the button “F” are (480, 435).
  • the input method candidate word display device acquires the key layout information of the input method keyboard in real time, so that when the user triggers switching the keyboard type of the input method keyboard, the switched input method can be re-obtained in real time. key layout information of the keyboard, and send the key layout information obtained in real time to the prediction model in the electronic device.
  • the input method candidate word display device determines input coordinates according to the key layout information and the input position of the first input on the input method keyboard.
  • the above S102 may include: in response to the first input, the input method candidate word display device obtains the key layout information of the input method keyboard under the condition that the first character string satisfies the first preset condition, and according to the key The layout information and the input position of the first input on the input method keyboard determine input coordinates, and display at least one candidate item according to the first character string and the N second character strings.
  • the above-mentioned input coordinates may include abscissa and ordinate.
  • the input coordinate may be a specific coordinate value, or a coordinate interval. Specifically, it is determined according to the actual situation, which is not limited in this embodiment of the present application.
  • the coordinates of the input coordinates can be obtained by calculating the input position of a certain key on the input method keyboard according to the first input. value, or the coordinate range of the first input on the keyboard of this input method. In this way, preparation conditions are provided for determining the adjacent keys of the key corresponding to the target character in the first character string.
  • the input position of the first input is the upper left corner position of the button "F"
  • the input coordinates are (480, 240)
  • the input position of the first input is the middle position of the button "F”
  • the abscissa of the input coordinates belongs to the interval (480, 600)
  • the ordinate belongs to the interval (240, 435).
  • the above S102 may be specifically implemented through the following S102C to S102E.
  • the input method candidate word display device determines the target key according to the input coordinates and the key layout information of the input method keyboard when the first character string satisfies the first preset condition.
  • the above-mentioned target key is the adjacent key of the key corresponding to the target character in the first character string.
  • the above-mentioned target character is a character in the first character string that causes the semantics of the candidate corresponding to the first character string to be incomplete, or a mismatch between initials and finals in the first character string.
  • character of the number of the target characters may be multiple or one. It should be noted that one target character corresponds to one target key.
  • the number of target keys is also one; when the number of target characters is multiple, each character in the target characters corresponds to one target key, that is, multiple target keys. Target characters correspond to multiple target keys.
  • the key layout information of the input method keyboard may further include a preset area corresponding to each key, and the preset area includes a plurality of sub-areas.
  • different sub-areas correspond to different adjacent keys.
  • the keys fall into different sub-regions of the keys, so that because different sub-regions correspond to different adjacent keys, the obtained adjacent keys are different, that is, the target keys are different.
  • the input method keyboard as the Quanpin input method keyboard as an example.
  • the key "K” in the Quanpin input method keyboard corresponds to a preset area: area 01.
  • the area 01 is the hot area of the button "K", that is, when the user clicks the area 1, it means that the button "K” is clicked.
  • the area 01 includes sub-areas 02 , sub-areas 03 , . . . and sub-areas 07 .
  • the adjacent button of the button “K” is the button “O", that is, the target button is the button “O”; If the input coordinates fall in the sub-area 03, it means that the adjacent key of the key “K” is the key “I”, that is, the target key is the key “I”; Adjacent button; if the input coordinates of the click input fall in the sub-area 05, it means that the adjacent button of the button “K” is the button “M”, that is, the target button is the button “M”; if the input coordinates of the click input fall in the sub-area 06, it means that the adjacent button of the button “K” is the button “L”, that is, the target button is the button “L”. If the input coordinate of the click input falls in the sub-area 07, it means that the adjacent button of the button “K” is the button “J”, that is, the target button is the button "J”.
  • the input method candidate word display device obtains N second character strings according to the character corresponding to the target key and the characters other than the target character in the first character string.
  • the above-mentioned S102D may specifically include: according to the arrangement order of the characters in the first character string, arranging and combining the characters corresponding to the target keys and the characters in the first character string except the target characters to obtain N second characters. string.
  • the target key can be determined according to the input coordinates and the key layout information of the input method keyboard, it can be determined according to the character corresponding to the target key and the For characters other than the target character in the first character string, N second character strings are obtained, so that in addition to obtaining the candidate items through the first character string, the candidate items can also be obtained through the N second character strings. In this way, users are provided with more choices.
  • the embodiment of the present application provides the following two possible implementation manners:
  • the above S102D may be specifically implemented by the following A1 and A2.
  • the input method candidate word display device obtains M second character strings according to the characters corresponding to the target key and characters other than the target characters in the first character string.
  • M is an integer greater than 1.
  • the input method candidate word display device filters the second character strings satisfying the second preset condition among the M second character strings to obtain N second character strings.
  • the above-mentioned second preset condition includes at least one of the following: the initial consonant and the final consonant in the second character string do not match, and the semantics of the candidate item corresponding to the second character string is incomplete.
  • a set of grammar models is included in the prediction model of the electronic device, so that the grammar model can filter out the second strings that do not meet the grammar conditions from the obtained M second strings, that is, filter the M second strings.
  • the above S102D may be specifically implemented by the following B1 and B2.
  • the input method candidate word display device obtains K second character strings according to the characters corresponding to the target key and characters other than the target characters in the first character string.
  • K is an integer greater than 1.
  • the input method candidate word display apparatus selects N second character strings with the highest weight level from the K second character strings according to the weight level.
  • the above-mentioned weight level is used to indicate the use probability of the candidate item corresponding to the second character string.
  • the weight level is determined according to at least one of the syntax of the second character string and the semantics of the candidate item corresponding to the second character string.
  • weight levels correspond to different usage probabilities. The higher the weight level of the second character string, the higher the usage probability corresponding to the second character string; the lower the weight level of the second character string, the lower the usage probability corresponding to the second character string.
  • the weight level may be determined according to at least one of the syntax of the second character string and the semantics of the candidate item corresponding to the second character string:
  • the syntax of a second string reasonably corresponds to the weight level of the second string.
  • the candidate item corresponding to each second character string is a word or sentence with complete semantics, so as to determine the semantic completeness of the candidate item corresponding to each second character string.
  • the semantic completeness of the candidate item corresponding to a second string corresponds to the weight level of the second string.
  • a candidate corresponding to a second character string is a candidate for an idiomatic collocation or a hot word collocation, so that the generality of the candidate corresponding to each second character string can be determined.
  • the generality of the candidate item corresponding to a second character string corresponds to the weight level of the second character string. The higher the generality, the higher the weight level; the lower the generality, the lower the weight level.
  • the weight levels of the K second strings may be sorted from high to low, and selected from the K second strings.
  • the K second strings can be obtained from the K second strings according to the weight level. Select the N second strings with the highest weight level, therefore, candidates with higher usage probability corresponding to the N second strings can be obtained, so that the user can select words that are more in line with expectations from the candidates or sentences.
  • the input method candidate word display device displays at least one candidate according to the first character string and the N second character strings.
  • the key layout information of the input method keyboard can be first based on the input coordinates. , determine the target key, and then execute the above S102D. In this way, the number of predicted second character strings increases, thereby increasing the probability that the candidate corresponding to the second character string is correct.
  • the input method candidate word display device cannot judge whether the button is accidentally pressed through the grammar, words and sentence meaning of pinyin. For another example, the user clicks the button to input "jib”, but the user actually wants to input “jin”. At this time, the input method candidate word display device cannot determine that the input "b” is a false touch of "n", or that "b" is a down the initials of one.
  • the input method candidate word display device as a mobile phone as an example. It is assumed that the user triggers the electronic device to display the full keyboard of the Pinyin input method. If the user wants to send a message "Let's eat Haidilao today" to a friend, the user clicks a button in the full keyboard of the Pinyin input method. When the user clicks the button to input "jintianquchiha" (the first character string), the predicted pinyin string output by the mobile phone is consistent with the original pinyin string.
  • the mobile phone determines that there is a grammatical error in the string “jintianquchihau” (that is, the first string), that is, the user may touch the button by mistake, so that the mobile phone can use the pinyin input method according to the full keyboard. Based on the keyboard layout information and the input coordinates obtained when "key u" is clicked, it is determined that the adjacent key of key "u” is "key i" (ie, the target key), so that the mobile phone can predict that what the user wants to input is key "i”.
  • the mobile phone can determine that the adjacent button of the button “o" is the button “i", that is, The phone can predict that what the user wants to type is the key "i”.
  • the mobile phone can determine that the adjacent button of the button “s" is the button “a”, that is, the mobile phone can predict that the user wants to input the button "a", so that the predicted pinyin can be obtained.
  • String ie the second string
  • the mobile phone can input the predicted string "jintianquchihaidilaoba” and the first string “jintianquchihaudolaobs” into the word output model at the same time. Find the candidate corresponding to the predicted string and the candidate corresponding to the first string, and rank the candidate "Let's eat Haidilao today" that best meets the user's expectations at the top.
  • An embodiment of the present application provides a method for displaying candidate words of an input method.
  • a user clicks a key on an input method keyboard to trigger the input of a first character string when the user touches a key on the input method keyboard by mistake, it can be determined that the first character string is entered.
  • the character string satisfies the first preset condition, so N second character strings can be determined according to the input coordinates input on the input method keyboard, so that according to the first character string and the N second character strings, the display may satisfy the At least one candidate for the actual needs of the user. In this way, the correct rate of candidate words displayed by the electronic device is improved.
  • the execution subject may be an input method candidate word display device (for example, the input method candidate word display device is an electronic device, or a functional module in the electronic device) , or a control module in the input method candidate word display device for executing the input method candidate word display method.
  • the method for displaying an input method candidate word is performed by an input method candidate word display device as an example to describe the input method candidate word display device provided by the embodiment of the present application.
  • an embodiment of the present application provides an input method candidate word display device 200
  • the input method candidate word display device may include a receiving module 201 and a display module 202 .
  • the receiving module 201 may be configured to receive a first input of a first character string entered on an input method keyboard.
  • the display module 202 can be configured to, in response to the first input received by the receiving module 201, display the display according to the first character string and the N second character strings under the condition that the first character string satisfies the first preset condition At least one candidate item, the N second character strings are determined according to the input coordinates of the first input on the input method keyboard, and N is a positive integer.
  • the first preset condition includes at least one of the following: the semantics of the candidate item corresponding to the first character string is incomplete, and the initial and final in the first character string do not match; the at least one candidate item includes at least one of the following: with A candidate item corresponding to the first character string, and a candidate item corresponding to each of the N second character strings.
  • the input method candidate word display apparatus may further include a determination module 203 .
  • the determination module 203 can be used to determine the target key according to the input coordinates and the key layout information of the input method keyboard, and the target key is the adjacent key of the key corresponding to the target character in the first character string; and according to the character corresponding to the target key and characters other than the target character in the first string to obtain N second strings.
  • the determining module 203 can be specifically configured to obtain M second character strings according to the characters corresponding to the target keys and characters other than the target characters in the first character string, where M is an integer greater than 1; and filter the For the second character strings satisfying the second preset condition among the M second character strings, N second character strings are obtained.
  • the second preset condition includes at least one of the following: the initial and final in the second character string do not match, and the semantics of the candidate item corresponding to the second character string is incomplete.
  • the determining module 203 can be specifically configured to obtain K second character strings according to the characters corresponding to the target keys and characters other than the target characters in the first character string, where K is an integer greater than 1; level, and select N second strings with the highest weight level from the K second strings, where the weight level is used to indicate the use probability of the candidate corresponding to the second string.
  • the weight level is determined according to at least one of the following: the grammatical rationality of the second character string, the semantic integrity of the candidate item corresponding to the second character string, and the semantic universality of the candidate item corresponding to the second character string.
  • the input method candidate word display apparatus may further include an acquisition module 204 and a determination module 203 .
  • the obtaining module 204 may be configured to obtain the key layout information of the input method keyboard before the display module 202 displays at least one candidate item according to the first character string and the N second character strings.
  • the determining module 203 is configured to determine the input coordinates according to the key layout information obtained by the obtaining module 204 and the input position of the first input on the input method keyboard.
  • An embodiment of the present application provides an input method candidate word display device.
  • a user clicks a button on an input method keyboard to trigger the input of a first character string when the user touches a button on the input method keyboard by mistake, the input method candidate word is displayed.
  • the display device can determine that the first character string satisfies the first preset condition, so it can determine N second character strings according to the input coordinates input on the input method keyboard, so that the N second character strings can be determined according to the first character string and the N Two strings, showing at least one candidate that may meet the actual needs of the user. In this way, the correct rate of candidate words displayed by the electronic device is improved.
  • the input method candidate word display device in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • netbook or a personal digital assistant (personal digital assistant).
  • non-mobile electronic devices can be servers, network attached storage (NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • the input method candidate word display device in the embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the input method candidate word display device provided by the embodiment of the present application can implement each process implemented by the method embodiments in FIG. 1 to FIG. 4 , and to avoid repetition, details are not repeated here.
  • an embodiment of the present application further provides an electronic device 300 , including a processor 301 , a memory 302 , a program or instruction stored in the memory 302 and executable on the processor 301 , the program Or when the instruction is executed by the processor 301, each process of the above embodiments of the input method candidate word display method can be implemented, and the same technical effect can be achieved. To avoid repetition, details are not described here.
  • the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 400 includes but is not limited to: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, and a processor 410, etc. part.
  • the electronic device 400 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 410 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions.
  • a power source such as a battery
  • the structure of the electronic device shown in FIG. 7 does not constitute a limitation on the electronic device.
  • the electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
  • the user input unit 407 may be configured to receive a first input of a first character string entered on an input method keyboard.
  • the display unit 406 can be configured to respond to the first input received by the user input unit 407, in the case that the first character string satisfies the first preset condition, according to the first character string and the N second character strings, At least one candidate item is displayed, the N second character strings are determined according to the input coordinates of the first input on the input method keyboard, and N is a positive integer.
  • the first preset condition includes at least one of the following: the semantics of the candidate item corresponding to the first character string is incomplete, and the initial and final in the first character string do not match; the at least one candidate item includes at least one of the following: with A candidate item corresponding to the first character string, and a candidate item corresponding to each of the N second character strings.
  • the processor 410 can be used to determine a target key according to the input coordinates and the key layout information of the input method keyboard, and the target key is the adjacent key of the key corresponding to the target character in the first character string; and according to the target key The characters corresponding to the keys and the characters in the first character string other than the target character are used to obtain N second character strings.
  • the processor 410 can be specifically configured to obtain M second character strings according to the characters corresponding to the target keys and characters other than the target characters in the first character string, where M is an integer greater than 1; and filter the For the second character strings satisfying the second preset condition among the M second character strings, N second character strings are obtained.
  • the second preset condition includes at least one of the following: the initial and final in the second character string do not match, and the semantics of the candidate item corresponding to the second character string is incomplete.
  • the processor 410 can be specifically configured to obtain K second character strings according to the characters corresponding to the target keys and the characters other than the target characters in the first character string, where K is an integer greater than 1; level, and select N second strings with the highest weight level from the K second strings, where the weight level is used to indicate the use probability of the candidate corresponding to the second string.
  • the weight level is determined according to at least one of the following: the grammatical rationality of the second character string, the semantic integrity of the candidate item corresponding to the second character string, and the semantic universality of the candidate item corresponding to the second character string.
  • the processor 410 can also be configured to obtain the key layout information of the input method keyboard before the display unit 406 displays at least one candidate according to the first character string and the N second character strings; and according to the key layout The information and the input position of the first input on the input method keyboard determine the input coordinates.
  • An embodiment of the present application provides an electronic device.
  • the electronic device can determine the first character string when the user touches a key of the input method keyboard by mistake.
  • the first preset condition is satisfied, so the electronic device can determine N second character strings according to the input coordinates input on the input method keyboard, so that the display may satisfy the At least one candidate for the actual needs of the user. In this way, the correct rate of candidate words displayed by the electronic device is improved.
  • the input unit 404 may include a graphics processing unit (graphics processing unit, GPU) 4041 and a microphone 4042. Such as camera) to obtain still pictures or video image data for processing.
  • the display unit 406 may include a display panel 4061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 407 includes a touch panel 4071 and other input devices 4072 .
  • the touch panel 4071 is also called a touch screen.
  • the touch panel 4071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 4072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which are not described herein again.
  • Memory 409 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems.
  • the processor 410 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 410.
  • Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the above-mentioned embodiment of the method for displaying candidate words of an input method is implemented, and can To achieve the same technical effect, in order to avoid repetition, details are not repeated here.
  • a readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like.
  • ROM computer read-only memory
  • RAM random access memory
  • magnetic disk or an optical disk and the like.
  • An embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used for running a program or an instruction to implement the various processes of the above embodiments of the input method candidate word display method, and The same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
  • the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods in the various embodiments of the present application.
  • a storage medium such as ROM/RAM, magnetic disk, CD-ROM

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Input From Keyboards Or The Like (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

La présente demande relève du domaine technique des communications et divulgue un procédé et un appareil d'affichage de mot candidat de procédé d'entrée, ainsi qu'un dispositif électronique. Le procédé comprend les étapes consistant à : recevoir une première entrée d'une première chaîne de caractères entrée au moyen d'un clavier de procédé d'entrée ; et en réponse à la première entrée, lorsque la première chaîne de caractères satisfait une première condition prédéfinie, afficher au moins un élément candidat en fonction de la première chaîne de caractères et de N secondes chaînes de caractères, les N secondes chaînes de caractères étant déterminées en fonction de coordonnées d'entrée de la première entrée sur le clavier de procédé d'entrée, et N étant un nombre entier positif. La première condition prédéfinie comprend au moins l'un des éléments suivants : la sémantique d'un élément candidat correspondant à la première chaîne de caractères est incomplète, et une consonne initiale ainsi qu'une voyelle de la première chaîne de caractères ne correspondent pas. Au moins un élément candidat comprend au moins l'un des éléments suivants : un élément candidat correspondant à la première chaîne de caractères et un élément candidat correspondant à chacune des N secondes chaînes de caractères.
PCT/CN2021/140475 2020-12-29 2021-12-22 Procédé et appareil d'affichage de mot candidat de procédé d'entrée et dispositif électronique WO2022143341A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011592963.7A CN112684910A (zh) 2020-12-29 2020-12-29 输入法候选词显示方法、装置及电子设备
CN202011592963.7 2020-12-29

Publications (1)

Publication Number Publication Date
WO2022143341A1 true WO2022143341A1 (fr) 2022-07-07

Family

ID=75453796

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/140475 WO2022143341A1 (fr) 2020-12-29 2021-12-22 Procédé et appareil d'affichage de mot candidat de procédé d'entrée et dispositif électronique

Country Status (2)

Country Link
CN (1) CN112684910A (fr)
WO (1) WO2022143341A1 (fr)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112684910A (zh) * 2020-12-29 2021-04-20 维沃移动通信有限公司 输入法候选词显示方法、装置及电子设备
CN114035693A (zh) * 2021-11-15 2022-02-11 平安普惠企业管理有限公司 拼音输入方法、装置、计算机设备及存储介质

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090216690A1 (en) * 2008-02-26 2009-08-27 Microsoft Corporation Predicting Candidates Using Input Scopes
CN101710262A (zh) * 2009-12-11 2010-05-19 北京搜狗科技发展有限公司 字符纠错方法及装置
CN102184028A (zh) * 2011-04-11 2011-09-14 百度在线网络技术(北京)有限公司 获取与输入按键序列相对应的候选字符串的方法与设备
CN103136196A (zh) * 2008-04-18 2013-06-05 上海触乐信息科技有限公司 用于向电子设备输入文本和纠错的方法
CN107229348A (zh) * 2016-03-23 2017-10-03 北京搜狗科技发展有限公司 一种输入纠错方法、装置和用于输入纠错的装置
CN107340880A (zh) * 2016-05-03 2017-11-10 北京搜狗科技发展有限公司 一种联想输入方法、装置及用于实现联想输入的电子设备
CN110488990A (zh) * 2019-08-12 2019-11-22 腾讯科技(深圳)有限公司 输入纠错方法及装置
CN111665956A (zh) * 2020-04-17 2020-09-15 北京百度网讯科技有限公司 候选字符串的处理方法、装置、电子设备及存储介质
CN112684910A (zh) * 2020-12-29 2021-04-20 维沃移动通信有限公司 输入法候选词显示方法、装置及电子设备

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104571587B (zh) * 2014-12-30 2018-06-26 北京奇虎科技有限公司 对输入法的上屏候选项进行筛选的方法和装置

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090216690A1 (en) * 2008-02-26 2009-08-27 Microsoft Corporation Predicting Candidates Using Input Scopes
CN103136196A (zh) * 2008-04-18 2013-06-05 上海触乐信息科技有限公司 用于向电子设备输入文本和纠错的方法
CN101710262A (zh) * 2009-12-11 2010-05-19 北京搜狗科技发展有限公司 字符纠错方法及装置
CN102184028A (zh) * 2011-04-11 2011-09-14 百度在线网络技术(北京)有限公司 获取与输入按键序列相对应的候选字符串的方法与设备
CN107229348A (zh) * 2016-03-23 2017-10-03 北京搜狗科技发展有限公司 一种输入纠错方法、装置和用于输入纠错的装置
CN107340880A (zh) * 2016-05-03 2017-11-10 北京搜狗科技发展有限公司 一种联想输入方法、装置及用于实现联想输入的电子设备
CN110488990A (zh) * 2019-08-12 2019-11-22 腾讯科技(深圳)有限公司 输入纠错方法及装置
CN111665956A (zh) * 2020-04-17 2020-09-15 北京百度网讯科技有限公司 候选字符串的处理方法、装置、电子设备及存储介质
CN112684910A (zh) * 2020-12-29 2021-04-20 维沃移动通信有限公司 输入法候选词显示方法、装置及电子设备

Also Published As

Publication number Publication date
CN112684910A (zh) 2021-04-20

Similar Documents

Publication Publication Date Title
US10489508B2 (en) Incremental multi-word recognition
US9122376B1 (en) System for improving autocompletion of text input
US11327652B2 (en) Keyboard automatic language identification and reconfiguration
JP6151381B2 (ja) 国際言語のための仮想キーボード入力
CN105164616B (zh) 用于输出候选字符串的方法、计算设备及存储介质
US8911165B2 (en) Overloaded typing apparatuses, and related devices, systems, and methods
US9047268B2 (en) Character and word level language models for out-of-vocabulary text input
WO2022143341A1 (fr) Procédé et appareil d'affichage de mot candidat de procédé d'entrée et dispositif électronique
CN105122185A (zh) 使用过去交互数据的文本建议输出
US9009624B2 (en) Keyboard gestures for character string replacement
WO2022083750A1 (fr) Procédé et appareil d'affichage de texte et dispositif électronique
CN105929975A (zh) 使用替代评分的非字典字符串的姿态键盘输入
US20170336969A1 (en) Predicting next letters and displaying them within keys of a graphical keyboard
WO2022135474A1 (fr) Procédé et appareil de recommandation d'informations et dispositif électronique
US10146764B2 (en) Dynamic key mapping of a graphical keyboard
WO2022105754A1 (fr) Procédé et appareil d'entrée de caractères et dispositif électronique
WO2022194207A1 (fr) Procédé et appareil d'entrée, dispositif électronique et support de stockage lisible
WO2022135294A1 (fr) Procédé et appareil d'affichage de mot candidat, et dispositif électronique
WO2022143523A1 (fr) Procédé et appareil d'affichage de vocabulaire et dispositif électronique
JP2015111197A (ja) 語学学習装置およびプログラム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21914078

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21914078

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 21914078

Country of ref document: EP

Kind code of ref document: A1