CN113359999A - Candidate word updating method and device and electronic equipment - Google Patents

Candidate word updating method and device and electronic equipment Download PDF

Info

Publication number
CN113359999A
CN113359999A CN202110567758.3A CN202110567758A CN113359999A CN 113359999 A CN113359999 A CN 113359999A CN 202110567758 A CN202110567758 A CN 202110567758A CN 113359999 A CN113359999 A CN 113359999A
Authority
CN
China
Prior art keywords
candidate
candidate word
updating
input
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110567758.3A
Other languages
Chinese (zh)
Other versions
CN113359999B (en
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 CN202110567758.3A priority Critical patent/CN113359999B/en
Publication of CN113359999A publication Critical patent/CN113359999A/en
Priority to PCT/CN2022/094464 priority patent/WO2022247789A1/en
Application granted granted Critical
Publication of CN113359999B publication Critical patent/CN113359999B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/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/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/232Orthographic correction, e.g. spell checking or vowelisation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a candidate word updating method and device and electronic equipment, and belongs to the technical field of communication. The method comprises the following steps: receiving a first input of target candidate content, wherein the target candidate content is candidate content corresponding to a first character string input by a user; selecting a first candidate word from the target candidate content in response to the first input; receiving a second input to the first candidate word; in response to the second input, keeping the second candidate word unchanged and updating the first candidate word; and the second candidate word is the other candidate words except the first candidate word in the target candidate content.

Description

Candidate word updating method and device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to a candidate word updating method and device and electronic equipment.
Background
Currently, a user can input characters through a voice input method or a pinyin input method.
For example, taking the example that the user inputs characters through the pinyin input method, the user may input pinyin (i.e., a character string) through the pinyin input method, and then the electronic device may identify the pinyin input by the user and match the characters corresponding to the pinyin.
However, when the speech input by the user is long or the pinyin is long, the electronic device may recognize a wrong word in the sentence. The user needs to return the pinyin to the letter corresponding to the incorrect word (i.e., delete the incorrect word and the word after the incorrect word), and then re-input to correct the incorrect character. Therefore, the error characters can be corrected only after all characters behind the error characters are deleted, so that the efficiency of inputting the characters by a user is low.
Disclosure of Invention
The embodiment of the application aims to provide a candidate word updating method, a candidate word updating device and electronic equipment, and the problem that the efficiency of inputting characters by a user is low due to the fact that the operation process of updating wrong characters in candidate words is complex can be solved.
In a first aspect, an embodiment of the present application provides a candidate word updating method, where the method includes: receiving a first input of target candidate content, wherein the target candidate content is candidate content corresponding to a first character string input by a user; selecting a first candidate word from the target candidate content in response to the first input; receiving a second input to the first candidate word; in response to the second input, keeping the second candidate word unchanged and updating the first candidate word; and the second candidate word is the other candidate words except the first candidate word in the target candidate content.
In a second aspect, an embodiment of the present application provides a candidate word updating apparatus, which may include a receiving module, a selecting module, and an updating module. The receiving module is used for receiving a first input of target candidate content, wherein the target candidate content is candidate content corresponding to a first character string input by a user; the selection module is used for responding to the first input received by the receiving module and selecting a first candidate word from the target candidate content; the receiving module is also used for receiving a second input of the first candidate word; the updating module is used for responding to the second input received by the receiving module, keeping the second candidate character unchanged and updating the first candidate character; and the second candidate word is the other candidate words except the first candidate word in the target candidate content.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium on which a program or instructions are stored, 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 the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In an embodiment of the present application, a first input of target candidate content (candidate content corresponding to a first character string input by a user) may be received; and in response to a second input, selecting a first candidate word from the target candidate content; and receiving a second input to the first candidate word; and in response to the second input, updating the first candidate word and leaving the second candidate word unchanged; and the second candidate word is the other candidate words except the first candidate word in the target candidate content. By the scheme, under the condition that the correct character (namely the second candidate character) in the candidate words is not changed, the wrong candidate character (namely the first candidate character) in the candidate words can be updated quickly, and the candidate words behind the wrong candidate character in the candidate words do not need to be input again, so that the input efficiency of inputting the candidate words can be improved.
Drawings
Fig. 1 is a schematic diagram of a candidate word updating method according to an embodiment of the present application;
fig. 2 is one of schematic interfaces applied to a candidate word updating method according to an embodiment of the present disclosure;
fig. 3 is a second schematic interface diagram of an application of the candidate updating method according to the embodiment of the present application;
fig. 4 is a third schematic interface diagram of an application of a candidate updating method according to the embodiment of the present application;
FIG. 5 is a diagram illustrating an exemplary candidate updating apparatus according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of an electronic device in an embodiment of the present application;
fig. 7 is a hardware schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
It should be noted that, the marks in the embodiments of the present application are used to indicate words, symbols, images, and the like of information, and a control or other container may be used as a carrier for displaying information, including but not limited to a word mark, a symbol mark, and an image mark.
Some of the nouns or terms referred to in the claims and the specification of the present application will be explained first.
At present, in electronic equipment, the cost of user input is greatly reduced by inputting characters through an input method, in some scenes, the user input is continuous, for example, the user directly inputs pinyin or voice of a sentence, especially in the case of adopting a 9-key input keyboard, the more pinyin letters input by the user, the more pinyin combinations possibly exist, so that the situation that wrong characters appear in sentences matched by the electronic equipment is caused, at this time, the user can only delete the wrong characters and characters after the wrong characters (specifically, delete the wrong characters and the pinyin of the characters after the wrong characters), and then re-input the pinyin, so as to trigger the electronic equipment to match the correct characters. Thus, in the conventional technology, when the user inputs a single character in the middle of the long pinyin, the user cannot update the wrong character quickly, so that the natural defect exists, and the user returns to bring new input cost, so that the input efficiency of the user for inputting characters is low.
The candidate word updating method provided by the embodiment of the application aims to provide a more humanized method for correcting the deviation of input method understanding. Under the condition of keeping correct characters matched with the input method, partial error characters can be updated rapidly, so that the input efficiency of a user can be greatly improved, and the user experience of the user can be improved.
The candidate word updating method, the candidate word updating device, and the electronic device provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
As shown in fig. 1, an embodiment of the present application provides a candidate word updating method, which may include steps 101 and 104 described below. The following description will exemplarily take an example in which the candidate word updating apparatus executes the method.
In step 101, a candidate word updating apparatus receives a first input of a target candidate content from a user.
The target candidate content may be a candidate content corresponding to the first character string input by the user.
Optionally, in this embodiment of the application, the user may input the first character string through a voice input method or a pinyin input method.
Optionally, in this embodiment of the application, when the first character string is input by using the pinyin input method, the first character string may be input by using a 9-key input keyboard, or the first character string may be input by using a 26-key input keyboard, which may be determined specifically according to actual use requirements, and this embodiment of the application is not limited.
Optionally, in this embodiment of the present application, the first character string may include letters.
Optionally, in this embodiment of the present application, the first character string may further include numbers and symbols.
Optionally, in this embodiment of the application, the candidate word updating apparatus may display the target candidate content and the first character string on the first interface. The first interface can be any interface capable of inputting text in the electronic device, for example, the first interface can be a chat interface, a browser interface, and the like.
It should be noted that, in this embodiment of the application, multiple candidate contents corresponding to the first character string may be displayed on the first interface, where the multiple candidate words include target candidate contents.
It is understood that, in the embodiment of the present application, each candidate content may be a word, a phrase, or a sentence.
Further, each candidate content may include words, letters, numbers and symbols, which may be determined according to actual usage requirements.
Optionally, in this embodiment of the present application, the first input may be a selection input for the first candidate word. For example, the first input may be an input by the user drawing a "/" on the first candidate word, or the first input may be any possible input by the user such as a click input, a long press input, etc. on the first candidate word.
Step 102, the candidate word updating device responds to the second input, and selects the first candidate word from the target candidate content.
In the embodiment of the present application, the first candidate word is a candidate word that is matched incorrectly in the target candidate content. Namely, the first candidate word is a candidate word which does not meet the actual input requirement of the user.
Step 101 and step 102 are exemplarily described below with reference to fig. 2.
Illustratively, as shown in fig. 2 (a), the chat interface 20 includes a first character string 21 "xuqiuuyaotikinkuaibigualunodi" and a target candidate content 22: "demand requires her to close quickly to the floor"; suppose that the candidate words input by the user need are: "demand requires him to land in closed loop as soon as possible", then the wrong candidate word in the target candidate content can be determined as: "she", "tight" and "off".
If according to the conventional updating method, the user needs to delete "tajinkuaibiguaniluodi" in the first character string, and then re-input until matching: the requirement requires the candidate word to fall to the ground in a closed loop as soon as possible, so that the process of updating the candidate word is long due to the requirement of re-inputting the correct candidate word, and the efficiency of inputting the word is low.
In the embodiment of the application, when a user corrects a handwritten wrong character in daily life, backtracking is generally not performed, but a line "/" is directly drawn on the wrong character, and then a correct character is written in an adjacent area of the drawn character so as to correct the wrong character. This non-retrospective modification can also be migrated to the input method. Specifically, as shown in fig. 2 (b), the user may slide down a "/" over "close", "her", and "off" in the target candidate content 22, respectively, to trigger the candidate word updating means to select "close", "her", and "off" (i.e., the first candidate word) from the target candidate content. Then, based on the second input, the user may trigger the candidate word updating apparatus to modify the selected first candidate word and keep the other candidate words in the candidate content unchanged.
Step 103, the candidate word updating device receives a second input of the first candidate word from the user.
Optionally, in this embodiment of the present application, the second input is used to trigger updating of the first candidate word.
Optionally, in this embodiment of the present application, the first candidate word may include M candidate words, and M may be a positive integer.
Optionally, in this embodiment of the application, the second input may be a touch input of the user on the first interface.
Step 104, the candidate word updating means responds to the second input, keeps the second candidate word unchanged, and updates the first candidate word.
And the second candidate word is the other candidate words except the first candidate word in the target candidate content. It can be understood that the second candidate word is a candidate word in the target candidate content that meets the actual input requirement of the user, i.e., the second candidate word does not need to be updated.
Optionally, in this embodiment of the present application, when the first candidate word includes multiple candidate words (i.e., M is greater than 1), the candidate word updating apparatus may sequentially update each of the multiple candidate words.
In the candidate word updating method provided in the embodiment of the application, the wrong candidate word (i.e., the first candidate word) in the candidate word can be quickly updated without re-inputting the candidate word after the wrong candidate word in the candidate word under the condition that the correct word (i.e., the second candidate word) in the candidate word is not changed, so that the input efficiency of inputting the candidate word can be improved.
Optionally, in this embodiment of the present application, the second input may be used to input update information, where the update information may include at least one of the following: tone, radical, pinyin; the step 104 can be specifically realized by the step 104a described below.
Step 104a, the candidate word updating device responds to the second input, keeps the second candidate character unchanged, and updates the first candidate character into a candidate character corresponding to the second character string and the updating information.
Optionally, in this embodiment of the application, the candidate word updating apparatuses adopt different updating methods, and the updating information may also be different.
Specifically, if the update method adopted by the candidate word update apparatus is a tone method, the update information is a tone; (II) if the updating method adopted by the candidate word updating device is a handwriting completion method, which can also be called a radical method, the updating information is tone radical; and (III) if the updating method adopted by the candidate word updating device is a word group association idea, the updating information is pinyin.
The above (one), (two) and (three) will be described in detail below.
(I), tone method.
Specifically, the user can directly input the tone on the first interface (i.e., the interface displaying the target candidate content), for example, the user can directly hand-write "1", "2", "3" and "4" to represent the tone of the second sound; and then the candidate word updating device updates the first candidate word into a candidate word corresponding to the second character string and the tone input by the user.
Exemplarily, it is assumed that the tone of the first candidate word is "tight", "tight" [ j ǐ n ] is three tones, and the candidate word required by the user is "exhausted", "exhausted" [ j im n ] is four tones; so that the user can hand write "4" on the first interface to trigger the candidate word updating means to update "tight" to "exhausted" corresponding to the character string "jin" and the tone "4".
In the embodiment of the present application, in the above (one), the tone method is to combine the pinyin and the tone, and select the required character quickly through different tones of different characters. Generally, when the tone of the first candidate word is obviously different from that of the candidate word required by the user and the first candidate word and the candidate word are high-frequency words, the candidate word meeting the user requirement can be quickly selected on the basis of the tone and the character string.
(II) a handwriting complementing method.
Considering that the tone method cannot distinguish two characters with the same character string and tone, or the user is not good at using the tone, for example, "s" and "s" are the same tone, the dimension of the tone method is equivalent to an invalid element, and a handwriting completion method can be adopted.
The handwriting complementing method is to combine the character string corresponding to the first candidate character and the character string corresponding to the first candidate character, and the character string corresponding to the first candidate character is combined with the character string corresponding to the first candidate character and the character string corresponding to the first candidate character to be input by the user. The core of the handwriting complementing method is that the difference of the radicals between the alternative characters is utilized, or the characters needing to be selected are relatively simple to handwriting, and the larger the difference is, the more beneficial the user can quickly select the desired characters.
For example, if the first candidate word is "s" and the word the user desires is "he", it is obvious that both the character strings corresponding to "he" and "she" are "ta", but the radicals of "he" and "her" are different, so the user can input the radical "a" by handwriting, and the candidate word updating means can update the first candidate word "s" to "he" in conjunction with the character string "ta" and the radical "a" input by the user.
In the embodiment of the present application, in the above (two), the first candidate word is updated quickly by combining the difference between the radicals between the first candidate word and the candidate word required by the user. The method is mainly applied to scenes with obvious character of the radicals of the candidate characters required by the user.
And thirdly, word association ideas are combined.
The word combination idea means that a user inputs a pinyin through a second input, then a word is determined by combining the pinyin and a second character string, and a character corresponding to the second character string in the word is determined as a candidate character required by the user.
In the embodiment of the application, the word association idea is mainly applied to scenes that the radicals of the candidate characters required by the user are not obvious, the candidate characters are rare, or the second character string is incorrect.
Example 1, assuming that the first candidate word is "tu", the second character string is "tu", and the candidate word required by the user is "convex", the user may input "ao", so that the candidate word updating means may determine the word "concave-convex" in combination with "ao" and "tu", so that the candidate word updating means may update "tu" to "convex".
Example 2, assuming that the first candidate word is "tao", the second character string is "tao", and the candidate word requested by the user is "epic", the user may input "tie", so that the candidate word updating apparatus may determine the word "gulosity" in combination with "tao" and "tie", so that the candidate word updating apparatus may update "tao" to "choo".
Example 3, assuming that the first candidate word is "off", the second character string is "guan", the candidate word required by the user is "ring", "huan", the user may input "rao", so that the candidate word updating apparatus may combine "guan" and "rao", and since there is a word "surround" in the chinese vocabulary without "wrapping around", the candidate word updating apparatus may determine that the second character string should be "huan", and update "off" to "ring".
Optionally, in the embodiment of the present application, when the word association idea is adopted, there are two combinations: a, the second string + the user-entered pinyin, such as example 2 and example 3 above; b, user entered pinyin + second string, such as example 1 above; therefore, in order to facilitate the distinction between the combination a and the combination B, as shown in fig. 3, the candidate word updating apparatus may display a pinyin input box 31 on the first interface 30, the pinyin input box including: the second character string 32, the first sub-input box 33 positioned in front of the second character string and the second sub-input box 34 positioned behind the second character string, so that the user can select the way of inputting pinyin in the first sub-input box 33 or the second sub-input box 34, and the triggering determination is to adopt the combination A or the combination B.
In the embodiment of the application, the first candidate word can be updated based on the updating information input by the user and the character string corresponding to the first candidate word, so that the efficiency of updating the candidate word can be improved, and the updating accuracy can be improved.
Optionally, in this embodiment of the present application, when the first candidate word includes M candidate words, the update information may include M pieces of sub information, where the M candidate words and the M pieces of sub information are in one-to-one correspondence; i.e. one sub-information is used to trigger updating of one of the M candidate words. It will be appreciated that the second input may comprise M sub-inputs, one for entering one sub-information. The step 104a may be specifically realized by the step 104a1 described below.
Step 104a1, the candidate word updating means, in response to the second input, keeps the second candidate word unchanged and updates one candidate word to a candidate word corresponding to the third character string and one piece of sub information for each of the M candidate words.
The third character string is a character string corresponding to one candidate character in the M candidate characters in the second character string, and the one piece of sub information is the sub information corresponding to the one candidate character in the M pieces of sub information. The one sub-information may be a tone, a radical, or a pinyin of the sub-input corresponding to the one candidate word.
Optionally, in this embodiment of the application, after the user selects M candidate words through the first input triggering candidate word updating apparatus, the M candidate words may be added to the queue to be updated, and then the user may trigger to sequentially update the M candidate words according to the target sequence until the number of words in the queue to be updated is 0.
Optionally, in this embodiment of the application, the target sequence may be a sequence in which the M candidate words are selected by the user, or may also be an arrangement sequence of the M candidate words in the target candidate content, which may be specifically determined according to actual use requirements, and this embodiment of the application is not limited.
Optionally, in this embodiment of the application, when the candidate word updating apparatus updates one candidate word in the first candidate word by using a tone method, the user may specifically input a tone on a character string corresponding to the candidate word; for example, as shown in fig. 4, the user may input a tone "4" on the character string "jin" corresponding to "tight".
For other descriptions of the step 104a1, reference may be specifically made to the description of the step 104a in the foregoing embodiment, and details are not repeated here to avoid repetition.
In the embodiment of the present application, for each candidate word in the first candidate word, the candidate word updating apparatus may update one candidate word by combining the character string and the sub information corresponding to the one candidate word, so that the updating accuracy may be improved.
Optionally, in this embodiment of the application, before updating the first candidate word, the candidate word updating apparatus may select and determine an updating method for updating the first candidate word, and then update the first candidate word by using the determined updating method.
For example, in this embodiment of the present application, before the step 104, the candidate word updating method provided in this embodiment of the present application may further include the following step 105.
Step 105, the candidate word updating device determines a target updating method for updating the first candidate word.
Wherein, the target updating method may include any one of: i, system default, ii, user selected, iii, recommended based on big data. The second input is an input corresponding to the update method.
The following are exemplary descriptions of the above i, ii, and iii, respectively.
i, the target update method is system default.
Optionally, in this embodiment of the application, in the above i, after the candidate word updating apparatus receives the second input, it may be determined that a method of updating the first candidate word is an update method default to the system.
ii, the target update method is user-selected.
Optionally, in this embodiment of the present application, in ii above, after selecting the first candidate word, the candidate word updating apparatus may display, on the first interface, a selection identifier for selecting an updating method, for example, a "tone method" selection box, a "handwriting completion method" selection box, and a "word group association idea" selection box, so that a user may input to the selection box to trigger selection of an updating method that meets an actual requirement of the user.
For example, in this embodiment of the application, when the target updating method is an updating method selected by a user, before the step 105, the candidate word updating method provided in this embodiment of the application may further include the following step 106 and step 107, and the step 105 may be specifically implemented by the following step 105 a.
Step 106, the candidate word updating device responds to the first input and displays at least one selection identifier;
wherein each selection identifier of the at least one identifier indicates an updating method.
Step 107, the candidate word updating means receives a third input of the target selection identifier of the at least one selection identifier from the user.
Optionally, in this embodiment of the application, the third input may be a touch input of the user on the target selection identifier, for example, a click input on the target selection identifier.
Step 105a, the candidate word updating device responds to the third input, and determines that the target updating method is the updating method indicated by the target selection identifier.
Optionally, in this embodiment of the application, when the first candidate word includes multiple candidate words, the user may switch the update method before triggering to update each candidate word, so as to trigger the candidate word update apparatus to update the candidate word by using the switched update method. It can be seen that, for different candidate words in the first candidate word, the candidate word updating apparatus may update by using different updating methods.
In the embodiment of the application, the user can manually select the updating method for updating the first candidate word through at least one identifier, so that the flexibility of updating the first candidate word can be improved.
iii, the target update method is recommended based on big data.
Optionally, in this embodiment of the present application, in the foregoing iii, the candidate word updating apparatus may determine that the target updating method is an updating method adopted when most users update the first candidate word.
In the embodiment of the application, the candidate word updating device may determine the target updating method for updating the first candidate word before updating the first candidate word, and then update the first candidate word according to the target updating method and the updating information input by the user, so that the accuracy of updating the first candidate word may be improved.
It should be noted that, in the candidate word updating method provided in the embodiment of the present application, the execution subject may be a candidate word updating apparatus, or a control module in the candidate word updating apparatus for executing the candidate word updating method. In the embodiment of the present application, a candidate word updating method performed by a candidate word updating apparatus is taken as an example, and the candidate word updating apparatus provided in the embodiment of the present application is described.
As shown in fig. 5, an embodiment of the present application provides a candidate updating apparatus 50, where the candidate updating apparatus 50 may include a receiving module 51, a selecting module 52, and an updating module 53.
A receiving module 51, configured to receive a first input of a target candidate content, where the target candidate content may be a candidate content corresponding to a first character string input by a user; a selection module 52, which may be configured to select a first candidate word from the target candidate content in response to the first input received by the receiving module 51; the receiving module 51 may be further configured to receive a second input to the first candidate word; an updating module 53, which may be configured to, in response to the second input received by the receiving module 51, keep the second candidate word unchanged and update the first candidate word; and the second candidate word is the other candidate words except the first candidate word in the target candidate content.
Optionally, in this embodiment of the application, the second input may be used to input update information, where the update information includes at least one of the following: tone, radical, pinyin; the updating module 53 may be specifically configured to update the first candidate word to a candidate word corresponding to a second character string and the update information, where the second character string is a character string corresponding to the first candidate word in the first character string.
Optionally, in this embodiment of the present application, the first candidate word includes M candidate words, the update information may include M pieces of sub information, the M candidate words and the M pieces of sub information correspond to each other one to one, and M is a positive integer; the updating module 53 may be specifically configured to update, for each candidate word in the M candidate words, one candidate word to a candidate word corresponding to the third character string and one piece of sub information; the third character string may be a character string corresponding to one candidate character in the second character string, one piece of sub information is a piece of sub information corresponding to one candidate character in the M pieces of sub information, and the piece of sub information may be a tone, a radical, or a pinyin.
Optionally, in this embodiment of the present application, the candidate word updating apparatus may further include a determining module; a determining module, configured to determine a target updating method for updating the first candidate word before the updating module 53 updates the first candidate word, where the target updating method includes any one of: a system default updating method, a user selected updating method and a big data recommendation-based updating method; wherein the second input is an input corresponding to the target update method.
Optionally, in this embodiment of the application, the first character string may be input by a user through a pinyin input method or a voice input method.
Optionally, in this embodiment of the application, the target updating method is an updating method selected by a user; an updating module 53, further operable to display at least one selection indicator in response to the first input before the determining module determines the target updating method, each selection indicator indicating one updating method; the receiving module 51 may be further configured to receive a third input of a target selection identifier in the at least one selection identifier; the determining module may be specifically configured to determine, in response to the third input, that the target update method is the update method indicated by the target selection identifier.
In the candidate word updating apparatus provided in the embodiment of the present application, since the wrong candidate word (i.e., the first candidate word) in the candidate word can be quickly updated without re-inputting a candidate word located after the wrong candidate word in the candidate word under the condition that the correct word (i.e., the second candidate word) in the candidate word is not changed, the input efficiency of inputting the candidate word can be improved.
The beneficial effects of the various implementation manners in this embodiment may specifically refer to the beneficial effects of the corresponding implementation manners in the above method embodiments, and are not described herein again to avoid repetition.
The candidate word updating apparatus in the embodiment of the present application may be an electronic device, or may also be a component, an integrated circuit, or a chip in the electronic device. The electronic device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The candidate word updating apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The candidate word updating device provided in the embodiment of the present application can implement each process implemented by the candidate word updating method in the method embodiments of fig. 1 to fig. 4, and is not described herein again to avoid repetition.
As shown in fig. 6, an electronic device 200 according to an embodiment of the present application is further provided, which includes a processor 202, a memory 201, and a program or an instruction stored in the memory 201 and executable on the processor 202, and when the program or the instruction is executed by the processor 202, the process of the candidate word updating method embodiment is implemented, and the same technical effect can be achieved, and details are not repeated here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The user input unit 1007 may be configured to receive a first input of target candidate content, where the target candidate content may be candidate content corresponding to a first character string input by a user; a processor 1010, which may be configured to select a first candidate word from the target candidate content in response to a first input received by the user input unit 1007; the user input unit 1007 may be further configured to receive a second input for the first candidate word; a processor 1010, which may be configured to keep the second candidate word unchanged and update the first candidate word in response to a second input received by the user input unit 1007; and the second candidate word is the other candidate words except the first candidate word in the target candidate content.
Optionally, in this embodiment of the application, the second input may be used to input update information, where the update information includes at least one of the following: tone, radical, pinyin; the processor 1010 may be specifically configured to update the first candidate word to a candidate word corresponding to a second character string and the update information, where the second character string is a character string of the first character string corresponding to the first candidate word.
Optionally, in this embodiment of the present application, the first candidate word includes M candidate words, the update information may include M pieces of sub information, the M candidate words and the M pieces of sub information correspond to each other one to one, and M is a positive integer; the processor 1010 may be specifically configured to, for each candidate word in the M candidate words, update one candidate word to a candidate word corresponding to the third character string and one piece of sub information; the third character string may be a character string corresponding to one candidate character in the second character string, one piece of sub information is the sub information corresponding to one candidate character in the M pieces of sub information, and the target sub information is a tone, a radical, or a pinyin.
Optionally, in this embodiment of the present application, the processor 1010 may be further configured to determine, before updating the first candidate word, a target updating method for updating the first candidate word, where the target updating method includes any one of: the system is default, selected by the user and recommended based on big data; wherein the second input is an input corresponding to the target update method.
Optionally, in this embodiment of the application, the first character string may be input by a user through a pinyin input method or a voice input method.
Optionally, in this embodiment of the application, the target updating method is an updating method selected by a user; a processor 1010 further operable to display at least one selection indicator in response to the first input prior to determining the target update method, each selection indicator indicating an update method; the user input unit 1007 may be further configured to receive a third input of a target selection identifier in the at least one selection identifier from the user; the processor 1010 may be specifically configured to determine, in response to the third input, that the target update method is the update method indicated by the target selection identifier.
In the candidate word updating apparatus provided in the embodiment of the present application, under the condition that the correct character (i.e., the second candidate word) in the candidate word is not changed, the incorrect candidate word (i.e., the first candidate word) in the candidate word can be quickly updated without re-inputting a candidate word after the incorrect candidate word in the candidate word, so that the input efficiency of inputting the candidate word can be improved.
The beneficial effects of the various implementation manners in this embodiment may specifically refer to the beneficial effects of the corresponding implementation manners in the above method embodiments, and are not described herein again to avoid repetition.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. Processor 1010 may integrate an application processor that handles primarily operating systems, user interfaces, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the candidate word updating method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is a processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the candidate word updating method embodiment, and the same technical effect can be achieved.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. A candidate word updating method, comprising:
receiving a first input of target candidate content, wherein the target candidate content is candidate content corresponding to a first character string input by a user;
selecting a first candidate word from the target candidate content in response to the first input;
receiving a second input to the first candidate word;
in response to the second input, keeping a second candidate word unchanged and updating the first candidate word;
and the second candidate word is the other candidate words except the first candidate word in the target candidate content.
2. The method of claim 1, wherein the second input is used to input update information, the update information comprising at least one of: tone, radical, pinyin;
the updating the first candidate word includes:
and updating the first candidate character into a candidate character corresponding to a second character string and the updating information, wherein the second character string is the character string corresponding to the first candidate character in the first character string.
3. The method of claim 2, wherein the first candidate word comprises M candidate words, the update information comprises M sub information, the M candidate words are in one-to-one correspondence with the M sub information, and M is a positive integer;
the updating the first candidate word includes:
for each candidate word in the M candidate words, updating the candidate word into a candidate word corresponding to a third character string and a piece of sub information;
the third character string is a character string corresponding to the candidate character in the second character string, the sub-information is the sub-information corresponding to the candidate character in the M pieces of sub-information, and the target sub-information is tone, radical or pinyin.
4. The method of claim 1, prior to said updating the first candidate word, the method further comprising:
determining a target update method for updating the first candidate word, the update method comprising any one of: a system default updating method, a user selected updating method and a big data recommendation-based updating method;
wherein the second input is an input corresponding to the target update method.
5. The method of claim 4, wherein the target update method is a user-selected update method;
before determining a target updating method for updating the first candidate word, the method further includes:
displaying at least one selection indicator in response to the first input, each selection indicator indicating an update method;
receiving a third input of a target selection identifier of the at least one selection identifier;
the target updating method for determining and updating the first candidate word comprises the following steps:
in response to the third input, determining that the target update method is the update method indicated by the target selection identification.
6. A candidate word updating device is characterized by comprising a receiving module, a selecting module and an updating module;
the receiving module is used for receiving a first input of target candidate content, wherein the target candidate content is candidate content corresponding to a first character string input by a user;
the selection module is used for responding to the first input received by the receiving module and selecting a first candidate word from the target candidate content;
the receiving module is further configured to receive a second input to the first candidate word;
the updating module is used for responding to the second input received by the receiving module, keeping a second candidate word unchanged, and updating the first candidate word; and the second candidate word is the other candidate words except the first candidate word in the target candidate content.
7. The apparatus of claim 6, wherein the second input is for inputting update information, wherein the update information comprises at least one of: tone, radical, pinyin;
the updating module is specifically configured to update the first candidate word to a candidate word corresponding to a second character string and the update information, where the second character string is a character string in the first character string corresponding to the first candidate word.
8. The apparatus of claim 7, wherein the first candidate word comprises M candidate words, the update information comprises M sub information, the M candidate words are in one-to-one correspondence with the M sub information, and M is a positive integer;
the updating module is specifically configured to update, for each candidate word in the M candidate words, the one candidate word to a candidate word corresponding to a third character string and one piece of sub information;
the third character string is a character string corresponding to the candidate character in the second character string, the sub-information is the sub-information corresponding to the candidate character in the M pieces of sub-information, and the target sub-information is tone, radical or pinyin.
9. The apparatus of claim 6, further comprising a determination module;
the determining module is configured to determine, before the updating module updates the first candidate word, an updating method for updating the first candidate word, where the updating method includes any one of: a system default updating method, a user selected updating method and a big data recommendation-based updating method;
wherein the second input is an input corresponding to the update method.
10. The apparatus of claim 9, wherein the target update method is a user-selected update method;
the update module is further configured to display at least one selection indicator in response to the first input before the determination module determines the target update method, each selection indicator indicating an update method;
the receiving module is further configured to receive a third input of a target selection identifier of the at least one selection identifier;
the determining module is specifically configured to determine, in response to the third input, that the target update method is an update method indicated by the target selection identifier.
11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the candidate word update method of any of claims 1 to 5.
12. A readable storage medium, on which a program or instructions are stored, which, when executed by a processor, implement the steps of the candidate word update method according to any one of claims 1 to 5.
CN202110567758.3A 2021-05-24 2021-05-24 Candidate word updating method and device and electronic equipment Active CN113359999B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110567758.3A CN113359999B (en) 2021-05-24 2021-05-24 Candidate word updating method and device and electronic equipment
PCT/CN2022/094464 WO2022247789A1 (en) 2021-05-24 2022-05-23 Candidate word update method and apparatus, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110567758.3A CN113359999B (en) 2021-05-24 2021-05-24 Candidate word updating method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN113359999A true CN113359999A (en) 2021-09-07
CN113359999B CN113359999B (en) 2023-06-27

Family

ID=77527370

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110567758.3A Active CN113359999B (en) 2021-05-24 2021-05-24 Candidate word updating method and device and electronic equipment

Country Status (2)

Country Link
CN (1) CN113359999B (en)
WO (1) WO2022247789A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114461130A (en) * 2021-12-24 2022-05-10 科大讯飞股份有限公司 Character input method, device and storage medium
WO2022247789A1 (en) * 2021-05-24 2022-12-01 维沃移动通信有限公司 Candidate word update method and apparatus, and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955575A (en) * 2015-05-29 2016-09-21 洪赖帛 Input method and input device capable of executing and correcting error characters
CN108459864A (en) * 2018-01-23 2018-08-28 维沃移动通信有限公司 A kind of update shows the method and mobile terminal of content
CN109901726A (en) * 2017-12-08 2019-06-18 北京搜狗科技发展有限公司 A kind of candidate word generation method, device and the device generated for candidate word
CN112269475A (en) * 2020-10-23 2021-01-26 维沃移动通信有限公司 Character display method and device and electronic equipment
CN112684913A (en) * 2020-12-30 2021-04-20 维沃移动通信有限公司 Information correction method and device and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9201592B2 (en) * 2013-08-09 2015-12-01 Blackberry Limited Methods and devices for providing intelligent predictive input for handwritten text
CN109885828A (en) * 2019-01-14 2019-06-14 平安科技(深圳)有限公司 Word error correction method, device, computer equipment and medium based on language model
CN113359999B (en) * 2021-05-24 2023-06-27 维沃移动通信有限公司 Candidate word updating method and device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955575A (en) * 2015-05-29 2016-09-21 洪赖帛 Input method and input device capable of executing and correcting error characters
CN109901726A (en) * 2017-12-08 2019-06-18 北京搜狗科技发展有限公司 A kind of candidate word generation method, device and the device generated for candidate word
CN108459864A (en) * 2018-01-23 2018-08-28 维沃移动通信有限公司 A kind of update shows the method and mobile terminal of content
CN112269475A (en) * 2020-10-23 2021-01-26 维沃移动通信有限公司 Character display method and device and electronic equipment
CN112684913A (en) * 2020-12-30 2021-04-20 维沃移动通信有限公司 Information correction method and device and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022247789A1 (en) * 2021-05-24 2022-12-01 维沃移动通信有限公司 Candidate word update method and apparatus, and electronic device
CN114461130A (en) * 2021-12-24 2022-05-10 科大讯飞股份有限公司 Character input method, device and storage medium

Also Published As

Publication number Publication date
WO2022247789A1 (en) 2022-12-01
CN113359999B (en) 2023-06-27

Similar Documents

Publication Publication Date Title
US7764837B2 (en) System, method, and apparatus for continuous character recognition
CN113518026B (en) Message processing method and device and electronic equipment
WO2022247789A1 (en) Candidate word update method and apparatus, and electronic device
US20100171714A1 (en) Electronic device inputting characters and method thereof
CN112269475A (en) Character display method and device and electronic equipment
CN112181253A (en) Information display method and device and electronic equipment
CN111880668A (en) Input display method and device and electronic equipment
CN113918055A (en) Message processing method and device and electronic equipment
CN112989148A (en) Error correction word ordering method and device, terminal equipment and storage medium
CN113590008A (en) Chat message display method and device and electronic equipment
CN112764633A (en) Information processing method and device and electronic equipment
WO2022233275A1 (en) Input correction method and apparatus
WO2023045920A1 (en) Text display method and text display apparatus
CN113805708B (en) Information display method, information display device, electronic equipment and storage medium
WO2022143661A1 (en) Candidate information display method and apparatus, and electronic device
WO2022100622A1 (en) Candidate word display method and apparatus, and electronic device
WO2022143523A1 (en) Vocabulary display method and apparatus, and electronic device
CN114415847A (en) Text information deleting method and device and electronic equipment
CN114356113A (en) Input method and input device
CN113342241A (en) Target character selection method and device, electronic equipment and storage medium
CN113126780A (en) Input method, input device, electronic equipment and readable storage medium
CN112732100A (en) Information processing method and device and electronic equipment
CN111966267A (en) Application comment method and device and electronic equipment
WO2022135294A1 (en) Candidate word display method and apparatus, and electronic device
CN112035032B (en) Expression adding method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant