CN109814734B - Method for correcting Chinese pinyin input and processing terminal - Google Patents

Method for correcting Chinese pinyin input and processing terminal Download PDF

Info

Publication number
CN109814734B
CN109814734B CN201910037673.7A CN201910037673A CN109814734B CN 109814734 B CN109814734 B CN 109814734B CN 201910037673 A CN201910037673 A CN 201910037673A CN 109814734 B CN109814734 B CN 109814734B
Authority
CN
China
Prior art keywords
pinyin
block
corrected
letter
correction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910037673.7A
Other languages
Chinese (zh)
Other versions
CN109814734A (en
Inventor
崔岩
刘昱恒
高尚
董图
黄冠
黄妍敏
黄蕾敏
黄建国
张运华
连改娥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Quchong Technology Co ltd
Original Assignee
Shanghai Quchong Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Quchong Technology Co ltd filed Critical Shanghai Quchong Technology Co ltd
Priority to CN201910037673.7A priority Critical patent/CN109814734B/en
Publication of CN109814734A publication Critical patent/CN109814734A/en
Application granted granted Critical
Publication of CN109814734B publication Critical patent/CN109814734B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a method for correcting Chinese pinyin input and a processing terminal, wherein the method comprises the following steps: step 1: receiving a pinyin string input by a user, and dividing the pinyin string into at least one pinyin block, wherein the pinyin block comprises a complete pinyin block, a partial pinyin block and a single letter, and the front and rear pinyin blocks are distinguished by partition characters; step 2: receiving a selection signal input by a user, and selecting one of the pinyin blocks, wherein the selected pinyin block is a to-be-corrected pinyin block; and step 3: receiving a signal of a correction letter input by a user, and judging an operating correction scheme according to the Chinese pinyin scheme and the correction letter, wherein the correction scheme is an adding or deleting or replacing operation so that the corrected pinyin blocks to be corrected form a new pinyin block. The invention can quickly and accurately correct the input pinyin sequence.

Description

Method for correcting Chinese pinyin input and processing terminal
Technical Field
The invention relates to the technical field of Chinese pinyin input methods, in particular to a method for correcting Chinese pinyin input and a processing terminal.
Background
In the chinese pinyin input method, in the process of inputting pinyin, it is often wrong to touch a certain pinyin that has been input, and the correction is needed, and usually a certain letter in the pinyin needs to be modified, including adding, deleting or replacing a certain letter. The existing correction method is to delete the wrong letters and the correct letters behind the wrong letters one by one and then input the wrong letters again, or position the wrong letters or add letters from the cursor position after the correct letters are positioned to the corresponding position through cursor operation and the like, or input new correct letters for replacement after a certain letter is selected through the cursor.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a method for correcting Chinese pinyin input, which can solve the problem of quickly correcting single letters in pinyin;
the second objective of the present invention is to provide a processing terminal, which can solve the problem of quickly correcting single letter in pinyin.
The technical scheme for realizing one purpose of the invention is as follows: a method for correcting Chinese pinyin input comprises the following steps:
step 1: receiving and displaying a pinyin string input by a user, dividing the pinyin string into at least one pinyin block according to a Chinese pinyin scheme, and distinguishing a plurality of pinyin blocks through partition marks;
step 2: receiving a selection signal input by a user, and selecting one of the pinyin blocks, wherein the selected pinyin block is a to-be-corrected pinyin block;
and step 3: receiving a signal of a letter for correction input by a user, recording the letter for correction as a corrected letter, and judging an operating correction scheme according to a Chinese pinyin scheme and the corrected letter, wherein the correction scheme is to add, delete or replace the pinyin block to be corrected so that the corrected pinyin block to be corrected forms a new pinyin block.
Further, if the modification scheme can be two or three of the addition, deletion and replacement operations, any one of them is selected as the modification scheme according to the predefined rule.
Further, the predefined rule is: the correction schemes are selected in the order of the add, delete and replace operations in turn.
Further, when the correction scheme is an adding operation, adding the correction letters at corresponding positions in the pinyin block to be corrected according to the Chinese pinyin scheme;
when the correction scheme is a deletion operation, deleting letters which are the same as the corrected letters in the pinyin block to be corrected;
and when the correction scheme is a replacement operation, replacing the corresponding letters in the pinyin block to be corrected with the corrected letters according to the Chinese pinyin scheme.
Further, if the new pinyin block obtained by correcting the pinyin block to be corrected is completely consistent with the previous continuous letters of the unique pinyin syllable, a plurality of letters are automatically added after the tail letter of the corrected new pinyin block according to the Chinese pinyin scheme to form the unique pinyin syllable.
Further, the corrected letters are input by sliding or clicking or stroke or gesture or voice or eye tracking or electric wave input.
Further, if the corrected letters are corrected by the correction scheme on the pinyin block to be corrected to obtain more than two new pinyin blocks, the corresponding pinyin blocks are selected and displayed according to the word frequency or the word frequency, or the corrected letters are input again, and another pinyin block is switched and the corresponding pinyin block is displayed.
Further, according to the pinyin scheme and the correction letters, if any one of the operations of the correction scheme executed by the pinyin block to be corrected cannot enable the corrected pinyin block to be corrected to form a new pinyin block, and when the correction letters can be used as pinyin initial letters, all the pinyin blocks to be corrected are replaced by the correction letters; when the corrected letter can not be used as the first letter of the phonetic alphabet, the phonetic block to be corrected is not changed, and the processing is finished.
The second technical scheme for realizing the aim of the invention is as follows: a processing terminal comprising, a memory for storing program instructions;
and the processor is used for operating the program instructions to execute the steps of the method for correcting the Chinese pinyin input.
The invention has the beneficial effects that: the method has the advantages of few operations, no need of repeated clicking or full selecting operations by the user, simplified user operation and capability of quickly and accurately correcting the single letter in the pinyin block to be corrected, and only needs one-time clicking by the user.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of the present invention;
FIG. 2 is a schematic diagram of a processing terminal according to the present invention;
FIG. 3 is a schematic diagram of an interface for inputting a pinyin string using a sliding input method;
FIG. 4 is a schematic diagram of an interface for correcting a pinyin string using a sliding input method.
Detailed Description
The invention will be further described with reference to the accompanying drawings and the detailed description below: before the present invention is introduced, relevant Chinese phonetic basic expressions are introduced. The pinyin string is a character string consisting of single or multiple characters, and can be divided into one or more of the following three parts based on a Chinese pinyin scheme, namely, the pinyin string is divided into pinyin blocks: the first part is a complete pinyin block and corresponds to a Chinese character syllable; the second part is a partial pinyin block formed by a plurality of continuous letters, wherein the partial pinyin block formed by the continuous letters can form initial consonants or final consonants according to the official Chinese pinyin scheme of the country or can form Chinese syllables or initial consonants or final consonants after one or more letters are added to the first/last letters of the partial pinyin block; the third part is a single letter, i.e. neither forming a syllable nor a part of a pinyin block of a Chinese character, defined as a single letter, it should be noted that the single letter is not a letter understood in the normal sense, e.g. letters a, e, o, etc. can constitute a syllable of a Chinese character, so that touching these similar letters still defines a syllable of a Chinese character rather than a single letter. The complete pinyin blocks, partial pinyin blocks and individual letters between the front and back are separated by dividers, so that the pinyin blocks include complete pinyin blocks, partial pinyin blocks and individual letters.
For example, the input "shang ' h ' xia ' zh ' dao" is a pinyin string, wherein ' represents a separator. The pinyin string comprises three parts including three complete pinyin blocks, namely, shang, xia and dao (corresponding to three Chinese character syllables, shang, xia and dao); the letters z and h form the initial zh, i.e. a continuous letter can be formed, thus forming a partial pinyin block zh; since the letter h and the following letter x cannot constitute a continuous letter, only a single letter h can be formed, but it is also possible to divide into "shan 'g' h 'xi' a 'zh' dao" or "shan 'h' xia 'zh' dao" or "sha 'n' g 'h' xia 'zh' dao", and the like. In this case, a pinyin string input by the user can be finally divided into pinyin blocks of one scheme by adopting a predefined rule of priority, for example, when a pinyin string is divided, the pinyin string is divided by adopting a first division scheme and a second division scheme, and then the first division scheme and the second division scheme are compared, and a division scheme corresponding to a small number of pinyin blocks is selected. Both the first division scheme and the second division scheme are to divide as many letters as possible into a complete pinyin block, namely, to divide a pinyin string into a scheme with the least number of pinyin blocks and the most complete pinyin blocks. The first segmentation scheme comprises the following specific steps: firstly, starting from the front to back direction from the first letter of the pinyin string input by a user, the first letter is not forward to adjacent letters, so the first letter forms a pinyin block, whether a next letter and an adjacent previous pinyin block can form the pinyin block is sequentially judged according to a Chinese pinyin scheme, the pinyin block comprises a complete pinyin block, a partial pinyin block and a single letter, if the next letter and the adjacent previous pinyin block cannot form the pinyin block, a partition character is generated between the next letter and the adjacent previous pinyin block, if the next letter and the adjacent previous pinyin block can form the pinyin block, the next letter and the adjacent previous pinyin block are combined into a new pinyin block, and whether the next letter and the new pinyin block after the new pinyin block can form the pinyin block is continuously judged until the pinyin string is completely partitioned.
The second segmentation scheme comprises the specific steps of: starting from the last letter of the pinyin string input by a user, forming a pinyin block as long as possible with a plurality of adjacent letters, generating a partition character in front of the pinyin block, taking the last letter in front of the partition character as the last letter of the un-partitioned pinyin string, repeating the previous step, forming the last letter of the un-partitioned pinyin string and the plurality of adjacent letters into the pinyin block as long as possible until the whole pinyin string is completely partitioned, and obtaining the number of the pinyin blocks. Then comparing the number of the pinyin blocks segmented by the first segmentation scheme and the second segmentation scheme, wherein the scheme with the small number of the pinyin blocks is used as the preferred scheme, if the number of the pinyin blocks in the two schemes is the same, comparing the scheme with the most complete syllable number as the preferred scheme, and if the number of the pinyin blocks in the two schemes is still the same, selecting the scheme from front to back or from back to front or with the highest use frequency as the preferred scheme according to a predefined rule.
In combination with the wide application of the current artificial intelligence and big data technology, the segmentation scheme can also adopt a matching mode, and the method specifically comprises the following steps: if the pinyin letter sequence of the current pinyin string to be segmented and a pinyin syllable (namely a complete legal pinyin) reach a preset matching degree, for example, the matching degree is 80% or more, or the pinyin syllable with the highest matching degree with the pinyin letter sequence of the current pinyin string to be segmented reaches a certain use number, for example, the use number reaches 10 ten thousand, the pinyin letter sequence of the current pinyin string to be segmented is taken as a pinyin block, so that a unique target pinyin syllable corresponding to the pinyin block is obtained. Here, matching means that each pinyin letter of the current pinyin string to be segmented corresponds to a letter of a pinyin syllable in terms of sequence, and the sequence of each letter is completely the same, for example, each letter of the pinyin string "xong" to be segmented can correspond to a letter in the pinyin syllable "xiong" in terms of sequence, so that "xong" is a pinyin block, and matching means the percentage of the number of letters of the pinyin string to be segmented and the number of letters of the corresponding pinyin syllable/the number of letters of the corresponding pinyin syllable.
For example, the first scheme of dividing the pinyin string "baniang" is "ban ' i ' ang", the second scheme is "ba ' niang", and the second scheme can be preferentially adopted for division according to the predefined rule of the priority order because the number of the pinyin blocks in the second scheme is less; for example, the pinyin string "bangongshi" may be divided into two types, namely "bang 'ong' shi" and "ban 'gong' shi", and the number of pinyin blocks in the two types of division schemes is equal, but the number of complete syllables in the second type is more, so the second division scheme is preferably adopted.
As shown in fig. 1, fig. 3 and fig. 4, a method for correcting a chinese pinyin input includes the following steps:
step 1: receiving a signal of at least one letter input by a user, displaying a pinyin string consisting of the at least one letter in parallel, dividing the pinyin string into pinyin blocks according to a Chinese pinyin scheme, wherein the pinyin blocks comprise a complete pinyin block, a partial pinyin block and a single letter, and the front and rear pinyin blocks are distinguished by partition marks. If the pinyin string can be divided into pinyin blocks with multiple schemes, that is, multiple division schemes exist, any one of the division schemes can be selected according to predefined rules, and the division scheme with the least number of pinyin blocks and the most number of complete pinyin blocks is preferred. If inputting the pinyin string 'surufa', according to the Chinese pinyin scheme, a first letter s and a second letter u can form a complete pinyin block, and su and a third letter r cannot form the pinyin block, so that the first letter u and the letter r are distinguished by a partition symbol, the same processing is carried out, the second letter u and the letter f can be distinguished by a partition symbol, the pinyin string 'surufa' is divided into three complete pinyin blocks (su, ru, fa), a user judges that the input pinyin string has a wrong pinyin block defined as a pinyin block to be corrected, and the user selects the wrong pinyin block, namely the pinyin block to be corrected is selected and enters a correction state. If the user inputs the target Chinese character 'input method', the corresponding pinyin string is 'su' ru 'fa', the complete pinyin block su is judged to be the pinyin block to be corrected, the letter h is lacked, and the state of correction is entered after the pinyin block su to be corrected is clicked and selected.
Step 2: receiving a selection signal input by a user, selecting a pinyin block in a pinyin string, inputting a letter for correction, defining the selected pinyin block as a pinyin block to be corrected, and defining the letter input by the user for correction as a correction letter, wherein the pinyin block su to be corrected lacks a letter h in step 1, inputting a letter h to be added as a correction letter, judging a running correction scheme according to a Chinese pinyin scheme and the correction letter after inputting the correction letter h, wherein the correction scheme is to perform addition, deletion or replacement operation on the pinyin block to be corrected, namely adding the correction letter into the pinyin string, deleting a letter which is the same as the correction letter from the pinyin block to be corrected, replacing one letter in the pinyin block to be corrected by the correction letter, so that the pinyin block to be corrected can form a pinyin block after correcting the corrected letter, namely a new pinyin block obtained by correcting the pinyin block to be corrected, the new pinyin block obtained after correction is any one of the pinyin blocks, namely one of a complete pinyin block, a partial pinyin block and a single letter.
And if the correction letters can carry out two or three correction schemes of adding, deleting and replacing operations on the pinyin block to be corrected, selecting one correction scheme according to a predefined rule to correct the pinyin block to be corrected. In this embodiment, the modification schemes are sequentially selected according to the order of the adding, deleting, and replacing operations, that is, if the modification scheme of the adding operation can be used, the modification scheme of the adding operation is selected; when the correction scheme of the adding operation cannot be used and the correction scheme of the deleting operation can be used, the correction scheme of the deleting operation is selected, otherwise, the correction scheme of the replacing operation is selected finally. For example, after the pinyin block ge to be corrected inputs the correction letter n, the correction scheme of the adding operation can be selected to form gen, and the correction scheme of the replacing operation can be selected to form ne. If the spelling block lang to be corrected is input, the correction scheme of the deletion operation can be selected to form lang, that is, the corrected new spelling block can be obtained, and the correction scheme of the replacement operation can be selected to form lang. For example, after the pinyin block ang to be modified inputs the modified letter g, the modified scheme of the adding operation can be selected to form gang, and the modified scheme of the deleting operation can be selected to form an.
For example, after the pinyin block su to be modified inputs the modified letter h, the pinyin block su to be modified is judged to be capable of increasing the letter h and replacing the letter h with the letter u according to the Chinese pinyin scheme to respectively form a complete pinyin block shu and a partial pinyin block sh, but the added modification scheme is prior to the modification scheme of the replacement operation, so that the pinyin block su is modified into the complete pinyin block shu; for example, inputting a pinyin string 'jiang' shu 'sheng' of a Chinese character 'Jiangsu province', judging that the syllable shu of the Chinese character is a pinyin block to be corrected, and judging that the pinyin block to be corrected can only delete a letter h to form su according to a Chinese pinyin scheme after inputting a correction letter h; for example, inputting a pinyin string dui' zou of taking away Chinese characters, judging that the syllable dui of the Chinese character is a pinyin block to be corrected, and after inputting a correction letter a, judging that the pinyin block dui to be corrected can only replace the letter u according to the Chinese pinyin scheme, namely, the letter u needs to be replaced by the correction letter a.
If the pinyin block to be modified needs to be added with the correction letters, the positions of the correction letters in the pinyin block to be modified are judged according to the Chinese pinyin scheme, so that the pinyin block to be modified and the correction letters can form legal pinyin, and the pinyin block can be formed. For example, after inputting the corrected letter h into the to-be-corrected pinyin block su of the pinyin string "su 'ru' fa", the corrected letter h can only be placed in the middle of the to-be-corrected pinyin block su according to the Chinese pinyin scheme, i.e., shu is formed, and then legal pinyin can be formed.
If in a modification scheme of the adding operation or the replacing operation, the modified letters can form legal pinyin at more than two positions of the pinyin block to be modified, i.e. the pinyin block can be formed, for example, after the modified letter a is input into the pinyin block di to be modified, the modification scheme of the adding operation and the modification scheme of the replacing operation can be selected, and the modification scheme of the adding operation can be preferentially selected according to the priority. Taking a correction scheme of increasing operation as an example, judging that a corrected letter a can be placed in the middle position or the tail position of a pinyin block di to be corrected according to a Chinese pinyin scheme to form two legal pinyins dai and dia, and at the moment, preferentially replacing the corrected letter a according to word frequency or word frequency used by a user, for example, replacing the corrected letter a into a Chinese character syllable with the highest word frequency according to the word frequency used by the user, finding that the word frequency of the input Chinese character syllable dai is higher than the word frequency of the Chinese character syllable dia, placing the corrected letter a in the middle position of the pinyin block di to be corrected to form the legal pinyins dai, if the pinyin of a target Chinese character 'die' of the user is dia, and setting that when the user clicks the corrected letter a again, the legal pinyins dai can be switched to another legal pinyins dia, namely, when one corrected letter is subjected to one correction operation on the pinyin block to be corrected, a plurality of pinyin blocks can be generated at the same time, and the corrected letter can be clicked repeatedly, and switching to another pinyin block for selection by a user, inputting the corrected letter n by the same pinyin to be corrected of nan, deleting the letter n, obtaining two pinyin blocks na and an, and processing by adopting the same method. Certainly, the replacement may be performed according to other predefined rules of the user, for example, the whole pinyin string or the preceding and following pinyin blocks are taken into consideration to determine whether the chinese character formed by replacing the corrected letters is a general word or phrase, for example, if the corrected letter a is placed at the end of the pinyin block di to be corrected to form a legal pinyin dia, but the pinyin string "dia 'zou" cannot form a general word or phrase (the legal pinyin dia can only form a chinese character "die"), so the letter a can only be placed at the middle position of the pinyin block di to be corrected, and a general word can be formed (the pinyin string "dai' zou" can form a general word "take away").
If the pinyin block to be modified needs to delete the letters identical to the modified letters, the position of the modified letters in the pinyin block to be modified is judged according to the Chinese pinyin scheme, so that the legal pinyin can be formed after the letters identical to the modified letters are deleted in the pinyin block to be modified, namely the pinyin block can be formed. For example, after the correction letter h is input to the spelling block shu to be corrected in the spelling string "jiang 'shu' sheng", it is determined that the letter h in the spelling block shu to be corrected needs to be deleted.
In the correction scheme of the deletion operation, if more than two wrong letters need to be deleted, the pinyin required by the user can be formed, generally, the user deletes the letters in sequence to obtain the pinyin required by the user, for example, inputting a pinyin string "lang' kai" of a Chinese character "pull open", and finding that the pinyin block lang to be corrected needs to delete the letters g and n in sequence to obtain the pinyin la required by the user. However, if the corresponding letters are not sequentially deleted, for example, if the user inputs the corrected letter n first, the user can only select a correction scheme of deletion operation to modify the to-be-corrected pinyin block into lag, and it should be noted that the user selects the to-be-corrected pinyin block lang to make the lang pinyin in a corrected state, and the lang pinyin block is always in a corrected state before the user selects the candidate chinese character, i.e., the to-be-corrected pinyin block is always in a selected state, and the to-be-corrected pinyin block in the corrected state is not segmented, i.e., the to-be-corrected pinyin block is modified into lag, and the pinyin lag is still in the selected corrected state, and a new partition character, for example, the to-be-segmented into la' g, is not generated. Under the condition, judging whether the pinyin obtained after the letters are deleted for the last time obtains the syllable of the Chinese character, if so, directly ending the correction state and waiting for the user to select the candidate words or waiting for the user to select the pinyin block again to be in the correction state, if not, continuing deleting the next letter of the deleted letter according to the Chinese pinyin scheme, so that the remaining pinyin can obtain the syllable of the Chinese character, ending the correction state, for example, obtaining the pinyin lag, the pinyin lag is not a syllable of the Chinese character, and automatically continuing deleting the letter g to obtain the syllable la of the Chinese character and ending the correction state according to the Chinese pinyin scheme. Certainly, the user may wait for the second correction letter input by the user without ending the correction state until the correction scheme can be executed to generate a new pinyin block, and then click the pinyin block to be corrected again to end the correction state by the user.
No matter which operation is added or deleted or replaced in the correction scheme, according to the Chinese pinyin scheme and the correction letters, if any operation in the correction scheme is executed on the pinyin block to be corrected, the corrected pinyin block to be corrected cannot form a new pinyin block, and when the correction letters can be used as pinyin initial letters, all the pinyin blocks to be corrected can be replaced by the correction letters; when the corrected letter can not be used as the first letter of the pinyin, the pinyin block to be corrected is not changed, and the processing is finished.
If the pinyin block to be corrected needs to replace the corrected letters, the position of the corrected letters in the pinyin block to be corrected is judged according to the Chinese pinyin scheme, so that the letters needing to be replaced in the pinyin block to be corrected are judged to be the wrongly input letters according to the Chinese pinyin scheme after the corresponding letters are replaced with the corrected letters in the pinyin block to be corrected, the corrected pinyins can form legal pinyins, and the pinyin block can be formed. For example, after the correction letter a is input into the to-be-corrected pinyin block dui of the pinyin string "dui' zou", it is determined that the correction letter a can only replace the position of the letter u in the to-be-corrected pinyin block dui. For example, after inputting the pinyin string "sai' gei" with the Chinese character "bring to", and inputting the correction letter d, only the position of the letter s in the pinyin block sai to be corrected can be replaced, thereby forming the legal pinyin dai.
After the corrected phonetic block is corrected to obtain partial phonetic block or single letter, and when the subsequent legal letter sequence is judged to be unique according to the Chinese phonetic scheme, several letters can be added automatically to the corrected partial phonetic block or single letter after the tail letter, and the unique phonetic syllable is the syllable of Chinese character and the corresponding Chinese character is displayed for the user to select. For example, after the pinyin block an to be corrected is corrected to obtain a single letter a, the single letter a may be a Chinese character syllable, and then a letter is not added behind the letter a, and a Chinese character (e.g., a) corresponding to the Chinese character syllable a is displayed. For another example, the pinyin lo to be modified is modified by adding an operation modification scheme to obtain pinyin lon (partial pinyin block), the pinyin lon does not belong to a Chinese character syllable, and according to the Chinese pinyin scheme, the only legal letter after lon is g, the letter g is automatically added after the tail letter of the modified new pinyin block, so that the only complete legal pinyin block long is formed, and the corresponding Chinese character is displayed for the user to select.
As shown in fig. 3 and 4, in the present embodiment, the correction letters can be input by a sliding input method, specifically, the sliding input method adopts a sliding letter input implemented according to the technical solution provided in the "detailed description" in patent application No. 201180041380.8. FIG. 3 uses the sliding input method to input the "dui ' zou" pinyin string, and FIG. 4 uses the sliding input method to input the corrected letter a, and then modifies the "dui ' zou" pinyin string of FIG. 3 into "dai ' zou", i.e., replaces the letter u with the corrected letter a, to form a legal pinyin string. The corrected letters can also be input by clicking or stroke or gesture or voice or eye tracking or electric wave input.
Further, the clicking the to-be-corrected pinyin block in the step 1 specifically realizes a process including the following steps:
the initial position of clicking is obtained, namely, a selection signal input by a user is received, one of the pinyin blocks is selected, for example, a pinyin string ' surufa ' is input and is divided into ' su ' fa ', each divided pinyin block can form an area similar to a key, and the area of the syllable ' su ' of the Chinese character is clicked, namely, the pinyin block ' su ' is selected. Through the operation, the user only needs to directly click the pinyin block to be modified, and the user does not need to move the cursor to the modified pinyin position one by one for many times, so that the operation of the user is simplified and facilitated.
As shown in fig. 2, the present invention also relates to a processing terminal 100 of a physical device implementing the above method, which comprises,
a memory 101 for storing program instructions;
a processor 102 for executing the program instructions to perform the steps of the method for correcting the pinyin input.
The embodiments disclosed in this description are only an exemplification of the single-sided characteristics of the invention, and the scope of protection of the invention is not limited to these embodiments, and any other functionally equivalent embodiments fall within the scope of protection of the invention. Various other changes and modifications to the above-described embodiments and concepts will become apparent to those skilled in the art from the above description, and all such changes and modifications are intended to be included within the scope of the present invention as defined in the appended claims.

Claims (10)

1. A method for correcting Chinese pinyin input is characterized in that: the method comprises the following steps:
step 1: receiving and displaying a pinyin string input by a user, and dividing the pinyin string into at least one pinyin block according to a Chinese pinyin scheme;
step 2: receiving a selection signal input by a user, and selecting one of the pinyin blocks, wherein the selected pinyin block is a to-be-corrected pinyin block;
and step 3: receiving a signal of a letter for correction input by a user, recording the letter for correction as a correction letter, and judging an operating correction scheme according to a Chinese pinyin scheme and the correction letter, wherein the correction scheme is to perform addition, deletion or replacement operation on the pinyin block to be corrected, and comprises the steps of adding the correction letter into a pinyin string, deleting a letter which is the same as the correction letter from the pinyin block to be corrected, and replacing one letter in the pinyin block to be corrected with the correction letter so that the corrected pinyin block to be corrected forms a new pinyin block.
2. The method of modifying chinese pinyin input of claim 1, wherein: if the modification scheme can be two or three modification schemes of adding, deleting and replacing operations, any one of the modification schemes is selected as the modification scheme according to a predefined rule.
3. The method of modifying chinese pinyin input of claim 2, wherein: the predefined rule is: the correction schemes are selected in the order of the add, delete and replace operations in turn.
4. The method of modifying chinese pinyin input of claim 1, wherein: when the correction scheme is an adding operation, adding the correction letters at corresponding positions in the pinyin block to be corrected according to the Chinese pinyin scheme;
when the correction scheme is a deletion operation, deleting letters which are the same as the corrected letters in the pinyin block to be corrected;
and when the correction scheme is a replacement operation, replacing the corresponding letters in the pinyin block to be corrected with the corrected letters according to the Chinese pinyin scheme.
5. The method of modifying chinese pinyin input of claim 1, wherein: the pinyin string is divided into at least one pinyin block according to the Chinese pinyin scheme, the plurality of divided pinyin blocks are distinguished through partition marks, and each pinyin block corresponds to one target Chinese character.
6. The method of modifying chinese pinyin input of claim 1, wherein: if the new pinyin block obtained after the pinyin block to be corrected is completely consistent with the first continuous letters of the unique pinyin syllable, automatically adding a plurality of letters according to the Chinese pinyin scheme after the tail letter of the corrected new pinyin block to form the unique pinyin syllable.
7. The method of modifying chinese pinyin input of claim 1, wherein: the corrected letters are input in a sliding or clicking or stroke or gesture or voice or eyeball tracking or electric wave input mode.
8. The method of modifying chinese pinyin input of claim 1, wherein: if the corrected letters are corrected by the correction scheme to obtain more than two new pinyin blocks, selecting and displaying the corresponding pinyin blocks according to the word frequency or the word frequency, or switching another pinyin block and displaying the corresponding pinyin block by clicking the corrected letters again.
9. The method of modifying chinese pinyin input of claim 1, wherein:
according to the Chinese pinyin scheme and the correction letters, if any one operation in the correction scheme executed by the pinyin block to be corrected cannot enable the corrected pinyin block to be corrected to form a new pinyin block, and when the correction letters can be used as pinyin initial letters, all the pinyin blocks to be corrected are replaced by the correction letters; when the corrected letter can not be used as the first letter of the phonetic alphabet, the phonetic block to be corrected is not changed, and the processing is finished.
10. A processing terminal, comprising,
a memory for storing program instructions;
a processor for executing the program instructions to perform the steps of the method for modifying a chinese pinyin input as claimed in any one of claims 1 to 9.
CN201910037673.7A 2019-01-15 2019-01-15 Method for correcting Chinese pinyin input and processing terminal Active CN109814734B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910037673.7A CN109814734B (en) 2019-01-15 2019-01-15 Method for correcting Chinese pinyin input and processing terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910037673.7A CN109814734B (en) 2019-01-15 2019-01-15 Method for correcting Chinese pinyin input and processing terminal

Publications (2)

Publication Number Publication Date
CN109814734A CN109814734A (en) 2019-05-28
CN109814734B true CN109814734B (en) 2022-04-15

Family

ID=66604229

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910037673.7A Active CN109814734B (en) 2019-01-15 2019-01-15 Method for correcting Chinese pinyin input and processing terminal

Country Status (1)

Country Link
CN (1) CN109814734B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111222335A (en) * 2019-11-27 2020-06-02 上海眼控科技股份有限公司 Corpus correction method and device, computer equipment and computer-readable storage medium

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101206673A (en) * 2007-12-25 2008-06-25 北京科文书业信息技术有限公司 Intelligent error correcting system and method in network searching process
CN101382866A (en) * 2008-09-26 2009-03-11 腾讯科技(深圳)有限公司 System and method for correcting input characters
CN101477565A (en) * 2009-01-22 2009-07-08 北京搜狗科技发展有限公司 Method and apparatus for confirming correctness of input character string in search engine
CN101639830A (en) * 2009-09-08 2010-02-03 西安交通大学 Chinese term automatic correction method in input process
CN101710262A (en) * 2009-12-11 2010-05-19 北京搜狗科技发展有限公司 Error correction method and error correction device of characters
CN102200839A (en) * 2010-03-25 2011-09-28 阿里巴巴集团控股有限公司 Method and system for processing pinyin string in process of inputting Chinese characters
CN103136196A (en) * 2008-04-18 2013-06-05 上海触乐信息科技有限公司 Methods used for inputting text into electronic device and correcting error
KR101294558B1 (en) * 2013-04-15 2013-08-07 김민철 Type error correction method
CN103473003A (en) * 2013-09-12 2013-12-25 天津三星通信技术研究有限公司 Character input error correction method and device
CN104050255A (en) * 2014-06-13 2014-09-17 上海交通大学 Joint graph model-based error correction method and system
CN104252484A (en) * 2013-06-28 2014-12-31 重庆新媒农信科技有限公司 Pinyin error correction method and system
CN104317780A (en) * 2014-09-28 2015-01-28 无锡卓信信息科技有限公司 Quick correction method of Chinese input texts
WO2016107316A1 (en) * 2014-12-30 2016-07-07 北京奇虎科技有限公司 Method and device for input method cursor operation
CN105975625A (en) * 2016-05-26 2016-09-28 同方知网数字出版技术股份有限公司 Chinglish inquiring correcting method and system oriented to English search engine
CN106250364A (en) * 2016-07-20 2016-12-21 科大讯飞股份有限公司 A kind of text modification method and device
CN106484131A (en) * 2015-09-02 2017-03-08 北京搜狗科技发展有限公司 A kind of input error correction method and input subtraction unit

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101206673A (en) * 2007-12-25 2008-06-25 北京科文书业信息技术有限公司 Intelligent error correcting system and method in network searching process
CN103136196A (en) * 2008-04-18 2013-06-05 上海触乐信息科技有限公司 Methods used for inputting text into electronic device and correcting error
CN101382866A (en) * 2008-09-26 2009-03-11 腾讯科技(深圳)有限公司 System and method for correcting input characters
CN101477565A (en) * 2009-01-22 2009-07-08 北京搜狗科技发展有限公司 Method and apparatus for confirming correctness of input character string in search engine
CN101639830A (en) * 2009-09-08 2010-02-03 西安交通大学 Chinese term automatic correction method in input process
CN101710262A (en) * 2009-12-11 2010-05-19 北京搜狗科技发展有限公司 Error correction method and error correction device of characters
CN102200839A (en) * 2010-03-25 2011-09-28 阿里巴巴集团控股有限公司 Method and system for processing pinyin string in process of inputting Chinese characters
KR101294558B1 (en) * 2013-04-15 2013-08-07 김민철 Type error correction method
CN104252484A (en) * 2013-06-28 2014-12-31 重庆新媒农信科技有限公司 Pinyin error correction method and system
CN103473003A (en) * 2013-09-12 2013-12-25 天津三星通信技术研究有限公司 Character input error correction method and device
CN104050255A (en) * 2014-06-13 2014-09-17 上海交通大学 Joint graph model-based error correction method and system
CN104317780A (en) * 2014-09-28 2015-01-28 无锡卓信信息科技有限公司 Quick correction method of Chinese input texts
WO2016107316A1 (en) * 2014-12-30 2016-07-07 北京奇虎科技有限公司 Method and device for input method cursor operation
CN106484131A (en) * 2015-09-02 2017-03-08 北京搜狗科技发展有限公司 A kind of input error correction method and input subtraction unit
CN105975625A (en) * 2016-05-26 2016-09-28 同方知网数字出版技术股份有限公司 Chinglish inquiring correcting method and system oriented to English search engine
CN106250364A (en) * 2016-07-20 2016-12-21 科大讯飞股份有限公司 A kind of text modification method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CHIME:an efficient error-tolerant Chinese pinyin input method;Yabin Zheng;《Proceedings of the Twenty-Second international joint conference on Artificial Intelligence》;20110731;2551-2556 *

Also Published As

Publication number Publication date
CN109814734A (en) 2019-05-28

Similar Documents

Publication Publication Date Title
CN106649783B (en) Synonym mining method and device
CN107704102B (en) Text input method and device
CN108231066B (en) Speech recognition system and method thereof and vocabulary establishing method
KR102541054B1 (en) Character error correction method, device, electronic equipment and recording medium
CN105094368A (en) Control method and control device for frequency modulation ordering of input method candidate item
CN111160013B (en) Text error correction method and device
CN104375665A (en) Input-method error correction method and input-method error correction device
WO2016095645A1 (en) Stroke input method, device and system
CN112560499B (en) Pre-training method and device for semantic representation model, electronic equipment and storage medium
EP3726401A1 (en) Encoding textual information for text analysis
CN106484131A (en) A kind of input error correction method and input subtraction unit
CN109522550A (en) Text information error correction method, device, computer equipment and storage medium
CN111274785A (en) Text error correction method, device, equipment and medium
CN112580324A (en) Text error correction method and device, electronic equipment and storage medium
CN109542776A (en) Page comparison method, device and equipment
CN109814734B (en) Method for correcting Chinese pinyin input and processing terminal
CN110073351B (en) Predicting text by combining candidates from user attempts
CN104345896A (en) Alphabetic writing word group inputting method and alphabetic writing word group inputting system
US8782067B2 (en) Searching method, searching device and recording medium recording a computer program
JP4921453B2 (en) Bit string data sorting apparatus, method and program
CN107220381B (en) A kind of input text automatic error correction method towards question answering system
CN111476003B (en) Lyric rewriting method and device
CN111665956B (en) Candidate character string processing method and device, electronic equipment and storage medium
CN114429136A (en) Text error correction method
CN103246362B (en) A kind of method and apparatus of Pinyin Input

Legal Events

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