WO2022100622A1 - Candidate word display method and apparatus, and electronic device - Google Patents

Candidate word display method and apparatus, and electronic device Download PDF

Info

Publication number
WO2022100622A1
WO2022100622A1 PCT/CN2021/129857 CN2021129857W WO2022100622A1 WO 2022100622 A1 WO2022100622 A1 WO 2022100622A1 CN 2021129857 W CN2021129857 W CN 2021129857W WO 2022100622 A1 WO2022100622 A1 WO 2022100622A1
Authority
WO
WIPO (PCT)
Prior art keywords
sequence
syllable
pinyin
target
syllable sequence
Prior art date
Application number
PCT/CN2021/129857
Other languages
French (fr)
Chinese (zh)
Inventor
吴多策
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2022100622A1 publication Critical patent/WO2022100622A1/en

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/0236Character input methods using selection techniques to select from displayed items

Definitions

  • the present application belongs to the field of communication technologies, and in particular relates to a method, an apparatus and an electronic device for displaying a candidate word.
  • the electronic device can pre-store in the electronic device the pinyin strings corresponding to the high-frequency mispronunciations (that is, the mispronunciations of the polysyllabic words are high-frequency mispronunciations) of easily confusing words (for example, words containing polysyllabic words), so that when the user uses the electronic device to input
  • the pinyin string input by the user is wrong (for example, there are polysyllabic words in the collection of confusing words, and the pinyin string input is the pinyin string corresponding to another pronunciation of the polysyllabic word), the electronic device can directly generate and display it. This confusing term.
  • the pinyin string input by the user may be the case of the pinyin string corresponding to other wrong pronunciations (such as low-frequency wrong pronunciation) of a certain confusing vocabulary
  • the electronic device cannot generate the corresponding pinyin string according to the other wrong pronunciation. and display the confusing word.
  • the purpose of the embodiments of the present application is to provide a method, device and electronic device for displaying a candidate word, which can solve the problem that the electronic device has low accuracy in displaying the words that the user needs to input.
  • an embodiment of the present application provides a method for displaying a candidate word.
  • the method includes: acquiring a first pinyin sequence input by a user, where the first pinyin sequence includes M syllable sequences; the M syllable sequences include In the case of the first syllable sequence, obtain at least one first target syllable sequence corresponding to the first syllable sequence; a first target syllable sequence is: in at least one target character corresponding to the first syllable sequence, a target character exists and The syllable sequences with different first syllable sequences; respectively adopt at least one first target syllable sequence to replace the first syllable sequence in the first pinyin sequence to generate at least one second pinyin sequence; in at least one second pinyin sequence When the target pinyin sequence of 1 meets the first preset condition, the candidate words corresponding to the target pinyin sequence are displayed; wherein, M is a positive integer greater than 1.
  • an embodiment of the present application provides a candidate word display device, where the candidate word display device includes an acquisition module, a generation module, and a display module.
  • the acquisition module is used to acquire the first pinyin sequence input by the user, and the first pinyin sequence includes M syllable sequences; and when the M syllable sequences include the first syllable sequence, acquire the first syllable At least one first target syllable sequence corresponding to the sequence; a first target syllable sequence is: in at least one target character corresponding to the first syllable sequence, a target character exists in a syllable sequence different from the first syllable sequence.
  • the generating module is configured to replace the first syllable sequence in the first pinyin sequence by using the at least one first target syllable sequence acquired by the acquiring module respectively to generate at least one second pinyin sequence.
  • the display module is used to display the candidate words corresponding to the target pinyin sequence when the target pinyin sequence in the at least one second pinyin sequence generated by the generation module satisfies the first preset condition.
  • M is a positive integer greater than 1.
  • embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .
  • an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.
  • the electronic device may obtain the corresponding M syllable sequence according to the M syllable sequence included in the first pinyin sequence input by the user, and in the case that the M syllable sequence includes the first syllable sequence At least one first target syllable sequence (a first target syllable sequence is at least one target character corresponding to the first syllable sequence, and the target character exists in a syllable sequence different from the first syllable sequence), and at least one first syllable sequence is adopted respectively.
  • the target syllable sequence is to replace the first syllable sequence in the first pinyin sequence to generate at least one second pinyin sequence, so that the electronic device can satisfy the first preset condition in the target pinyin sequence in the at least one second audio sequence
  • the candidate words corresponding to the target pinyin sequence are displayed. Because the electronic device can acquire at least one first target syllable sequence corresponding to the first syllable sequence when the acquired pinyin sequence of a confusing vocabulary includes the first syllable sequence (that is, the syllable sequence corresponding to the mispronunciation of the polyphonic word).
  • the electronic device can display the certain confusing vocabulary when the target pinyin sequence in all the pinyin sequences satisfies the first preset condition, rather than only based on the certain confusing vocabulary
  • the pinyin sequence corresponding to the high-frequency mispronunciation of the vocabulary generates the confusing vocabulary and displays the confusing vocabulary, so the accuracy of displaying the confusing vocabulary can be improved.
  • FIG. 1 is one of the schematic diagrams of a candidate word display method provided by an embodiment of the present application.
  • FIG. 3 is the third schematic diagram of the method for displaying candidate words provided by an embodiment of the present application.
  • FIG. 4 is a fourth schematic diagram of a method for displaying candidate words provided by an embodiment of the present application.
  • FIG. 6 is a second schematic structural diagram of a candidate word display device provided by an embodiment of the present application.
  • FIG. 7 is a third schematic structural diagram of a candidate word display device provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of hardware of an electronic device provided by an embodiment of the present application.
  • first, second and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between “first”, “second”, etc.
  • the objects are usually of one type, and the number of objects is not limited.
  • the first object may be one or more than one.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the associated objects are in an "or” relationship.
  • the candidate word display method provided by the embodiment of the present application can be applied to a scenario where a user inputs a confusing vocabulary.
  • the vocabulary A includes a polyphonic word (such as polyphonic word A), and the polyphonic word A includes multiple pronunciations (such as pronunciation 1, pronunciation 2 and pronunciation 3), pronunciation 1 is the high-frequency wrong pronunciation of the polyphonic word A in the vocabulary A, pronunciation 2 is the wrong pronunciation of the polyphonic word A in the vocabulary A, and pronunciation 3 is the The correct pronunciation of polysyllabic word A in this vocabulary A, when polysyllabic word A is pronunciation 1, the corresponding pinyin sequence of this vocabulary A is pinyin sequence 1, and when polysyllabic word A is pronunciation 2, the corresponding pinyin sequence of this vocabulary A is: Pinyin sequence 2, when the polyphonic word A is pronunciation 3, the pinyin sequence corresponding to the word A is pinyin sequence 3.
  • the pinyin sequence 1 can be pre-stored in the electronic device, so that when the pinyin sequence input by the user is incorrect (for example, the pinyin sequence 1), the vocabulary A is directly generated and displayed.
  • the pinyin sequence input by the user may be the pinyin sequence 2
  • the electronic device cannot generate the word A according to the pinyin sequence 2 and display the word A
  • the electronic device may generate other words corresponding to the pinyin sequence 2 , and display the other words, so that the electronic device displays the words that the user needs to input with low accuracy.
  • the electronic device can obtain the pinyin sequence 2, and can determine whether the multiple single-character syllable sequences of the pinyin sequence 2 contain polyphonic syllables Sequence, when it is determined that a plurality of single-character syllable sequences of this pinyin sequence 2 contain a polyphonic word syllable sequence 1 (that is, when polyphonic word A is pronunciation 2, the syllable sequence corresponding to this polyphonic word A), the electronic device can obtain the At least one easy-to-confuse pronunciation corresponding to polysyllabic syllable sequence 1 (that is, all pronunciations of all polysyllabic words corresponding to this syllable sequence 1) syllable sequence, and then adopt these easy-to-confuse pronunciation syllable sequences respectively, and the polysyllabic syllables in this pinyin sequence 2 Sequence
  • FIG. 1 shows a flowchart of a method for displaying a candidate word provided by an embodiment of the present application.
  • the method for displaying candidate words provided by the embodiment of the present application may include the following steps 101 to 104 .
  • Step 101 The candidate word display device acquires the first pinyin sequence input by the user.
  • the user when the user inputs a confusing word in the candidate word display device, the user can input a text input box, so that the candidate word display device displays an input method interface, so that the user can The pinyin sequence corresponding to a certain confusing word is input to the candidate word display device, so that the candidate word display device obtains the first pinyin sequence input by the user.
  • confused words can be understood as: words that contain at least one polysyllabic word.
  • the above-mentioned first pinyin sequence includes M syllable sequences, where M is a positive integer greater than 1.
  • one syllable sequence corresponds to at least one character, and each character may include any of the following: numbers, characters, and letters.
  • Step 102 In the case that the first syllable sequence is included in the M syllable sequences, the candidate word display device acquires at least one first target syllable sequence corresponding to the first syllable sequence.
  • the above-mentioned first syllable sequence may specifically be: a syllable sequence corresponding to a polyphonic word.
  • a sequence of syllables corresponding to one pronunciation of a polyphonic word may specifically be: a syllable sequence corresponding to a polyphonic word.
  • the above-mentioned first syllable sequence may include multiple syllable sequences.
  • the first target syllable sequence is: in at least one target character corresponding to the first syllable sequence, a syllable sequence different from the first syllable sequence exists in the target character.
  • At least one first target syllable sequence corresponding to the first syllable sequence can be understood as: at least one other pronunciation of all polyphonic words corresponding to the first syllable sequence (that is, except for the pronunciation corresponding to the first syllable sequence) external pronunciation) corresponding syllable sequence.
  • the first syllable sequence is a "mo" syllable sequence
  • at least one target character corresponding to the "mo" syllable sequence is the polyphonic word "mod”, the polyphonic word "mo”, the polyphonic word “mai”, and the polyphonic word "no”.
  • At least one first target syllable sequence of "mo" syllable sequence is: the syllable sequence corresponding to other pronunciations of "mod” polysyllabic word (that is, “mu” syllable sequence), the other pronunciations of "Mo” polyphonic word corresponding to The syllable sequence of the "ma” syllable sequence (that is, the “ma” syllable sequence), the syllable sequence corresponding to other pronunciations of the "mai” polysyllabic word (that is, the "mai” syllable sequence), and the syllable sequence corresponding to other pronunciations of the "mei” polyphonic word (that is, “mei” syllable sequence), that is, the at least one first target syllable sequence corresponding to the first syllable sequence "mo” includes “mu”, "ma”, “mai”, and "mei”.
  • the candidate word display device may pre-store at least one syllable sequence set in the candidate word display device, and each syllable sequence set respectively includes a syllable sequence and at least one confusing syllable sequence corresponding to the syllable sequence.
  • a syllable sequence, an easily confusing syllable sequence is: in at least one character corresponding to the one syllable sequence, a character exists in a syllable sequence different from the one syllable sequence, so that the candidate word display device can be based on the first syllable sequence, from the at least one syllable sequence.
  • a syllable sequence corresponding to the first syllable sequence is determined, and at least one confusing syllable sequence in a syllable sequence set corresponding to the one syllable sequence is determined as at least one syllable sequence.
  • the first target syllable sequence to obtain the at least one first target syllable sequence.
  • Step 103 The candidate word display device adopts at least one first target syllable sequence respectively, and replaces the first syllable sequence in the first pinyin sequence to generate at least one second pinyin sequence.
  • the candidate word display device may use the first first target syllable sequence, and perform the first syllable sequence in the first pinyin sequence. Replace, generate the first second pinyin sequence, and then use the second first target syllable sequence to replace the first syllable sequence in the first pinyin sequence to generate the second second pinyin sequence, and so on, until Generate the last second pinyin sequence.
  • the "moban” pinyin sequence includes 2 syllable sequences (that is, the “mo” syllable sequence and the “ban” syllable sequence), and the “mo” syllable sequence is The first syllable sequence, at least one first target syllable sequence of the "mo” syllable sequence is: “mu” syllable sequence, "ma” syllable sequence, "mai” syllable sequence and "mei” syllable sequence, then the candidate word display device
  • the "mu” syllable sequence can be used to replace the "mo” syllable sequence in the "moban” pinyin sequence to generate the "muban” pinyin sequence
  • the "ma” syllable sequence can be used to replace the "mo” in the "moban” pinyin sequence.
  • syllable sequence is replaced to generate the “maban” pinyin sequence, and then the “mai” syllable sequence can be used to replace the “mo” syllable sequence in the “moban” pinyin sequence to generate the “maiban” pinyin sequence, and then the “mei” syllable sequence can be used.
  • syllable sequence and then replace the “mo” syllable sequence in the “moban” pinyin sequence to generate the “meiban” pinyin sequence, so as to generate at least one (ie four) second pinyin sequence.
  • the candidate word display device can adopt at least one first target syllable sequence, and combine it with the syllable sequence other than the first syllable sequence of the first pinyin sequence to respectively generate the pinyin containing the syllable sequences corresponding to other pronunciations of the polysyllabic word. sequence.
  • the candidate word display device may acquire the first target syllable sequence corresponding to each syllable sequence in the multiple syllable sequences, and respectively adopt the first first target syllable sequence corresponding to the syllable sequence with the largest number of the corresponding first target syllable sequence, replace the first syllable sequence in the first pinyin sequence, and generate the first second pinyin sequence , and then use the second first target syllable sequence to replace the first syllable sequence in the first pinyin sequence to generate the second second pinyin sequence, and so on until the last second pinyin sequence is generated.
  • Step 104 Under the condition that the target pinyin sequence in the at least one second pinyin sequence satisfies the first preset condition, the candidate word display device displays the candidate word corresponding to the target pinyin sequence.
  • the above-mentioned target pinyin sequence may be one second pinyin sequence or multiple pinyin sequences in at least one second pinyin sequence.
  • the above-mentioned first preset condition may specifically be: there are candidate words corresponding to the target pinyin sequence in the lexicon.
  • the candidate word corresponding to the above-mentioned target pinyin sequence may be one candidate word or multiple candidate words.
  • the candidate word display device may generate a candidate word according to a second pinyin sequence, and determine whether the word in the thesaurus The one candidate word exists, and when it is determined that the one candidate word exists in the lexicon, the candidate word display device may determine the one second pinyin sequence as the target pinyin sequence, and display the candidate word corresponding to the target pinyin sequence.
  • the device for displaying candidate words may add candidate words corresponding to the target pinyin sequence to the candidate word list corresponding to the first pinyin sequence.
  • the candidate word display device may display the candidate word.
  • the device for displaying candidate words may obtain the M syllable sequences included in the first pinyin sequence input by the user and when the M syllable sequences include the first syllable sequence.
  • At least one first target syllable sequence corresponding to the first syllable sequence (the first target syllable sequence is at least one target character corresponding to the first syllable sequence, and the target character exists in a syllable sequence different from the first syllable sequence), and respectively At least one first target syllable sequence is used to replace the first syllable sequence in the first pinyin sequence to generate at least one second pinyin sequence, so that the candidate word display device can display the target pinyin in the at least one second audio sequence When the sequence satisfies the first preset condition, the candidate words corresponding to the target pinyin sequence are displayed.
  • the candidate word display device can acquire at least one first target syllable corresponding to the first syllable sequence when the acquired pinyin sequence of confusing words includes the first syllable sequence (ie, the syllable sequence corresponding to the wrong pronunciation of the polyphonic word). sequence (that is, the syllable sequence corresponding to other pronunciations of the polyphonic word), and respectively adopt the at least one first target syllable sequence to replace the first syllable sequence in the first pinyin sequence, and generate all the corresponding pronunciations of the polyphonic word.
  • sequence that is, the syllable sequence corresponding to other pronunciations of the polyphonic word
  • All pinyin sequences that is, at least one second pinyin sequence
  • the candidate word display device can display the certain confusing word when the target pinyin sequence in the all pinyin sequences satisfies the first preset condition, instead of only According to the pinyin sequence corresponding to the high-frequency wrong pronunciation of the certain confusing word, the certain confusing word is generated, and the certain confusing word is displayed, so that the accuracy of displaying the confusing word can be improved.
  • step 104 may be specifically implemented through the following steps 104a to 104d.
  • Step 104a The candidate word display device traverses at least one second pinyin sequence.
  • the candidate word display device may sequentially traverse each second pinyin sequence in the at least one second pinyin sequence to traverse the at least one second pinyin sequence.
  • Step 104b The candidate word display device determines whether there is a candidate word corresponding to the second pinyin sequence currently traversed in the thesaurus.
  • Step 104c If there is a candidate word corresponding to the currently traversed second pinyin sequence in the thesaurus, the candidate word display device determines the candidate word corresponding to the currently traversed second pinyin sequence as the candidate word corresponding to the target pinyin sequence.
  • the candidate word display device may determine the candidate word corresponding to the second pinyin sequence currently traversed as the candidate word of the target pinyin sequence.
  • the candidate word display device can traverse at least one second pinyin sequence, and determine the candidate word corresponding to the second pinyin sequence existing in the thesaurus as the candidate word corresponding to the target pinyin sequence, that is, the candidate word
  • the display device can directly determine the candidate word that the user may need to input, and display the candidate word, without the need for the user to select from at least one candidate word corresponding to the at least one second pinyin sequence, so the operation of the user can be simplified, and the improvement can be improved.
  • the candidate word display means displays the efficiency of confusing words that the user needs to input.
  • Step 104d If there is no candidate word corresponding to the currently traversed second pinyin sequence in the thesaurus, the candidate word display device continues to traverse the next second pinyin sequence.
  • the candidate word display device can continue to traverse the next second pinyin sequence.
  • the candidate word display device can traverse at least one second pinyin sequence, in the case where there is no candidate word corresponding to the currently traversed second pinyin sequence in the thesaurus, the currently traversed second pinyin sequence is not traversed.
  • the candidate words corresponding to the pinyin sequence are determined as the candidate words corresponding to the target pinyin sequence, that is, the candidate word display device does not display the candidate words that the user does not need to input, so the number of displayed candidate words can be reduced, thereby shortening the user search needs.
  • the time-consuming input of candidate words can improve the efficiency of user input of candidate words.
  • the above-mentioned M syllable sequences are M single-word syllable sequences.
  • the method for displaying candidate words provided by this embodiment of the present application may further include the following step 201 .
  • Step 201 when the first pinyin sequence is a full pinyin sequence, the candidate word display device splits the first pinyin sequence into M single-word syllable sequences.
  • the candidate word display device may detect the first pinyin sequence to display the first pinyin sequence. It is determined whether the first pinyin sequence is a full pinyin sequence.
  • the candidate word display device may use a preset algorithm to split the first pinyin sequence to obtain M single characters. syllable sequence.
  • single-word syllable sequence can be understood as: a syllable sequence of a single-word character.
  • the above preset algorithm may specifically be a Pinyin word segmentation algorithm. It should be noted that, for the specific description of the pinyin word segmentation algorithm, reference may be made to the description in the related art, which will not be repeated in this embodiment of the present application.
  • the candidate word display device can split the first pinyin sequence into a plurality of single-word syllable sequences when the first pinyin sequence is a full pinyin sequence, the candidate word display device can accurately determine the Whether the first syllable sequence is included in the multiple single-word syllable sequences can improve the accuracy of determining that the first syllable sequence is included, which can improve the accuracy of displaying confusing words.
  • step 102 may be specifically implemented by the following step 102 a.
  • Step 102a When M is within a preset range and the M syllable sequences include the first syllable sequence, the candidate word display device acquires at least one first target syllable sequence corresponding to the first syllable sequence.
  • the candidate word display device may detect the first pinyin sequence to obtain the number M of the M syllable sequences.
  • the above-mentioned preset range may specifically be: [2, 8].
  • the candidate word display device The first target syllable sequence corresponding to the one syllable sequence is not acquired.
  • the candidate word display device does not acquire the first target syllable sequence corresponding to the first syllable sequence in the 8 syllable sequences.
  • the candidate word display device obtains only when the pinyin sequence input by the user may be a pinyin sequence corresponding to a confusing word, and the pinyin sequence includes a syllable sequence in which the corresponding characters contain polysyllabic words.
  • At least one first target syllable therefore, it can be avoided that the pinyin sequence input by the user is not the pinyin sequence corresponding to the confusing vocabulary, and the candidate word display device will acquire at least one first target syllable sequence, that is, the candidate word display device is in the
  • the candidate words corresponding to the pinyin sequence input by the user can be directly displayed, so that the efficiency of displaying the candidate words by the candidate word display device can be improved.
  • the above-mentioned M syllable sequences further include a fourth syllable sequence.
  • the method for displaying candidate words provided in this embodiment of the present application may further include the following step 301, and the above step 103 may be specifically implemented by the following step 103a.
  • Step 301 The candidate word display device acquires at least one second target syllable sequence corresponding to the fourth syllable sequence.
  • the above-mentioned fourth syllable sequence may specifically be: a syllable sequence of a polyphonic word included in the corresponding character.
  • one second target syllable sequence is: in at least one target character corresponding to the fourth syllable sequence, one target character exists with the same
  • the fourth syllable sequence is a different syllable sequence.
  • At least one second target syllable sequence corresponding to the fourth syllable sequence can be understood as: at least one other pronunciation (ie, except for the fourth syllable sequence) of a polyphonic word (that is, a polyphonic word corresponding to the fourth syllable sequence) Pronunciation other than the corresponding pronunciation) corresponding syllable sequence.
  • Step 103a The candidate word display device adopts at least one first target syllable sequence and at least one second target syllable sequence respectively to replace the first syllable sequence and the fourth syllable sequence in the first pinyin sequence.
  • the candidate word display device may first use the first first target syllable sequence, replace the first syllable sequence in the first pinyin sequence, generate the first second pinyin sequence, and then Using the second first target syllable sequence, replace the first syllable sequence in the first pinyin sequence to generate the second second pinyin sequence, and so on, until the last second pinyin sequence is generated to generate Q
  • the second pinyin sequence then use the first second target syllable sequence to replace the fourth syllable sequence in the first pinyin sequence to generate the first second pinyin sequence, and then use the second second target syllable sequence , replace the fourth syllable sequence in the first pinyin sequence to generate the second second pinyin sequence, and so on, until the last second pinyin sequence is generated to generate P second pinyin sequences to obtain Q+ P pinyin sequences, Q and P are both positive integers.
  • the pinyin sequence input by the user is the "mozhua” pinyin sequence
  • the "mozhua” pinyin sequence includes 2 syllable sequences (that is, the "mo” syllable sequence and the "zhua” syllable sequence)
  • the "mo" syllable sequence is The first syllable sequence
  • the "zhua” is the fourth syllable sequence
  • at least one first target syllable sequence of the "mo” syllable sequence is: “mu” syllable sequence, "ma” syllable sequence, "mai” syllable sequence and " mei” syllable sequence
  • at least one second target syllable sequence of the "zhua” syllable sequence is: “zhao” syllable sequence
  • the candidate word display device can use the "mu” syllable sequence
  • step 102 and step 301 this embodiment of the present application does not limit.
  • the candidate word display device may first perform step 102, and then perform step 301, that is, the candidate word display device may first obtain at least one first target syllable sequence corresponding to the first syllable sequence, and then obtain the fourth syllable. at least one second target syllable sequence corresponding to the sequence.
  • the candidate word display device may first perform step 301 and then perform step 102, that is, the candidate word display device may first obtain at least one second target syllable sequence corresponding to the fourth syllable sequence, and then obtain the first At least one first target syllable sequence corresponding to the syllable sequence.
  • the candidate word display device may perform step 102 and step 301 at the same time, that is, the candidate word display device acquires the fourth syllable sequence while acquiring at least one first target syllable sequence corresponding to the first syllable sequence corresponding at least one second target syllable sequence.
  • the candidate word display device can obtain the fourth syllable sequence (ie, the fourth syllable sequence (ie, the fourth syllable sequence) when the obtained pinyin sequence of a certain confusing word includes multiple syllable sequences corresponding to the wrong pronunciation of multiple polyphonic words.
  • At least one second target syllable sequence corresponding to another syllable sequence corresponding to the wrong pronunciation of another polyphonic word) that is, the syllable sequence corresponding to other pronunciations of the other polyphonic word
  • the candidate word display device can A certain confusing word (candidate word) corresponding to the target pinyin sequence of all the pinyin sequences is displayed, so the accuracy of displaying the confusing word can be improved.
  • the above-mentioned first syllable sequence includes: a second syllable sequence and a third syllable sequence.
  • the method for displaying candidate words provided by this embodiment of the present application may further include the following step 401 , and the above step 103 may specifically be performed through the following steps 103b implementation.
  • Step 401 The candidate word display device obtains a first numerical value and a second numerical value.
  • the above-mentioned first numerical value is: the numerical value of the first target syllable sequence corresponding to the second syllable sequence
  • the above-mentioned second numerical value is: the numerical value of the first target syllable sequence corresponding to the third syllable sequence.
  • the candidate word display device may detect the second syllable sequence and the third syllable sequence respectively to obtain the first numerical value and the second numerical value.
  • Step 103b when the first numerical value is less than the second numerical value, the candidate word display device adopts the first target syllable sequence corresponding to the second syllable sequence respectively, and replaces the first syllable sequence in the first pinyin sequence to generate at least one syllable sequence.
  • the second pinyin sequence when the first numerical value is less than the second numerical value, the candidate word display device adopts the first target syllable sequence corresponding to the second syllable sequence respectively, and replaces the first syllable sequence in the first pinyin sequence to generate at least one syllable sequence.
  • the second pinyin sequence when the first numerical value is less than the second numerical value, the candidate word display device adopts the first target syllable sequence corresponding to the second syllable sequence respectively, and replaces the first syllable sequence in the first pinyin sequence to generate at least one syllable sequence.
  • the candidate word display device can replace the first syllable sequence in the first pinyin sequence by using the first target syllable sequence corresponding to the syllable sequence with a smaller number of the corresponding first target syllable sequence (ie, the second syllable sequence).
  • the candidate word display device can use the number of the corresponding first target syllable sequence to compare the number of syllable sequences when the first syllable sequence includes multiple syllable sequences (that is, the second syllable sequence and the third syllable sequence).
  • the first target syllable sequence corresponding to the few syllable sequences (that is, the second syllable sequence) is replaced by the first syllable sequence in the first pinyin sequence.
  • the number of generated second pinyin sequences can be reduced, so that the candidate words display
  • the device can quickly determine whether the target pinyin sequence in the smaller number of second pinyin sequences satisfies the first preset condition, so as to display the confusing words (candidate words) corresponding to the target pinyin sequence, so that the display of candidate words can be improved.
  • the device shows the efficiency of confusing words.
  • step 104 may also be replaced by the following step 104e and step 104f.
  • Step 104e in the case where each second pinyin sequence in the at least one second pinyin sequence does not meet the first preset condition, the candidate word display device respectively adopts the first target syllable sequence corresponding to the third syllable sequence, and the first target syllable sequence corresponding to the third syllable sequence The first syllable sequence in a pinyin sequence is replaced to generate at least one third pinyin sequence.
  • the candidate word display device can respectively use the first target syllable sequence corresponding to the third syllable sequence to replace the first syllable sequence in the first pinyin sequence to generate at least one third pinyin sequence.
  • Step 104f In the case that the fourth pinyin sequence in the at least one third pinyin sequence satisfies the second preset condition, the candidate word display device displays the candidate word corresponding to the fourth pinyin sequence.
  • the above-mentioned second preset condition may specifically be: candidate words corresponding to the fourth pinyin sequence exist in the thesaurus.
  • the candidate word display device may generate a candidate word according to a third pinyin sequence, and determine whether the word in the thesaurus There is this one candidate word, and when it is determined that the one candidate word exists in the lexicon, the candidate word display device can determine the one third pinyin sequence as the fourth pinyin sequence, and display the candidate word corresponding to the fourth pinyin sequence .
  • the device for displaying candidate words may add candidate words corresponding to the fourth pinyin sequence to the list of candidate words corresponding to the first pinyin sequence.
  • the candidate word display device after the candidate word display device adds the candidate word corresponding to the fourth pinyin sequence to the candidate word list corresponding to the first pinyin sequence, the candidate word display device can display the candidate word.
  • the candidate word display device may use the first target syllable corresponding to the third syllable sequence sequence, the first syllable sequence in the first pinyin sequence is replaced to obtain at least one third pinyin sequence, to display the candidate corresponding to the fourth pinyin sequence under the condition that the fourth pinyin sequence satisfies the second preset condition It is not just based on the pinyin sequence corresponding to the high-frequency mispronunciation of the confusing vocabulary, the confusing vocabulary is generated, and the confusing vocabulary is displayed, so the accuracy of displaying the confusing vocabulary can be improved.
  • the method for displaying candidate words provided by the embodiment of the present application may further include the following step 501.
  • Step 501 The candidate word display device displays the candidate words corresponding to the target pinyin sequence and the first target syllable sequence corresponding to the target pinyin sequence on the candidate word display area of the input method interface.
  • the above-mentioned candidate word display area contains a certain confusing word that the user needs to input, and a syllable sequence corresponding to the correct pronunciation of the polyphonic word contained in the certain confusing word.
  • the candidate word display device may use the first marking method to mark the candidate words corresponding to the target pinyin sequence and the first target syllable sequence corresponding to the target pinyin sequence.
  • the above-mentioned first marking method may specifically be any of the following: a dotted frame marking method, a highlight marking method, a color marking method, a gray-scale marking method, a marking method with preset transparency, a flashing marking method, and the like.
  • the candidate word display device can display the candidate words corresponding to the target pinyin sequence and the first target syllable sequence corresponding to the target pinyin sequence, it can prompt the user for the syllable corresponding to the correct pronunciation of the polysyllabic word in the candidate word sequence, which can improve the user experience.
  • the execution subject may be a candidate word display device, or a control module in the candidate word display device for executing the candidate word display method.
  • the device for displaying the candidate word provided by the embodiment of the present application is described by taking the method for displaying a candidate word executed by the device for displaying a candidate word as an example.
  • FIG. 5 shows a possible schematic structural diagram of the candidate word display device involved in the embodiment of the present application.
  • the candidate word display device 60 may include: an acquisition module 61 , a generation module 62 and a display module 63 .
  • the obtaining module 61 is used to obtain the first pinyin sequence input by the user, the first phonetic sequence includes M syllable sequences; and in the case that the M syllable sequences include the first syllable sequence, obtain the first syllable At least one first target syllable sequence corresponding to the sequence; a first target syllable sequence is: in at least one target character corresponding to the first syllable sequence, a target character exists in a syllable sequence different from the first syllable sequence.
  • the generating module 62 is configured to use the at least one first target syllable sequence obtained by the obtaining module, respectively, to replace the first syllable sequence in the first pinyin sequence to generate at least one second pinyin sequence.
  • the display module 63 is configured to display candidate words corresponding to the target pinyin sequence in the case that the target pinyin sequence in the at least one second pinyin sequence generated by the generation module 62 satisfies the first preset condition.
  • M is a positive integer greater than 1.
  • the candidate word display device 60 provided in this embodiment of the present application may further include: a splitting module 64 .
  • the splitting module 64 is configured to split the first pinyin sequence into M single-word syllable sequences when the first pinyin sequence is a full pinyin sequence.
  • the above-mentioned obtaining module 61 is specifically configured to obtain at least one syllable sequence corresponding to the first syllable sequence when M is within a preset range and the M syllable sequences include the first syllable sequence.
  • the first target syllable sequence is specifically configured to obtain at least one syllable sequence corresponding to the first syllable sequence when M is within a preset range and the M syllable sequences include the first syllable sequence.
  • the first target syllable sequence is specifically configured to obtain at least one syllable sequence corresponding to the first syllable sequence when M is within a preset range and the M syllable sequences include the first syllable sequence.
  • the first target syllable sequence is specifically configured to obtain at least one syllable sequence corresponding to the first syllable sequence when M is within a preset range and the M syllable sequences include the first
  • the above-mentioned first syllable sequence includes: a second syllable sequence and a third syllable sequence.
  • the above-mentioned obtaining module 61 is also used to obtain a first numerical value and a second numerical value; wherein, the first numerical value is: the number of the first target syllable sequence corresponding to the second syllable sequence, and the second numerical value is: the third syllable sequence The number of corresponding first target syllable sequences.
  • the above generating module 62 is specifically configured to replace the first syllable sequence in the first pinyin sequence with the first target syllable sequence corresponding to the second syllable sequence respectively when the first numerical value is less than the second numerical value.
  • the above-mentioned generating module 62 is further configured to respectively adopt the third syllable sequence in the case that each second pinyin sequence in the at least one second pinyin sequence does not satisfy the first preset condition For the corresponding first target syllable sequence, the first syllable sequence in the first pinyin sequence is replaced to generate at least one third pinyin sequence.
  • the above-mentioned display module 63 is further configured to display the candidate words corresponding to the fourth pinyin sequence when the fourth pinyin sequence in the at least one third pinyin sequence generated by the generation module 62 satisfies the second preset condition.
  • the above-mentioned obtaining module 61 is further configured to obtain at least one second target syllable sequence corresponding to the fourth syllable sequence;
  • the target syllable sequence is: in at least one target character corresponding to the fourth syllable sequence, a target character exists in a syllable sequence different from the fourth syllable sequence.
  • the above generating module 62 is specifically configured to use at least one first target syllable sequence and at least one second target syllable sequence respectively to replace the first syllable sequence and the fourth syllable sequence in the first pinyin sequence.
  • the candidate word display device 60 may further include: a traversal module 65 and a determination module 66 .
  • the traversal module 65 is used to traverse at least one second pinyin sequence.
  • the determination module 66 is used to determine the candidate word corresponding to the second pinyin sequence currently traversed as the candidate word corresponding to the first pinyin sequence if there is a candidate word corresponding to the second pinyin sequence currently traversed in the thesaurus; If there is no candidate word corresponding to the currently traversed second pinyin sequence, continue to traverse the next second pinyin sequence.
  • the above-mentioned display module 63 is further configured to display the candidate words corresponding to the target pinyin sequence and the first target syllable sequence corresponding to the target pinyin sequence on the candidate word display area of the input method interface.
  • the candidate word display device since the candidate word display device can acquire the pinyin sequence of a certain confusing word, including the first syllable sequence (that is, the syllable sequence corresponding to the wrong pronunciation of the polysyllabic word).
  • the first syllable sequence generates all the pinyin sequences corresponding to all the pronunciations of the polyphonic word (that is, at least one second pinyin sequence), so that the candidate word display device can satisfy the first preset condition in the target pinyin sequence in all the pinyin sequences
  • a certain confusing word instead of generating the certain confusing word according to the pinyin sequence corresponding to the high-frequency mispronunciation of the certain confusing word, and displaying the certain confusing word, so Can improve the accuracy of displaying confusing words.
  • the candidate word display device in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • netbook or a personal digital assistant
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the candidate word display device in the embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android (Android) operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the candidate word display device provided in the embodiment of the present application can implement each process implemented by the method embodiments in FIG. 1 to FIG. 4 , and to avoid repetition, details are not described here.
  • an embodiment of the present application further provides an electronic device 70 , including a processor 72 , a memory 71 , a program or instruction stored on the memory 71 and executable on the processor 72 ,
  • an electronic device 70 including a processor 72 , a memory 71 , a program or instruction stored on the memory 71 and executable on the processor 72 ,
  • the program or instruction is executed by the processor 72, each process of the above-mentioned embodiment of the candidate word display method can be realized, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110, etc. part.
  • the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions.
  • a power source such as a battery
  • the structure of the electronic device shown in FIG. 9 does not constitute a limitation to the electronic device.
  • the electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
  • the user input unit 107 is configured to acquire a first pinyin sequence input by the user, and the first pinyin sequence includes M syllable sequences.
  • the processor 110 is configured to acquire at least one first target syllable sequence corresponding to the first syllable sequence when the M syllable sequences include the first syllable sequence; a first target syllable sequence is: the first syllable sequence corresponds to Among the at least one target character, a syllable sequence different from the first syllable sequence exists in one target character; and at least one first target syllable sequence is respectively adopted to replace the first syllable sequence in the first pinyin sequence to generate at least one a second pinyin sequence; and, in the case that the target pinyin sequence in the at least one second pinyin sequence satisfies the first preset condition, displaying a candidate word corresponding to the target pinyin sequence.
  • M is a positive integer greater than 1.
  • the electronic device since the electronic device can obtain the first syllable sequence (that is, the syllable sequence corresponding to the wrong pronunciation of a polyphonic word) in the obtained pinyin sequence of a certain confusing word, the first syllable sequence can be obtained.
  • At least one first target syllable sequence corresponding to a syllable sequence that is, the syllable sequence corresponding to other pronunciations of the polysyllabic word
  • the at least one first target syllable sequence is respectively used to replace the first syllable in the first pinyin sequence sequence, generate all phonetic sequences corresponding to all pronunciations of the polyphonic word (i.e.
  • the electronic device can display the For a confusing word, instead of just based on the pinyin sequence corresponding to the high-frequency mispronunciation of the certain confusing word, generate the certain confusing word and display the certain confusing word, so it can improve the display of the confusing word accuracy.
  • the above-mentioned M syllable sequences are M single-word syllable sequences.
  • the processor 110 is further configured to split the first pinyin sequence into M single-word syllable sequences when the first pinyin sequence is a full pinyin sequence.
  • the electronic device can split the first pinyin sequence into a plurality of single-character syllable sequences when the first pinyin sequence is a full-pinyin sequence, the electronic device can accurately determine the plurality of single-character syllables Whether the sequence contains the first syllable sequence can improve the accuracy of determining that the first syllable sequence is included, which can improve the accuracy of displaying confusing words.
  • the processor 110 is specifically configured to acquire at least one corresponding to the first syllable sequence when M is within a preset range and the M syllable sequences include the first syllable sequence.
  • the first target syllable sequence is specifically configured to acquire at least one corresponding to the first syllable sequence when M is within a preset range and the M syllable sequences include the first syllable sequence.
  • the first target syllable sequence is specifically configured to acquire at least one corresponding to the first syllable sequence when M is within a preset range and the M syllable sequences include the first syllable sequence.
  • the first target syllable sequence is specifically configured to acquire at least one corresponding to the first syllable sequence when M is within a preset range and the M syllable sequences include the first syllable sequence.
  • the first target syllable sequence is specifically configured to acquire at least one corresponding to the first s
  • the electronic device obtains at least one pinyin sequence only when the pinyin sequence input by the user may be a pinyin sequence corresponding to a confusing word, and the pinyin sequence includes a syllable sequence in which the corresponding characters contain polyphonic words.
  • the first target syllable therefore, it can be avoided that the pinyin sequence input by the user is not the pinyin sequence corresponding to the confusing vocabulary, and the electronic device will acquire at least one first target syllable sequence, that is, the electronic device is determining the pinyin sequence input by the user.
  • the candidate word corresponding to the pinyin sequence input by the user can be directly displayed, so that the efficiency of displaying the candidate word by the electronic device can be improved.
  • the above-mentioned first syllable sequence includes: a second syllable sequence and a third syllable sequence.
  • the processor 110 is further configured to obtain a first numerical value and a second numerical value; wherein, the first numerical value is: the number of the first target syllable sequence corresponding to the second syllable sequence, and the second numerical value is: the third syllable sequence corresponds to The number of the first target syllable sequence of the first target syllable sequence; and when the first value is less than the second value, the first target syllable sequence corresponding to the second syllable sequence is respectively used, and the first syllable sequence in the first pinyin sequence is used. make a replacement.
  • the electronic device may use a corresponding first target syllable sequence with a smaller number of syllable sequences when the first syllable sequence includes multiple syllable sequences (ie, the second syllable sequence and the third syllable sequence).
  • the first target syllable sequence corresponding to the syllable sequence replaces the first syllable sequence in the first pinyin sequence.
  • the number of generated second pinyin sequences can be reduced, so that the electronic device can quickly Determine whether the target pinyin sequence in the smaller number of second pinyin sequences satisfies the first preset condition, so as to display the confusing vocabulary (candidate words) corresponding to the target pinyin sequence, so that the electronic device can improve the ability of the electronic device to display the confusing vocabulary. efficiency.
  • the processor 110 is further configured to respectively adopt the third syllable sequence in the case that each second pinyin sequence in the at least one second pinyin sequence does not satisfy the first preset condition.
  • the corresponding first target syllable sequence replaces the first syllable sequence in the first pinyin sequence to generate at least one third pinyin sequence; and the fourth pinyin sequence in at least one third pinyin sequence satisfies the second preset condition
  • the candidate words corresponding to the fourth pinyin sequence are displayed.
  • the electronic device can use the first target syllable sequence corresponding to the third syllable sequence, The first syllable sequence in the first pinyin sequence is replaced to obtain at least one third pinyin sequence, so that when the fourth pinyin sequence satisfies the second preset condition, the candidate word corresponding to the fourth pinyin sequence is displayed,
  • the accuracy of displaying the confusing word can be improved.
  • the processor 110 is further configured to acquire at least one second target syllable sequence corresponding to the second syllable sequence;
  • the target syllable sequence is: in at least one target character corresponding to the fourth syllable sequence, a target character exists in a syllable sequence different from the fourth syllable sequence; and at least one first target syllable sequence and at least one second target syllable sequence are used respectively.
  • the syllable sequence is to replace the first syllable sequence and the fourth syllable sequence in the first pinyin sequence.
  • the electronic device can obtain the fourth syllable sequence (that is, another At least one second target syllable sequence corresponding to another syllable sequence corresponding to the wrong pronunciation of the polyphonic word (that is, the syllable sequence corresponding to other pronunciations of the other polyphonic word), and respectively adopt the at least one first target syllable sequence and at least one target syllable sequence.
  • a second target syllable sequence replace the first syllable sequence and the fourth syllable sequence in the M syllable sequences and replace, and generate all the phonetic sequences corresponding to all the pronunciations of the multiple polyphonic words, so that the electronic device can be used in all the phonetic alphabets.
  • the processor 110 is further configured to traverse at least one second pinyin sequence; if there is a candidate word corresponding to the currently traversed second pinyin sequence in the thesaurus, the electronic device traverses the currently traversed second pinyin sequence.
  • the candidate word corresponding to the second pinyin sequence is determined as the candidate word corresponding to the target pinyin sequence; if there is no candidate word corresponding to the currently traversed second pinyin sequence in the lexicon, the electronic device continues to traverse the next second pinyin sequence.
  • the electronic device can traverse at least one second pinyin sequence, and determine the candidate word corresponding to the second pinyin sequence existing in the thesaurus as the candidate word corresponding to the target pinyin sequence, that is, the electronic device can directly A candidate word that the user may need to input is determined, and the candidate word is displayed without the need for the user to select from at least one candidate word corresponding to the at least one second pinyin sequence, so the user's operation can be simplified, and the electronic device can improve the display of the user. Efficiency of confusing words that need to be entered.
  • the electronic device can traverse at least one second pinyin sequence, if there is no candidate word corresponding to the currently traversed second pinyin sequence in the lexicon, the currently traversed second pinyin sequence is not
  • the corresponding candidate words are determined as the candidate words corresponding to the target pinyin sequence, that is, the electronic device does not display candidate words that the user does not need to input, so the number of displayed candidate words can be reduced, thereby shortening the search for the candidate words that the user needs to input. This can improve the efficiency of user input of candidate words.
  • the display unit 106 is configured to display the candidate words corresponding to the target pinyin sequence and the first target syllable sequence corresponding to the target pinyin sequence on the candidate word display area of the input method interface.
  • the electronic device can display the candidate word corresponding to the target pinyin sequence and the first target syllable sequence corresponding to the target pinyin sequence, the user can be prompted for the syllable sequence corresponding to the correct pronunciation of the polysyllabic word in the candidate word, This can improve the user experience.
  • the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042. Such as camera) to obtain still pictures or video image data for processing.
  • the display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 107 includes a touch panel 1071 and other input devices 1072 .
  • the touch panel 1071 is also called a touch screen.
  • the touch panel 1071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • Memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems.
  • the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 110 .
  • An 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 instruction is executed by a processor, each process of the above-mentioned embodiment of the candidate word display method is implemented, and can achieve The same technical effect, in order to avoid repetition, will not be repeated here.
  • the processor is the processor in the electronic device described in the foregoing embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • An 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 the above embodiment of the method for displaying candidate words and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
  • the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
  • a storage medium such as ROM/RAM, magnetic disk, CD-ROM

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

Disclosed are a candidate word display method and apparatus, and electronic device. The candidate word display method comprises: acquiring a first pinyin sequence input by a user, wherein the first pinyin sequence comprises M syllable sequences; when the M syllable sequences include a first syllable sequence, acquiring at least one first target syllable sequence corresponding to the first syllable sequence; respectively replacing the first syllable sequence in the first pinyin sequence with the at least one first target syllable sequence, so as to generate at least one second pinyin sequence; and when a target pinyin sequence in the at least one second pinyin sequence meets a first pre-set condition, displaying a candidate word corresponding to the target pinyin sequence.

Description

候选词显示方法、装置和电子设备Candidate word display method, device and electronic device
本申请要求于2020年11月13日提交国家知识产权局、申请号为202011270348.4、申请名称为“候选词显示方法、装置和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202011270348.4 and the application name "Candidate word display method, device and electronic device" filed with the State Intellectual Property Office on November 13, 2020, the entire contents of which are incorporated by reference in in this application.
技术领域technical field
本申请属于通信技术领域,具体涉及一种候选词显示方法、装置和电子设备。The present application belongs to the field of communication technologies, and in particular relates to a method, an apparatus and an electronic device for displaying a candidate word.
背景技术Background technique
通常,电子设备可以在电子设备中预存易混淆词汇(例如包含多音字的词汇)的高频错误读音(即多音字读音为高频的错误读音)对应的拼音串,从而在用户使用电子设备输入某个易混淆词汇时,若用户输入的拼音串有误(例如易混淆词汇汇总存在多音字,拼音串输入为该多音字的另一读音对应的拼音串),则电子设备可以直接生成并显示该易混淆词汇。Usually, the electronic device can pre-store in the electronic device the pinyin strings corresponding to the high-frequency mispronunciations (that is, the mispronunciations of the polysyllabic words are high-frequency mispronunciations) of easily confusing words (for example, words containing polysyllabic words), so that when the user uses the electronic device to input For a confusing word, if the pinyin string input by the user is wrong (for example, there are polysyllabic words in the collection of confusing words, and the pinyin string input is the pinyin string corresponding to another pronunciation of the polysyllabic word), the electronic device can directly generate and display it. This confusing term.
然而,由于可能会出现用户输入的拼音串,为某个易混淆词汇的其他错误读音(例如低频错误读音)对应的拼音串的情况,电子设备并不能根据该其他错误读音对应的拼音串,生成并显示该易混淆词汇。However, because the pinyin string input by the user may be the case of the pinyin string corresponding to other wrong pronunciations (such as low-frequency wrong pronunciation) of a certain confusing vocabulary, the electronic device cannot generate the corresponding pinyin string according to the other wrong pronunciation. and display the confusing word.
因此,导致电子设备显示易混淆词汇的准确性较低。Therefore, the accuracy of the display of confusing words by the electronic device is low.
发明内容SUMMARY OF THE INVENTION
本申请实施例的目的是提供一种候选词显示方法、装置和电子设备,能够解决电子设备显示用户需要输入的词汇的准确性较低的问题。The purpose of the embodiments of the present application is to provide a method, device and electronic device for displaying a candidate word, which can solve the problem that the electronic device has low accuracy in displaying the words that the user needs to input.
为了解决上述技术问题,本申请是这样实现的:In order to solve the above technical problems, this application is implemented as follows:
第一方面,本申请实施例提供了一种候选词显示方法,该方法包括:获取用户输入的第一拼音序列,该第一拼音序列中包括M个音节序列;在M个音节序列中包含有第一音节序列的情况下,获取第一音节序列对应的至少一个第一目标音节序列;一个第一目标音节序列为:该第一音节序列对应的至少一个目标字符中,一个目标字符存在的与该第一音节序列不同的音节序列;分别采用至少一个第一目标音节序列,将第一拼音序列中的第一音节序列进行替换,生成至少一个第二拼音序列;在至少一个第二拼音序列中的目标拼音序列满足第一预设条件的情况下,显示该目标拼音序列对应的候选词;其中,M为大于1的正整数。In a first aspect, an embodiment of the present application provides a method for displaying a candidate word. The method includes: acquiring a first pinyin sequence input by a user, where the first pinyin sequence includes M syllable sequences; the M syllable sequences include In the case of the first syllable sequence, obtain at least one first target syllable sequence corresponding to the first syllable sequence; a first target syllable sequence is: in at least one target character corresponding to the first syllable sequence, a target character exists and The syllable sequences with different first syllable sequences; respectively adopt at least one first target syllable sequence to replace the first syllable sequence in the first pinyin sequence to generate at least one second pinyin sequence; in at least one second pinyin sequence When the target pinyin sequence of 1 meets the first preset condition, the candidate words corresponding to the target pinyin sequence are displayed; wherein, M is a positive integer greater than 1.
第二方面,本申请实施例提供了一种候选词显示装置,该候选词显示装置:获取模块、生成模块和显示模块。其中,获取模块,用于获取用户输入的第一拼音序列,该第一拼音序列中包括M个音节序列;并在该M个音节序列中包含有第一音节序列的情况下,获取第一音节序列对应的至少一个第一目标音节序列;一个第一目标音节序列为:第一音节序列对应的至少一个目标字符中,一个目标字符存在的与该第一音节序列不同的音节序列。生成模块,用于分别采用获取模块获取的至少一个第一目标音节序列,将第一拼音序列中的第一音节序列进行替换,生成至少一个第二拼音序列。显示模块,用于在生成模块生成的至少一个第二拼音序列中的目标拼音序列满足第一 预设条件的情况下,显示该目标拼音序列对应的候选词。其中,M为大于1的正整数。In a second aspect, an embodiment of the present application provides a candidate word display device, where the candidate word display device includes an acquisition module, a generation module, and a display module. Wherein, the acquisition module is used to acquire the first pinyin sequence input by the user, and the first pinyin sequence includes M syllable sequences; and when the M syllable sequences include the first syllable sequence, acquire the first syllable At least one first target syllable sequence corresponding to the sequence; a first target syllable sequence is: in at least one target character corresponding to the first syllable sequence, a target character exists in a syllable sequence different from the first syllable sequence. The generating module is configured to replace the first syllable sequence in the first pinyin sequence by using the at least one first target syllable sequence acquired by the acquiring module respectively to generate at least one second pinyin sequence. The display module is used to display the candidate words corresponding to the target pinyin sequence when the target pinyin sequence in the at least one second pinyin sequence generated by the generation module satisfies the first preset condition. Among them, M is a positive integer greater than 1.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.
在本申请实施例中,电子设备可以根据用户输入的第一拼音序列中包括的M个音节序列,在该M个音节序列中包括第一音节序列的情况下,获取该第一音节序列对应的至少一个第一目标音节序列(一个第一目标音节序列为第一音节序列对应的至少一个目标字符中,目标字符存在的与该第一音节序列不同的音节序列),并分别采用至少一个第一目标音节序列,将该第一拼音序列中的第一音节序列进行替换,生成至少一个第二拼音序列,从而电子设备可以在该至少一个第二音频序列中的目标拼音序列满足第一预设条件的情况下,显示该目标拼音序列对应的候选词。由于电子设备可以在获取的某个易混淆词汇的拼音序列包括第一音节序列(即多音字错误读音对应的音节序列)的情况下,获取该第一音节序列对应的至少一个第一目标音节序列(即该多音字其他读音对应的音节序列),并分别采用该至少一个第一目标音节序列,替换第一拼音序列中的第一音节序列,生成该多音字的所有读音对应的所有拼音序列(即至少一个第二拼音序列),从而电子设备可以在该所有拼音序列中的目标拼音序列满足第一预设条件的情况下,显示该某个易混淆词汇,而并非仅根据该某个易混淆词汇的高频错误读音对应的拼音序列,生成该某个易混淆词汇,并显示该某个易混淆词汇,因此可以提升显示易混淆词汇的准确性。In the embodiment of the present application, the electronic device may obtain the corresponding M syllable sequence according to the M syllable sequence included in the first pinyin sequence input by the user, and in the case that the M syllable sequence includes the first syllable sequence At least one first target syllable sequence (a first target syllable sequence is at least one target character corresponding to the first syllable sequence, and the target character exists in a syllable sequence different from the first syllable sequence), and at least one first syllable sequence is adopted respectively. The target syllable sequence is to replace the first syllable sequence in the first pinyin sequence to generate at least one second pinyin sequence, so that the electronic device can satisfy the first preset condition in the target pinyin sequence in the at least one second audio sequence In the case of , the candidate words corresponding to the target pinyin sequence are displayed. Because the electronic device can acquire at least one first target syllable sequence corresponding to the first syllable sequence when the acquired pinyin sequence of a confusing vocabulary includes the first syllable sequence (that is, the syllable sequence corresponding to the mispronunciation of the polyphonic word). (that is, the syllable sequence corresponding to other pronunciations of the polysyllabic word), and respectively adopt the at least one first target syllable sequence, replace the first syllable sequence in the first phonetic sequence, and generate all the phonetic sequences corresponding to all the pronunciations of the polyphonic word ( i.e. at least one second pinyin sequence), so that the electronic device can display the certain confusing vocabulary when the target pinyin sequence in all the pinyin sequences satisfies the first preset condition, rather than only based on the certain confusing vocabulary The pinyin sequence corresponding to the high-frequency mispronunciation of the vocabulary generates the confusing vocabulary and displays the confusing vocabulary, so the accuracy of displaying the confusing vocabulary can be improved.
附图说明Description of drawings
图1是本申请实施例提供的候选词显示方法的示意图之一;1 is one of the schematic diagrams of a candidate word display method provided by an embodiment of the present application;
图2是本申请实施例提供的候选词显示方法的示意图之二;2 is the second schematic diagram of the candidate word display method provided by the embodiment of the present application;
图3是本申请实施例提供的候选词显示方法的示意图之三;3 is the third schematic diagram of the method for displaying candidate words provided by an embodiment of the present application;
图4是本申请实施例提供的候选词显示方法的示意图之四;4 is a fourth schematic diagram of a method for displaying candidate words provided by an embodiment of the present application;
图5是本申请实施例提供的候选词显示装置的结构示意图之一;5 is one of the schematic structural diagrams of the candidate word display device provided by the embodiment of the present application;
图6是本申请实施例提供的候选词显示装置的结构示意图之二;6 is a second schematic structural diagram of a candidate word display device provided by an embodiment of the present application;
图7是本申请实施例提供的候选词显示装置的结构示意图之三;7 is a third schematic structural diagram of a candidate word display device provided by an embodiment of the present application;
图8是本申请实施例提供的电子设备的结构示意图;8 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图9是本申请实施例提供的电子设备的硬件示意图。FIG. 9 is a schematic diagram of hardware of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between "first", "second", etc. The objects are usually of one type, and the number of objects is not limited. For example, the first object may be one or more than one. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的候选词显示方法进行详细地说明。The method for displaying candidate words provided by the embodiments of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.
本申请实施例提供的候选词显示方法可以应用于用户输入易混淆词汇场景。The candidate word display method provided by the embodiment of the present application can be applied to a scenario where a user inputs a confusing vocabulary.
针对用户输入易混淆词汇场景,假设用户需要在电子设备中输入某个易混淆词汇(例如词汇A),该词汇A中包括一个多音字(例如多音字A),该多音字A包括多个读音(例如读音1、读音2和读音3),读音1为该多音字A在该词汇A中的高频错误读音,读音2为该多音字A在该词汇A中的错误读音,读音3为该多音字A在该词汇A中的正确读音,在多音字A为读音1时,该词汇A对应的拼音序列为拼音序列1,在多音字A为读音2时,该词汇A对应的拼音序列为拼音序列2,在多音字A为读音3时,该词汇A对应的拼音序列为拼音序列3。可选地,可以在电子设备中预存该拼音序列1,从而在用户输入的拼音序列有误(例如为该拼音序列1)时,直接生成该词汇A,并显示该词汇A。然而,由于用户输入的拼音序列可能为拼音序列2,而电子设备并不能根据该拼音序列2,生成该词汇A,并显示该词汇A,电子设备可能会生成与该拼音序列2对应的其他词汇,并显示该其他词汇,从而导致电子设备显示用户需要输入的词汇的准确性较低。For the scenario where the user inputs a confusing vocabulary, it is assumed that the user needs to input a confusing vocabulary (such as vocabulary A) in the electronic device, the vocabulary A includes a polyphonic word (such as polyphonic word A), and the polyphonic word A includes multiple pronunciations (such as pronunciation 1, pronunciation 2 and pronunciation 3), pronunciation 1 is the high-frequency wrong pronunciation of the polyphonic word A in the vocabulary A, pronunciation 2 is the wrong pronunciation of the polyphonic word A in the vocabulary A, and pronunciation 3 is the The correct pronunciation of polysyllabic word A in this vocabulary A, when polysyllabic word A is pronunciation 1, the corresponding pinyin sequence of this vocabulary A is pinyin sequence 1, and when polysyllabic word A is pronunciation 2, the corresponding pinyin sequence of this vocabulary A is: Pinyin sequence 2, when the polyphonic word A is pronunciation 3, the pinyin sequence corresponding to the word A is pinyin sequence 3. Optionally, the pinyin sequence 1 can be pre-stored in the electronic device, so that when the pinyin sequence input by the user is incorrect (for example, the pinyin sequence 1), the vocabulary A is directly generated and displayed. However, since the pinyin sequence input by the user may be the pinyin sequence 2, and the electronic device cannot generate the word A according to the pinyin sequence 2 and display the word A, the electronic device may generate other words corresponding to the pinyin sequence 2 , and display the other words, so that the electronic device displays the words that the user needs to input with low accuracy.
然而,在本申请实施例中,若用户输入的拼音序列为拼音序列2,则电子设备可以获取该拼音序列2,并可以确定该拼音序列2的多个单字音节序列中是否包含有多音字音节序列,在确定该拼音序列2的多个单字音节序列中包含有多音字音节序列1(即多音字A为读音2时,该多音字A对应的音节序列)的情况下,电子设备可以获取该多音字音节序列1对应的至少一个易混淆读音(即该音节序列1对应的所有多音字的所有读音)音节序列,然后分别采用这些易混淆读音音节序列,将该拼音序列2中的多音字音节序列1进行替换,生成至少一个新的拼音序列(该至少一个新的拼音序列中包括拼音序列1和拼音序列3),从而电子设备可以根据该拼音序列2,显示其对应的候选词(即词汇A),从而提升了显示易混淆词汇的准确性。However, in the embodiment of the present application, if the pinyin sequence input by the user is the pinyin sequence 2, the electronic device can obtain the pinyin sequence 2, and can determine whether the multiple single-character syllable sequences of the pinyin sequence 2 contain polyphonic syllables Sequence, when it is determined that a plurality of single-character syllable sequences of this pinyin sequence 2 contain a polyphonic word syllable sequence 1 (that is, when polyphonic word A is pronunciation 2, the syllable sequence corresponding to this polyphonic word A), the electronic device can obtain the At least one easy-to-confuse pronunciation corresponding to polysyllabic syllable sequence 1 (that is, all pronunciations of all polysyllabic words corresponding to this syllable sequence 1) syllable sequence, and then adopt these easy-to-confuse pronunciation syllable sequences respectively, and the polysyllabic syllables in this pinyin sequence 2 Sequence 1 is replaced, and at least one new pinyin sequence is generated (the at least one new pinyin sequence includes pinyin sequence 1 and pinyin sequence 3), so that the electronic device can display its corresponding candidate words (i.e. vocabulary words) according to the pinyin sequence 2. A), thereby improving the accuracy of displaying confusing words.
图1示出了本申请实施例提供的一种候选词显示方法的流程图。如图1所示,本申请实施例提供的候选词显示方法可以包括下述的步骤101至步骤104。FIG. 1 shows a flowchart of a method for displaying a candidate word provided by an embodiment of the present application. As shown in FIG. 1 , the method for displaying candidate words provided by the embodiment of the present application may include the following steps 101 to 104 .
步骤101、候选词显示装置获取用户输入的第一拼音序列。Step 101: The candidate word display device acquires the first pinyin sequence input by the user.
可选地,本申请实施例中,当用户在候选词显示装置中输入某个易混淆词汇时,用户可以对文本输入框进行输入,以使得候选词显示装置显示输入法界面,从而用户可以根据该某个易混淆词汇对应的拼音序列,对候选词显示装置进行输入,以使得候选词显示装置获取用户输入的第一拼音序列。Optionally, in this embodiment of the present application, when the user inputs a confusing word in the candidate word display device, the user can input a text input box, so that the candidate word display device displays an input method interface, so that the user can The pinyin sequence corresponding to a certain confusing word is input to the candidate word display device, so that the candidate word display device obtains the first pinyin sequence input by the user.
需要说明的是,上述“易混淆词汇”可以理解为:包含至少一个多音字的词汇。It should be noted that the above-mentioned "confused words" can be understood as: words that contain at least one polysyllabic word.
本申请实施例中,上述第一拼音序列中包括M个音节序列,M为大于1的正整数。In the embodiment of the present application, the above-mentioned first pinyin sequence includes M syllable sequences, where M is a positive integer greater than 1.
可选地,本申请实施例中,针对M个音节序列中的每个音节序列,一个音节序列对应至少一个字符,每个字符可以包括以下任一项:数字、文字、字母。Optionally, in this embodiment of the present application, for each syllable sequence in the M syllable sequences, one syllable sequence corresponds to at least one character, and each character may include any of the following: numbers, characters, and letters.
步骤102、在M个音节序列中包含有第一音节序列的情况下,候选词显示装置获取第一音节序列对应的至少一个第一目标音节序列。Step 102: In the case that the first syllable sequence is included in the M syllable sequences, the candidate word display device acquires at least one first target syllable sequence corresponding to the first syllable sequence.
本申请实施例中,上述第一音节序列具体可以为:多音字对应的音节序列。例如,多音字的一个读音对应的音节序列。In this embodiment of the present application, the above-mentioned first syllable sequence may specifically be: a syllable sequence corresponding to a polyphonic word. For example, a sequence of syllables corresponding to one pronunciation of a polyphonic word.
可选地,本申请实施例中,上述第一音节序列可以包括多个音节序列。Optionally, in this embodiment of the present application, the above-mentioned first syllable sequence may include multiple syllable sequences.
本申请实施例中,第一目标音节序列为:第一音节序列对应的至少一个目标字符中,目标字符存在的与第一音节序列不同的音节序列。In the embodiment of the present application, the first target syllable sequence is: in at least one target character corresponding to the first syllable sequence, a syllable sequence different from the first syllable sequence exists in the target character.
需要说明的是,上述“第一音节序列对应的至少一个第一目标音节序列”可以理解为:第一音节序列对应的所有多音字的至少一个其他读音(即除第一音节序列对应的读音之外的读音)对应的音节序列。It should be noted that the above "at least one first target syllable sequence corresponding to the first syllable sequence" can be understood as: at least one other pronunciation of all polyphonic words corresponding to the first syllable sequence (that is, except for the pronunciation corresponding to the first syllable sequence) external pronunciation) corresponding syllable sequence.
示例性地,假设第一音节序列为“mo”音节序列,该“mo”音节序列对应的至少一个目标字符为“模”多音字、“摩”多音字、“脉”多音字和“没”多音字等,则“mo”音节序列的至少一个第一目标音节序列为:“模”多音字的其他读音对应的音节序列(即“mu”音节序列)、“摩”多音字的其他读音对应的音节序列(即“ma”音节序列)、“脉”多音字的其他读音对应的音节序列(即“mai”音节序列)和“没”多音字的其他读音对应的音节序列(即“mei”音节序列),即,第一音节序列“mo”对应的至少一个第一目标音节序列包括“mu”、“ma”、“mai”、“mei”。Exemplarily, it is assumed that the first syllable sequence is a "mo" syllable sequence, and at least one target character corresponding to the "mo" syllable sequence is the polyphonic word "mod", the polyphonic word "mo", the polyphonic word "mai", and the polyphonic word "no". Polysyllabic words etc., then at least one first target syllable sequence of "mo" syllable sequence is: the syllable sequence corresponding to other pronunciations of "mod" polysyllabic word (that is, "mu" syllable sequence), the other pronunciations of "Mo" polyphonic word corresponding to The syllable sequence of the "ma" syllable sequence (that is, the "ma" syllable sequence), the syllable sequence corresponding to other pronunciations of the "mai" polysyllabic word (that is, the "mai" syllable sequence), and the syllable sequence corresponding to other pronunciations of the "mei" polyphonic word (that is, "mei" syllable sequence), that is, the at least one first target syllable sequence corresponding to the first syllable sequence "mo" includes "mu", "ma", "mai", and "mei".
可选地,本申请实施例中,候选词显示装置可以在候选词显示装置中预存至少一个音节序列集合,每个音节序列集合中分别包括一个音节序列和该一个音节序列对应的至少一个易混淆音节序列,一个易混淆音节序列为:该一个音节序列对应的至少一个字符中,一个字符存在的与该一个音节序列不同的音节序列,从而候选词显示装置可以根据第一音节序列,从该至少一个音节序列集合中的至少一个音节序列中,确定出与第一音节序列对应的一个音节序列,并将该一个音节序列对应的一个音节序列集合中的至少一个易混淆音节序列,确定为至少一个第一目标音节序列,以获取该至少一个第一目标音节序列。Optionally, in the embodiment of the present application, the candidate word display device may pre-store at least one syllable sequence set in the candidate word display device, and each syllable sequence set respectively includes a syllable sequence and at least one confusing syllable sequence corresponding to the syllable sequence. A syllable sequence, an easily confusing syllable sequence is: in at least one character corresponding to the one syllable sequence, a character exists in a syllable sequence different from the one syllable sequence, so that the candidate word display device can be based on the first syllable sequence, from the at least one syllable sequence. In at least one syllable sequence in a syllable sequence set, a syllable sequence corresponding to the first syllable sequence is determined, and at least one confusing syllable sequence in a syllable sequence set corresponding to the one syllable sequence is determined as at least one syllable sequence. the first target syllable sequence to obtain the at least one first target syllable sequence.
步骤103、候选词显示装置分别采用至少一个第一目标音节序列,将第一拼音序列中的第一音节序列进行替换,生成至少一个第二拼音序列。Step 103: The candidate word display device adopts at least one first target syllable sequence respectively, and replaces the first syllable sequence in the first pinyin sequence to generate at least one second pinyin sequence.
可选地,本申请实施例中,在第一音节序列包括一个音节序列的情况下,候选词显示装置可以采用第一个第一目标音节序列,将第一拼音序列中的第一音节序列进行替换,生成第一个第二拼音序列,再采用第二个第一目标音节序列,将第一拼音序列中的第一音节序列进行替换,生成第二个第二拼音序列,以此类推,直至生成最后一个第二拼音序列。Optionally, in the embodiment of the present application, when the first syllable sequence includes one syllable sequence, the candidate word display device may use the first first target syllable sequence, and perform the first syllable sequence in the first pinyin sequence. Replace, generate the first second pinyin sequence, and then use the second first target syllable sequence to replace the first syllable sequence in the first pinyin sequence to generate the second second pinyin sequence, and so on, until Generate the last second pinyin sequence.
示例性地,假设用户输入的拼音序列为“moban”拼音序列,该“moban”拼音序列包括2个音节序列(即“mo”音节序列和“ban”音节序列),该“mo”音节序列为第一音节序列,该“mo”音节序列的至少一个第一目标音节序列为:“mu”音节序列、“ma”音节序列、“mai”音节序列和“mei”音节序列,则候选词显示装置可以采用“mu”音节序列,将“moban”拼音序列中的“mo”音节序列进行替换,生成“muban” 拼音序列,并可以采用“ma”音节序列,将“moban”拼音序列中的“mo”音节序列进行替换,生成“maban”拼音序列,再可以采用“mai”音节序列,将“moban”拼音序列中的“mo”音节序列进行替换,生成“maiban”拼音序列,然后可以采用“mei”音节序列,再将“moban”拼音序列中的“mo”音节序列进行替换,生成“meiban”拼音序列,以生成至少一个(即四个)第二拼音序列。Exemplarily, assuming that the pinyin sequence input by the user is the "moban" pinyin sequence, the "moban" pinyin sequence includes 2 syllable sequences (that is, the "mo" syllable sequence and the "ban" syllable sequence), and the "mo" syllable sequence is The first syllable sequence, at least one first target syllable sequence of the "mo" syllable sequence is: "mu" syllable sequence, "ma" syllable sequence, "mai" syllable sequence and "mei" syllable sequence, then the candidate word display device The "mu" syllable sequence can be used to replace the "mo" syllable sequence in the "moban" pinyin sequence to generate the "muban" pinyin sequence, and the "ma" syllable sequence can be used to replace the "mo" in the "moban" pinyin sequence. ” syllable sequence is replaced to generate the “maban” pinyin sequence, and then the “mai” syllable sequence can be used to replace the “mo” syllable sequence in the “moban” pinyin sequence to generate the “maiban” pinyin sequence, and then the “mei” syllable sequence can be used. ” syllable sequence, and then replace the “mo” syllable sequence in the “moban” pinyin sequence to generate the “meiban” pinyin sequence, so as to generate at least one (ie four) second pinyin sequence.
可以理解,候选词显示装置可以采用至少一个第一目标音节序列,与第一拼音序列除第一音节序列之外的音节序列进行组合,以分别生成包含多音字的其他读音对应的音节序列的拼音序列。It can be understood that the candidate word display device can adopt at least one first target syllable sequence, and combine it with the syllable sequence other than the first syllable sequence of the first pinyin sequence to respectively generate the pinyin containing the syllable sequences corresponding to other pronunciations of the polysyllabic word. sequence.
可选地,本申请实施例中,在第一音节序列包括多个音节序列的情况下,候选词显示装置可以获取该多个音节序列中的每个音节序列对应的第一目标音节序列,并分别采用对应的第一目标音节序列的个数值最大的一个音节序列对应的第一个第一目标音节序列,将第一拼音序列中的第一音节序列进行替换,生成第一个第二拼音序列,再采用第二个第一目标音节序列,将第一拼音序列中的第一音节序列进行替换,生成第二个第二拼音序列,以此类推,直至生成最后一个第二拼音序列。Optionally, in this embodiment of the present application, when the first syllable sequence includes multiple syllable sequences, the candidate word display device may acquire the first target syllable sequence corresponding to each syllable sequence in the multiple syllable sequences, and respectively adopt the first first target syllable sequence corresponding to the syllable sequence with the largest number of the corresponding first target syllable sequence, replace the first syllable sequence in the first pinyin sequence, and generate the first second pinyin sequence , and then use the second first target syllable sequence to replace the first syllable sequence in the first pinyin sequence to generate the second second pinyin sequence, and so on until the last second pinyin sequence is generated.
步骤104、在至少一个第二拼音序列中的目标拼音序列满足第一预设条件的情况下,候选词显示装置显示目标拼音序列对应的候选词。Step 104: Under the condition that the target pinyin sequence in the at least one second pinyin sequence satisfies the first preset condition, the candidate word display device displays the candidate word corresponding to the target pinyin sequence.
可选地,本申请实施例中,上述目标拼音序列可以为至少一个第二拼音序列中的一个第二拼音序列或多个拼音序列。Optionally, in this embodiment of the present application, the above-mentioned target pinyin sequence may be one second pinyin sequence or multiple pinyin sequences in at least one second pinyin sequence.
可选地,本申请实施例中,上述第一预设条件具体可以为:词库中存在与目标拼音序列对应的候选词。Optionally, in the embodiment of the present application, the above-mentioned first preset condition may specifically be: there are candidate words corresponding to the target pinyin sequence in the lexicon.
可选地,本申请实施例中,上述目标拼音序列对应的候选词可以为一个候选词或者多个候选词。Optionally, in this embodiment of the present application, the candidate word corresponding to the above-mentioned target pinyin sequence may be one candidate word or multiple candidate words.
进一步可选地,本申请实施例中,针对至少一个第二拼音序列中的每个第二拼音序列,候选词显示装置可以根据一个第二拼音序列,生成一个候选词,并确定词库中是否存在该一个候选词,在确定词库中存在该一个候选词的情况下,候选词显示装置可以将该一个第二拼音序列确定为目标拼音序列,并显示该目标拼音序列对应的候选词。Further optionally, in the embodiment of the present application, for each second pinyin sequence in the at least one second pinyin sequence, the candidate word display device may generate a candidate word according to a second pinyin sequence, and determine whether the word in the thesaurus The one candidate word exists, and when it is determined that the one candidate word exists in the lexicon, the candidate word display device may determine the one second pinyin sequence as the target pinyin sequence, and display the candidate word corresponding to the target pinyin sequence.
可选地,本申请实施例中,候选词显示装置可以将目标拼音序列对应的候选词添加至第一拼音序列对应的候选词列表中。Optionally, in this embodiment of the present application, the device for displaying candidate words may add candidate words corresponding to the target pinyin sequence to the candidate word list corresponding to the first pinyin sequence.
可选地,本申请实施例中,在候选词显示装置将目标拼音序列对应的候选词,添加至第一拼音序列对应的候选词列表中之后,候选词显示装置可以显示该候选词。Optionally, in this embodiment of the present application, after the candidate word display device adds the candidate word corresponding to the target pinyin sequence to the candidate word list corresponding to the first pinyin sequence, the candidate word display device may display the candidate word.
本申请实施例提供的候选词显示方法,候选词显示装置可以根据用户输入的第一拼音序列中包括的M个音节序列,在该M个音节序列中包括第一音节序列的情况下,获取该第一音节序列对应的至少一个第一目标音节序列(第一目标音节序列为第一音节序列对应的至少一个目标字符中,目标字符存在的与该第一音节序列不同的音节序列),并分别采用至少一个第一目标音节序列,将该第一拼音序列中的第一音节序列进行替换,生成至少一个第二拼音序列,从而候选词显示装置可以在该至少一个第二音频序列中的目标拼音序列满足第一预设条件的情况下,显示该目标拼音序列对应的候选词。由于候选词显示装置可以在获取的易混淆词汇的拼音序列包括第一音节序列 (即多音字的错误读音对应的音节序列)的情况下,获取该第一音节序列对应的至少一个第一目标音节序列(即该多音字的其他读音对应的音节序列),并分别采用该至少一个第一目标音节序列,替换该第一拼音序列中的该第一音节序列,生成该多音字的所有读音对应的所有拼音序列(即至少一个第二拼音序列),从而候选词显示装置可以在该所有拼音序列中的目标拼音序列满足第一预设条件的情况下,显示该某个易混淆词汇,而并非仅根据该某个易混淆词汇的高频错误读音对应的拼音序列,生成该某个易混淆词汇,并显示该某个易混淆词汇,因此可以提升显示易混淆词汇的准确性。In the method for displaying candidate words provided by the embodiments of the present application, the device for displaying candidate words may obtain the M syllable sequences included in the first pinyin sequence input by the user and when the M syllable sequences include the first syllable sequence. At least one first target syllable sequence corresponding to the first syllable sequence (the first target syllable sequence is at least one target character corresponding to the first syllable sequence, and the target character exists in a syllable sequence different from the first syllable sequence), and respectively At least one first target syllable sequence is used to replace the first syllable sequence in the first pinyin sequence to generate at least one second pinyin sequence, so that the candidate word display device can display the target pinyin in the at least one second audio sequence When the sequence satisfies the first preset condition, the candidate words corresponding to the target pinyin sequence are displayed. Because the candidate word display device can acquire at least one first target syllable corresponding to the first syllable sequence when the acquired pinyin sequence of confusing words includes the first syllable sequence (ie, the syllable sequence corresponding to the wrong pronunciation of the polyphonic word). sequence (that is, the syllable sequence corresponding to other pronunciations of the polyphonic word), and respectively adopt the at least one first target syllable sequence to replace the first syllable sequence in the first pinyin sequence, and generate all the corresponding pronunciations of the polyphonic word. All pinyin sequences (that is, at least one second pinyin sequence), so that the candidate word display device can display the certain confusing word when the target pinyin sequence in the all pinyin sequences satisfies the first preset condition, instead of only According to the pinyin sequence corresponding to the high-frequency wrong pronunciation of the certain confusing word, the certain confusing word is generated, and the certain confusing word is displayed, so that the accuracy of displaying the confusing word can be improved.
可选地,本申请实施例中,上述步骤104具体可以通过下述的步骤104a至步骤104d实现。Optionally, in this embodiment of the present application, the foregoing step 104 may be specifically implemented through the following steps 104a to 104d.
步骤104a、候选词显示装置遍历至少一个第二拼音序列。Step 104a: The candidate word display device traverses at least one second pinyin sequence.
本申请实施例中,候选词显示装置可以依次遍历至少一个第二拼音序列中的每个第二拼音序列,以遍历至少一个第二拼音序列。In this embodiment of the present application, the candidate word display device may sequentially traverse each second pinyin sequence in the at least one second pinyin sequence to traverse the at least one second pinyin sequence.
步骤104b、候选词显示装置确定词库中是否存在当前遍历的第二拼音序列对应的候选词。Step 104b: The candidate word display device determines whether there is a candidate word corresponding to the second pinyin sequence currently traversed in the thesaurus.
步骤104c、若词库中存在当前遍历的第二拼音序列对应的候选词,则候选词显示装置将当前遍历的第二拼音序列对应的候选词确定为目标拼音序列对应的候选词。Step 104c: If there is a candidate word corresponding to the currently traversed second pinyin sequence in the thesaurus, the candidate word display device determines the candidate word corresponding to the currently traversed second pinyin sequence as the candidate word corresponding to the target pinyin sequence.
本申请实施例中,若词库中存在当前遍历的第二拼音序列对应的候选词,则可以认为,该当前遍历的第二拼音序列可能为用户需要输入的某个易混淆词汇对应的拼音序列,因此,候选词显示装置可以将当前遍历的第二拼音序列对应的候选词确定为目标拼音序列的候选词。In the embodiment of the present application, if there are candidate words corresponding to the second pinyin sequence currently traversed in the thesaurus, it can be considered that the second pinyin sequence currently traversed may be the pinyin sequence corresponding to a confusing word that the user needs to input , therefore, the candidate word display device may determine the candidate word corresponding to the second pinyin sequence currently traversed as the candidate word of the target pinyin sequence.
本申请实施例中,由于候选词显示装置可以遍历至少一个第二拼音序列,并将词库中存在的第二拼音序列对应的候选词,确定为目标拼音序列对应的候选词,即,候选词显示装置可以直接确定出用户可能需要输入的候选词,并显示该候选词,而无需用户从至少一个第二拼音序列对应的至少一个候选词中进行选择,因此可以简化用户的操作,如此可以提升候选词显示装置显示用户需要输入的易混淆词汇的效率。In the embodiment of the present application, since the candidate word display device can traverse at least one second pinyin sequence, and determine the candidate word corresponding to the second pinyin sequence existing in the thesaurus as the candidate word corresponding to the target pinyin sequence, that is, the candidate word The display device can directly determine the candidate word that the user may need to input, and display the candidate word, without the need for the user to select from at least one candidate word corresponding to the at least one second pinyin sequence, so the operation of the user can be simplified, and the improvement can be improved. The candidate word display means displays the efficiency of confusing words that the user needs to input.
步骤104d、若词库中不存在当前遍历的第二拼音序列对应的候选词,则候选词显示装置继续遍历下一个第二拼音序列。Step 104d: If there is no candidate word corresponding to the currently traversed second pinyin sequence in the thesaurus, the candidate word display device continues to traverse the next second pinyin sequence.
本申请实施例中,若词库中不存在当前遍历的第二拼音序列对应的候选词,则可以认为,该当前遍历的第二拼音序列并不为用户需要输入的某个易混淆词汇对应的拼音序列,因此,候选词显示装置可以继续遍历下一个第二拼音序列。In the embodiment of the present application, if there is no candidate word corresponding to the second pinyin sequence currently traversed in the thesaurus, it can be considered that the second pinyin sequence currently traversed does not correspond to a confusing word that the user needs to input Pinyin sequence, therefore, the candidate word display device can continue to traverse the next second pinyin sequence.
本申请实施例中,由于候选词显示装置可以遍历至少一个第二拼音序列,在词库中不存在当前遍历的第二拼音序列对应的候选词的情况下,并不将该当前遍历的第二拼音序列对应的候选词确定为目标拼音序列对应的候选词,即,候选词显示装置并不显示用户并不需要输入的候选词,因此可以减少显示的候选词的数量,从而可以缩短用户查找需要输入的候选词的耗时,如此可以提升用户输入候选词的效率。In the embodiment of the present application, since the candidate word display device can traverse at least one second pinyin sequence, in the case where there is no candidate word corresponding to the currently traversed second pinyin sequence in the thesaurus, the currently traversed second pinyin sequence is not traversed. The candidate words corresponding to the pinyin sequence are determined as the candidate words corresponding to the target pinyin sequence, that is, the candidate word display device does not display the candidate words that the user does not need to input, so the number of displayed candidate words can be reduced, thereby shortening the user search needs. The time-consuming input of candidate words can improve the efficiency of user input of candidate words.
可选地,本申请实施例中,上述M个音节序列为M个单字音节序列。具体的,结合图1,如图2所示,在上述步骤101之前,本申请实施例提供的候选词显示方法还可以包括下述的步骤201。Optionally, in this embodiment of the present application, the above-mentioned M syllable sequences are M single-word syllable sequences. Specifically, with reference to FIG. 1 , as shown in FIG. 2 , before the above step 101 , the method for displaying candidate words provided by this embodiment of the present application may further include the following step 201 .
步骤201、在第一拼音序列为全拼拼音序列的情况下,候选词显示装置将第一拼 音序列拆分为M个单字音节序列。 Step 201, when the first pinyin sequence is a full pinyin sequence, the candidate word display device splits the first pinyin sequence into M single-word syllable sequences.
进一步可选地,本申请实施例中,在用户根据某个易混淆词汇对应的第一拼音序列,对候选词显示装置进行输入之后,候选词显示装置可以对该第一拼音序列进行检测,以确定该第一拼音序列是否为全拼拼音序列。Further optionally, in this embodiment of the present application, after the user inputs to the candidate word display device according to the first pinyin sequence corresponding to a certain confusing word, the candidate word display device may detect the first pinyin sequence to display the first pinyin sequence. It is determined whether the first pinyin sequence is a full pinyin sequence.
进一步可选地,本申请实施例中,在第一拼音序列为全拼拼音序列的情况下,候选词显示装置可以采用预设算法,将该第一拼音序列进行拆分处理,得到M个单字音节序列。Further optionally, in the embodiment of the present application, when the first pinyin sequence is a full pinyin sequence, the candidate word display device may use a preset algorithm to split the first pinyin sequence to obtain M single characters. syllable sequence.
需要说明的是,上述“单字音节序列”可以理解为:单字文字的音节序列。It should be noted that the above "single-word syllable sequence" can be understood as: a syllable sequence of a single-word character.
示例性地,上述预设算法具体可以为拼音分词算法。需要说明的是,针对拼音分词算法的具体描述,可以参考相关技术中的说明,本申请实施例再此不予赘述。Exemplarily, the above preset algorithm may specifically be a Pinyin word segmentation algorithm. It should be noted that, for the specific description of the pinyin word segmentation algorithm, reference may be made to the description in the related art, which will not be repeated in this embodiment of the present application.
本申请实施例中,由于候选词显示装置可以在第一拼音序列为全拼拼音序列的情况下,将第一拼音序列拆分为多个单字音节序列,从而候选词显示装置可以准确地确定该多个单字音节序列中是否包含有第一音节序列,因此可以提升确定包含第一音节序列的准确性,如此可以提升显示易混淆词汇的准确性。In the embodiment of the present application, since the candidate word display device can split the first pinyin sequence into a plurality of single-word syllable sequences when the first pinyin sequence is a full pinyin sequence, the candidate word display device can accurately determine the Whether the first syllable sequence is included in the multiple single-word syllable sequences can improve the accuracy of determining that the first syllable sequence is included, which can improve the accuracy of displaying confusing words.
可选地,本申请实施例中,结合图1,如图3所示,上述步骤102具体可以通过下述的步骤102a实现。Optionally, in this embodiment of the present application, with reference to FIG. 1 , as shown in FIG. 3 , the foregoing step 102 may be specifically implemented by the following step 102 a.
步骤102a、在M处于预设范围内、且M个音节序列中包含有第一音节序列的情况下,候选词显示装置获取第一音节序列对应的至少一个第一目标音节序列。 Step 102a: When M is within a preset range and the M syllable sequences include the first syllable sequence, the candidate word display device acquires at least one first target syllable sequence corresponding to the first syllable sequence.
进一步可选地,本申请实施例中,候选词显示装置可以对第一拼音序列进行检测,以获取M个音节序列的个数M。Further optionally, in the embodiment of the present application, the candidate word display device may detect the first pinyin sequence to obtain the number M of the M syllable sequences.
示例性地,上述预设范围具体可以为:[2,8]。Exemplarily, the above-mentioned preset range may specifically be: [2, 8].
可以理解,若M<2,即,用户输入的第一拼音序列中包括一个音节序列,则可以认为用户输入的是单个文字,而单个文字并不可能为易混淆词汇,因此,候选词显示装置并不获取该一个音节序列对应的第一目标音节序列。若M>8,即,用户输入的第一拼音序列中包括8个音节序列,则可以认为用户输入的是8个文字以上的词汇,而8个文字以上的词汇极少(或者,用户一次输入超过8个文字的概率较低),因此,候选词显示装置并不获取该8个音节序列中的第一音节序列对应的第一目标音节序列。It can be understood that if M<2, that is, the first pinyin sequence input by the user includes a syllable sequence, it can be considered that the user input is a single character, and a single character is unlikely to be a confusing word. Therefore, the candidate word display device The first target syllable sequence corresponding to the one syllable sequence is not acquired. If M>8, that is, the first pinyin sequence input by the user includes a sequence of 8 syllables, it can be considered that the user inputs a vocabulary with more than 8 characters, and there are very few words with more than 8 characters (or, the user inputs at one time The probability of more than 8 characters is low), therefore, the candidate word display device does not acquire the first target syllable sequence corresponding to the first syllable sequence in the 8 syllable sequences.
本申请实施例中,由于候选词显示装置在用户输入的拼音序列可能为易混淆词汇对应的拼音序列、且该拼音序列中包括对应的字符中包含有多音字的音节序列的情况下,才获取至少一个第一目标音节,因此,可以避免用户输入的拼音序列不为易混淆词汇对应的拼音序列,而候选词显示装置会获取至少一个第一目标音节序列的情况,即,候选词显示装置在确定用户输入的拼音序列不为易混淆词汇对应的拼音序列的情况下,可以直接显示该用户输入的拼音序列对应的候选词,如此,可以提升候选词显示装置显示候选词的效率。In the embodiment of the present application, the candidate word display device obtains only when the pinyin sequence input by the user may be a pinyin sequence corresponding to a confusing word, and the pinyin sequence includes a syllable sequence in which the corresponding characters contain polysyllabic words. At least one first target syllable, therefore, it can be avoided that the pinyin sequence input by the user is not the pinyin sequence corresponding to the confusing vocabulary, and the candidate word display device will acquire at least one first target syllable sequence, that is, the candidate word display device is in the When it is determined that the pinyin sequence input by the user is not the pinyin sequence corresponding to the confusing word, the candidate words corresponding to the pinyin sequence input by the user can be directly displayed, so that the efficiency of displaying the candidate words by the candidate word display device can be improved.
可选地,本申请实施例中,上述M个音节序列中还包含有第四音节序列。具体的,在上述步骤101之后,本申请实施例提供的候选词显示方法还可以包括下述的步骤301,且上述的步骤103具体可以通过下述的步骤103a实现。Optionally, in this embodiment of the present application, the above-mentioned M syllable sequences further include a fourth syllable sequence. Specifically, after the above step 101, the method for displaying candidate words provided in this embodiment of the present application may further include the following step 301, and the above step 103 may be specifically implemented by the following step 103a.
步骤301、候选词显示装置获取第四音节序列对应的至少一个第二目标音节序列。Step 301: The candidate word display device acquires at least one second target syllable sequence corresponding to the fourth syllable sequence.
本申请实施例中,上述第四音节序列具体可以为:对应的文字中包含多音字的音 节序列。In the embodiment of the present application, the above-mentioned fourth syllable sequence may specifically be: a syllable sequence of a polyphonic word included in the corresponding character.
本申请实施例中,针对至少一个第二目标音节序列中的每个第二目标音节序列,一个第二目标音节序列为:第四音节序列对应的至少一个目标字符中,一个目标字符存在的与第四音节序列不同的音节序列。In the embodiment of the present application, for each second target syllable sequence in the at least one second target syllable sequence, one second target syllable sequence is: in at least one target character corresponding to the fourth syllable sequence, one target character exists with the same The fourth syllable sequence is a different syllable sequence.
需要说明的是,上述“第四音节序列对应的至少一个第二目标音节序列”可以理解为:多音字(即第四音节序列对应的多音字)的至少一个其他读音(即除第四音节序列对应的读音之外的读音)对应的音节序列。It should be noted that the above-mentioned "at least one second target syllable sequence corresponding to the fourth syllable sequence" can be understood as: at least one other pronunciation (ie, except for the fourth syllable sequence) of a polyphonic word (that is, a polyphonic word corresponding to the fourth syllable sequence) Pronunciation other than the corresponding pronunciation) corresponding syllable sequence.
步骤103a、候选词显示装置分别采用至少一个第一目标音节序列和至少一个第二目标音节序列,将第一拼音序列中的第一音节序列和第四音节序列进行替换。Step 103a: The candidate word display device adopts at least one first target syllable sequence and at least one second target syllable sequence respectively to replace the first syllable sequence and the fourth syllable sequence in the first pinyin sequence.
可选地,本申请实施例中,候选词显示装置可以先采用第一个第一目标音节序列,将第一拼音序列中的第一音节序列进行替换,生成第一个第二拼音序列,再采用第二个第一目标音节序列,将第一拼音序列中的第一音节序列进行替换,生成第二个第二拼音序列,以此类推,直至生成最后一个第二拼音序列,以生成Q个第二拼音序列;然后再采用第一个第二目标音节序列,将第一拼音序列中的第四音节序列进行替换,生成第一个第二拼音序列,再采用第二个第二目标音节序列,将第一拼音序列中的第四音节序列进行替换,生成第二个第二拼音序列,以此类推,直至生成最后一个第二拼音序列,以生成P个第二拼音序列,以得到Q+P个拼音序列,Q和P均为正整数。Optionally, in the embodiment of the present application, the candidate word display device may first use the first first target syllable sequence, replace the first syllable sequence in the first pinyin sequence, generate the first second pinyin sequence, and then Using the second first target syllable sequence, replace the first syllable sequence in the first pinyin sequence to generate the second second pinyin sequence, and so on, until the last second pinyin sequence is generated to generate Q The second pinyin sequence; then use the first second target syllable sequence to replace the fourth syllable sequence in the first pinyin sequence to generate the first second pinyin sequence, and then use the second second target syllable sequence , replace the fourth syllable sequence in the first pinyin sequence to generate the second second pinyin sequence, and so on, until the last second pinyin sequence is generated to generate P second pinyin sequences to obtain Q+ P pinyin sequences, Q and P are both positive integers.
示例性地,假设用户输入的拼音序列为“mozhua”拼音序列,该“mozhua”拼音序列包括2个音节序列(即“mo”音节序列和“zhua”音节序列),该“mo”音节序列为第一音节序列,该“zhua”为第四音节序列,该“mo”音节序列的至少一个第一目标音节序列为:“mu”音节序列、“ma”音节序列、“mai”音节序列和“mei”音节序列,该“zhua”音节序列的至少一个第二目标音节序列为:“zhao”音节序列,则候选词显示装置可以采用“mu”音节序列,将“mozhua”拼音序列中的“mo”音节序列进行替换,生成“muzhua”拼音序列,并可以采用“ma”音节序列,将“mozhua”拼音序列中的“mo”音节序列进行替换,生成“mazhua”拼音序列,再可以采用“mai”音节序列,将“mozhua”拼音序列中的“mo”音节序列进行替换,生成“maizhua”拼音序列,然后可以采用“mei”音节序列,再将“mozhua”拼音序列中的“mo”音节序列进行替换,生成“meizhua”拼音序列,以及可以采用“zhao”音节序列,再将“mozhua”拼音序列中的“zhua”音节序列进行替换,生成“mozhao”拼音序列。Exemplarily, it is assumed that the pinyin sequence input by the user is the "mozhua" pinyin sequence, and the "mozhua" pinyin sequence includes 2 syllable sequences (that is, the "mo" syllable sequence and the "zhua" syllable sequence), and the "mo" syllable sequence is The first syllable sequence, the "zhua" is the fourth syllable sequence, and at least one first target syllable sequence of the "mo" syllable sequence is: "mu" syllable sequence, "ma" syllable sequence, "mai" syllable sequence and " mei" syllable sequence, at least one second target syllable sequence of the "zhua" syllable sequence is: "zhao" syllable sequence, then the candidate word display device can use the "mu" syllable sequence, and the "mo" in the "mozhua" pinyin sequence " syllable sequence is replaced to generate the "muzhua" pinyin sequence, and the "ma" syllable sequence can be used to replace the "mo" syllable sequence in the "mozhua" pinyin sequence to generate the "mazhua" pinyin sequence, and then "mai" can be used. "Syllable sequence, replace the "mo" syllable sequence in the "mozhua" pinyin sequence to generate the "maizhua" pinyin sequence, and then use the "mei" syllable sequence, and then replace the "mo" syllable sequence in the "mozhua" pinyin sequence The substitution is performed to generate the "meizhua" pinyin sequence, and the "zhao" syllable sequence can be used, and then the "zhua" syllable sequence in the "mozhua" pinyin sequence is replaced to generate the "mozhao" pinyin sequence.
需要说明的是,针对步骤102和步骤301的执行顺序,本申请实施例不做限制。It should be noted that, with respect to the execution order of step 102 and step 301, this embodiment of the present application does not limit.
在一种可能的实现方式,候选词显示装置可以先执行步骤102,再执行步骤301,即候选词显示装置可以先获取第一音节序列对应的至少一个第一目标音节序列,再获取第四音节序列对应的至少一个第二目标音节序列。In a possible implementation manner, the candidate word display device may first perform step 102, and then perform step 301, that is, the candidate word display device may first obtain at least one first target syllable sequence corresponding to the first syllable sequence, and then obtain the fourth syllable. at least one second target syllable sequence corresponding to the sequence.
在另一种可能的实现方式,候选词显示装置可以先执行步骤301,再执行步骤102,即候选词显示装置可以先获取第四音节序列对应的至少一个第二目标音节序列,再获取第一音节序列对应的至少一个第一目标音节序列。In another possible implementation manner, the candidate word display device may first perform step 301 and then perform step 102, that is, the candidate word display device may first obtain at least one second target syllable sequence corresponding to the fourth syllable sequence, and then obtain the first At least one first target syllable sequence corresponding to the syllable sequence.
在又一种可能的实现方式,候选词显示装置可以同时执行步骤102和步骤301,即候选词显示装置在获取第一音节序列对应的至少一个第一目标音节序列的同时,获取第四音节序列对应的至少一个第二目标音节序列。In yet another possible implementation manner, the candidate word display device may perform step 102 and step 301 at the same time, that is, the candidate word display device acquires the fourth syllable sequence while acquiring at least one first target syllable sequence corresponding to the first syllable sequence corresponding at least one second target syllable sequence.
本申请实施例中,由于候选词显示装置可以在获取的某个易混淆词汇的拼音序列中,包括多个多音字的错误读音对应的多个音节序列的情况下,获取第四音节序列(即另一个多音字的错误读音对应的另一个音节序列)对应的至少一个第二目标音节序列(即该另一个多音字的其他读音对应的音节序列),并分别采用该至少一个第一目标音节序列和至少一个第二目标音节序列,替换该第一拼音序列中的第一音节序列和第四音节序列进行替换,生成该多个多音字的所有读音对应的所有拼音序列,从而候选词显示装置可以显示该所有拼音序列的目标拼音序列对应的某个易混淆词汇(候选词),因此可以提升显示易混淆词汇的准确性。In this embodiment of the present application, the candidate word display device can obtain the fourth syllable sequence (ie, the fourth syllable sequence (ie, the fourth syllable sequence) when the obtained pinyin sequence of a certain confusing word includes multiple syllable sequences corresponding to the wrong pronunciation of multiple polyphonic words. at least one second target syllable sequence corresponding to another syllable sequence corresponding to the wrong pronunciation of another polyphonic word) (that is, the syllable sequence corresponding to other pronunciations of the other polyphonic word), and respectively adopt the at least one first target syllable sequence With at least one second target syllable sequence, replace the first syllable sequence and the fourth syllable sequence in this first phonetic sequence and replace, generate all phonetic sequences corresponding to all pronunciations of these multiple polyphonic words, so that the candidate word display device can A certain confusing word (candidate word) corresponding to the target pinyin sequence of all the pinyin sequences is displayed, so the accuracy of displaying the confusing word can be improved.
可选地,本申请实施例中,上述第一音节序列包括:第二音节序列和第三音节序列。具体的,结合图1,如图4所示,在上述步骤103之前,本申请实施例提供的候选词显示方法还可以包括下述的步骤401,并且上述的步骤103具体可以通过下述的步骤103b实现。Optionally, in this embodiment of the present application, the above-mentioned first syllable sequence includes: a second syllable sequence and a third syllable sequence. Specifically, with reference to FIG. 1 , as shown in FIG. 4 , before the above step 103 , the method for displaying candidate words provided by this embodiment of the present application may further include the following step 401 , and the above step 103 may specifically be performed through the following steps 103b implementation.
步骤401、候选词显示装置获取第一数值和第二数值。Step 401: The candidate word display device obtains a first numerical value and a second numerical value.
本申请实施例中,上述第一数值为:第二音节序列对应的第一目标音节序列的个数值,上述第二数值为:第三音节序列对应的第一目标音节序列的个数值。In the embodiment of the present application, the above-mentioned first numerical value is: the numerical value of the first target syllable sequence corresponding to the second syllable sequence, and the above-mentioned second numerical value is: the numerical value of the first target syllable sequence corresponding to the third syllable sequence.
进一步可选地,本申请实施例中,候选词显示装置可以分别对第二音节序列和第三音节序列进行检测,以获取第一数值和第二数值。Further optionally, in the embodiment of the present application, the candidate word display device may detect the second syllable sequence and the third syllable sequence respectively to obtain the first numerical value and the second numerical value.
步骤103b、候选词显示装置在第一数值小于第二数值的情况下,分别采用第二音节序列对应的第一目标音节序列,将第一拼音序列中的第一音节序列进行替换,生成至少一个第二拼音序列。 Step 103b, when the first numerical value is less than the second numerical value, the candidate word display device adopts the first target syllable sequence corresponding to the second syllable sequence respectively, and replaces the first syllable sequence in the first pinyin sequence to generate at least one syllable sequence. The second pinyin sequence.
本申请实施例中,若第一数值小于第二数值,则可以认为第二音节序列对应的第一目标音节序列的个数值,小于第三音节序列对应的第一目标音节序列的个数值,从而候选词显示装置可以采用对应的第一目标音节序列的个数值较少的音节序列(即第二音节序列)对应的第一目标音节序列,将第一拼音序列中的第一音节序列进行替换。In the embodiment of the present application, if the first numerical value is less than the second numerical value, it can be considered that the numerical value of the first target syllable sequence corresponding to the second syllable sequence is smaller than the numerical value of the first target syllable sequence corresponding to the third syllable sequence, so that The candidate word display device can replace the first syllable sequence in the first pinyin sequence by using the first target syllable sequence corresponding to the syllable sequence with a smaller number of the corresponding first target syllable sequence (ie, the second syllable sequence).
本申请实施例中,由于候选词显示装置可以在第一音节序列包括多个音节序列(即第二音节序列和第三音节序列)的情况下,采用对应的第一目标音节序列的个数值较少的音节序列(即第二音节序列)对应的第一目标音节序列,将第一拼音序列中的第一音节序列进行替换,因此,可以减少生成的第二拼音序列的数量,从而候选词显示装置可以快速地确定该数量较少的第二拼音序列中的目标拼音序列是否满足第一预设条件,以显示该目标拼音序列对应的易混淆词汇(候选词),如此,可以提升候选词显示装置显示易混淆词汇的效率。In the embodiment of the present application, because the candidate word display device can use the number of the corresponding first target syllable sequence to compare the number of syllable sequences when the first syllable sequence includes multiple syllable sequences (that is, the second syllable sequence and the third syllable sequence). The first target syllable sequence corresponding to the few syllable sequences (that is, the second syllable sequence) is replaced by the first syllable sequence in the first pinyin sequence. Therefore, the number of generated second pinyin sequences can be reduced, so that the candidate words display The device can quickly determine whether the target pinyin sequence in the smaller number of second pinyin sequences satisfies the first preset condition, so as to display the confusing words (candidate words) corresponding to the target pinyin sequence, so that the display of candidate words can be improved. The device shows the efficiency of confusing words.
可选地,本申请实施例中,上述步骤104还可以替换为下述的步骤104e和步骤104f。Optionally, in this embodiment of the present application, the above step 104 may also be replaced by the following step 104e and step 104f.
步骤104e、在至少一个第二拼音序列中的每一个第二拼音序列均不满足第一预设条件的情况下,候选词显示装置分别采用第三音节序列对应的第一目标音节序列,将第一拼音序列中的第一音节序列进行替换,生成至少一个第三拼音序列。Step 104e, in the case where each second pinyin sequence in the at least one second pinyin sequence does not meet the first preset condition, the candidate word display device respectively adopts the first target syllable sequence corresponding to the third syllable sequence, and the first target syllable sequence corresponding to the third syllable sequence The first syllable sequence in a pinyin sequence is replaced to generate at least one third pinyin sequence.
本申请实施例中,若至少一个第二拼音序列中的每一个第二拼音序列均不满足第一预设条件,则可以认为第二音节序列可能为多音字的正确读音对应的音节序列,因此,候选词显示装置可以分别采用第三音节序列对应的第一目标音节序列,将第一拼 音序列中的第一音节序列进行替换,生成至少一个第三拼音序列。In the embodiment of the present application, if each second pinyin sequence in the at least one second pinyin sequence does not satisfy the first preset condition, it can be considered that the second syllable sequence may be the syllable sequence corresponding to the correct pronunciation of the polyphonic word. Therefore, , the candidate word display device can respectively use the first target syllable sequence corresponding to the third syllable sequence to replace the first syllable sequence in the first pinyin sequence to generate at least one third pinyin sequence.
步骤104f、在至少一个第三拼音序列中的第四拼音序列满足第二预设条件的情况下,候选词显示装置显示第四拼音序列对应的候选词。Step 104f: In the case that the fourth pinyin sequence in the at least one third pinyin sequence satisfies the second preset condition, the candidate word display device displays the candidate word corresponding to the fourth pinyin sequence.
可选地,本申请实施例中,上述第二预设条件具体可以为:词库中存在第四拼音序列对应的候选词。Optionally, in the embodiment of the present application, the above-mentioned second preset condition may specifically be: candidate words corresponding to the fourth pinyin sequence exist in the thesaurus.
进一步可选地,本申请实施例中,针对至少一个第三拼音序列中的每个第三拼音序列,候选词显示装置可以根据一个第三拼音序列,生成一个候选词,并确定词库中是否存在该一个候选词,在确定词库中存在该一个候选词的情况下,候选词显示装置可以将该一个第三拼音序列确定为第四拼音序列,并显示该第四拼音序列对应的候选词。Further optionally, in the embodiment of the present application, for each third pinyin sequence in the at least one third pinyin sequence, the candidate word display device may generate a candidate word according to a third pinyin sequence, and determine whether the word in the thesaurus There is this one candidate word, and when it is determined that the one candidate word exists in the lexicon, the candidate word display device can determine the one third pinyin sequence as the fourth pinyin sequence, and display the candidate word corresponding to the fourth pinyin sequence .
进一步可选地,本申请实施例中,候选词显示装置可以将第四拼音序列对应的候选词添加至第一拼音序列对应的候选词列表中。Further optionally, in this embodiment of the present application, the device for displaying candidate words may add candidate words corresponding to the fourth pinyin sequence to the list of candidate words corresponding to the first pinyin sequence.
进一步可选地,本申请实施例中,在候选词显示装置将第四拼音序列对应的候选词,添加至第一拼音序列对应的候选词列表中之后,候选词显示装置可以显示该候选词。Further optionally, in this embodiment of the present application, after the candidate word display device adds the candidate word corresponding to the fourth pinyin sequence to the candidate word list corresponding to the first pinyin sequence, the candidate word display device can display the candidate word.
本申请实施例中,由于在至少一个第二拼音序列中的每一个第二拼音序列均不满足第一预设条件的情况下,候选词显示装置可以采用第三音节序列对应的第一目标音节序列,将第一拼音序列中的第一音节序列进行替换,以得到至少一个第三拼音序列,以在第四拼音序列满足第二预设条件的情况下,显示该第四拼音序列对应的候选词,而并并非仅根据该某个易混淆词汇的高频错误读音对应的拼音序列,生成该某个易混淆词汇,并显示该某个易混淆词汇,因此可以提升显示易混淆词汇的准确性。In the embodiment of the present application, since each second pinyin sequence in the at least one second pinyin sequence does not satisfy the first preset condition, the candidate word display device may use the first target syllable corresponding to the third syllable sequence sequence, the first syllable sequence in the first pinyin sequence is replaced to obtain at least one third pinyin sequence, to display the candidate corresponding to the fourth pinyin sequence under the condition that the fourth pinyin sequence satisfies the second preset condition It is not just based on the pinyin sequence corresponding to the high-frequency mispronunciation of the confusing vocabulary, the confusing vocabulary is generated, and the confusing vocabulary is displayed, so the accuracy of displaying the confusing vocabulary can be improved. .
可选地,本申请实施例中,在上述步骤104之后,本申请实施例提供的候选词显示方法还可以包括下述的步骤501。Optionally, in this embodiment of the present application, after the above step 104, the method for displaying candidate words provided by the embodiment of the present application may further include the following step 501.
步骤501、候选词显示装置在输入法界面的候选词显示区域上,显示目标拼音序列对应的候选词、和目标拼音序列对应的第一目标音节序列。Step 501: The candidate word display device displays the candidate words corresponding to the target pinyin sequence and the first target syllable sequence corresponding to the target pinyin sequence on the candidate word display area of the input method interface.
可以理解,上述候选词显示区域上包含用户需要输入的某个易混淆词汇,和该某个易混淆词汇中包含的多音字的正确读音对应的音节序列。It can be understood that the above-mentioned candidate word display area contains a certain confusing word that the user needs to input, and a syllable sequence corresponding to the correct pronunciation of the polyphonic word contained in the certain confusing word.
进一步可选地,本申请实施例中,候选词显示装置可以采用第一标记方式,标记目标拼音序列对应的候选词、和该目标拼音序列对应的第一目标音节序列。Further optionally, in the embodiment of the present application, the candidate word display device may use the first marking method to mark the candidate words corresponding to the target pinyin sequence and the first target syllable sequence corresponding to the target pinyin sequence.
示例性地,上述第一标记方式具体可以为以下任一项:虚线框标记方式、高亮标记方式、彩色标记方式、灰度标记方式、以预设透明度标记方式以及闪烁标记方式等。Exemplarily, the above-mentioned first marking method may specifically be any of the following: a dotted frame marking method, a highlight marking method, a color marking method, a gray-scale marking method, a marking method with preset transparency, a flashing marking method, and the like.
本申请实施例中,由于候选词显示装置可以显示目标拼音序列对应的候选词、和目标拼音序列对应的第一目标音节序列,因此可以提示用户该候选词中的多音字的正确读音对应的音节序列,如此可以提升用户的使用体验。In the embodiment of the present application, since the candidate word display device can display the candidate words corresponding to the target pinyin sequence and the first target syllable sequence corresponding to the target pinyin sequence, it can prompt the user for the syllable corresponding to the correct pronunciation of the polysyllabic word in the candidate word sequence, which can improve the user experience.
需要说明的是,本申请实施例提供的候选词显示方法,执行主体可以为候选词显示装置,或者该候选词显示装置中的用于执行候选词显示方法的控制模块。本申请实施例中以候选词显示装置执行候选词显示方法为例,说明本申请实施例提供的候选词显示方法的装置。It should be noted that, for the candidate word display method provided by the embodiment of the present application, the execution subject may be a candidate word display device, or a control module in the candidate word display device for executing the candidate word display method. In the embodiment of the present application, the device for displaying the candidate word provided by the embodiment of the present application is described by taking the method for displaying a candidate word executed by the device for displaying a candidate word as an example.
图5示出了本申请实施例中涉及的候选词显示装置的一种可能的结构示意图。如 图5所示,候选词显示装置60可以包括:获取模块61、生成模块62和显示模块63。FIG. 5 shows a possible schematic structural diagram of the candidate word display device involved in the embodiment of the present application. As shown in FIG. 5 , the candidate word display device 60 may include: an acquisition module 61 , a generation module 62 and a display module 63 .
其中,获取模块61,用于获取用户输入的第一拼音序列,该第一拼音序列中包括M个音节序列;并在M个音节序列中包含有第一音节序列的情况下,获取第一音节序列对应的至少一个第一目标音节序列;一个第一目标音节序列为:所述第一音节序列对应的至少一个目标字符中,一个目标字符存在的与所述第一音节序列不同的音节序列。生成模块62,用于分别采用获取模块获取的至少一个第一目标音节序列,将第一拼音序列中的第一音节序列进行替换,生成至少一个第二拼音序列。显示模块63,用于在生成模块62生成的至少一个第二拼音序列中的目标拼音序列满足第一预设条件的情况下,显示该目标拼音序列对应的候选词。其中,M为大于1的正整数。Wherein, the obtaining module 61 is used to obtain the first pinyin sequence input by the user, the first phonetic sequence includes M syllable sequences; and in the case that the M syllable sequences include the first syllable sequence, obtain the first syllable At least one first target syllable sequence corresponding to the sequence; a first target syllable sequence is: in at least one target character corresponding to the first syllable sequence, a target character exists in a syllable sequence different from the first syllable sequence. The generating module 62 is configured to use the at least one first target syllable sequence obtained by the obtaining module, respectively, to replace the first syllable sequence in the first pinyin sequence to generate at least one second pinyin sequence. The display module 63 is configured to display candidate words corresponding to the target pinyin sequence in the case that the target pinyin sequence in the at least one second pinyin sequence generated by the generation module 62 satisfies the first preset condition. Among them, M is a positive integer greater than 1.
在一种可能的实现方式中,上述M个音节序列为M个单字音节序列。结合图5,如图6所示,本申请实施例提供的候选词显示装置60还可以包括:拆分模块64。其中,拆分模块64,用于在第一拼音序列为全拼拼音序列的情况下,将第一拼音序列拆分为M个单字音节序列。In a possible implementation manner, the above-mentioned M syllable sequences are M single-word syllable sequences. With reference to FIG. 5 , as shown in FIG. 6 , the candidate word display device 60 provided in this embodiment of the present application may further include: a splitting module 64 . Wherein, the splitting module 64 is configured to split the first pinyin sequence into M single-word syllable sequences when the first pinyin sequence is a full pinyin sequence.
在一种可能的实现方式中,上述获取模块61,具体用于在M处于预设范围内、且M个音节序列中包含有第一音节序列的情况下,获取第一音节序列对应的至少一个第一目标音节序列。In a possible implementation manner, the above-mentioned obtaining module 61 is specifically configured to obtain at least one syllable sequence corresponding to the first syllable sequence when M is within a preset range and the M syllable sequences include the first syllable sequence. The first target syllable sequence.
在一种可能的实现方式中,上述第一音节序列包括:第二音节序列和第三音节序列。上述获取模块61,还用于获取第一数值和第二数值;其中,该第一数值为:第二音节序列对应的第一目标音节序列的个数值,该第二数值为:第三音节序列对应的第一目标音节序列的个数值。上述生成模块62,具体用于在第一数值小于第二数值的情况下,分别采用第二音节序列对应的第一目标音节序列,将第一拼音序列中的第一音节序列进行替换。In a possible implementation manner, the above-mentioned first syllable sequence includes: a second syllable sequence and a third syllable sequence. The above-mentioned obtaining module 61 is also used to obtain a first numerical value and a second numerical value; wherein, the first numerical value is: the number of the first target syllable sequence corresponding to the second syllable sequence, and the second numerical value is: the third syllable sequence The number of corresponding first target syllable sequences. The above generating module 62 is specifically configured to replace the first syllable sequence in the first pinyin sequence with the first target syllable sequence corresponding to the second syllable sequence respectively when the first numerical value is less than the second numerical value.
在一种可能的实现方式中,上述生成模块62,还用于在至少一个第二拼音序列中的每一个第二拼音序列均不满足第一预设条件的情况下,分别采用第三音节序列对应的第一目标音节序列,将第一拼音序列中的第一音节序列进行替换,生成至少一个第三拼音序列。上述显示模块63,还用于在生成模块62生成的至少一个第三拼音序列中的第四拼音序列满足第二预设条件的情况下,显示第四拼音序列对应的候选词。In a possible implementation manner, the above-mentioned generating module 62 is further configured to respectively adopt the third syllable sequence in the case that each second pinyin sequence in the at least one second pinyin sequence does not satisfy the first preset condition For the corresponding first target syllable sequence, the first syllable sequence in the first pinyin sequence is replaced to generate at least one third pinyin sequence. The above-mentioned display module 63 is further configured to display the candidate words corresponding to the fourth pinyin sequence when the fourth pinyin sequence in the at least one third pinyin sequence generated by the generation module 62 satisfies the second preset condition.
在一种可能的实现方式中,上述M个音节序列还包含第四音节序列的情况下,上述获取模块61,还用于获取第四音节序列对应的至少一个第二目标音节序列;一个第而目标音节序列为:第四音节序列对应的至少一个目标字符中,一个目标字符存在的与该第四音节序列不同的音节序列。上述生成模块62,具体用于分别采用至少一个第一目标音节序列和至少一个第二目标音节序列,将第一拼音序列中的第一音节序列和第四音节序列进行替换。In a possible implementation manner, when the above-mentioned M syllable sequences further include a fourth syllable sequence, the above-mentioned obtaining module 61 is further configured to obtain at least one second target syllable sequence corresponding to the fourth syllable sequence; The target syllable sequence is: in at least one target character corresponding to the fourth syllable sequence, a target character exists in a syllable sequence different from the fourth syllable sequence. The above generating module 62 is specifically configured to use at least one first target syllable sequence and at least one second target syllable sequence respectively to replace the first syllable sequence and the fourth syllable sequence in the first pinyin sequence.
在一种可能的实现方式中,结合图5,如图7所示,本申请实施例提供的候选词显示装置60还可以包括:遍历模块65和确定模块66。其中,遍历模块65,用于遍历至少一个第二拼音序列。确定模块66,用于若词库中存在当前遍历的第二拼音序列对应的候选词,则将当前遍历的第二拼音序列对应的候选词确定为第一拼音序列对应的候选词;若词库中不存在当前遍历的第二拼音序列对应的候选词,则继续遍历下一个第二拼音序列。In a possible implementation manner, with reference to FIG. 5 , as shown in FIG. 7 , the candidate word display device 60 provided in this embodiment of the present application may further include: a traversal module 65 and a determination module 66 . The traversal module 65 is used to traverse at least one second pinyin sequence. The determination module 66 is used to determine the candidate word corresponding to the second pinyin sequence currently traversed as the candidate word corresponding to the first pinyin sequence if there is a candidate word corresponding to the second pinyin sequence currently traversed in the thesaurus; If there is no candidate word corresponding to the currently traversed second pinyin sequence, continue to traverse the next second pinyin sequence.
在一种可能的实现方式中,上述显示模块63,还用于在输入法界面的候选词显示区域上,显示目标拼音序列对应的候选词、和该目标拼音序列对应的第一目标音节序列。In a possible implementation, the above-mentioned display module 63 is further configured to display the candidate words corresponding to the target pinyin sequence and the first target syllable sequence corresponding to the target pinyin sequence on the candidate word display area of the input method interface.
本申请实施例提供的候选词显示装置,由于候选词显示装置可以在获取的某个易混淆词汇的拼音序列中,包括第一音节序列(即多音字的错误读音对应的音节序列)的情况下,获取该第一音节序列对应的至少一个第一目标音节序列(即该多音字的其他读音对应的音节序列),并分别采用该至少一个第一目标音节序列,替换该第一拼音序列中的该第一音节序列,生成该多音字的所有读音对应的所有拼音序列(即至少一个第二拼音序列),从而候选词显示装置可以在该所有拼音序列中的目标拼音序列满足第一预设条件的情况下,显示该某个易混淆词汇,而并非仅根据该某个易混淆词汇的高频错误读音对应的拼音序列,生成该某个易混淆词汇,并显示该某个易混淆词汇,因此可以提升显示易混淆词汇的准确性。In the candidate word display device provided by the embodiment of the present application, since the candidate word display device can acquire the pinyin sequence of a certain confusing word, including the first syllable sequence (that is, the syllable sequence corresponding to the wrong pronunciation of the polysyllabic word). , obtain at least one first target syllable sequence corresponding to the first syllable sequence (that is, the syllable sequence corresponding to other pronunciations of the polyphonic word), and respectively adopt the at least one first target syllable sequence to replace the first pinyin sequence in the The first syllable sequence generates all the pinyin sequences corresponding to all the pronunciations of the polyphonic word (that is, at least one second pinyin sequence), so that the candidate word display device can satisfy the first preset condition in the target pinyin sequence in all the pinyin sequences In the case of a certain confusing word, instead of generating the certain confusing word according to the pinyin sequence corresponding to the high-frequency mispronunciation of the certain confusing word, and displaying the certain confusing word, so Can improve the accuracy of displaying confusing words.
本申请实施例中的候选词显示装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性地,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The candidate word display device in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The apparatus may be a mobile electronic device or a non-mobile electronic device. Illustratively, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). assistant, PDA), etc., non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
本申请实施例中的候选词显示装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The candidate word display device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
本申请实施例提供的候选词显示装置能够实现图1至图4的方法实施例实现的各个过程,为避免重复,这里不再赘述。The candidate word display device provided in the embodiment of the present application can implement each process implemented by the method embodiments in FIG. 1 to FIG. 4 , and to avoid repetition, details are not described here.
可选地,如图8所示,本申请实施例还提供一种电子设备70,包括处理器72,存储器71,存储在存储器71上并可在所述处理器72上运行的程序或指令,该程序或指令被处理器72执行时实现上述候选词显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 8 , an embodiment of the present application further provides an electronic device 70 , including a processor 72 , a memory 71 , a program or instruction stored on the memory 71 and executable on the processor 72 , When the program or instruction is executed by the processor 72, each process of the above-mentioned embodiment of the candidate word display method can be realized, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
图9为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。The electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110, etc. part.
本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图9中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions. The structure of the electronic device shown in FIG. 9 does not constitute a limitation to the electronic device. The electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
其中,用户输入单元107,用于获取用户输入的第一拼音序列,该第一拼音序列中包括M个音节序列。The user input unit 107 is configured to acquire a first pinyin sequence input by the user, and the first pinyin sequence includes M syllable sequences.
处理器110,用于在M个音节序列中包含有第一音节序列的情况下,获取第一音节序列对应的至少一个第一目标音节序列;一个第一目标音节序列为:第一音节序列对应的至少一个目标字符中,一个目标字符存在的与第一音节序列不同的音节序列;并分别采用至少一个第一目标音节序列,将第一拼音序列中的第一音节序列进行替换,生成至少一个第二拼音序列;以及,在至少一个第二拼音序列中的目标拼音序列满足第一预设条件的情况下,显示目标拼音序列对应的候选词。The processor 110 is configured to acquire at least one first target syllable sequence corresponding to the first syllable sequence when the M syllable sequences include the first syllable sequence; a first target syllable sequence is: the first syllable sequence corresponds to Among the at least one target character, a syllable sequence different from the first syllable sequence exists in one target character; and at least one first target syllable sequence is respectively adopted to replace the first syllable sequence in the first pinyin sequence to generate at least one a second pinyin sequence; and, in the case that the target pinyin sequence in the at least one second pinyin sequence satisfies the first preset condition, displaying a candidate word corresponding to the target pinyin sequence.
其中,M为大于1的正整数。Among them, M is a positive integer greater than 1.
本申请实施例提供的电子设备,由于电子设备可以在获取的某个易混淆词汇的拼音序列中,包括第一音节序列(即多音字的错误读音对应的音节序列)的情况下,获取该第一音节序列对应的至少一个第一目标音节序列(即该多音字的其他读音对应的音节序列),并分别采用该至少一个第一目标音节序列,替换该第一拼音序列中的该第一音节序列,生成该多音字的所有读音对应的所有拼音序列(即至少一个第二拼音序列),从而电子设备可以在该所有拼音序列中的目标拼音序列满足第一预设条件的情况下,显示该某个易混淆词汇,而并非仅根据该某个易混淆词汇的高频错误读音对应的拼音序列,生成该某个易混淆词汇,并显示该某个易混淆词汇,因此可以提升显示易混淆词汇的准确性。In the electronic device provided by the embodiment of the present application, since the electronic device can obtain the first syllable sequence (that is, the syllable sequence corresponding to the wrong pronunciation of a polyphonic word) in the obtained pinyin sequence of a certain confusing word, the first syllable sequence can be obtained. At least one first target syllable sequence corresponding to a syllable sequence (that is, the syllable sequence corresponding to other pronunciations of the polysyllabic word), and the at least one first target syllable sequence is respectively used to replace the first syllable in the first pinyin sequence sequence, generate all phonetic sequences corresponding to all pronunciations of the polyphonic word (i.e. at least one second phonetic sequence), so that the electronic device can display the For a confusing word, instead of just based on the pinyin sequence corresponding to the high-frequency mispronunciation of the certain confusing word, generate the certain confusing word and display the certain confusing word, so it can improve the display of the confusing word accuracy.
可选地,本申请实施例中,上述M个音节序列为M个单字音节序列。Optionally, in this embodiment of the present application, the above-mentioned M syllable sequences are M single-word syllable sequences.
处理器110,还用于在第一拼音序列为全拼拼音序列的情况下,将第一拼音序列拆分为M个单字音节序列。The processor 110 is further configured to split the first pinyin sequence into M single-word syllable sequences when the first pinyin sequence is a full pinyin sequence.
本申请实施例中,由于电子设备可以在第一拼音序列为全拼拼音序列的情况下,将第一拼音序列拆分为多个单字音节序列,从而电子设备可以准确地确定该多个单字音节序列中是否包含有第一音节序列,因此可以提升确定包含第一音节序列的准确性,如此可以提升显示易混淆词汇的准确性。In the embodiment of the present application, since the electronic device can split the first pinyin sequence into a plurality of single-character syllable sequences when the first pinyin sequence is a full-pinyin sequence, the electronic device can accurately determine the plurality of single-character syllables Whether the sequence contains the first syllable sequence can improve the accuracy of determining that the first syllable sequence is included, which can improve the accuracy of displaying confusing words.
可选地,本申请实施例中,处理器110,具体用于在M处于预设范围内、且M个音节序列中包含有第一音节序列的情况下,获取第一音节序列对应的至少一个第一目标音节序列。Optionally, in this embodiment of the present application, the processor 110 is specifically configured to acquire at least one corresponding to the first syllable sequence when M is within a preset range and the M syllable sequences include the first syllable sequence. The first target syllable sequence.
本申请实施例中,由于电子设备在用户输入的拼音序列可能为易混淆词汇对应的拼音序列、且该拼音序列中包括对应的字符中包含有多音字的音节序列的情况下,才获取至少一个第一目标音节,因此,可以避免用户输入的拼音序列不为易混淆词汇对应的拼音序列,而电子设备会获取至少一个第一目标音节序列的情况,即,电子设备在确定用户输入的拼音序列不为易混淆词汇对应的拼音序列的情况下,可以直接显示该用户输入的拼音序列对应的候选词,如此,可以提升电子设备显示候选词的效率。In the embodiment of the present application, the electronic device obtains at least one pinyin sequence only when the pinyin sequence input by the user may be a pinyin sequence corresponding to a confusing word, and the pinyin sequence includes a syllable sequence in which the corresponding characters contain polyphonic words. The first target syllable, therefore, it can be avoided that the pinyin sequence input by the user is not the pinyin sequence corresponding to the confusing vocabulary, and the electronic device will acquire at least one first target syllable sequence, that is, the electronic device is determining the pinyin sequence input by the user. In the case that the pinyin sequence corresponding to the confusing word is not, the candidate word corresponding to the pinyin sequence input by the user can be directly displayed, so that the efficiency of displaying the candidate word by the electronic device can be improved.
可选地,本申请实施例中,上述第一音节序列包括:第二音节序列和第三音节序列。Optionally, in this embodiment of the present application, the above-mentioned first syllable sequence includes: a second syllable sequence and a third syllable sequence.
处理器110,还用于获取第一数值和第二数值;其中,该第一数值为:第二音节序列对应的第一目标音节序列的个数值,该第二数值为:第三音节序列对应的第一目标音节序列的个数值;并在该第一数值小于第二数值的情况下,分别采用该第二音节 序列对应的第一目标音节序列,将第一拼音序列中的第一音节序列进行替换。The processor 110 is further configured to obtain a first numerical value and a second numerical value; wherein, the first numerical value is: the number of the first target syllable sequence corresponding to the second syllable sequence, and the second numerical value is: the third syllable sequence corresponds to The number of the first target syllable sequence of the first target syllable sequence; and when the first value is less than the second value, the first target syllable sequence corresponding to the second syllable sequence is respectively used, and the first syllable sequence in the first pinyin sequence is used. make a replacement.
本申请实施例中,由于电子设备可以在第一音节序列包括多个音节序列(即第二音节序列和第三音节序列)的情况下,采用对应的第一目标音节序列的个数值较少的音节序列(即第二音节序列)对应的第一目标音节序列,将第一拼音序列中的第一音节序列进行替换,因此,可以减少生成的第二拼音序列的数量,从而电子设备可以快速地确定该数量较少的第二拼音序列中的目标拼音序列是否满足第一预设条件,以显示该目标拼音序列对应的易混淆词汇(候选词),如此,可以提升电子设备显示易混淆词汇的效率。In this embodiment of the present application, since the electronic device may use a corresponding first target syllable sequence with a smaller number of syllable sequences when the first syllable sequence includes multiple syllable sequences (ie, the second syllable sequence and the third syllable sequence). The first target syllable sequence corresponding to the syllable sequence (that is, the second syllable sequence) replaces the first syllable sequence in the first pinyin sequence. Therefore, the number of generated second pinyin sequences can be reduced, so that the electronic device can quickly Determine whether the target pinyin sequence in the smaller number of second pinyin sequences satisfies the first preset condition, so as to display the confusing vocabulary (candidate words) corresponding to the target pinyin sequence, so that the electronic device can improve the ability of the electronic device to display the confusing vocabulary. efficiency.
可选地,本申请实施例中,处理器110,还用于在至少一个第二拼音序列中的每一个第二拼音序列均不满足第一预设条件的情况下,分别采用第三音节序列对应的第一目标音节序列,将第一拼音序列中的第一音节序列进行替换,生成至少一个第三拼音序列;并在至少一个第三拼音序列中的第四拼音序列满足第二预设条件的情况下,显示第四拼音序列对应的候选词。Optionally, in the embodiment of the present application, the processor 110 is further configured to respectively adopt the third syllable sequence in the case that each second pinyin sequence in the at least one second pinyin sequence does not satisfy the first preset condition. The corresponding first target syllable sequence replaces the first syllable sequence in the first pinyin sequence to generate at least one third pinyin sequence; and the fourth pinyin sequence in at least one third pinyin sequence satisfies the second preset condition In the case of , the candidate words corresponding to the fourth pinyin sequence are displayed.
本申请实施例中,由于在至少一个第二拼音序列中的每一个第二拼音序列均不满足第一预设条件的情况下,电子设备可以采用第三音节序列对应的第一目标音节序列,将第一拼音序列中的第一音节序列进行替换,以得到至少一个第三拼音序列,以在第四拼音序列满足第二预设条件的情况下,显示该第四拼音序列对应的候选词,而并并非仅根据该某个易混淆词汇的高频错误读音对应的拼音序列,生成该某个易混淆词汇,并显示该某个易混淆词汇,因此可以提升显示易混淆词汇的准确性。In the embodiment of the present application, since each second pinyin sequence in the at least one second pinyin sequence does not meet the first preset condition, the electronic device can use the first target syllable sequence corresponding to the third syllable sequence, The first syllable sequence in the first pinyin sequence is replaced to obtain at least one third pinyin sequence, so that when the fourth pinyin sequence satisfies the second preset condition, the candidate word corresponding to the fourth pinyin sequence is displayed, Instead of generating the certain confusing word according to the pinyin sequence corresponding to the high-frequency mispronunciation of the certain confusing word, and displaying the certain confusing word, the accuracy of displaying the confusing word can be improved.
可选地,本申请实施例中,M个音节序列中还包含有第四音节序列的情况下,处理器110,还用于获取第二音节序列对应的至少一个第二目标音节序列;一个第而目标音节序列为:第四音节序列对应的至少一个目标字符中,一个目标字符存在的与该第四音节序列不同的音节序列;并分别采用至少一个第一目标音节序列和至少一个第二目标音节序列,将第一拼音序列中的第一音节序列和第四音节序列进行替换。Optionally, in the embodiment of the present application, when the M syllable sequences further include a fourth syllable sequence, the processor 110 is further configured to acquire at least one second target syllable sequence corresponding to the second syllable sequence; The target syllable sequence is: in at least one target character corresponding to the fourth syllable sequence, a target character exists in a syllable sequence different from the fourth syllable sequence; and at least one first target syllable sequence and at least one second target syllable sequence are used respectively. The syllable sequence is to replace the first syllable sequence and the fourth syllable sequence in the first pinyin sequence.
本申请实施例中,由于电子设备可以在获取的某个易混淆词汇的拼音序列中,包括多个多音字的错误读音对应的多个音节序列的情况下,获取第四音节序列(即另一个多音字的错误读音对应的另一个音节序列)对应的至少一个第二目标音节序列(即该另一个多音字的其他读音对应的音节序列),并分别采用该至少一个第一目标音节序列和至少一个第二目标音节序列,替换该M个音节序列中的第一音节序列和第四音节序列进行替换,生成该多个多音字的所有读音对应的所有拼音序列,从而电子设备可以在该所有拼音序列中的目标拼音序列满足第一预设条件的情况下,显示该目标拼音序列对应的易混淆词汇(候选词),因此可以提升显示易混淆词汇的准确性。In the embodiment of the present application, the electronic device can obtain the fourth syllable sequence (that is, another At least one second target syllable sequence corresponding to another syllable sequence corresponding to the wrong pronunciation of the polyphonic word (that is, the syllable sequence corresponding to other pronunciations of the other polyphonic word), and respectively adopt the at least one first target syllable sequence and at least one target syllable sequence. A second target syllable sequence, replace the first syllable sequence and the fourth syllable sequence in the M syllable sequences and replace, and generate all the phonetic sequences corresponding to all the pronunciations of the multiple polyphonic words, so that the electronic device can be used in all the phonetic alphabets. When the target pinyin sequence in the sequence satisfies the first preset condition, the confusing words (candidate words) corresponding to the target pinyin sequence are displayed, so that the accuracy of displaying the confusing words can be improved.
可选地,本申请实施例中,处理器110,还用于遍历至少一个第二拼音序列;若词库中存在当前遍历的第二拼音序列对应的候选词,则电子设备将当前遍历的第二拼音序列对应的候选词确定为目标拼音序列对应的候选词;若词库中不存在当前遍历的第二拼音序列对应的候选词,则电子设备继续遍历下一个第二拼音序列。Optionally, in this embodiment of the present application, the processor 110 is further configured to traverse at least one second pinyin sequence; if there is a candidate word corresponding to the currently traversed second pinyin sequence in the thesaurus, the electronic device traverses the currently traversed second pinyin sequence. The candidate word corresponding to the second pinyin sequence is determined as the candidate word corresponding to the target pinyin sequence; if there is no candidate word corresponding to the currently traversed second pinyin sequence in the lexicon, the electronic device continues to traverse the next second pinyin sequence.
本申请实施例中,由于电子设备可以遍历至少一个第二拼音序列,并将词库中存在的第二拼音序列对应的候选词,确定为目标拼音序列对应的候选词,即,电子设备可以直接确定出用户可能需要输入的候选词,并显示该候选词,而无需用户从至少一 个第二拼音序列对应的至少一个候选词中进行选择,因此可以简化用户的操作,如此可以提升电子设备显示用户需要输入的易混淆词汇的效率。In the embodiment of the present application, since the electronic device can traverse at least one second pinyin sequence, and determine the candidate word corresponding to the second pinyin sequence existing in the thesaurus as the candidate word corresponding to the target pinyin sequence, that is, the electronic device can directly A candidate word that the user may need to input is determined, and the candidate word is displayed without the need for the user to select from at least one candidate word corresponding to the at least one second pinyin sequence, so the user's operation can be simplified, and the electronic device can improve the display of the user. Efficiency of confusing words that need to be entered.
本申请实施例中,由于电子设备可以遍历至少一个第二拼音序列,在词库中不存在当前遍历的第二拼音序列对应的候选词的情况下,并不将该当前遍历的第二拼音序列对应的候选词确定为目标拼音序列对应的候选词,即,电子设备并不显示用户并不需要输入的候选词,因此可以减少显示的候选词的数量,从而可以缩短用户查找需要输入的候选词的耗时,如此可以提升用户输入候选词的效率。In this embodiment of the present application, since the electronic device can traverse at least one second pinyin sequence, if there is no candidate word corresponding to the currently traversed second pinyin sequence in the lexicon, the currently traversed second pinyin sequence is not The corresponding candidate words are determined as the candidate words corresponding to the target pinyin sequence, that is, the electronic device does not display candidate words that the user does not need to input, so the number of displayed candidate words can be reduced, thereby shortening the search for the candidate words that the user needs to input. This can improve the efficiency of user input of candidate words.
可选地,本申请实施例中,显示单元106,用于在输入法界面的候选词显示区域上,显示目标拼音序列对应的候选词、和该目标拼音序列对应的第一目标音节序列。Optionally, in the embodiment of the present application, the display unit 106 is configured to display the candidate words corresponding to the target pinyin sequence and the first target syllable sequence corresponding to the target pinyin sequence on the candidate word display area of the input method interface.
本申请实施例中,由于电子设备可以显示目标拼音序列对应的候选词、和目标拼音序列对应的第一目标音节序列,因此可以提示用户该候选词中的多音字的正确读音对应的音节序列,如此可以提升用户的使用体验。In the embodiment of the present application, since the electronic device can display the candidate word corresponding to the target pinyin sequence and the first target syllable sequence corresponding to the target pinyin sequence, the user can be prompted for the syllable sequence corresponding to the correct pronunciation of the polysyllabic word in the candidate word, This can improve the user experience.
应理解的是,本申请实施例中,输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器109可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。It should be understood that, in this embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042. Such as camera) to obtain still pictures or video image data for processing. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072 . The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts, a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here. Memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 110 .
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述候选词显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An 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 instruction is executed by a processor, each process of the above-mentioned embodiment of the candidate word display method is implemented, and can achieve The same technical effect, in order to avoid repetition, will not be repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the foregoing embodiments. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述候选词显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An 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 the above embodiment of the method for displaying candidate words and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要 素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes 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 the reverse order depending on the functions involved. To perform functions, for example, 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 some examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.

Claims (19)

  1. 一种候选词显示方法,其中,所述方法包括:A candidate word display method, wherein the method comprises:
    获取用户输入的第一拼音序列,所述第一拼音序列中包括M个音节序列;Obtain the first pinyin sequence input by the user, and the first pinyin sequence includes M syllable sequences;
    在所述M个音节序列中包含有第一音节序列的情况下,获取所述第一音节序列对应的至少一个第一目标音节序列;所述第一目标音节序列为:所述第一音节序列对应的至少一个目标字符中,所述目标字符存在的与所述第一音节序列不同的音节序列;When the M syllable sequences include a first syllable sequence, obtain at least one first target syllable sequence corresponding to the first syllable sequence; the first target syllable sequence is: the first syllable sequence In the corresponding at least one target character, a syllable sequence different from the first syllable sequence exists in the target character;
    分别采用所述至少一个第一目标音节序列,将所述第一拼音序列中的所述第一音节序列进行替换,生成至少一个第二拼音序列;respectively adopting the at least one first target syllable sequence to replace the first syllable sequence in the first pinyin sequence to generate at least one second pinyin sequence;
    在所述至少一个第二拼音序列中的目标拼音序列满足第一预设条件的情况下,显示所述目标拼音序列对应的候选词;In the case that the target pinyin sequence in the at least one second pinyin sequence satisfies the first preset condition, displaying the candidate word corresponding to the target pinyin sequence;
    其中,M为大于1的正整数。Among them, M is a positive integer greater than 1.
  2. 根据权利要求1所述的方法,其中,所述第一预设条件包括:词库中存在与目标拼音序列对应的候选词。The method according to claim 1, wherein the first preset condition comprises: candidate words corresponding to the target pinyin sequence exist in the thesaurus.
  3. 根据权利要求1所述的方法,其中,所述M个音节序列为M个单字音节序列;The method of claim 1, wherein the M syllable sequences are M single-word syllable sequences;
    所述获取第一音节序列集合之前,所述方法还包括:Before the acquiring the first syllable sequence set, the method further includes:
    在所述第一拼音序列为全拼拼音序列的情况下,将所述第一拼音序列拆分为所述M个单字音节序列。When the first pinyin sequence is a full pinyin sequence, the first pinyin sequence is split into the M single-word syllable sequences.
  4. 根据权利要求1所述的方法,其中,所述在所述M个音节序列中包含有第一音节序列的情况下,获取所述第一音节序列对应的至少一个第一目标音节序列,包括:The method according to claim 1, wherein, when the M syllable sequences include a first syllable sequence, acquiring at least one first target syllable sequence corresponding to the first syllable sequence comprises:
    在M处于预设范围内、且所述M个音节序列中包含有第一音节序列的情况下,获取所述第一音节序列对应的至少一个第一目标音节序列。When M is within a preset range and the M syllable sequences include a first syllable sequence, acquire at least one first target syllable sequence corresponding to the first syllable sequence.
  5. 根据权利要求1至4中任一项所述的方法,其中,所述第一音节序列包括:第二音节序列和第三音节序列;The method according to any one of claims 1 to 4, wherein the first syllable sequence comprises: a second syllable sequence and a third syllable sequence;
    所述分别采用所述至少一个第一目标音节序列,将所述第一拼音序列中的所述第一音节序列进行替换,生成至少一个第二拼音序列之前,还包括:Before the at least one first target syllable sequence is respectively used to replace the first syllable sequence in the first pinyin sequence to generate at least one second pinyin sequence, the method further includes:
    获取第一数值和第二数值;其中,所述第一数值为:所述第二音节序列对应的第一目标音节序列的个数值,所述第二数值为:所述第三音节序列对应的第一目标音节序列的个数值;Obtain a first numerical value and a second numerical value; wherein, the first numerical value is: the number of the first target syllable sequence corresponding to the second syllable sequence, and the second numerical value is: the corresponding third syllable sequence the value of the first target syllable sequence;
    所述分别采用所述至少一个第一目标音节序列,将所述第一拼音序列中的所述第一音节序列进行替换,包括:The at least one first target syllable sequence is respectively used to replace the first syllable sequence in the first pinyin sequence, including:
    在所述第一数值小于所述第二数值的情况下,分别采用所述第二音节序列对应的第一目标音节序列,将所述第一拼音序列中的所述第一音节序列进行替换。When the first numerical value is smaller than the second numerical value, the first target syllable sequence corresponding to the second syllable sequence is respectively used to replace the first syllable sequence in the first pinyin sequence.
  6. 根据权利要求5所述的方法,其中,所述方法还包括:The method of claim 5, wherein the method further comprises:
    在所述至少一个第二拼音序列中的每一个第二拼音序列均不满足所述第一预设条件的情况下,分别采用所述第三音节序列对应的第一目标音节序列,将所述第一拼音序列中的所述第一音节序列进行替换,生成至少一个第三拼音序列;In the case where each second pinyin sequence in the at least one second pinyin sequence does not satisfy the first preset condition, the first target syllable sequence corresponding to the third syllable sequence is used respectively, and the The first syllable sequence in the first pinyin sequence is replaced to generate at least one third pinyin sequence;
    在所述至少一个第三拼音序列中的第四拼音序列满足第二预设条件的情况下,显示所述第四拼音序列对应的候选词。In the case that the fourth pinyin sequence in the at least one third pinyin sequence satisfies the second preset condition, the candidate word corresponding to the fourth pinyin sequence is displayed.
  7. 根据权利要求6所述的方法,其中,所述第二预设条件包括:词库中存在所述 第四拼音序列对应的候选词。The method according to claim 6, wherein the second preset condition comprises: candidate words corresponding to the fourth pinyin sequence exist in the thesaurus.
  8. 一种候选词显示装置,其中,所述候选词显示装置包括:获取模块、生成模块和显示模块;A candidate word display device, wherein the candidate word display device comprises: an acquisition module, a generation module and a display module;
    所述获取模块,用于获取用户输入的第一拼音序列,所述第一拼音序列中包括M个音节序列;并在所述M个音节序列中包含有第一音节序列的情况下,获取第一音节序列对应的至少一个第一目标音节序列;所述第一目标音节序列为:所述第一音节序列对应的至少一个目标字符中,所述目标字符存在的与所述第一音节序列不同的音节序列;The acquisition module is configured to acquire the first pinyin sequence input by the user, where the first pinyin sequence includes M syllable sequences; and in the case that the M syllable sequences include the first syllable sequence, obtain the first At least one first target syllable sequence corresponding to a syllable sequence; the first target syllable sequence is: in at least one target character corresponding to the first syllable sequence, the target character exists that is different from the first syllable sequence syllable sequence;
    所述生成模块,用于分别采用所述获取模块获取的所述至少一个第一目标音节序列,将所述第一拼音序列中的所述第一音节序列进行替换,生成至少一个第二拼音序列;The generating module is configured to use the at least one first target syllable sequence obtained by the obtaining module respectively, replace the first syllable sequence in the first pinyin sequence, and generate at least one second pinyin sequence ;
    所述显示模块,用于在所述生成模块生成的所述至少一个第二拼音序列中的目标拼音序列满足第一预设条件的情况下,显示所述目标拼音序列对应的候选词;The display module is configured to display candidate words corresponding to the target pinyin sequence when the target pinyin sequence in the at least one second pinyin sequence generated by the generation module satisfies the first preset condition;
    其中,M为大于1的正整数。Among them, M is a positive integer greater than 1.
  9. 根据权利要求8所述的候选词显示装置,其中,所述第一预设条件包括:词库中存在与目标拼音序列对应的候选词。The candidate word display device according to claim 8, wherein the first preset condition comprises: there are candidate words corresponding to the target pinyin sequence in the thesaurus.
  10. 根据权利要求8所述的候选词显示装置,其中,所述M个音节序列为M个单字音节序列;The candidate word display device according to claim 8, wherein the M syllable sequences are M single-word syllable sequences;
    所述候选词显示装置还包括:拆分模块;The candidate word display device further includes: a splitting module;
    所述拆分模块,用于在所述第一拼音序列为全拼拼音序列的情况下,将所述第一拼音序列拆分为所述M个单字音节序列。The splitting module is configured to split the first pinyin sequence into the M single-word syllable sequences when the first pinyin sequence is a full pinyin sequence.
  11. 根据权利要求8所述的候选词显示装置,其中,所述获取模块,具体用于在M处于预设范围内、且所述M个音节序列中包含有第一音节序列的情况下,获取所述第一音节序列对应的至少一个第一目标音节序列。The candidate word display device according to claim 8, wherein the obtaining module is specifically configured to obtain the obtained syllable sequence when M is within a preset range and the M syllable sequences include the first syllable sequence. at least one first target syllable sequence corresponding to the first syllable sequence.
  12. 根据权利要求8至11中任一项所述的候选词显示装置,其中,所述第一音节序列包括:第二音节序列和第三音节序列;The candidate word display device according to any one of claims 8 to 11, wherein the first syllable sequence comprises: a second syllable sequence and a third syllable sequence;
    所述获取模块,还用于获取第一数值和第二数值;其中,所述第一数值为:所述第二音节序列对应的第一目标音节序列的个数值,所述第二数值为:所述第三音节序列对应的第一目标音节序列的个数值;The obtaining module is further configured to obtain a first numerical value and a second numerical value; wherein, the first numerical value is: the number of the first target syllable sequence corresponding to the second syllable sequence, and the second numerical value is: the value of the first target syllable sequence corresponding to the third syllable sequence;
    所述生成模块,具体用于在所述第一数值小于所述第二数值的情况下,分别采用所述第二音节序列对应的第一目标音节序列,将所述第一拼音序列中的所述第一音节序列进行替换。The generating module is specifically configured to use the first target syllable sequence corresponding to the second syllable sequence respectively when the first numerical value is smaller than the second numerical value, and use the first target syllable sequence corresponding to the second syllable sequence to convert all the Replace with the first syllable sequence.
  13. 根据权利要求12所述的候选词显示装置,其中,所述生成模块,还用于在所述至少一个第二拼音序列中的每一个第二拼音序列均不满足所述第一预设条件的情况下,分别采用所述第三音节序列对应的第一目标音节序列,将所述第一拼音序列中的所述第一音节序列进行替换,生成至少一个第三拼音序列;The candidate word display device according to claim 12, wherein the generating module is further configured to, in the at least one second pinyin sequence each second pinyin sequence do not satisfy the first preset condition In this case, the first target syllable sequence corresponding to the third syllable sequence is respectively used to replace the first syllable sequence in the first pinyin sequence to generate at least one third pinyin sequence;
    所述显示模块,还用于在所述生成模块生成的所述至少一个第三拼音序列中的第四拼音序列满足第二预设条件的情况下,显示所述第四拼音序列对应的候选词。The display module is further configured to display the candidate words corresponding to the fourth pinyin sequence when the fourth pinyin sequence in the at least one third pinyin sequence generated by the generation module satisfies the second preset condition .
  14. 根据权利要求13所述的候选词显示装置,其中,所述第二预设条件包括:词 库中存在所述第四拼音序列对应的候选词。The candidate word display device according to claim 13, wherein the second preset condition comprises: there are candidate words corresponding to the fourth pinyin sequence in the lexicon.
  15. 一种电子设备,其中,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至7中任一项所述的候选词显示方法的步骤。An electronic device, comprising a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being executed by the processor to achieve as claimed in claim 1 Steps of the candidate word display method described in any one of to 7.
  16. 一种可读存储介质,其中,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至7中任一项所述的候选词显示方法的步骤。A readable storage medium, wherein a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the method for displaying a candidate word according to any one of claims 1 to 7 is realized. step.
  17. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至7中任一项所述的候选词显示方法的步骤。A chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used for running a program or an instruction to implement the candidate according to any one of claims 1 to 7 The word shows the steps of the method.
  18. 一种计算机程序产品,所述计算机程序产品被存储在非易失的存储介质中,所述计算机程序产品被至少一个处理器执行以实现如权利要求1至7中任一项所述的候选词显示方法的步骤。A computer program product stored in a non-volatile storage medium, the computer program product being executed by at least one processor to implement a candidate word as claimed in any one of claims 1 to 7 Shows the steps of the method.
  19. 一种电子设备,包括所述电子设备被配置成用于执行如权利要求1至7中任一项所述的候选词显示方法的步骤。An electronic device, comprising the steps of the electronic device being configured to perform the method for displaying a candidate word according to any one of claims 1 to 7.
PCT/CN2021/129857 2020-11-13 2021-11-10 Candidate word display method and apparatus, and electronic device WO2022100622A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011270348.4 2020-11-13
CN202011270348.4A CN112328096A (en) 2020-11-13 2020-11-13 Candidate word display method and device and electronic equipment

Publications (1)

Publication Number Publication Date
WO2022100622A1 true WO2022100622A1 (en) 2022-05-19

Family

ID=74318644

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/129857 WO2022100622A1 (en) 2020-11-13 2021-11-10 Candidate word display method and apparatus, and electronic device

Country Status (2)

Country Link
CN (1) CN112328096A (en)
WO (1) WO2022100622A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112328096A (en) * 2020-11-13 2021-02-05 维沃移动通信有限公司 Candidate word display method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101441527A (en) * 2008-12-24 2009-05-27 腾讯科技(深圳)有限公司 Method and apparatus for prompting right pronunciation in phonetic input
CN105549760A (en) * 2016-01-27 2016-05-04 百度在线网络技术(北京)有限公司 Information input method and device
CN106774975A (en) * 2016-11-30 2017-05-31 百度在线网络技术(北京)有限公司 Input method and device
CN109144284A (en) * 2017-06-15 2019-01-04 百度在线网络技术(北京)有限公司 information display method and device
CN112328096A (en) * 2020-11-13 2021-02-05 维沃移动通信有限公司 Candidate word display method and device and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102200839A (en) * 2010-03-25 2011-09-28 阿里巴巴集团控股有限公司 Method and system for processing pinyin string in process of inputting Chinese characters
CN102135812B (en) * 2010-11-30 2013-11-06 华为终端有限公司 Method and device for inputting polyphonic Chinese characters
CN103365925B (en) * 2012-04-09 2016-12-14 高德软件有限公司 Obtain polyphone phonetic, method based on phonetic retrieval and related device thereof
CN110569501A (en) * 2019-07-30 2019-12-13 平安科技(深圳)有限公司 user account generation method, device, medium and computer equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101441527A (en) * 2008-12-24 2009-05-27 腾讯科技(深圳)有限公司 Method and apparatus for prompting right pronunciation in phonetic input
CN105549760A (en) * 2016-01-27 2016-05-04 百度在线网络技术(北京)有限公司 Information input method and device
CN106774975A (en) * 2016-11-30 2017-05-31 百度在线网络技术(北京)有限公司 Input method and device
CN109144284A (en) * 2017-06-15 2019-01-04 百度在线网络技术(北京)有限公司 information display method and device
CN112328096A (en) * 2020-11-13 2021-02-05 维沃移动通信有限公司 Candidate word display method and device and electronic equipment

Also Published As

Publication number Publication date
CN112328096A (en) 2021-02-05

Similar Documents

Publication Publication Date Title
JP6151381B2 (en) Virtual keyboard input for international languages
EP2987055B1 (en) Text suggestion output using past interaction data
EP2987054B1 (en) Consistent text suggestion output
US9984069B2 (en) Input method, input apparatus, and terminal
WO2015088669A1 (en) Multiple character input with a single selection
CN104123012B (en) Use the attitude keyboard input of the non-dictionary character string that substitutes scoring
WO2022135474A1 (en) Information recommendation method and apparatus, and electronic device
KR20100015958A (en) Multi-mode input method editor
US10402474B2 (en) Keyboard input corresponding to multiple languages
WO2022143454A1 (en) Information correction method and apparatus, and electronic device
US20200065370A1 (en) Abbreviated handwritten entry translation
JP2021114284A (en) Method and apparatus for predicting punctuation mark
WO2022166808A1 (en) Text restoration method and apparatus, and electronic device
WO2022100622A1 (en) Candidate word display method and apparatus, and electronic device
WO2022105754A1 (en) Character input method and apparatus, and electronic device
CN113359999B (en) Candidate word updating method and device and electronic equipment
CN107329964A (en) A kind of text handling method and device
CN112154442A (en) Text entry and conversion of phrase-level abbreviations
CN112148135A (en) Input method processing method and device and electronic equipment
KR102327790B1 (en) Information processing methods, devices and storage media
WO2022233275A1 (en) Input correction method and apparatus
WO2022135294A1 (en) Candidate word display method and apparatus, and electronic device
WO2022194207A1 (en) Input method and apparatus, electronic device and readable storage medium
US20120303368A1 (en) Number-assistant voice input system, number-assistant voice input method for voice input system and number-assistant voice correcting method for voice input system
WO2022161307A1 (en) Text translation method and apparatus, and device and medium

Legal Events

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

Ref document number: 21891142

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21891142

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 24.11.2023)