CN117270702A - Candidate word screen-surfing method and device, electronic equipment and readable storage medium - Google Patents

Candidate word screen-surfing method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN117270702A
CN117270702A CN202311273097.9A CN202311273097A CN117270702A CN 117270702 A CN117270702 A CN 117270702A CN 202311273097 A CN202311273097 A CN 202311273097A CN 117270702 A CN117270702 A CN 117270702A
Authority
CN
China
Prior art keywords
input
candidate word
input method
candidate
key
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.)
Pending
Application number
CN202311273097.9A
Other languages
Chinese (zh)
Inventor
陈峥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202311273097.9A priority Critical patent/CN117270702A/en
Publication of CN117270702A publication Critical patent/CN117270702A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • G06F3/0233Character input methods
    • G06F3/0236Character input methods using selection techniques to select from displayed items
    • 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
    • G06F3/0233Character input methods
    • G06F3/0237Character input methods using prediction or retrieval techniques
    • 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
    • G06F3/04886Interaction 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 by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus

Abstract

The application discloses a candidate word screen-surfing method, a candidate word screen-surfing device, electronic equipment and a readable storage medium, and belongs to the technical field of electronics. The method comprises the following steps: receiving a first input aiming at a first key in a first input interface under the condition that the input method is a first input method, wherein the first key is a key displayed in the first input interface; responding to the first input, and displaying M candidate words under the condition that the misoperation characteristic value of the first input method is greater than or equal to a preset threshold value, wherein the M candidate words comprise at least one first candidate word and at least one second candidate word, the first candidate word is a candidate word corresponding to a first key in the first input method, and the second candidate word is a candidate word corresponding to the first key in the second input method; screening target candidate words, wherein the target candidate words are one of M candidate words; the first input method and the second input method are input methods conforming to the key layout displayed in the first input interface, and the first input method is different from the second input method and is M positive integer.

Description

Candidate word screen-surfing method and device, electronic equipment and readable storage medium
Technical Field
The application belongs to the technical field of electronics, and particularly relates to a candidate word screen-surfing method, a candidate word screen-surfing device, electronic equipment and a readable storage medium.
Background
With the development of electronic technology, electronic devices provide keyboard types with various layouts for users to select and use, for example, 9 keys or 26 keys, and one keyboard type may correspond to various input methods, and commonly used input methods include pinyin 9 keys, pinyin 26 keys, english 26 keys, stroke keyboards, five-stroke keyboards, microsoft double-spelling, and the like. The user can select the proper keyboard type for use according to the self condition.
Currently, a user needs to manually set a keyboard type on a keyboard selection page or an input method setting page. However, when the user causes a wrong switching of the keyboard types due to the wrong switching, the user can only autonomously find a problem and complete the recovery switching of the correct keyboard types. Some users may be old people or users unfamiliar with the operation of the electronic device, and may not find that the input method is switched incorrectly, or even if found, the users cannot use the input method to perform normal input because the input method is not switched correctly.
Thus, how to use the current abnormal input method to perform normal input is a problem to be solved under the condition that the input method is abnormal.
Disclosure of Invention
The embodiment of the application aims to provide a candidate word screen method, a candidate word screen device, electronic equipment and a readable storage medium, which can use a current abnormal input method to perform normal input under the condition that the input method is abnormal.
In a first aspect, an embodiment of the present application provides a candidate word screening method, where the candidate word screening method includes: receiving a first input aiming at a first key in a first input interface under the condition that the input method is a first input method, wherein the first key is a key displayed in the first input interface; responding to the first input, and displaying M candidate words under the condition that the misoperation characteristic value of the first input method is greater than or equal to a preset threshold value, wherein the M candidate words comprise at least one first candidate word and at least one second candidate word, the first candidate word is a candidate word corresponding to a first key in the first input method, and the second candidate word is a candidate word corresponding to the first key in the second input method; screening target candidate words, wherein the target candidate words are one of M candidate words; the first input method and the second input method are input methods which accord with the key layout displayed in the first input interface, and are different from each other and are M positive integers.
In a second aspect, an embodiment of the present application provides a candidate word on-screen device, where the candidate word on-screen device includes: the device comprises a receiving module, a display module and a processing module; the receiving module is used for receiving first input aiming at a first key in a first input interface under the condition that the input method is a first input method, wherein the first key is a key displayed in the first input interface; the display module is used for responding to the first input received by the receiving module, and displaying M candidate words under the condition that the misoperation characteristic value of the first input method is larger than or equal to a preset threshold value, wherein the M candidate words comprise at least one first candidate word and at least one second candidate word, the first candidate word is a candidate word corresponding to a first key in the first input method, and the second candidate word is a candidate word corresponding to the first key in the second input method; the processing module is used for screening target candidate words, wherein the target candidate words are one of M candidate words; the first input method and the second input method are input methods which accord with the key layout displayed in the first input interface, and are different from each other and are M positive integers.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, under the condition that the input method is a first input method, receiving a first input aiming at a first key in a first input interface, wherein the first key is a key displayed in the first input interface; responding to the first input, and displaying M candidate words under the condition that the misoperation characteristic value of the first input method is greater than or equal to a preset threshold value, wherein the M candidate words comprise at least one first candidate word and at least one second candidate word, the first candidate word is a candidate word corresponding to a first key in the first input method, and the second candidate word is a candidate word corresponding to the first key in the second input method; screening target candidate words, wherein the target candidate words are one of M candidate words; the first input method and the second input method are input methods which accord with the key layout displayed in the first input interface, and are different from each other and are M positive integers. Therefore, under the condition that the misoperation characteristic value of the first input method is larger than or equal to the preset threshold value, the electronic equipment simultaneously displays the candidate word corresponding to the first key in the first input method and the candidate word corresponding to the first key in the second input method, so that even if a user can misselect the input method corresponding to the first input interface through misoperation, the user can select the candidate word which is possibly correct from two different input methods after the key input is performed on the first input interface, and the user can perform normal input by using the first input interface which is possibly misoperated and selected, and the input efficiency is improved.
Drawings
FIG. 1 is a schematic flow chart of a candidate word screen method according to an embodiment of the present application;
FIG. 2 is a second flowchart of a candidate word screening method according to an embodiment of the present disclosure;
FIG. 3 is a third flowchart of a candidate word screening method according to an embodiment of the present disclosure;
FIG. 4 is a flowchart of a candidate word screening method according to an embodiment of the present application;
FIG. 5 is a flowchart of a candidate word screening method according to an embodiment of the present application;
FIG. 6 is a flowchart of a candidate word screening method according to an embodiment of the present application;
FIG. 7 is a schematic structural diagram of a candidate word screen device according to an embodiment of the present application;
FIG. 8 is a second schematic structural diagram of a candidate word screen device according to an embodiment of the present disclosure;
fig. 9 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application;
fig. 10 is a second schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type and not limited to the number of objects, e.g., the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The following is a partial noun explanation in the examples of the present application:
1) Input method keyboard type: the input method keyboard comprises an input keyboard layout and an input rule, and the input method determines the display positions of keys of the keyboard and the decoding mode of input strings according to the corresponding keyboard type. Common keyboard types include pinyin 9 keys, pinyin 26 keys, english 26 keys, stroke keyboards, five-stroke keyboards, microsoft double-spelling, and crane double-spelling.
2) Selecting words and screening: after the user presses a series of keyboard keys to generate an input string, a candidate list of candidate words appears in the candidate bar, and the act of clicking on a particular candidate word to submit it into the target text box is called word selection and screen-up.
3) Multi-level candidates: the input method generates a candidate word list according to the input string of the user, partial word elements in the candidate word list are not completely matched with the input string, only partial prefixes of the input string are matched, the input string cannot be completely consumed by clicking the candidate word of the type once, secondary display of query results of the residual input string can be carried out, and after the input string is consumed by selecting the vocabulary for many times, the selected word combination can be integrally displayed. Such multiple click behavior is referred to as multi-level candidates.
The candidate word on-screen method, the candidate word on-screen device, the candidate word on-screen electronic equipment and the readable storage medium provided by the embodiment of the application are described in detail through specific embodiments and application scenes of the specific embodiments with reference to the accompanying drawings.
With the development of electronic technology, electronic devices provide keyboard types with various layouts for users to select and use, for example, 9 keys or 26 keys, and one keyboard type may correspond to various input methods, and commonly used input methods include pinyin 9 keys, pinyin 26 keys, english 26 keys, stroke keyboards, five-stroke keyboards, microsoft double-spelling, and the like. The different keyboard types have different decoding rules for the user input strings, so that the user has respective characteristics in usability and high efficiency, and can select the proper keyboard type for use according to the user's own situation.
Currently, a user needs to manually set a keyboard type on a keyboard selection page or an input method setting page. The automatic switching technology of keyboard types has simple application only in special input box types such as password boxes, number boxes and the like, namely when an input method is called up in an input box capable of inputting numbers or English only, the keyboard is switched to the corresponding type by default.
However, the existing input method keyboard type switching method relying on manual setting of a user cannot well cope with the scene that the user switches the keyboard type by mistake, and when the user switches the keyboard type by mistake, the user can only find problems autonomously and complete recovery switching of the correct keyboard type. For the types of the small-sized keyboards with the key layout consistent with the conventional pinyin keyboards, after the user switches by mistake, the user only finds that the typed words are not in line with expectations and the types of the keyboards are not found to be abnormal, or finds that the types of the keyboards are abnormal and does not know how to recover. Or, for the old or a user group unfamiliar with the operation of the electronic device, they may not find that the input method is switched incorrectly, and even if found, the user may not be able to use the input method to perform normal input because the input method is not switched correctly.
Thus, how to use the current abnormal input method to perform normal input is a problem to be solved under the condition that the input method is abnormal.
In the embodiment of the application, under the condition that the input method is a first input method, receiving a first input aiming at a first key in a first input interface, wherein the first key is a key displayed in the first input interface; responding to the first input, and displaying M candidate words under the condition that the misoperation characteristic value of the first input method is greater than or equal to a preset threshold value, wherein the M candidate words comprise at least one first candidate word and at least one second candidate word, the first candidate word is a candidate word corresponding to a first key in the first input method, and the second candidate word is a candidate word corresponding to the first key in the second input method; screening target candidate words, wherein the target candidate words are one of M candidate words; the first input method and the second input method are input methods which accord with the key layout displayed in the first input interface, and are different from each other and are M positive integers. Therefore, under the condition that the misoperation characteristic value of the first input method is larger than or equal to the preset threshold value, the electronic equipment simultaneously displays the candidate word corresponding to the first key in the first input method and the candidate word corresponding to the first key in the second input method, so that even if a user can misselect the input method corresponding to the first input interface through misoperation, the user can select the candidate word which is possibly correct from two different input methods after the key input is performed on the first input interface, and the user can perform normal input by using the first input interface which is possibly misoperated and selected, and the input efficiency is improved.
The execution subject of the candidate word on-screen method provided in this embodiment may be a candidate word on-screen device, where the candidate word on-screen device may be an electronic device, or may be a control module or a processing module in the electronic device. The technical solutions provided in the embodiments of the present application are described below by taking an electronic device as an example.
The embodiment of the application provides a candidate word screening method, and fig. 1 shows a flowchart of the candidate word screening method provided by the embodiment of the application, and the method can be applied to electronic equipment. As shown in fig. 1, the candidate word on-screen method provided in the embodiment of the present application may include the following steps 201 to 203.
In step 201, in the case that the input method is the first input method, the electronic device receives a first input for a first key in the first input interface.
In this embodiment of the present application, a first input keyboard is displayed in the first input interface.
In this embodiment of the present application, the first input keyboard is an input keyboard of the electronic device, or is an input keyboard downloaded from a third party.
In this embodiment of the present application, the first input keyboard may be a 9-key input keyboard or a 26-key input keyboard, which is not limited in this application.
In an embodiment of the present application, the first input keyboard includes at least one key.
In an embodiment of the present application, the at least one key includes a first key.
In this embodiment of the present application, the first key is a key displayed in the first input interface.
The first key is illustratively any character key in the input keyboard displayed in the first input interface.
The first key may be one or more.
In this embodiment of the present application, the first input is used to select the first key.
In an embodiment of the present application, the first input may include: the touch input of the user to the first key, or the voice command input by the user, or the specific gesture input by the user, may be specifically determined according to the actual use requirement, and the embodiment of the invention is not limited.
Illustratively, the touch input includes a drag input, a slide input, a click input, etc. of the first key by the user. The specific gesture in the embodiment of the invention can be any one of a single-click gesture, a sliding gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture and a double-click gesture; the click input in the embodiment of the invention can be single click input, double click input or any time click input, and the click input can also be long-press input or short-press input.
Step 202, the electronic device responds to the first input, and displays M candidate words under the condition that the misoperation characteristic value of the first input method is greater than or equal to a preset threshold value, wherein M is a positive integer.
In this embodiment of the present application, the M candidate words include at least one first candidate word and at least one second candidate word.
In this embodiment of the present application, the first candidate word is a candidate word corresponding to the first key in the first input method, and the second candidate word is a candidate word corresponding to the first key in the second input method.
In the embodiment of the present application, the predetermined threshold electronic device system may be preset, or may be set by a user.
It should be noted that, the first input method and the second input method are input methods conforming to a key layout of a first input keyboard displayed in a first input interface.
In a possible embodiment, the first input method and the second input method of the first input keyboard may be two input methods preset for the electronic device and conforming to a key layout of the first input keyboard.
In another possible embodiment, the first input method of the first input keyboard may be an input method used by the first input keyboard currently, and the second input method may be any other input method conforming to the key layout of the first input keyboard.
In an embodiment of the present application, the input method of the first input keyboard includes at least one of the following: five-stroke input method, pinyin input method and double-pinyin input method.
For example, assuming that the key layout of the first input keyboard is 9 keys, the first input method may be: the five-stroke input method, the second input method may be: pinyin 9 key input method.
For example, assuming that the key layout of the first input keyboard is 26 keys, the first input method may be: the double-spelling input method, the second input method can be: a pinyin 26-key input method.
In this embodiment of the present application, the foregoing misoperation feature value of the first input method is used to characterize a probability of a user misoperation to select the input method.
In the embodiment of the application, after receiving the first input, the electronic device enters a multi-input method mixed word outputting mode under the condition that the misoperation characteristic value of the first input method is greater than or equal to a preset abnormal threshold value.
Optionally, in an embodiment of the present application, referring to fig. 1, as shown in fig. 2, the step 201 specifically includes a step 201a:
step 201a, the electronic device receives a first input for a first key under the condition that a first input interface is displayed.
In this embodiment of the present application, the first input method is an input method corresponding to the first input interface.
In this embodiment of the present application, the second input method is: any input method other than the first input method, for example, the input method with the highest historical use frequency of the user, accords with the key layout of the first input keyboard displayed in the first input interface.
In an example, the electronic device may count, when entering the use state of the first input keyboard, the use frequencies of all input methods that are the same as the key layout of the first input keyboard in the use history of the user, and use the input method with the highest use frequency as the second input method.
Thus, the electronic device can display the candidate words corresponding to the input method most likely to be used with the highest use frequency to the user according to the history use record.
And 203, the electronic equipment screens the target candidate words.
In the embodiment of the present application, the target candidate word is any one of M candidate words.
In the embodiment of the present application, the "target candidate word on-screen" indicates that the user selects a target candidate word from M candidate words to perform on-screen display.
Optionally, in the embodiment of the present application, the step 203 specifically includes a step 203a and a step 203b:
Step 203a, the electronic device receives a second input of a target candidate word of the M candidate words.
In the embodiment of the present application, the second input is used to select the target candidate word.
In this embodiment of the present application, the second input may be a touch input of the candidate word by the user, or a voice command input by the user, or a specific gesture input by the user, which may be specifically determined according to an actual use requirement, which is not limited in the embodiment of the present invention.
Illustratively, the touch input includes a drag input, a slide input, a click input, etc. of the first key by the user. The touch input may be specifically described with reference to the first input, and will not be described herein.
Step 203b, the electronic device responds to the second input to screen the target candidate word.
The electronic device, in response to the second input, displays the user-selected target candidate word in the target text box, i.e., the on-screen target candidate word.
In the candidate word on-screen method provided by the embodiment of the application, under the condition that the input method is a first input method, receiving a first input aiming at a first key in a first input interface, wherein the first key is a key displayed in the first input interface; responding to the first input, and displaying M candidate words under the condition that the misoperation characteristic value of the first input method is greater than or equal to a preset threshold value, wherein the M candidate words comprise at least one first candidate word and at least one second candidate word, the first candidate word is a candidate word corresponding to a first key in the first input method, and the second candidate word is a candidate word corresponding to the first key in the second input method; screening target candidate words, wherein the target candidate words are one of M candidate words; the first input method and the second input method are input methods which accord with the key layout displayed in the first input interface, and are different from each other and are M positive integers. Therefore, under the condition that the misoperation characteristic value of the first input method is larger than or equal to the preset threshold value, the electronic equipment simultaneously displays the candidate word corresponding to the first key in the first input method and the candidate word corresponding to the first key in the second input method, so that even if a user can misselect the input method corresponding to the first input interface through misoperation, the user can select the candidate word which is possibly correct from two different input methods after the key input is performed on the first input interface, and the user can perform normal input by using the first input interface which is possibly misoperated and selected, and the input efficiency is improved.
Optionally, in an embodiment of the present application, before step 202 described above in connection with fig. 1, as shown in fig. 3, the candidate word on-screen method provided in the embodiment of the present application further includes step 301 and step 302:
step 301, the electronic device obtains user input data of the first input interface.
In an embodiment of the present application, the user input data includes: the total number of character strings input in the first input interface, the total number of character strings deleted in the first input interface, the number of error character strings on the screen in the first input interface, and the number of individual characters on the screen in the first input interface.
The method for detecting the total number of character strings input in the first input interface is as follows: the length change of the character string of the first input keyboard displayed on the first input interface is monitored, and when the character string length is changed from zero to non-zero to zero once, a 'character string input on the first input keyboard' is considered to be generated, which can also be called as a basic input chain.
Example 1: taking the first input keyboard displayed on the first input interface as a pinyin 26-key keyboard as an example, if the user inputs the character n, i, h, a, o in turn and selects the candidate word hello to be displayed on the screen without any character string in the pinyin 26-key keyboard, the length of the input string is changed to be 0 (initial state) →1 (n) →2 (ni) →3 (nih) →4 (niha) →5 (nihao) →0 (screen selection) ", and the electronic device considers that a basic input chain is generated.
The method for determining the total number of character strings deleted in the first input interface is as follows: when the character string length of a basic input chain is changed from a non-zero value to a zero value, if the operation action for the character string is "delete", the basic input chain is considered to be "the character string deleted in the first input interface", and the basic input chain may also be referred to as an input delete chain.
Example 2: taking the first input keyboard displayed on the first input interface as a pinyin 26-key keyboard as an example, when the user sequentially inputs the character "n, i, h, a, o" without any character string in the pinyin 26-key keyboard, clicking the delete key 5 times again, and the character string length is changed to be "0 (initial state) →1 (n) →2 (ni) →3 (nih) →4 (niha) →5 (nihao) →4 (delete) →3 (delete) →2 (delete) →1 (delete) →0 (delete)", and the basic input chain is considered to be an input delete chain.
The method for judging the number of the error strings on the screen in the first input interface is exemplified as follows: when the character string length of a basic input chain is changed from a non-zero value to a zero value, if the second condition is met, the basic input chain is considered to be an 'error character string on the screen in the first input interface', and the basic input chain can also be called as a different code on-screen chain. Wherein, the "satisfying the second condition" includes: condition 1) the operation action for the string is "select word on screen", and for The probability P of the selected candidate word forming the common sentence through language model evaluation go Below the candidate confidence threshold P to The method comprises the steps of carrying out a first treatment on the surface of the Condition 2) keyboard K with identical key layout i (i is the keyboard number) the candidate word matching the character string and the probability P of the candidate word forming the common sentence gi Above an alternative trusted threshold P ti
Wherein the candidate confidence threshold P in the language model evaluation to And an alternative trusted threshold P ti The threshold range of (2) is not limited in this application. In general, P is taken to 0.3, P ti 0.7.
Example 3: taking the microsoft double-spelling keyboard as an example of the first input keyboard displayed on the first input interface, the user sequentially inputs the characters "c, h, i, f, a, n" (corresponding to microsoft double-spelling c, ang, ch, en, a, n) without any character string in the microsoft double-spelling keyboard, and selects the candidate word "Tibetan Chen An" for screen surfing, which is a basic input chain generation. Meanwhile, the characters are pressed by the Microsoft double-spelling keyboard, and the corresponding good-quality candidate word 'hello' exists under the key corresponding to the Pinyin 26-key keyboard, at the moment, if the language model considers that the probability of composing the common sentence of 'Tibetan Chen An' is lower than the threshold value P to "hello" is above threshold P ti The basic input chain is considered to be a heterocode screen-up chain.
The method for judging the number of the single characters on the screen in the first input interface is exemplified by: when the length of a character string of a basic input chain is changed from a non-zero value to a zero value, if the operation action on the character string is "selecting words to go to screen", and the length of the character string before returning to zero is 1, the basic input chain is considered as "an individual character to go to screen in the first input interface", and the basic input chain can also be called as a single code to go to screen chain.
Example 4: taking a microsoft double-spelling keyboard as an example of a first input keyboard displayed on the first input interface, a user inputs a character "n" and selects a candidate word "you" to screen under the condition that no character string exists in the microsoft double-spelling keyboard, the length of the input string in the process is changed to be "0 (initial state) →1 (n) →0 (screen selection)", and then the basic input chain is considered to be a single-code screen chain.
Step 302, the electronic device determines an misoperation feature value of the first input method based on the user input data.
The electronic device calculates the misoperation characteristic value of the first input method according to the first formula according to the user input data.
Illustratively, the first formula above:
wherein R is a Representing the misoperation characteristic value of the first input method, C all Representing the total number of basic input chains, C del Representing the total number of input deletion chains, C abn Representing the total number of different code upper screen chains, C sin Representing the total number of single code on-screen chains.
Therefore, the electronic equipment can rapidly judge whether the user selects the input method corresponding to the first input keyboard according to the user input data, so that the electronic equipment can make corresponding countermeasures under the condition that the user selects the input method corresponding to the first input keyboard.
Optionally, in the embodiment of the present application, in a case where the first input keyboard meets the first condition, the electronic device determines that the user may select the input method corresponding to the first input keyboard by mistake.
In an embodiment of the present application, the first condition includes: the misoperation characteristic value of the first input method is larger than or equal to a preset threshold value, and the total number of basic input chains counted by the electronic equipment is larger than a preset number threshold value.
Illustratively, the first condition described above may be expressed as a second formula:
wherein R is a Representing the misoperation characteristic value of the first input method, R th Represents a preset threshold value, C all Representing the total number of basic input chains of the first input keyboard, C t Representing a first input keyboardA preset number threshold. In general, R th Can be 0.6, C t 6 is taken.
It can be understood that if the detected misoperation feature value of the first input method is smaller than the preset threshold value, the user is considered to be used to the use of the current keyboard type, which indicates that the currently used input keyboard does not need to be repaired.
Alternatively, in the embodiment of the present application, after determining the misoperation feature value of the first input method, the electronic device may calculate the user desired keyboard candidate set S can
In this embodiment of the present application, the electronic device may combine, in the process of counting the screen chains on the different codes, an input method with the highest occurrence frequency and the same layout key with the highest matching degree with the input character string with the input method with the highest historical use frequency in the input method conforming to the key layout displayed in the first input interface in the step 201a, to obtain the candidate set S of the user desired input method can
Therefore, the electronic equipment can comprehensively generate multiple expected keyboard candidates according to the historical keyboard use information of the user and the current typing input condition of the keyboard, and the input repair accuracy is improved.
Optionally, in an embodiment of the present application, referring to fig. 1, as shown in fig. 4, the step 202 specifically includes steps 202a to 202c:
step 202a, the electronic device adopts the display weight corresponding to the first input method to weight the quality score of each first candidate word, so as to obtain the quality score of each first candidate word.
In this embodiment of the present application, the "display weight corresponding to the first input method" is used to characterize the display sequence of the candidate word corresponding to the first key in the first input method.
For example, the display weight corresponding to the first input method may be a preset display weight of the electronic device.
In this embodiment of the present application, the "quality score of each first candidate word" is used to characterize the similarity of each first candidate word and the input content corresponding to the first key.
Step 202b, the electronic device adopts the display weight corresponding to the second input method to weight the quality score of each second candidate word, so as to obtain the quality score of each second candidate word.
In this embodiment of the present application, the "display weight corresponding to the second input method" is used to characterize the display sequence of the candidate word corresponding to the first key in the second input method.
For example, the display weight corresponding to the second input method may be a preset display weight of the electronic device.
In this embodiment of the present application, the "quality score of each second candidate word" is used to characterize the similarity of each second candidate word to the input content corresponding to the first key.
Step 202c, the electronic device displays the M candidate words based on the weighted quality scores corresponding to each candidate word in the M candidate words.
For example, the electronic device may sort all the first candidate words to obtain a first candidate word list, sort all the second candidate words to obtain a second candidate word list, and obtain a mixed candidate word list based on the first candidate word list and the second candidate word list, where the mixed candidate word list is divided into three parts. Wherein the first portion of the mixed candidate word list comprises: the first line segment word is formed by a first candidate word in a candidate word list and a first second candidate word in the candidate word list; the second portion of the mixed candidate word list includes: selecting a word in a sub-segment, wherein the word in the sub-segment consists of second and third first candidate words in the candidate word list and second and third second candidate words in the candidate word list; the third portion of the mixed candidate word list includes: the backup segment word is composed of the rest of the first candidate words in the candidate word list and the rest of the second candidate words in the candidate word list.
The electronic device displays a candidate word list formed by the first candidate word and the second candidate word according to the display weight corresponding to the first input method, the display weight corresponding to the second input method and the weighted quality score of each of the first candidate word and the second candidate word, that is, the electronic device mixes the words according to the multiple input methods.
The following describes in detail, in one possible embodiment, a process of displaying M candidate words after the electronic device enters the multi-input method mixed word mode, specifically including the following steps A1 to A4:
and A1, the electronic equipment generates a first line segment word according to the display weight of each input method and the quality score of the candidate word.
The input method comprises the first input method and a user expected input method candidate set S can A medium input method. And after the electronic equipment acquires all the first candidate words, sorting according to the quality scores of all the first candidate words to obtain a first candidate word list. And similarly, after the electronic equipment acquires all the second candidate words, sorting according to the quality scores of all the second candidate words to obtain a second candidate word list.
And then, selecting the 1 st candidate word in the first candidate word list and the second candidate word list respectively, sorting according to the display weights of the input methods, and removing the repeated words to obtain the first line segment word which is preferentially displayed in the display area of the input methods, namely the first partial word of the mixed candidate word list.
Example 5: taking the input method of the first input keyboard as microsoft double spelling as an example, the user expects that one input method in the input method candidate set is pinyin 26 keys, and the character string input by the user is nihao. The Microsoft double-spelling display weight is 3, and the display weight of the spelling 26 key is 1. The candidate word result list of the Microsoft double-spelling is "you have, you, ni, greasy", and the candidate word result list of the Pinyin 26 key is "you good, mud wormwood, nigood, you number, you, ni". And selecting the 1 st position in the candidate word result list, and sorting according to the display weight, wherein the obtained first line segment word list is 'you are in a hao and in a hello'.
And A2, the electronic equipment generates a sub-selected section word according to the display weight of each input method and the quality score of the candidate word.
The electronic device selects the 2 nd and 3 rd word out of the first candidate word list and the second candidate word list respectively, sorts the words according to the display weight of the input method, and removes the repeated words to obtain the sub-selected word out of the number of the complementary mixed candidate words, namely the second partial word of the mixed candidate word list.
Example 6: combining example 5, selecting the 2 nd and 3 rd bits in each candidate word result list, and sorting according to the display weight, wherein the obtained sub-selected word list is 'you hao, you ha, mud artesian, and nihao'.
And A3, the electronic equipment generates a backup segment word according to the display weight of each input method and the quality score of the candidate word.
The electronic device removes candidate words in the first candidate word list, which are repeated with the first line segment word and the second line segment word, to obtain the backup segment word which ensures the candidate word result effect of the first input method, namely the third part word of the mixed candidate word list.
Example 7: in combination with examples 5 and 6, the duplicate-removed backup paragraph list is "you, ni, greasy".
And A4, the electronic equipment is sequentially connected with the first line segment word outputting, the second selection segment word outputting and the backup segment word outputting to obtain a mixed candidate word list for displaying to a user.
Example 8: in combination with examples 5 to 7, the multiple input method mixed candidate word list is "you ha, hello, you hao, youha, tarragon, nigood, you, ni, greasy".
When the electronic equipment detects that the input method of the first input keyboard is abnormal, the multi-input method is mixed to form words, and high-quality candidate words of each input method are displayed in a segmented mode preferentially, so that a user can normally perform a book under the condition that the input keyboard is abnormal, and the word selection hit rate and the input efficiency of the user are improved.
Optionally, in an embodiment of the present application, as shown in fig. 5 in conjunction with fig. 1, after step 203, the candidate word on-screen method provided in the embodiment of the present application further includes step 401:
step 401, the electronic device updates the display weight of the input method corresponding to the third candidate word based on the adjustment coefficient of the third candidate word.
In the embodiment of the present application, the adjustment coefficient is used to characterize an adjustment trend of adjusting the usage probability of the third candidate word.
In this embodiment of the present application, the adjustment coefficient is related to whether the user selects the third candidate word on the screen.
In an example, in the case that the adjustment coefficient characterizes that the adjustment trend of the use probability of the third candidate word is increased, if the user selects to screen the third candidate word, the display weight of the input method corresponding to the third candidate word is increased. For example, in connection with example 8 above, if the user selects "hello" to screen, the display weight of the pinyin 26 key may be updated from an initial 1 to 2
In this embodiment of the present application, the third candidate word is one of M candidate words.
The third candidate word may be one of candidate words corresponding to the first key in the first input method, or one of candidate words corresponding to the first key in the second input method.
Therefore, the electronic equipment can continuously update the display weight of the input method according to the candidate words selected by the user, so that the display weight of the input method which the user wants to use is continuously increased, the candidate words corresponding to the input method can be displayed as far as possible, the hit rate of the user's word selection is further improved, and the word selection can be normally input without being influenced by the abnormality of the input keyboard.
Optionally, in an embodiment of the present application, as shown in fig. 6 in conjunction with fig. 2, in conjunction with the step 201a, after step 203, the candidate word on-screen method provided in the embodiment of the present application further includes step 501:
step 501, if the display weight of the second input method exceeds a preset weight threshold under the condition that the input method of the first input interface is the first input method, the electronic device switches the input method of the first input interface to the second input method.
In this embodiment of the present application, the preset weight threshold may be preset by the electronic device, or may be set by a user.
In an exemplary embodiment, when the input method of the first input interface is the first input method, if the electronic device detects that the display weight of the second input method exceeds the preset weight threshold, the electronic device indicates that the user wishes to switch to the second input method, so that the electronic device automatically switches the first input method to the second input method. In other words, when the input method of the first input interface is switched from the first input method to the second input method, the identifier on the key of the first input interface is correspondingly changed so as to update the first input interface.
It will be appreciated that the preset weight threshold will typically be set to a value equal to the presentation weight of the first input method.
Therefore, the electronic equipment determines the input method expected to be used by the user by continuously detecting the display weight of the second input, and when the input method expected to be used by the user is determined not to be the currently used input, the electronic equipment can accurately switch to the input method expected to be used by the user, so that the success rate of solving the problem of misoperation of the keyboard of the user is improved, and the use experience of the input method of the user is improved.
It should be noted that, in the candidate word screen method provided in the embodiment of the present application, the execution subject may be a candidate word screen device, or an electronic device, or may be a functional module or entity in the electronic device. In the embodiment of the application, the candidate word screen device executes the candidate word screen method by taking the candidate word screen device as an example, and the candidate word screen device provided in the embodiment of the application is described.
Fig. 7 shows a schematic diagram of a possible structure of the candidate word screen device according to the embodiment of the present application. As shown in fig. 7, the candidate word screen device 700 may include: a receiving module 701, a display module 702 and a processing module 703;
the receiving module 701 is configured to receive, when the input method is a first input method, a first input for a first key in the first input interface, where the first key is a key in the first input interface, and the first key is a key displayed in the first input interface; the display module 702 is configured to display M candidate words in response to the first input received by the receiving module 701, where the M candidate words include at least one first candidate word and at least one second candidate word, the first candidate word is a candidate word corresponding to a first key in the first input method, and the second candidate word is a candidate word corresponding to a first key in the second input method, when the misoperation feature value of the first input method is greater than or equal to a predetermined threshold; the processing module 703 is configured to screen a target candidate word, where the target candidate word is one of M candidate words; the first input method and the second input method are input methods which accord with the key layout displayed in the first input interface, and are different from each other and are M positive integers.
Optionally, in the embodiment of the present application, the receiving module 701 is specifically configured to: under the condition that the first input interface is displayed, receiving a first input aiming at the first key, wherein the first input method is the input method corresponding to the first input interface.
Optionally, in the embodiment of the present application, the display module 702 is specifically configured to: weighting the quality scores of each first candidate word by adopting the display weights corresponding to the first input method to obtain the quality score of each first candidate word; weighting the quality scores of each second candidate word by adopting the display weights corresponding to the second input method to obtain the quality score of each second candidate word; and displaying the M candidate words based on the weighted quality scores corresponding to each candidate word in the M candidate words.
Optionally, in this embodiment of the present application, after the processing module 703 is further configured to screen the target candidate word, if the display weight of the second input method exceeds the preset weight threshold in a case that the input method of the first input interface is the first input method, switch the input method of the first input interface to the second input method.
Optionally, in this embodiment of the present application, the processing module 703 is further configured to update, after the target candidate word is on screen, a display weight of an input method corresponding to the third candidate word based on an adjustment coefficient of the third candidate word, where the adjustment coefficient is used to characterize an adjustment trend of a user to adjust a use probability of the third candidate word, and the adjustment coefficient is related to whether the user selects the third candidate word on screen, and the third candidate word is one of M candidate words.
Optionally, in an embodiment of the present application, in conjunction with fig. 7, as shown in fig. 8, the apparatus 700 further includes: an acquisition module 704 and a determination module 705; the obtaining module 704 is configured to obtain, in response to the first input received by the receiving module 701, user input data of a first input interface before displaying M candidate words, where a probability of a misoperation feature value of the first input method is greater than or equal to a predetermined threshold, where the user input data includes: the total number of character strings input in the first input interface, the total number of character strings deleted in the first input interface, the number of error character strings on the screen in the first input interface, and the number of individual characters on the screen in the first input interface; the determining module 705 is configured to determine a misoperation feature value of the first input method based on the user input data acquired by the acquiring module 704.
In the candidate word screen device provided by the embodiment of the application, under the condition that the input method is the first input method, receiving first input aiming at a first key in a first input interface, wherein the first key is a key displayed in the first input interface; responding to the first input, and displaying M candidate words under the condition that the misoperation characteristic value of the first input method is greater than or equal to a preset threshold value, wherein the M candidate words comprise at least one first candidate word and at least one second candidate word, the first candidate word is a candidate word corresponding to a first key in the first input method, and the second candidate word is a candidate word corresponding to the first key in the second input method; screening target candidate words, wherein the target candidate words are one of M candidate words; the first input method and the second input method are input methods which accord with the key layout displayed in the first input interface, and are different from each other and are M positive integers. Therefore, under the condition that the misoperation characteristic value of the first input method is larger than or equal to the preset threshold value, the electronic equipment simultaneously displays the candidate word corresponding to the first key in the first input method and the candidate word corresponding to the first key in the second input method, so that even if a user can misselect the input method corresponding to the first input interface through misoperation, the user can select the candidate word which is possibly correct from two different input methods after the key input is performed on the first input interface, and the user can perform normal input by using the first input interface which is possibly misoperated and selected, and the input efficiency is improved.
The candidate word on-screen device in the embodiment of the application can be an electronic device, and also can be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer, UMPC, netbook or personal digital assistant (personal digital assistant, PDA), etc., but may also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The candidate word on-screen device in the embodiment of the application may be a device with an operating system. The operating system may be an 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 candidate word on-screen device provided in the embodiment of the present application can implement each process implemented by the embodiments of the methods of fig. 1 to 6, and in order to avoid repetition, a detailed description is omitted here.
Optionally, as shown in fig. 9, the embodiment of the present application further provides an electronic device 800, including a processor 801 and a memory 802, where a program or an instruction that can be executed on the processor 801 is stored in the memory 802, and the program or the instruction when executed by the processor 801 implements each step of the above embodiment of the candidate word on-screen method, and the steps can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 10 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further include a power source (e.g., a battery) for powering the various components, and that the power source may be logically coupled to the processor 110 via a power management system to perform functions such as managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 10 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The user input unit 107 is configured to receive, when the input method is a first input method, a first input for a first key in the first input interface, where the first key is a key in the first input interface, and the first key is a key displayed in the first input interface; the display unit 106 is configured to display, in response to the first input received by the user input unit 107, M candidate words when the misoperation feature value of the first input method is greater than or equal to a predetermined threshold value, where the M candidate words include at least one first candidate word and at least one second candidate word, the first candidate word is a candidate word corresponding to a first key in the first input method, and the second candidate word is a candidate word corresponding to a first key in the second input method; the processor 110 is configured to screen a target candidate word, where the target candidate word is one of M candidate words; the first input method and the second input method are input methods which accord with the key layout displayed in the first input interface, and are different from each other and are M positive integers.
Optionally, in the embodiment of the present application, the user input unit 107 is specifically configured to: under the condition that the first input interface is displayed, receiving a first input aiming at the first key, wherein the first input method is the input method corresponding to the first input interface.
Optionally, in the embodiment of the present application, the display unit 106 is specifically configured to: weighting the quality scores of each first candidate word by adopting the display weights corresponding to the first input method to obtain the quality score of each first candidate word; weighting the quality scores of each second candidate word by adopting the display weights corresponding to the second input method to obtain the quality score of each second candidate word; and displaying the M candidate words based on the weighted quality scores corresponding to each candidate word in the M candidate words.
Optionally, in this embodiment of the present application, after the target candidate word is on the screen, if the display weight of the second input method exceeds the preset weight threshold, the processor 110 is further configured to switch the input method of the first input interface to the second input method if the input method of the first input interface is the first input method.
Optionally, in this embodiment of the present application, after the target candidate word is on-screen, the processor 110 is further configured to update a display weight of an input method corresponding to the third candidate word based on an adjustment coefficient of the third candidate word, where the adjustment coefficient is used to characterize an adjustment trend of a user to adjust a use probability of the third candidate word, and the adjustment coefficient is related to whether the user selects the on-screen third candidate word, and the third candidate word is one of M candidate words.
Optionally, in this embodiment of the present application, the processor 110 is further configured to, in response to the first input received by the user input unit 107, obtain, before displaying the M candidate words, user input data of the first input interface, where the misoperation feature value of the first input method is greater than or equal to a predetermined threshold, where the user input data includes: the total number of character strings input in the first input interface, the total number of character strings deleted in the first input interface, the number of error character strings on the screen in the first input interface, and the number of individual characters on the screen in the first input interface; the processor 110 is further configured to determine a misoperation feature value of the first input method based on the user input data.
In the electronic device provided in the embodiment of the present application, when the input method is a first input method, a first input for a first key in a first input interface is received, where the first key is a key displayed in the first input interface; responding to the first input, and displaying M candidate words under the condition that the misoperation characteristic value of the first input method is greater than or equal to a preset threshold value, wherein the M candidate words comprise at least one first candidate word and at least one second candidate word, the first candidate word is a candidate word corresponding to a first key in the first input method, and the second candidate word is a candidate word corresponding to the first key in the second input method; screening target candidate words, wherein the target candidate words are one of M candidate words; the first input method and the second input method are input methods which accord with the key layout displayed in the first input interface, and are different from each other and are M positive integers. Therefore, under the condition that the misoperation characteristic value of the first input method is larger than or equal to the preset threshold value, the electronic equipment simultaneously displays the candidate word corresponding to the first key in the first input method and the candidate word corresponding to the first key in the second input method, so that even if a user can misselect the input method corresponding to the first input interface through misoperation, the user can select the candidate word which is possibly correct from two different input methods after the key input is performed on the first input interface, and the user can perform normal input by using the first input interface which is possibly misoperated and selected, and the input efficiency is improved.
It should be appreciated that in embodiments of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a first memory area storing programs or instructions and a second memory area storing data, wherein the first memory area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 109 may include volatile memory or nonvolatile memory, or the memory 109 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 109 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, etc., and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the application further provides a readable storage medium, on which a program or an instruction is stored, where the program or the instruction realizes each process of the candidate word on-screen method embodiment when executed by a processor, and the same technical effect can be achieved, so that repetition is avoided, and no redundant description is provided herein.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, the processor is configured to run a program or an instruction, implement each process of the above candidate word on-screen method embodiment, and achieve the same technical effect, so that repetition is avoided, and no further description is provided here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
Embodiments of the present application provide a computer program product stored in a storage medium, where the program product is executed by at least one processor to implement the respective processes of the above-mentioned candidate word screening method embodiments, and achieve the same technical effects, and are not described herein in detail for avoiding repetition.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (14)

1. A method of screening candidate words, the method comprising:
receiving a first input aiming at a first key in a first input interface under the condition that the input method is a first input method, wherein the first key is a key displayed in the first input interface;
responding to the first input, and displaying M candidate words under the condition that the misoperation characteristic value of the first input method is greater than or equal to a preset threshold value, wherein the M candidate words comprise at least one first candidate word and at least one second candidate word, the first candidate word is a candidate word corresponding to the first key in the first input method, and the second candidate word is a candidate word corresponding to the first key in the second input method;
screening target candidate words, wherein the target candidate words are one of the M candidate words;
the first input method and the second input method are input methods conforming to the key layout displayed in the first input interface, the first input method is different from the second input method, and M is a positive integer.
2. The method of claim 1, wherein, in the case where the input method is a first input method, receiving a first input for a first key in a first input interface comprises:
And under the condition that the first input interface is displayed, receiving a first input aiming at the first key, wherein the first input method is an input method corresponding to the first input interface.
3. The method of claim 1, wherein the displaying the M candidate words comprises:
weighting the quality scores of the first candidate words by adopting the display weights corresponding to the first input method to obtain the quality scores of the first candidate words;
weighting the quality scores of the second candidate words by adopting the display weights corresponding to the second input method to obtain the quality scores of the second candidate words;
and displaying the M candidate words based on the weighted quality scores corresponding to each candidate word in the M candidate words.
4. The method of claim 3, wherein after the target candidate word is on screen, the method further comprises:
and if the display weight of the second input method exceeds a preset weight threshold value under the condition that the input method of the first input interface is the first input method, switching the input method of the first input interface into the second input method.
5. The method of claim 3 or 4, wherein after the target candidate word is on screen, the method further comprises:
based on an adjustment coefficient of a third candidate word, updating the display weight of an input method corresponding to the third candidate word, wherein the adjustment coefficient is used for representing an adjustment trend of the use probability of the third candidate word adjusted by a user, the adjustment coefficient is related to whether the third candidate word is selected by the user or not, and the third candidate word is one of M candidate words.
6. The method of claim 1, wherein in response to the first input, before displaying the M candidate words if the misoperation feature value of the first input method is greater than or equal to a predetermined threshold value, the method further comprises:
acquiring user input data of the first input interface, wherein the user input data comprises: the total number of character strings input in the first input interface, the total number of character strings deleted in the first input interface, the number of error character strings on the first input interface, and the number of individual characters on the first input interface;
And determining an misoperation characteristic value of the first input method based on the user input data.
7. The candidate word screen device is characterized in that the input method switching device comprises: the device comprises a receiving module, a display module and a processing module;
the receiving module is used for receiving first input aiming at a first key in a first input interface under the condition that the input method is a first input method, wherein the first key is a key displayed in the first input interface;
the display module is used for responding to the first input received by the receiving module, and displaying M candidate words under the condition that the misoperation characteristic value of the first input method is larger than or equal to a preset threshold value, wherein the M candidate words comprise at least one first candidate word and at least one second candidate word, the first candidate word is a candidate word corresponding to the first key in the first input method, and the second candidate word is a candidate word corresponding to the first key in the second input method;
the processing module is used for screening target candidate words, wherein the target candidate words are one of the M candidate words;
the first input method and the second input method are input methods conforming to the key layout displayed in the first input interface, and are different from each other and M is a positive integer.
8. The apparatus of claim 7, wherein the receiving module is specifically configured to:
and under the condition that the first input interface is displayed, receiving a first input aiming at the first key, wherein the first input method is an input method corresponding to the first input interface.
9. The device according to claim 7, wherein the display module is specifically configured to:
weighting the quality scores of the first candidate words by adopting the display weights corresponding to the first input method to obtain the quality scores of the first candidate words;
weighting the quality scores of the second candidate words by adopting the display weights corresponding to the second input method to obtain the quality scores of the second candidate words;
and displaying the M candidate words based on the weighted quality scores corresponding to each candidate word in the M candidate words.
10. The apparatus of claim 9, wherein the processing module is further configured to switch the input method of the first input interface to the second input method if the display weight of the second input method exceeds a preset weight threshold after the target candidate word is on the screen if the input method of the first input interface is the first input method.
11. The apparatus according to claim 9 or 10, wherein the processing module is further configured to update, after the target candidate word is on-screen, a presentation weight of an input method corresponding to a third candidate word based on an adjustment coefficient of the third candidate word, where the adjustment coefficient is used to characterize an adjustment trend of a user adjusting a use probability of the third candidate word, where the adjustment coefficient is related to whether the user selects to on-screen the third candidate word, and the third candidate word is one of the M candidate words.
12. The apparatus of claim 7, wherein the apparatus further comprises: an acquisition module and a determination module;
the acquisition module is configured to respond to the first input received by the receiving module, and before displaying M candidate words when the misoperation feature value of the first input method is greater than or equal to a predetermined threshold value,
acquiring user input data of the first input interface, wherein the user input data comprises: the total number of character strings input in the first input interface, the total number of character strings deleted in the first input interface, the number of error character strings on the first input interface, and the number of individual characters on the first input interface;
The determining module is configured to determine an misoperation feature value of the first input method based on the user input data acquired by the acquiring module.
13. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the candidate word screening method of any one of claims 1 to 6.
14. A readable storage medium having stored thereon a program or instructions which when executed by a processor performs the steps of the candidate word screening method of any one of claims 1 to 6.
CN202311273097.9A 2023-09-27 2023-09-27 Candidate word screen-surfing method and device, electronic equipment and readable storage medium Pending CN117270702A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311273097.9A CN117270702A (en) 2023-09-27 2023-09-27 Candidate word screen-surfing method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311273097.9A CN117270702A (en) 2023-09-27 2023-09-27 Candidate word screen-surfing method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN117270702A true CN117270702A (en) 2023-12-22

Family

ID=89202335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311273097.9A Pending CN117270702A (en) 2023-09-27 2023-09-27 Candidate word screen-surfing method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN117270702A (en)

Similar Documents

Publication Publication Date Title
US11868609B2 (en) Dynamic soft keyboard
US8911165B2 (en) Overloaded typing apparatuses, and related devices, systems, and methods
JP5996262B2 (en) CHARACTER INPUT DEVICE, ELECTRONIC DEVICE, CONTROL METHOD, CONTROL PROGRAM, AND RECORDING MEDIUM
CN106201324B (en) Dynamic positioning on-screen keyboard
US20170003869A1 (en) Incremental multi-word recognition
US8898585B2 (en) Electronic device, input method thereof, and computer-readable medium using the method
US20110201387A1 (en) Real-time typing assistance
EP2954398B1 (en) Gesture keyboard input of non-dictionary character strings
US8370393B2 (en) Process and apparatus for selecting an item from a database
CN107544684B (en) Candidate word display method and device
WO2012158257A2 (en) Typing input systems, methods, and devices
CN104461056B (en) A kind of information processing method and electronic equipment
CN111880668A (en) Input display method and device and electronic equipment
WO2022105754A1 (en) Character input method and apparatus, and electronic device
CN107797676B (en) Single character input method and device
CN112764734A (en) Code editing assisting method and device and electronic equipment
CN112148135A (en) Input method processing method and device and electronic equipment
CN117270702A (en) Candidate word screen-surfing method and device, electronic equipment and readable storage medium
Lee et al. Force9: Force-assisted miniature keyboard on smart wearables
JP2006293987A (en) Apparatus, method and program for character input, document creation apparatus, and computer readable recording medium stored with the program
CN113190125A (en) Input correction method and device
Dunlop et al. Pickup usability dominates: a brief history of mobile text entry research and adoption
CN112328096A (en) Candidate word display method and device and electronic equipment
US20150193411A1 (en) System and Method of Manipulating an Inputted Character String to a Diacritic-Modified Character String Using a Single Layout for a Character Entry Device
US20190272089A1 (en) Character input device, character input method, and character input program

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