CN113359999B - 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
CN113359999B
CN113359999B CN202110567758.3A CN202110567758A CN113359999B CN 113359999 B CN113359999 B CN 113359999B CN 202110567758 A CN202110567758 A CN 202110567758A CN 113359999 B CN113359999 B CN 113359999B
Authority
CN
China
Prior art keywords
candidate word
updating
candidate
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.)
Active
Application number
CN202110567758.3A
Other languages
Chinese (zh)
Other versions
CN113359999A (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The application discloses a candidate word updating method, a candidate word updating 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 the 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 of the first candidate word; in response to the second input, keeping the second candidate word unchanged and updating the first candidate word; the second candidate word is 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, a candidate word updating device and electronic equipment.
Background
Currently, a user can input characters through a voice input method or a pinyin input method.
By way of example, taking a user inputting characters by a pinyin input method, the user may input pinyin (i.e., a string of letters) by 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 voice input by the user is long or the pinyin is long, erroneous characters may occur in the sentence recognized by the electronic device. The user needs to return the pinyin to the letter corresponding to the wrong character (i.e., the wrong character and the character after the wrong character are deleted) and then re-input the pinyin to correct the wrong character. Therefore, the user can input the text with low efficiency because the error text can be corrected only after deleting all the text after the error text.
Disclosure of Invention
The embodiment of the application aims to provide a candidate word updating method, a candidate word updating device and electronic equipment, which can solve the problem that the efficiency of text input by a user is low due to the fact that the operation process of updating wrong characters in candidate words is complex.
In a first aspect, an embodiment of the present application provides a method for updating a candidate word, including: receiving a first input of target candidate content, wherein the target candidate content is the 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 of the first candidate word; in response to the second input, keeping the second candidate word unchanged and updating the first candidate word; the second candidate word is other candidate words except the first candidate word in the target candidate content.
In a second aspect, embodiments of the present application provide a candidate word updating apparatus that may include a receiving module, a selecting module, and an updating module. The receiving module is used for receiving first input of target candidate content, wherein the target candidate content is candidate content corresponding to a first character string input by a user; a selection module for selecting a first candidate word from the target candidate content in response to the first input received by the receiving module; the receiving module is also used for receiving a second input of the first candidate word; an updating module, configured to respond to the second input received by the receiving module, keep the second candidate word unchanged, and update the first candidate word; the second candidate word is 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 comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions implementing the steps of the method as in the first aspect when executed by the processor.
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 as in the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being configured to execute programs or instructions to implement a method as in the first aspect.
In the embodiment of the application, a first input of target candidate content (which is candidate content corresponding to a first character string input by a user) can be received; and selecting a first candidate word from the target candidate content in response to the second input; and receiving a second input of the first candidate word; and in response to the second input, updating the first candidate word and leaving the second candidate word unchanged; the second candidate word is other candidate words except the first candidate word in the target candidate content. According to the scheme, the error candidate words (namely the first candidate words) in the candidate words can be updated rapidly under the condition that the correct characters (namely the second candidate words) in the candidate words are unchanged, and the candidate words behind the error candidate words in the candidate words do not need to be input again, so that the input efficiency of the input 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 interface diagrams of an application of a candidate word update method according to an embodiment of the present application;
FIG. 3 is a second schematic diagram of an interface to which the candidate word updating method according to the embodiment of the present application is applied;
FIG. 4 is a third exemplary interface diagram of an application of the candidate word updating method according to the embodiment of the present application;
FIG. 5 is a schematic diagram of a candidate word updating device in an embodiment of the present application;
fig. 6 is a schematic diagram of an electronic device in an embodiment of the present application;
fig. 7 is a schematic hardware diagram 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 where appropriate such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein. 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.
It should be noted that, in the embodiment of the present application, the identifier is used to indicate the text, symbol, image, etc. of the information, and the control or other container may be used as a carrier for displaying the information, including but not limited to the text identifier, symbol identifier, and image identifier.
The following first explains some nouns or terms referred to in the claims and the specification of the present application.
At present, in electronic equipment, the cost of inputting characters through an input method is greatly reduced, in some scenes, 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 are, the more pinyin combinations are possible, so that the situation that wrong characters appear in sentences matched by the electronic equipment, the user can only delete the wrong characters and the characters after the wrong characters (particularly, delete the pinyin of the wrong characters and the characters after the wrong characters) at the moment, and then re-input the pinyin to trigger the electronic equipment to match the correct characters. Thus, in the conventional technology, when a user inputs a single character in the middle of a long pinyin and errors occur, there is no way to quickly update the wrong character, and natural defects exist, and the user returns to bring new input cost, so that the input efficiency of the user for inputting characters is lower.
The candidate word updating method provided by the embodiment of the application aims at providing a more humanized correction input method for understanding deviation. Under the condition that correct characters matched by the input method are reserved, partial error characters can be updated rapidly, so that the input efficiency of a user can be improved greatly, and the user experience of the user can be improved.
The candidate word updating method, the candidate word updating device and the electronic equipment provided by the embodiment of the application are described in detail through specific embodiments and application scenes thereof with reference to the accompanying drawings.
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 method is exemplarily described below by taking the candidate word updating device as an example.
Step 101, a candidate word updating device receives a first input of a user on target candidate contents.
The target candidate content may be a candidate content corresponding to a first character string input by the user.
Optionally, in the embodiment of the present application, the user may input the first string through a voice input method or a pinyin input method.
Optionally, in the embodiment of the present application, when the first character string is input by using the pinyin input method, the first character 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 specifically determined according to an actual use requirement, and the embodiment of the present application is not limited.
Alternatively, in the embodiment of the present application, the first character string may include letters.
Optionally, in the embodiment of the present application, the first string may further include a number and a symbol.
Alternatively, in the embodiment of the present application, the candidate word updating device may display the target candidate content and the first character string on the first interface. The first interface may be any interface capable of inputting text in the electronic device, for example, the first interface may be a chat interface, a browser interface, or the like.
In this embodiment of the present application, a plurality of candidate contents corresponding to the first character string may be displayed on the first interface, where the plurality of candidate words include target candidate contents.
It is understood that in the embodiments of the present application, each candidate content may be a word, a phrase, or a sentence.
Further, each candidate content may include a word, and may further include letters, numbers and symbols, which may be specifically determined according to actual use requirements.
Alternatively, in the embodiment of the present application, the first input may be a selection input of the first candidate word. For example, the first input may be an input by which the user draws "/" on the first candidate word, or the first input may be any possible input by which the user clicks on the first candidate word, long press input, or the like.
Step 102, the candidate word updating device responds to the second input to select the first candidate word from the target candidate content.
In the embodiment of the application, the first candidate word is a candidate word with a matching error in the target candidate content. That is, the first candidate word is a candidate word that does not satisfy the actual input requirement of the user.
Steps 101 and 102 are exemplarily described below with reference to fig. 2.
Illustratively, as shown in fig. 2 (a), the chat interface 20 includes a first string 21 "xuqiuyaotoajinkuaibuibiguanluodi" and target candidate content 22: "demand requires her tight quick-closing to fall to ground"; assume that candidate words that the user needs to input are: "demand requires him to land as quickly as possible in a closed loop", then the erroneous candidate words in the target candidate content may be determined as: "she", "tight" and "off".
If the user needs to delete the "tajinkuaibiguanluodi" in the first character string according to the traditional updating mode, then reenter the first character string until the first character string matches to: the "demand requires him to fall to the ground in a closed loop as soon as possible" this results in a lengthy process of updating the candidate word due to the need to re-input the correct candidate word, resulting in a lower efficiency of inputting text.
In the embodiment of the application, since the user usually does not trace back when correcting the wrong handwriting character in daily life, the user directly marks "/" on the wrong character and writes the correct character on the adjacent area of the marked character 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 "/" on "tight", "she", and "off" in the target candidate content 22, respectively, to trigger the candidate word updating means to select "tight", "she", and "off" (i.e., the first candidate word) from the target candidate content. Then, the user may trigger the candidate word updating means to correct the selected first candidate word based on the second input, and to leave 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 an embodiment of the present application, the second input is used to trigger updating the first candidate word.
Alternatively, in the embodiment of the present application, the first candidate word may include M candidate words, where M may be a positive integer.
Optionally, in an embodiment of the present application, the second input may be a touch input of the user on the first interface.
Step 104, the candidate word updating device responds to the second input, keeps the second candidate word unchanged, and updates the first candidate word.
The second candidate word is 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 satisfying the actual input requirement of the user in the target candidate content, that is, the second candidate word does not need to be updated.
Alternatively, in the embodiment of the present application, when the first candidate word includes a plurality of candidate words (i.e., M is greater than 1), the candidate word updating means may update each of the plurality of candidate words in turn.
In the candidate word updating method provided by the embodiment of the invention, the error candidate word (namely the first candidate word) in the candidate word can be updated rapidly under the condition that the correct word (namely the second candidate word) in the candidate word is unchanged, and the candidate word behind the error candidate word does not need to be input again, so that the input efficiency of the input candidate word can be improved.
Optionally, in an 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: tone, radicals and pinyin; the above step 104 may be specifically implemented by the following step 104 a.
Step 104a, the candidate word updating device responds to the second input, keeps the second candidate word unchanged, and updates the first candidate word to the candidate word corresponding to the second character string and the update information.
Alternatively, in the embodiment of the present application, the candidate word updating device may use different updating methods, and the above updated information may also be different.
Specifically, (first), if the updating method adopted by the candidate word updating device is a tone method, the updating information is a tone; (II) if the updating method adopted by the candidate word updating device is a handwriting completion method and can also be called a radical method, the updating information is a tone radical; and thirdly, if the updating method adopted by the candidate word updating device is a word combination idea, the updating information is pinyin.
The following describes the above (one), (two) and (three) in detail, respectively.
(one), tone method.
The tone method is to quickly select a word required by a user through tone, specifically, the user can directly input tone on a first interface (i.e. an interface displaying target candidate content), for example, the user can directly write "1", "2", "3" and "4" to indicate what tone is; the candidate word updating means then updates the first candidate word to a candidate word corresponding to the second character string and the tone input by the user.
Illustratively, it is assumed that the first candidate word is "tight", "tight" [ j ǐ n ] has a tone of three, and the candidate word required by the user is "full", "full" [ j [ n ] has a tone of four; the user may thus hand write a "4" on the first interface to trigger the candidate word updating means to update the "tight" to "out" corresponding to the character string "jin" and the tone "4".
In the embodiment of the present application, in the above (a), the tone method is to combine pinyin and tone, and the required character is quickly selected by different tones of different words. In general, the tone between the first candidate word and the candidate word required by the user is obviously different, and in the case of high-frequency words, the candidate word meeting the requirement of the user can be quickly selected on the basis of the tone and the character string.
And (II) handwriting completion method.
Considering that the tone method cannot distinguish two words with the same corresponding character string and tone, or that the user is not good at using tone, etc., for example, "she" and "he" are the same tone, the dimension of tone method is equivalent to being an invalid element, and handwriting completion method can be adopted.
The handwriting completion method combines the character string corresponding to the first candidate word and the user input radical to update the first candidate word. The core of the handwriting completion method is that the character difference among the alternative characters or the character to be selected is utilized to be simpler than handwriting, and the larger the difference is, the more favorable the user to quickly select the wanted character.
For example, if the first candidate word is "her" and the word required by the user is "he", it is obvious that the character strings corresponding to "he" and "her" are both "ta", but the components of "he" and "her" are different, so that the user can input the component "a" by handwriting, and the candidate word updating means can update the first candidate word "she" to "he" in combination with the character string "ta" and the component "a" inputted by the user.
In the embodiment of the present application, in the above (two), the first candidate word is quickly updated in combination with 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 component characteristics of the candidate words required by the user.
Thirdly, word association ideas are formed.
The word association method is that a user inputs a pinyin through a second input, then combines the pinyin with a second character string to determine a word, and determines a word corresponding to the second character string in the word as a candidate word required by the user.
In the embodiment of the application, the word association method is mainly applied to scenes in which the radicals of the candidate words required by the user are not obvious, the candidate words are rare, or the second character string is incorrect.
In example 1, assuming that the first candidate word is "tab" and the second character string is "tu", the candidate word required by the user is "tab", the user may input "ao", so that the candidate word updating apparatus may determine the word "concave-convex" by combining "ao" and "tu", so that the candidate word updating apparatus may update "tab" to "tab".
Example 2, assuming that the first candidate word is "billow", the second character string is "tao", and the candidate word required by the user is "cure", the user may input "tie", so that the candidate word updating apparatus may determine the word "elix" in combination with "tao" and "tie", so that the candidate word updating apparatus may update "billow" to "cure".
Example 3, assuming that the first candidate word is "off", the second character string is "guar", and the candidate word required by the user is "ring", "huan", the user may input "rao", so that the candidate word updating apparatus may combine "guar" and "rao", and since there is a word "surrounding" in the chinese vocabulary without "surrounding", the candidate word updating apparatus may determine that the second character string should be "huan", and update "off" to "ring".
Alternatively, in the embodiment of the present application, when the word association method is adopted, the following two combinations exist: a, a second string+pinyin input by the user, such as example 2 and example 3 above; b, pinyin + a second string entered by the user, e.g., example 1 above; thus, to facilitate distinguishing between combination A and combination B, as shown in FIG. 3, the candidate word updating device 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 located before the second character string, and the second sub-input box 34 located after the second character string, so that the user can select the manner of inputting pinyin in the first sub-input box 33 or the second sub-input box 34, and the trigger determination is to use the combination A or the combination B.
In the embodiment of the application, the first candidate word can be updated based on the update 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 the embodiment of the present application, in a case where the first candidate word includes M candidate words, the update information may include M pieces of sub information, where the M candidate words are in one-to-one correspondence with the M pieces of sub information; i.e. one sub-information is used to trigger updating one of the M candidate words. It will be appreciated that the second input may comprise M sub-inputs, one for inputting one sub-information. The step 104a may be specifically implemented by the following step 104a 1.
Step 104a1, the candidate word updating means responds to the second input, keeps the second candidate word unchanged, and updates one candidate word as 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 word of the M candidate words in the second character string, and the one piece of sub-information is sub-information corresponding to the one candidate word in the M pieces of sub-information. The one piece of sub information may be a tone, a radical, or a pinyin of a sub input corresponding to the one candidate word.
Optionally, in this embodiment of the present application, after the user selects M candidate words by triggering the candidate word updating device through the first input, the M candidate words may be added to the queue to be updated, and then, the user may trigger to update the M candidate words in sequence according to the target sequence until the number of words in the queue to be updated is 0.
Optionally, in the embodiment of the present application, the target sequence may be the sequence of selecting the M candidate words by the user, or may be the arrangement sequence of the M candidate words in the target candidate content, which may specifically be determined according to actual use requirements, and the embodiment of the present application is not limited.
Optionally, in the embodiment of the present application, when the candidate word updating device updates one of the first candidate words by using a tone method, a 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 the tone "4" on the string "jin" corresponding to "jin".
For other descriptions of the step 104a1, reference may be specifically made to the descriptions of the step 104a in the above embodiments, and in order to avoid repetition, the descriptions are omitted here.
In the embodiment of the present application, for each candidate word in the first candidate words, since the candidate word updating device may update one candidate word in combination with the character string and the sub information corresponding to the one candidate word, the accuracy of updating may be improved.
Optionally, in the embodiment of the present application, before updating the first candidate word, the candidate word updating device may select an updating method for determining to update the first candidate word, and then update the first candidate word by adopting the determined updating method.
Illustratively, in the embodiment of the present application, before the step 104, the candidate word updating method provided in the embodiment of the present application may further include a step 105 described below.
Step 105, the candidate word updating device determines a target updating method for updating the first candidate word.
The target updating method may include any one of the following: i, system default, ii, user selected, iii, based on big data recommendations. The second input is an input corresponding to the update method.
The above i, ii, iii are each exemplarily described below.
i, the target updating method is a default of the system.
Optionally, in the embodiment of the present application, in the above i, after receiving the second input, the candidate word updating device may determine a method of updating the first candidate word to be a default updating method of the system.
ii, the target update method is user-selected.
Optionally, in the embodiment of the present application, in the above ii, after the candidate word updating device selects the first candidate word, a selection identifier for selecting an updating method, for example, a "tone method" selection box, a "handwriting complement method" selection box, and a "word association idea" selection box may be displayed on the first interface, so that the user may input the selection box, and trigger to select an updating method that meets the actual requirement thereof.
Illustratively, in the embodiment of the present application, when the target update method is the update method selected by the user, before step 105 described above, the candidate word update method provided in the embodiment of the present application may further include step 106 and step 107 described below, where step 105 described above may be specifically implemented by step 105a described below.
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 update method.
Step 107, the candidate word updating device receives a third input of a target selection identifier in the at least one selection identifier from the user.
Optionally, in an embodiment of the present application, the third input may be a touch input of the user to the target selection identifier, for example, a click input on the target selection identifier.
In step 105a, the candidate word updating device determines, in response to the third input, that the target update method is the update method indicated by the target selection identifier.
Optionally, in the embodiment of the present application, when the first candidate word includes a plurality of candidate words, the user may switch the updating method before triggering updating each candidate word, so as to trigger the candidate word updating device to update the candidate word by using the switched updating method. It can be seen that the candidate word updating means may update with different updating methods for different candidate words in the first candidate word.
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 based on big data recommendations.
Alternatively, in the embodiment of the present application, in iii, the candidate word updating device may determine an updating method adopted when the target updating method updates the first candidate word for most users.
In the embodiment of the application, the candidate word updating device can 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 can 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 device, or a control module in the candidate word updating device for executing the candidate word updating method. In the embodiment of the application, a candidate word updating device executes a candidate word updating method by taking a candidate word updating device as an example, and the candidate word updating device provided in the embodiment of the application is described.
As shown in fig. 5, an embodiment of the present application provides a candidate word updating apparatus 50, where the candidate word 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 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 operable 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 also be used for receiving a second input of the first candidate word; an updating module 53, which is configured to keep the second candidate word unchanged and update the first candidate word in response to the second input received by the receiving module 51; the second candidate word is other candidate words except the first candidate word in the target candidate content.
Optionally, in an embodiment of the present application, the second input may be used to input update information, where the update information includes at least one of: tone, radicals and pinyin; the updating module 53 may be specifically configured to update the first candidate word to a candidate word corresponding to a second string and update information, where the second string is a string corresponding to the first candidate word in the first string.
Optionally, in the 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 are in one-to-one correspondence, and M is a positive integer; the updating module 53 may be specifically configured to update, for each of the M candidate words, one candidate word to a candidate word corresponding to the third string and one piece of sub information; the third character string may be a character string corresponding to one candidate word in the second character string, and one piece of sub-information may be tone, radical or pinyin, where the one piece of sub-information is a piece of sub-information corresponding to one candidate word in the M pieces of sub-information.
Optionally, in an embodiment of the present application, the candidate word updating device may further include a determining module; a determining module, configured to determine, before the updating module 53 updates the first candidate word, a target updating method for updating the first candidate word, where the target updating method includes any one of: a default updating method of the system, an updating method selected by a user and an updating method based on big data recommendation; wherein the second input is an input corresponding to the target update method.
Optionally, in the embodiment of the present application, the first character string may be input by a user through a pinyin input method or a voice input method.
Optionally, in the embodiment of the present application, the target update method is an update method selected by a user; the updating module 53 is further configured to display, in response to the first input, at least one selection identifier, each selection identifier indicating an updating method, before the determining module determines the target updating method; the receiving module 51 may be further configured to receive a third input of a target selection identifier of 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 an update method indicated by the target selection identifier.
In the candidate word updating device provided by the embodiment of the application, the error candidate word (namely the first candidate word) in the candidate word can be updated rapidly under the condition that the correct word (namely the second candidate word) in the candidate word is unchanged, and the candidate word behind the error candidate word does not need to be input again in the candidate word, so that the input efficiency of the input candidate word can be improved.
The beneficial effects of the various implementation manners in this embodiment may be specifically referred to the beneficial effects of the corresponding implementation manners in the foregoing method embodiment, and in order to avoid repetition, the description is omitted here.
The candidate word updating device in the embodiment of the application may be an electronic device, or may 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 computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), and the like, and the non-mobile electronic device may be a personal computer (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 limited in particular.
The candidate word updating device in the embodiment of the present application may be a device having 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 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 in order to avoid repetition, a detailed description is omitted here.
As shown in fig. 6, the embodiment of the present application further provides an electronic device 200, including a processor 202, a memory 201, and a program or an instruction stored in the memory 201 and capable of being executed on the processor 202, where the program or the instruction implements each process of the above embodiment of the candidate word updating method when executed by the processor 202, and the process can achieve the same technical effects, and for avoiding repetition, a detailed description is omitted herein.
It should be noted that, the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 7 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: radio frequency unit 1001, network module 1002, audio output unit 1003, input unit 1004, sensor 1005, display unit 1006, user input unit 1007, interface unit 1008, memory 1009, and processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 1010 by a power management system to perform functions such as managing charge, discharge, and power consumption by 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 shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
Wherein, the user input unit 1007 may be configured to receive a first input of target candidate content, and the target candidate content may be a candidate content corresponding to a first character string input by a user; a processor 1010 operable to select a first candidate word from the target candidate content in response to a first input received by the user input unit 1007; a user input unit 1007, further operable to receive a second input of a first candidate word; a processor 1010 operable to keep the second candidate word unchanged and update the first candidate word in response to the second input received by the user input unit 1007; the second candidate word is other candidate words except the first candidate word in the target candidate content.
Optionally, in an embodiment of the present application, the second input may be used to input update information, where the update information includes at least one of: tone, radicals and pinyin; the processor 1010 may be specifically configured to update the first candidate word to a candidate word corresponding to a second string and update information, where the second string is a string corresponding to the first candidate word in the first string.
Optionally, in the 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 are in one-to-one correspondence, and M is a positive integer; the processor 1010 may be specifically configured to update, for each of the M candidate words, one candidate word to a candidate word corresponding to the third string and one sub-information; the third character string may be a character string corresponding to one candidate word in the second character string, one piece of sub-information is sub-information corresponding to one candidate word in the M pieces of sub-information, and the target sub-information is tone, radical or pinyin.
Optionally, in an 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 following: default of the system, user selection, recommendation based on big data; wherein the second input is an input corresponding to the target update method.
Optionally, in the embodiment of the present application, the first character string may be input by a user through a pinyin input method or a voice input method.
Optionally, in the embodiment of the present application, the target update method is an update method selected by a user; the processor 1010 is further configured to, prior to determining the target update method, display at least one selection identifier in response to the first input, each selection identifier indicating an update method; the user input unit 1007 may also be configured to receive a third input from the user of a target selection identity of the at least one selection identities; 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 device provided by the embodiment of the application, the error candidate word (namely the first candidate word) in the candidate word can be updated rapidly under the condition that the correct word (namely the second candidate word) in the candidate word is unchanged, and the candidate word behind the error candidate word does not need to be input again, so that the input efficiency of the input candidate word can be improved.
The beneficial effects of the various implementation manners in this embodiment may be specifically referred to the beneficial effects of the corresponding implementation manners in the foregoing method embodiment, and in order to avoid repetition, the description is omitted here.
It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 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 can include two portions, 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, a joystick, and so forth, which are not described in detail herein. Memory 1009 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 1010 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1010.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored, where the program or the instruction implements each process of the above embodiment of the candidate word updating method when executed by a processor, and the process can achieve the same technical effect, so that repetition is avoided, and no detailed description is given 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 (Random Access Memory, RAM), a magnetic disk or an optical disk.
The embodiment of the application further provides a chip, which includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, implement each process of the above embodiment of the candidate word updating method, and achieve the same technical effect, so that repetition is avoided, and no detailed description is given 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.
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 (10)

1. A method of candidate word updating, the 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 of the first candidate word;
in response to the second input, keeping a second candidate word unchanged and updating the first candidate word;
the second candidate word is other candidate words except the first candidate word in the target candidate content;
the second input is for inputting update information, the update information comprising at least one of: tone, radicals and pinyin;
the updating the first candidate word includes:
updating the first candidate word into a candidate word corresponding to a second character string and the updating information, wherein the second character string is pinyin corresponding to the first candidate word in the first character string;
and when the updated information is pinyin, the candidate word corresponding to the second character string and the updated information is a word corresponding to the second character string in words determined according to the second character string and the updated information.
2. The method of claim 1, wherein the first candidate word includes M candidate words, the update information includes M pieces of sub information, the M candidate words are in one-to-one correspondence with the M pieces of sub information, and M is a positive integer;
the updating the first candidate word includes:
for each of the M candidate words, updating one candidate word to be a candidate word corresponding to the third character string and one piece of sub information;
the third character string is a character string corresponding to the candidate word in the second character string, the one piece of sub-information is sub-information corresponding to the candidate word in the M pieces of sub-information, and the one piece of sub-information is tone, radical or pinyin.
3. The method of claim 1, the method further comprising, prior to the updating the first candidate word:
determining a target updating method for updating the first candidate word, wherein the target updating method comprises any one of the following steps: a default updating method of the system, an updating method selected by a user and an updating method based on big data recommendation;
wherein the second input is an input corresponding to the target update method.
4. A method according to claim 3, wherein the target update method is a user-selected update method;
before the determining a target updating method for updating the first candidate word, the method further comprises:
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 to update the first candidate word comprises the following steps:
and in response to the third input, determining that the target update method is the update method indicated by the target selection identification.
5. A candidate word updating device, which is characterized by comprising a receiving module, a selecting module and an updating module;
the receiving module is used for receiving 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 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 a second candidate word unchanged and updating the first candidate word; the second candidate word is other candidate words except the first candidate word in the target candidate content;
the second input is for inputting update information, the update information comprising at least one of: tone, radicals and 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 updating information, where the second character string is pinyin corresponding to the first candidate word in the first character string;
and when the updated information is pinyin, the candidate word corresponding to the second character string and the updated information is a word corresponding to the second character string in words determined according to the second character string and the updated information.
6. The apparatus of claim 5, 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 of 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 is a character string corresponding to the candidate word in the second character string, the one piece of sub-information is sub-information corresponding to the candidate word in the M pieces of sub-information, and the one piece of sub-information is tone, radical or pinyin.
7. The apparatus of claim 5, further comprising a determination module;
the determining module is configured to determine, before the updating module updates the first candidate word, a target updating method for updating the first candidate word, where the target updating method includes any one of the following: a default updating method of the system, an updating method selected by a user and an updating method based on big data recommendation;
wherein the second input is an input corresponding to the target update method.
8. The apparatus of claim 7, wherein the target update method is a user-selected update method;
the updating module is further configured to, before the determining module determines the target updating method, display at least one selection identifier in response to the first input, each selection identifier indicating an updating method;
The receiving module is further configured to receive a third input of a target selection identifier in 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.
9. 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 updating method of any of claims 1 to 4.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a program or instructions which, when executed by a processor, implement the steps of the candidate word updating method of any of claims 1 to 4.
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 CN113359999A (en) 2021-09-07
CN113359999B true 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)

Families Citing this family (2)

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

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

Also Published As

Publication number Publication date
CN113359999A (en) 2021-09-07
WO2022247789A1 (en) 2022-12-01

Similar Documents

Publication Publication Date Title
US10698604B2 (en) Typing assistance for editing
WO2022017525A1 (en) Page display method and apparatus, and electronic device
CN113518026B (en) Message processing method and device and electronic equipment
CN113359999B (en) Candidate word updating method and device and electronic equipment
WO2022083750A1 (en) Text display method and apparatus and electronic device
WO2021254251A1 (en) Input display method and apparatus, and electronic device
CN112989148A (en) Error correction word ordering method and device, terminal equipment and storage medium
CN113918055A (en) Message processing method and device and electronic equipment
CN112181253A (en) Information display method and device and electronic equipment
CN114415847A (en) Text information deleting method and device and electronic equipment
CN112764633B (en) Information processing method and device and electronic equipment
WO2022233275A1 (en) Input correction method and apparatus
WO2022135294A1 (en) Candidate word display method and apparatus, and electronic device
WO2022143661A1 (en) Candidate information display method and apparatus, and electronic device
CN112766005B (en) Text translation method, device, equipment and medium
CN112764551A (en) Vocabulary display method and device and electronic equipment
CN113342241A (en) Target character selection method and device, electronic equipment and storage medium
CN114356113A (en) Input method and input device
CN113126780A (en) Input method, input device, electronic equipment and readable storage medium
CN114416264A (en) Message display method and device
CN114237405A (en) Message correction method and device and electronic equipment
CN111966267A (en) Application comment method and device and electronic equipment
CN112328096A (en) Candidate word display method and device and electronic equipment
CN112882680A (en) Voice recognition method and device
RU2525748C2 (en) Text input using two alphabets and key selection function

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