CN113918029A - Input method and device - Google Patents

Input method and device Download PDF

Info

Publication number
CN113918029A
CN113918029A CN202111163988.XA CN202111163988A CN113918029A CN 113918029 A CN113918029 A CN 113918029A CN 202111163988 A CN202111163988 A CN 202111163988A CN 113918029 A CN113918029 A CN 113918029A
Authority
CN
China
Prior art keywords
handwritten
pinyin
candidate
candidate item
chinese characters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111163988.XA
Other languages
Chinese (zh)
Inventor
冯雷
鲁剑
曹进
胡妙丽
胡伟
杨宜杭
宋晓雪
李海欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development 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 Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN202111163988.XA priority Critical patent/CN113918029A/en
Publication of CN113918029A publication Critical patent/CN113918029A/en
Pending legal-status Critical Current

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

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)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application provides an input method and device, wherein the method comprises the following steps: acquiring handwriting track information of a user; when the handwritten pinyin is identified according to the handwritten track information, searching matched candidate items according to the handwritten pinyin; and displaying the candidate items. According to the method and the device, the candidate item is determined by identifying the handwritten pinyin input by the user in the handwriting input mode of the input method, even if the user cannot write a word, the candidate item can be determined by the handwritten pinyin, and the fluency of the user in the handwriting input mode is improved.

Description

Input method and device
Technical Field
The present application relates to the field of input methods, and in particular, to an input method and an input device.
Background
With the development of computer technology, electronic devices such as mobile phones and tablet computers are more and more popular, and great convenience is brought to life, study and work of people. These electronic devices are typically installed with an input method application (abbreviated as input method) so that a user can input information using the input method.
The input method of the input method comprises a handwriting mode, and when a user performs handwriting input, if a certain character cannot be written, the user can switch other input modes (such as a 26-key keyboard and a Sudoku keyboard) to perform input or inquire how the certain character is written through other modes, and then perform handwriting input, so that the handwriting input process is not smooth.
Disclosure of Invention
In view of the above, embodiments of the present application are proposed to provide an input method and a corresponding input device that overcome or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present application discloses an input method, including:
acquiring handwriting track information of a user;
when the handwritten pinyin is identified according to the handwritten track information, searching matched candidate items according to the handwritten pinyin;
and displaying the candidate items.
Optionally, when the handwritten pinyin is identified according to the handwritten trace information, finding a matched candidate item according to the handwritten pinyin includes:
when the handwritten pinyin and the handwritten Chinese characters are identified according to the handwritten track information, converting the handwritten Chinese characters into corresponding conversion pinyin;
searching Chinese characters matched with the handwritten pinyin and the converted pinyin corresponding to the handwritten Chinese characters;
and determining a first candidate item according to the Chinese characters matched with the handwritten pinyin and the converted pinyin.
Optionally, when the handwritten pinyin is identified according to the handwritten trace information, finding a matched candidate item according to the handwritten pinyin includes:
when the handwritten pinyin and the handwritten Chinese characters are identified according to the handwritten track information, searching the Chinese characters matched with the handwritten pinyin;
and determining a second candidate item according to the Chinese character matched with the handwritten pinyin and the handwritten Chinese character.
Optionally, the presenting the candidate items includes:
when the candidate items comprise the first candidate item and the second candidate item, and the first candidate item is different from the second candidate item, determining the ranking of the first candidate item and the second candidate item;
and displaying the first candidate item and the second candidate item according to the sorting.
Optionally, when the handwritten pinyin is identified according to the handwritten trace information, finding a matched candidate item according to the handwritten pinyin includes:
and when the handwritten pinyin is identified according to the handwriting track information, taking the handwritten pinyin as a candidate item.
Optionally, when the handwritten pinyin is identified according to the handwritten trace information, finding a matched candidate item according to the handwritten pinyin includes:
when the handwritten pinyin and handwritten English letters are identified according to the handwritten track information, taking the handwritten pinyin as candidate items;
the method further comprises the following steps:
and taking the handwritten English letters as candidate items.
Optionally, the presenting the candidate items includes:
respectively determining the recognition accuracy rates of the handwritten pinyin and the handwritten English letters;
determining the sequence of the handwritten pinyin and the English letters of the handwritten characters according to the identification accuracy;
and displaying the handwritten pinyin and the handwritten English letters according to the sequence.
Optionally, when the handwritten pinyin is identified according to the handwritten trace information, finding a matched candidate item according to the handwritten pinyin includes:
and when the handwritten pinyin is identified according to the handwritten track information, determining English letters similar to or identical to the handwritten pinyin, and taking the similar or identical English letters as candidate items.
Optionally, when the handwritten pinyin is identified according to the handwritten trace information, finding a matched candidate item according to the handwritten pinyin includes:
when the handwritten pinyin is identified according to the handwritten track information, carrying out error correction processing on the handwritten pinyin to obtain corrected pinyin;
and searching matched candidate items according to the corrected pinyin.
The embodiment of the application also discloses an input device, which comprises:
the acquisition module is used for acquiring the handwriting track information of the user;
the candidate item determining module is used for searching matched candidate items according to the handwritten pinyin when the handwritten pinyin is identified according to the handwritten track information;
and the candidate item display module is used for displaying the candidate items.
Optionally, the candidate determining module includes:
the conversion submodule is used for converting the handwritten Chinese characters into corresponding conversion pinyin when the handwritten pinyin and the handwritten Chinese characters are identified according to the handwritten track information;
the first Chinese character searching sub-module is used for searching Chinese characters matched with the handwritten pinyin and the converted pinyin corresponding to the handwritten Chinese characters;
and the first candidate item determining sub-module is used for determining a first candidate item according to the Chinese characters matched with the handwritten pinyin and the converted pinyin.
Optionally, the candidate determining module includes:
the second Chinese character searching submodule is used for searching the Chinese characters matched with the handwritten pinyin when the handwritten pinyin and the handwritten Chinese characters are identified according to the handwritten track information;
and the second candidate item determining submodule is used for determining a second candidate item according to the Chinese characters matched with the handwritten pinyin and the handwritten Chinese characters.
Optionally, the candidate item presentation module includes:
a ranking determining sub-module for determining a ranking of the first candidate item and the second candidate item when the candidate items include the first candidate item and the second candidate item, and the first candidate item is not the same as the second candidate item;
and the sorting display sub-module is used for displaying the first candidate item and the second candidate item according to the sorting.
Optionally, the candidate determining module includes:
and the handwritten pinyin candidate item submodule is used for taking the handwritten pinyin as a candidate item when the handwritten pinyin is identified according to the handwritten track information.
Optionally, the candidate determining module includes:
the pinyin candidate item submodule is used for taking the handwritten pinyin as a candidate item when the handwritten pinyin and handwritten English letters are identified according to the handwritten track information;
the device further comprises:
and the letter candidate item module is used for taking the handwritten English letters as candidate items.
Optionally, the candidate item presentation module includes:
the recognition accuracy rate determining submodule is used for respectively determining the recognition accuracy rates of the handwritten pinyin and the handwritten English letters;
the phonetic alphabet sequencing determining submodule is used for determining the sequencing of the handwritten phonetic alphabets and the English alphabets of the handwritten characters according to the identification accuracy;
and the pinyin letter display submodule is used for displaying the handwritten pinyin and the handwritten English letters according to the sequence.
Optionally, the candidate determining module includes:
and the letter candidate determining submodule is used for determining English letters similar to or identical to the handwritten pinyin when the handwritten pinyin is identified according to the handwritten track information, and taking the similar or identical English letters as candidate items.
Optionally, the candidate determining module includes:
the pinyin correction submodule is used for carrying out error correction processing on the handwritten pinyin to obtain corrected pinyin when the handwritten pinyin is identified according to the handwritten track information;
and the error correction candidate item determining submodule is used for searching a matched candidate item according to the corrected pinyin.
The embodiment of the application also discloses an electronic device, which comprises: a processor, a memory and a computer program stored on the memory and capable of running on the processor, which computer program, when executed by the processor, implements the steps of the input method as described above.
The embodiment of the application also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the input method are realized.
The embodiment of the application has the following advantages:
in the embodiment of the application, the input method can acquire the handwriting track information of the user, and when the handwriting track information is recognized to comprise the handwriting pinyin, the input method can search matched candidate items according to the handwriting pinyin and display the candidate items. According to the method and the device, the candidate item is determined by identifying the handwritten pinyin input by the user in the handwriting input mode of the input method, even if the user cannot write a word, the candidate item can be determined by the handwritten pinyin, and the fluency of the user in the handwriting input mode is improved.
Drawings
FIG. 1 is a flow chart illustrating steps of an input method according to an embodiment of the present application;
FIG. 2 is a flow chart of steps of another input method provided by embodiments of the present application;
FIG. 3 is a flow chart of steps of another input method provided by embodiments of the present application;
FIG. 4 is a flow chart of steps of another input method provided by embodiments of the present application;
FIG. 5 is a flow chart illustrating steps of another input method provided by embodiments of the present application;
fig. 6 is a block diagram of an input device according to an embodiment of the present application
FIG. 7 is a block diagram of an alternative embodiment of an input device according to the present application
FIG. 8 is a block diagram illustrating an electronic device for input according to an exemplary embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device for input shown in the present application according to another exemplary embodiment.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
When a user carries out handwriting input on a handwriting input interface of the input method, the user can write handwriting track information in the handwriting input interface, the input method can identify the handwriting track information, and candidate items are searched according to an identification result. In order to improve fluency of handwriting input of a user, one of core ideas of the embodiment of the application is that the input method can identify handwriting pinyin, so that the user can write pinyin to search matched Chinese characters even if the user does not know how to write a certain character during handwriting input.
Referring to fig. 1, a flowchart illustrating steps of an input method provided in an embodiment of the present application is shown, where the method may specifically include the following steps:
step 101, acquiring handwriting track information of a user.
When the input mode of the input method selected by the user is a handwriting input mode, the input method can provide a handwriting input interface, the user can write handwriting track information in the handwriting input interface, and the input method obtains the handwriting track information input by the user.
In the embodiment of the application, the input method can support mixed input of handwritten pinyin, handwritten Chinese characters and handwritten English letters. The handwriting track information can comprise a track of handwritten pinyin, a track of handwritten Chinese characters and a track of handwritten English letters, and the input method can distinguish the track of handwritten pinyin, the track of handwritten Chinese characters and the track of handwritten English letters. Identifying the handwritten pinyin according to the track of the handwritten pinyin; identifying the handwritten Chinese characters according to the tracks of the handwritten Chinese characters; and recognizing the handwritten English letters according to the tracks of the handwritten English letters. Illustratively, a handwriting kernel of the input method may be invoked to recognize handwriting trace information. The handwriting kernel is a module for recognizing the handwriting track information, and different types of handwriting track information can be recognized through a recognition model, an algorithm and other rules.
In practice, when writing pinyin, a user can write phonetic symbols of the pinyin, so that the input method can better distinguish handwritten pinyin from handwritten English letters.
And 102, when the handwritten pinyin is identified according to the handwritten track information, searching matched candidate items according to the handwritten pinyin.
In the embodiment of the application, the input method may determine candidate items according to corresponding strategies according to the type of the handwriting track information obtained through recognition, where the candidate items may include candidate words, expressions, images, and the like.
When the handwriting track information is recognized as the handwriting pinyin according to the handwriting track information, the matched candidate item can be searched according to the handwriting pinyin. For example, the user may input "t ā o ti de" on the handwriting input interface, the input method identifies that the handwriting track information is handwritten pinyin, and a matching candidate "gulosity" is found from the handwritten pinyin.
In an alternative embodiment, when the handwritten pinyin is identified according to the handwriting track information, the handwritten pinyin may be used as a candidate. In practice, the user may want to select pinyin for on-screen display instead of selecting pinyin-matched chinese characters for on-screen display, and therefore handwritten pinyin may be used as a candidate.
In an alternative embodiment, when the handwritten pinyin is identified according to the handwriting track information, english letters similar to the handwritten pinyin may be determined, and the similar english letters are used as candidate items.
Because the handwritten pinyin is similar to the handwritten English letters, writing errors are easy to occur. It is possible that the user wants to write pinyin but is recognized as handwritten english letters, and it is also possible that the user wants to write english letters but is recognized as handwritten pinyin. Therefore, similar English letters can be used as candidate items when the handwritten pinyin is identified, and a user can sense whether input is wrong or not.
In an alternative embodiment, when the handwritten pinyin is identified according to the handwriting track information, the handwritten pinyin may be associated to determine matching candidates. Illustratively, the handwritten pinyin may be associated based on the current input scenario, the above information of the current input box, and so on.
In an alternative embodiment, when the handwritten pinyin and the handwritten Chinese characters are identified according to the handwriting track information, matching candidates may be determined based on the handwritten pinyin and the handwritten Chinese characters together.
In an alternative embodiment, when the handwritten pinyin and the handwritten english letters are identified according to the handwriting track information, matching candidates can be determined based on the handwritten pinyin and the handwritten english letters together.
In an optional embodiment, when the handwritten pinyin, the handwritten Chinese characters and the handwritten English letters are identified according to the handwriting track information, matching candidate items can be determined based on the handwritten pinyin, the handwritten Chinese characters and the handwritten English letters together.
Step 103, displaying the candidate items.
The input method can display the searched candidate items in the candidate bar, so that the user can select the candidate items to be displayed on a screen.
When the candidate items comprise a plurality of candidate items, the ranking weights of the candidate items can be respectively determined, and the candidate items are ranked and displayed according to the ranking weights.
Illustratively, when handwritten pinyin is taken as a candidate item, the handwritten pinyin candidate item may be given a larger weight so that the handwritten pinyin candidate item is ranked earlier.
In the embodiment of the application, the input method can acquire the handwriting track information of the user, and when the handwriting track information is recognized to comprise the handwriting pinyin, the input method can search matched candidate items according to the handwriting pinyin and display the candidate items. According to the method and the device, the candidate item is determined by identifying the handwritten pinyin input by the user in the handwriting input mode of the input method, even if the user cannot write a word, the candidate item can be determined by the handwritten pinyin, and the fluency of the user in the handwriting input mode is improved.
Referring to fig. 2, a flowchart illustrating steps of another input method provided in the embodiment of the present application is shown, where the method may specifically include the following steps:
step 201, acquiring handwriting track information of a user.
Step 202, when the handwritten pinyin and the handwritten Chinese characters are identified according to the handwritten track information, converting the handwritten Chinese characters into corresponding converted pinyin.
Illustratively, a handwriting kernel of the input method may be invoked to identify the handwriting trace information. When the handwriting track information is recognized to include both handwritten pinyin and handwritten Chinese characters, the handwritten Chinese characters may be converted into converted pinyin.
Step 203, searching for the Chinese characters matched with the handwritten pinyin and the converted pinyin corresponding to the handwritten Chinese characters.
Illustratively, the pinyin kernel of the input method may be invoked to find a Chinese character matching the handwritten pinyin and the converted pinyin corresponding to the handwritten Chinese character.
In the application, the handwritten pinyin and the converted pinyin corresponding to the handwritten Chinese character can be combined, and the Chinese character matched with the combined pinyin is searched. For example, the user may input "t ā oei peiye" on the handwriting input interface, and the input method identifies that the handwriting track information includes handwritten pinyin "t ā oei peiye" and handwritten Chinese character "feast"; converting "feast" into conversion pinyin "sh < y > a n", combining the handwritten pinyin and the conversion pinyin to obtain "t ā o ti < sh > y" n ", and finally finding out the candidate word" gulcosmose "matching" t ā o ti < sh > y "n".
For another example, the user may input "ji-qiu" in the handwriting input interface, and the input method recognizes that the handwriting trajectory information includes "ji-qiu" and "qi-ji" of handwritten Chinese characters; converting the ' collective character ' into conversion pinyin ' jtiyocheng ' combining ', combining handwritten pinyin and conversion pinyin to obtain ' jtiyocheng qii ', and finally finding out a candidate word ' collective axillary fur ' matched with ' jtiyocheng qii ', so that the Chinese character ' liquor ' wrongly written by the user is corrected to be the correct Chinese character ' axillary '.
Step 204, determining a first candidate item according to the Chinese characters matched with the handwritten pinyin and the converted pinyin.
Illustratively, a Chinese character matched with the combined pinyin of the handwritten pinyin and the converted pinyin can be used as a first candidate item, association can be performed according to the Chinese character matched with the combined pinyin, a word obtained by association is used as the first candidate item, and the combined pinyin can be used as the first candidate item.
Step 205, presenting the first candidate item.
The input method can display the searched first candidate item in the candidate bar, so that the user can select the first candidate item to be displayed on a screen. When the first candidate item includes a plurality of items, the ranking weight of each first candidate item may be determined, and the first candidate items may be ranked and presented according to the ranking weight.
In the embodiment of the application, the input method can acquire the handwriting track information of a user, and when the handwriting track information is recognized to comprise handwriting pinyin and handwritten Chinese characters, the handwriting Chinese characters are converted into corresponding conversion pinyin; and searching Chinese characters matched with the handwritten pinyin and the converted pinyin corresponding to the handwritten Chinese characters, and determining and displaying a first candidate item according to the matched Chinese characters. According to the method and the device, the candidate item is determined by identifying the handwritten pinyin and the handwritten Chinese character input by the user in the handwriting input mode of the input method, even if the user cannot write a certain character, the candidate item can be determined by the handwritten pinyin, and the fluency of the user in the handwriting input mode is improved. And by converting the handwritten Chinese characters into converted pinyin, combining the converted pinyin with the handwritten pinyin and searching words according to the combined pinyin, the wrongly written Chinese characters input by the user can be corrected under the condition that the Chinese characters input by the user are wrongly written, and the accuracy of candidate words is ensured.
Referring to fig. 3, a flowchart illustrating steps of another input method provided in the embodiment of the present application is shown, where the method may specifically include the following steps:
step 301, obtaining handwriting track information of a user.
Step 302, when the handwritten pinyin and the handwritten Chinese characters are identified according to the handwritten track information, searching the Chinese characters matched with the handwritten pinyin.
Illustratively, a handwriting kernel of the input method may be invoked to identify the handwriting trace information. When the handwriting track information is identified to simultaneously comprise the handwriting pinyin and the handwriting Chinese character, the Chinese character matched with the handwriting pinyin is searched through a pinyin kernel of the input method.
Step 303, determining a second candidate item according to the Chinese character matched with the handwritten pinyin and the handwritten Chinese character.
Illustratively, the Chinese characters matched with the handwritten pinyin and the handwritten Chinese characters can be combined into words according to the input sequence, and at least one word is obtained as a second candidate item.
In an optional embodiment of the present application, the method may further include: when the handwritten pinyin and the handwritten Chinese characters are identified according to the handwritten track information, converting the handwritten Chinese characters into corresponding conversion pinyin; searching Chinese characters matched with the handwritten pinyin and the converted pinyin corresponding to the handwritten Chinese characters; and determining a first candidate item according to the Chinese characters matched with the handwritten pinyin and the converted pinyin.
In the embodiment of the application, when the handwriting track information is recognized to include the handwriting pinyin and the handwriting Chinese characters, the candidate item can be determined in two ways. One is to convert the hand-written Chinese character into the conversion pinyin, then combine the conversion pinyin and the hand-written pinyin, and search words according to the combined pinyin to obtain a first candidate item. And the other one is that words are combined according to the Chinese characters matched with the handwritten pinyin and the handwritten Chinese characters to obtain a second candidate item. The first candidate and the second candidate may be the same or different.
Step 304, presenting the second candidate item.
When the second candidate items include a plurality of second candidates, the ranking weights of the second candidate items may be determined respectively, and the second candidate items may be ranked and presented according to the ranking weights.
In an alternative embodiment of the present application, the step 304 may include the following sub-steps:
sub-step S11, determining the ranking of the first candidate item and the second candidate item when the candidate items include the first candidate item and the second candidate item, and the first candidate item is not the same as the second candidate item.
Illustratively, when the first candidate item is not the same as the second candidate item, the ranking of the first candidate item and the second candidate item may be determined according to a preset ranking policy. For example, the input method may count the historical click rate of the candidate item by the user, when the first candidate item is different from the second candidate item, the historical click rate of the first candidate item and the historical click rate of the first candidate item may be respectively obtained, the ranking weight is determined according to the historical click rate of the first candidate item and the historical click rate of the first candidate item, and the ranking is determined according to the ranking weight. For another example, the ranking weights of the first candidate item and the second candidate item may be determined according to the context information of the current input box of the input method and the current input scene to determine the ranking. In practice, a person skilled in the art may determine the ranking weights of the first candidate item and the second candidate item according to various factors such as context information of the current input box, a current input scenario, and a historical click rate, which is not limited in this embodiment of the present application.
Sub-step S12, presenting the first candidate item and the second candidate item according to the sorting.
The input method may present the first candidate item and the second candidate item in the candidate bar according to the ranking.
In the embodiment of the application, the input method can acquire the handwriting track information of a user; when the handwriting track information is identified to comprise the handwriting pinyin and the handwriting Chinese characters, searching the Chinese characters matched with the handwriting pinyin; determining a second candidate item according to the Chinese characters matched with the handwritten pinyin and the handwritten Chinese characters; and finally, displaying the second candidate item in the candidate bar by the input method. The application embodiment realizes that the candidate item is determined by identifying the handwritten pinyin and the handwritten Chinese character input by the user in the handwriting input mode of the input method, and even if the user does not write a certain character, the candidate item can be determined by the handwritten pinyin, so that the fluency of the user in the handwriting input mode is improved.
Referring to fig. 4, a flowchart illustrating steps of another input method provided in the embodiment of the present application is shown, where the method may specifically include the following steps:
step 401, acquiring handwriting track information of a user.
Step 402, when the handwritten pinyin and the handwritten English letters are identified according to the handwritten track information, the handwritten pinyin is used as a candidate item, and the handwritten English letters are used as candidate items.
Illustratively, a handwriting kernel of the input method may be invoked to identify the handwriting trace information. When the handwriting track information is recognized to comprise the handwriting pinyin and the handwriting English letters, the handwriting pinyin and the handwriting English letters are similar, so that writing errors are easy to occur. It may be that the user wants to write pinyin but is recognized as handwritten english letters, or it may be that the user wants to write english letters but is recognized as handwritten pinyin. Therefore, in order to enable the user to sense whether the user wrongly writes, when the handwriting track information is recognized to include the handwritten pinyin and the handwritten english alphabets, both the handwritten pinyin and the handwritten english alphabets can be used as candidate items to enable the user to confirm whether the user wrongly writes.
Step 403, presenting the candidate items.
When the candidate items comprise a plurality of candidate items, the ranking weights of the candidate items can be respectively determined, and the candidate items are ranked and displayed according to the ranking weights.
In an alternative embodiment of the present application, the step 403 may include the following sub-steps:
and a substep S21 of determining the recognition accuracy of the handwritten pinyin and the handwritten English letters respectively.
And a substep S22, determining the sequence of the handwritten pinyin and the English letters of the handwritten characters according to the recognition accuracy.
And a substep S23 of displaying the handwritten pinyin and the handwritten English letters according to the sequence.
When the handwritten track information comprises handwritten pinyin and handwritten English letters, the recognition accuracy rates of the handwritten pinyin and the handwritten English letters can be determined respectively. Illustratively, when the handwriting kernel identifies the handwriting track information, the identification accuracy of the handwritten pinyin and the handwritten English letters can be determined. The recognition accuracy rate is high, the sorting weight can be set, and the higher the recognition accuracy rate of the candidate items is, the larger the set sorting weight is; conversely, the lower the recognition accuracy of the candidate items is, the smaller the set ranking weight is.
In practice, a person skilled in the art may also determine the ranking weight of the candidate items according to the above information of the current input box, the current input scenario, and other factors, which is not limited in the embodiment of the present application.
In the embodiment of the application, the input method can acquire the handwriting track information of a user; when the input method identifies that the handwritten track information comprises handwritten pinyin and handwritten English letters, the handwritten pinyin can be used as candidate items, and the handwritten English letters can be used as candidate items; and finally, displaying the candidate items in the candidate bar by the input method.
The method and the device for determining the candidate item have the advantages that the candidate item is determined by identifying the handwritten pinyin and the handwritten English letters input by the user in the handwriting input mode of the input method, even if the user cannot write a certain character, the candidate item can be determined by the handwritten pinyin, and fluency of the user in the handwriting input mode is improved.
Referring to fig. 5, a flowchart illustrating steps of another input method provided in the embodiment of the present application is shown, where the method may specifically include the following steps:
step 501, obtaining handwriting track information of a user.
Step 502, when the handwritten pinyin is identified according to the handwritten track information, performing error correction processing on the handwritten pinyin to obtain corrected pinyin.
When the user inputs the handwritten pinyin, writing errors may occur, and when the handwriting track information is recognized to include the handwritten pinyin, error correction processing can be performed on the handwritten pinyin to obtain corrected pinyin.
Illustratively, the handwritten pinyin entered by the user may be determined based on an inaccurate pronunciation. For example, due to regional limitations, China has many dialects, and there are some differences in pronunciation among people in different places, for example, the southern people have different distinction between curled tongue-flat tongue, anterior nose sound-posterior nose sound.
For example, the handwritten pinyin identified by the handwritten track information is "leihao", the error correction processing is performed on the handwritten pinyin until the pinyin "nihao" is corrected, and a candidate "hello" can be obtained according to the corrected pinyin.
Step 503, searching the matched candidate item according to the corrected pinyin.
Step 504, presenting the candidate items.
The application embodiment realizes that under the handwriting input mode of the input method, the handwriting pinyin input by the user is identified, the handwriting pinyin is subjected to error correction processing to obtain corrected pinyin, matched candidate items are obtained according to the corrected pinyin, even if the user cannot write a certain character and the pinyin is wrongly written, the user can correct the determined candidate items through the handwriting pinyin, and the fluency of the user under the handwriting input mode is improved.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the embodiments. Further, those skilled in the art will also appreciate that the embodiments described in the specification are presently preferred and that no particular act is required of the embodiments of the application.
Referring to fig. 6, a block diagram of a structure of an input device provided in an embodiment of the present application is shown, which may specifically include the following modules:
an obtaining module 601, configured to obtain handwritten track information of a user;
a candidate item determining module 602, configured to find a matched candidate item according to the handwritten pinyin when the handwritten pinyin is identified according to the handwritten trajectory information;
a candidate item presentation module 603, configured to present the candidate items.
According to the method and the device, the candidate item is determined by identifying the handwritten pinyin input by the user in the handwriting input mode of the input method, even if the user cannot write a word, the candidate item can be determined by the handwritten pinyin, and the fluency of the user in the handwriting input mode is improved.
Referring to fig. 7, a block diagram of an alternative embodiment of an input apparatus according to the present application is shown, wherein the candidate item determining module 602 may include:
a conversion submodule 6021 for converting the handwritten Chinese character into a corresponding conversion pinyin when the handwritten pinyin and the handwritten Chinese character are recognized according to the handwritten track information;
a first Chinese character search submodule 6022 for searching Chinese characters matched with the handwritten pinyin and the converted pinyin corresponding to the handwritten Chinese characters;
a first candidate item determining sub-module 6023 for determining a first candidate item based on the chinese character matched with the handwritten pinyin and the converted pinyin.
In an optional embodiment of the present application, the candidate determining module 602 may include:
the second Chinese character searching submodule 6024 is used for searching the Chinese character matched with the handwritten pinyin when the handwritten pinyin and the handwritten Chinese character are identified according to the handwritten track information;
and a second candidate item determining sub-module 6025 for determining a second candidate item according to the Chinese character matched with the handwritten pinyin and the handwritten Chinese character.
In an optional embodiment of the present application, the candidate item presentation module 603 may include:
a ranking determination sub-module 6031 configured to determine a ranking of the first candidate item and the second candidate item when the candidate items include the first candidate item and the second candidate item, and the first candidate item is not the same as the second candidate item;
and a sorting and displaying sub-module 6032, configured to display the first candidate item and the second candidate item according to the sorting.
In an optional embodiment of the present application, the candidate determining module 602 may include:
and a handwritten pinyin candidate sub-module 6026, configured to take the handwritten pinyin as a candidate when the handwritten pinyin is identified according to the handwritten trajectory information.
In an optional embodiment of the present application, the candidate determining module 602 includes:
a pinyin candidate sub-module 6027, configured to identify a handwritten pinyin and handwritten english letters according to the handwritten trajectory information, and use the handwritten pinyin as a candidate;
the apparatus may further comprise:
a letter candidate module 604, configured to use the handwritten english letter as a candidate.
In an optional embodiment of the present application, the candidate item presentation module 603 may include:
a recognition accuracy determining sub-module 6033, configured to determine recognition accuracy of the handwritten pinyin and the handwritten english alphabet, respectively;
a pinyin letter ordering determination sub-module 6034, configured to determine, according to the recognition accuracy, an ordering of the handwritten pinyin and the english letters of the handwritten word;
and a pinyin letter display sub-module 6035 configured to display the handwritten pinyin and the handwritten English letters according to the sequence.
In an optional embodiment of the present application, the candidate determining module 602 may include:
and the letter candidate determining submodule 6028 is configured to determine an english letter similar to or the same as the handwritten pinyin when the handwritten pinyin is recognized according to the handwritten trajectory information, and use the similar or the same english letter as a candidate.
In an optional embodiment of the present application, the candidate determining module 602 may include:
a pinyin correction submodule 6029, configured to perform error correction processing on the handwritten pinyin to obtain corrected pinyin when the handwritten pinyin is identified according to the handwritten trajectory information;
and the error correction candidate item determining sub-module 60210 is used for searching the matched candidate item according to the corrected pinyin.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
FIG. 8 is a block diagram illustrating a structure of an electronic device 800 for input, according to an example embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, a smart wearable device, and the like.
Referring to fig. 8, electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power components 806 provide power to the various components of the electronic device 800. Power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 800 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the electronic device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 814 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 814 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform an input method, the method comprising:
acquiring handwriting track information of a user;
when the handwritten pinyin is identified according to the handwritten track information, searching matched candidate items according to the handwritten pinyin;
and displaying the candidate items.
Optionally, when the handwritten pinyin is identified according to the handwritten trace information, finding a matched candidate item according to the handwritten pinyin includes:
when the handwritten pinyin and the handwritten Chinese characters are identified according to the handwritten track information, converting the handwritten Chinese characters into corresponding conversion pinyin;
searching Chinese characters matched with the handwritten pinyin and the converted pinyin corresponding to the handwritten Chinese characters;
and determining a first candidate item according to the Chinese characters matched with the handwritten pinyin and the converted pinyin.
Optionally, when the handwritten pinyin is identified according to the handwritten trace information, finding a matched candidate item according to the handwritten pinyin includes:
when the handwritten pinyin and the handwritten Chinese characters are identified according to the handwritten track information, searching the Chinese characters matched with the handwritten pinyin;
and determining a second candidate item according to the Chinese character matched with the handwritten pinyin and the handwritten Chinese character.
Optionally, the presenting the candidate items includes:
when the candidate items comprise the first candidate item and the second candidate item, and the first candidate item is different from the second candidate item, determining the ranking of the first candidate item and the second candidate item;
and displaying the first candidate item and the second candidate item according to the sorting.
Optionally, when the handwritten pinyin is identified according to the handwritten trace information, finding a matched candidate item according to the handwritten pinyin includes:
and when the handwritten pinyin is identified according to the handwriting track information, taking the handwritten pinyin as a candidate item.
Optionally, when the handwritten pinyin is identified according to the handwritten trace information, finding a matched candidate item according to the handwritten pinyin includes:
when the handwritten pinyin and handwritten English letters are identified according to the handwritten track information, taking the handwritten pinyin as candidate items;
the method further comprises the following steps:
and taking the handwritten English letters as candidate items.
Optionally, the presenting the candidate items includes:
respectively determining the recognition accuracy rates of the handwritten pinyin and the handwritten English letters;
determining the sequence of the handwritten pinyin and the English letters of the handwritten characters according to the identification accuracy;
and displaying the handwritten pinyin and the handwritten English letters according to the sequence.
Optionally, when the handwritten pinyin is identified according to the handwritten trace information, finding a matched candidate item according to the handwritten pinyin includes:
and when the handwritten pinyin is identified according to the handwritten track information, determining English letters similar to or identical to the handwritten pinyin, and taking the similar or identical English letters as candidate items.
Optionally, when the handwritten pinyin is identified according to the handwritten trace information, finding a matched candidate item according to the handwritten pinyin includes:
when the handwritten pinyin is identified according to the handwritten track information, carrying out error correction processing on the handwritten pinyin to obtain corrected pinyin;
and searching matched candidate items according to the corrected pinyin.
Fig. 9 is a schematic structural diagram of an electronic device 900 for input according to another exemplary embodiment of the present application. The electronic device 900 may be a server, which may vary widely depending on configuration or performance, and may include one or more Central Processing Units (CPUs) 922 (e.g., one or more processors) and memory 932, one or more storage media 930 (e.g., one or more mass storage devices) storing applications 942 or data 944. Memory 932 and storage media 930 can be, among other things, transient storage or persistent storage. The program stored on the storage medium 930 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, the central processor 922 may be arranged to communicate with the storage medium 930 to execute a series of instruction operations in the storage medium 930 on the server.
The server may also include one or more power supplies 926, one or more wired or wireless network interfaces 950, one or more input-output interfaces 958, one or more keyboards 956, and/or one or more operating systems 941, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
In an exemplary embodiment, the server is configured to execute one or more programs by the one or more central processors 922 including instructions for:
acquiring handwriting track information of a user;
when the handwritten pinyin is identified according to the handwritten track information, searching matched candidate items according to the handwritten pinyin;
and displaying the candidate items.
Optionally, when the handwritten pinyin is identified according to the handwritten trace information, finding a matched candidate item according to the handwritten pinyin includes:
when the handwritten pinyin and the handwritten Chinese characters are identified according to the handwritten track information, converting the handwritten Chinese characters into corresponding conversion pinyin;
searching Chinese characters matched with the handwritten pinyin and the converted pinyin corresponding to the handwritten Chinese characters;
and determining a first candidate item according to the Chinese characters matched with the handwritten pinyin and the converted pinyin.
Optionally, when the handwritten pinyin is identified according to the handwritten trace information, finding a matched candidate item according to the handwritten pinyin includes:
when the handwritten pinyin and the handwritten Chinese characters are identified according to the handwritten track information, searching the Chinese characters matched with the handwritten pinyin;
and determining a second candidate item according to the Chinese character matched with the handwritten pinyin and the handwritten Chinese character.
Optionally, the presenting the candidate items includes:
when the candidate items comprise the first candidate item and the second candidate item, and the first candidate item is different from the second candidate item, determining the ranking of the first candidate item and the second candidate item;
and displaying the first candidate item and the second candidate item according to the sorting.
Optionally, when the handwritten pinyin is identified according to the handwritten trace information, finding a matched candidate item according to the handwritten pinyin includes:
and when the handwritten pinyin is identified according to the handwriting track information, taking the handwritten pinyin as a candidate item.
Optionally, when the handwritten pinyin is identified according to the handwritten trace information, finding a matched candidate item according to the handwritten pinyin includes:
when the handwritten pinyin and handwritten English letters are identified according to the handwritten track information, taking the handwritten pinyin as candidate items;
the method further comprises the following steps:
and taking the handwritten English letters as candidate items.
Optionally, the presenting the candidate items includes:
respectively determining the recognition accuracy rates of the handwritten pinyin and the handwritten English letters;
determining the sequence of the handwritten pinyin and the English letters of the handwritten characters according to the identification accuracy;
and displaying the handwritten pinyin and the handwritten English letters according to the sequence.
Optionally, when the handwritten pinyin is identified according to the handwritten trace information, finding a matched candidate item according to the handwritten pinyin includes:
and when the handwritten pinyin is identified according to the handwritten track information, determining English letters similar to or identical to the handwritten pinyin, and taking the similar or identical English letters as candidate items.
Optionally, when the handwritten pinyin is identified according to the handwritten trace information, finding a matched candidate item according to the handwritten pinyin includes:
when the handwritten pinyin is identified according to the handwritten track information, carrying out error correction processing on the handwritten pinyin to obtain corrected pinyin;
and searching matched candidate items according to the corrected pinyin.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the input method embodiment, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one of skill in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The input method and the input device provided by the present application are described in detail above, and the principles and embodiments of the present application are explained herein by applying specific examples, and the descriptions of the above examples are only used to help understand the method and the core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (15)

1. An input method, comprising:
acquiring handwriting track information of a user;
when the handwritten pinyin is identified according to the handwritten track information, searching matched candidate items according to the handwritten pinyin;
and displaying the candidate items.
2. The method of claim 1, wherein finding a matching candidate from the handwritten pinyin when the handwritten pinyin is identified from the handwritten trace information comprises:
when the handwritten pinyin and the handwritten Chinese characters are identified according to the handwritten track information, converting the handwritten Chinese characters into corresponding conversion pinyin;
searching Chinese characters matched with the handwritten pinyin and the converted pinyin corresponding to the handwritten Chinese characters;
and determining a first candidate item according to the Chinese characters matched with the handwritten pinyin and the converted pinyin.
3. The method of claim 1 or 2, wherein when the handwritten pinyin is identified according to the handwritten trace information, finding matching candidates according to the handwritten pinyin comprises:
when the handwritten pinyin and the handwritten Chinese characters are identified according to the handwritten track information, searching the Chinese characters matched with the handwritten pinyin;
and determining a second candidate item according to the Chinese character matched with the handwritten pinyin and the handwritten Chinese character.
4. The method of claim 3, wherein said presenting said candidate items comprises:
when the candidate items comprise the first candidate item and the second candidate item, and the first candidate item is different from the second candidate item, determining the ranking of the first candidate item and the second candidate item;
and displaying the first candidate item and the second candidate item according to the sorting.
5. The method of claim 1, wherein finding a matching candidate from the handwritten pinyin when the handwritten pinyin is identified from the handwritten trace information comprises:
and when the handwritten pinyin is identified according to the handwriting track information, taking the handwritten pinyin as a candidate item.
6. The method of claim 1, wherein finding a matching candidate from the handwritten pinyin when the handwritten pinyin is identified from the handwritten trace information comprises:
when the handwritten pinyin and handwritten English letters are identified according to the handwritten track information, taking the handwritten pinyin as candidate items;
the method further comprises the following steps:
and taking the handwritten English letters as candidate items.
7. The method of claim 6, wherein said presenting said candidate items comprises:
respectively determining the recognition accuracy rates of the handwritten pinyin and the handwritten English letters;
determining the sequence of the handwritten pinyin and the English letters of the handwritten characters according to the identification accuracy;
and displaying the handwritten pinyin and the handwritten English letters according to the sequence.
8. The method of claim 1, wherein finding a matching candidate from the handwritten pinyin when the handwritten pinyin is identified from the handwritten trace information comprises:
and when the handwritten pinyin is identified according to the handwritten track information, determining English letters similar to or identical to the handwritten pinyin, and taking the similar or identical English letters as candidate items.
9. The method of claim 1, wherein finding a matching candidate from the handwritten pinyin when the handwritten pinyin is identified from the handwritten trace information comprises:
when the handwritten pinyin is identified according to the handwritten track information, carrying out error correction processing on the handwritten pinyin to obtain corrected pinyin;
and searching matched candidate items according to the corrected pinyin.
10. An input device, comprising:
the acquisition module is used for acquiring the handwriting track information of the user;
the candidate item determining module is used for searching matched candidate items according to the handwritten pinyin when the handwritten pinyin is identified according to the handwritten track information;
and the candidate item display module is used for displaying the candidate items.
11. The apparatus of claim 10, wherein the candidate determination module comprises:
the conversion submodule is used for converting the handwritten Chinese characters into corresponding conversion pinyin when the handwritten pinyin and the handwritten Chinese characters are identified according to the handwritten track information;
the first Chinese character searching sub-module is used for searching Chinese characters matched with the handwritten pinyin and the converted pinyin corresponding to the handwritten Chinese characters;
and the first candidate item determining sub-module is used for determining a first candidate item according to the Chinese characters matched with the handwritten pinyin and the converted pinyin.
12. The apparatus of claim 10 or 11, wherein the candidate determination module comprises:
the second Chinese character searching submodule is used for searching the Chinese characters matched with the handwritten pinyin when the handwritten pinyin and the handwritten Chinese characters are identified according to the handwritten track information;
and the second candidate item determining submodule is used for determining a second candidate item according to the Chinese characters matched with the handwritten pinyin and the handwritten Chinese characters.
13. The apparatus of claim 12, wherein the candidate display module comprises:
a ranking determining sub-module for determining a ranking of the first candidate item and the second candidate item when the candidate items include the first candidate item and the second candidate item, and the first candidate item is not the same as the second candidate item;
and the sorting display sub-module is used for displaying the first candidate item and the second candidate item according to the sorting.
14. An electronic device, comprising: processor, memory and a computer program stored on the memory and being executable on the processor, the computer program realizing the steps of the input method according to any of claims 1-9 when executed by the processor.
15. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the input method according to any one of claims 1 to 9.
CN202111163988.XA 2021-09-30 2021-09-30 Input method and device Pending CN113918029A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111163988.XA CN113918029A (en) 2021-09-30 2021-09-30 Input method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111163988.XA CN113918029A (en) 2021-09-30 2021-09-30 Input method and device

Publications (1)

Publication Number Publication Date
CN113918029A true CN113918029A (en) 2022-01-11

Family

ID=79237737

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111163988.XA Pending CN113918029A (en) 2021-09-30 2021-09-30 Input method and device

Country Status (1)

Country Link
CN (1) CN113918029A (en)

Similar Documents

Publication Publication Date Title
US11749273B2 (en) Speech control method, terminal device, and storage medium
CN107688399B (en) Input method and device and input device
CN107918496B (en) Input error correction method and device for input error correction
US11335348B2 (en) Input method, device, apparatus, and storage medium
CN110781813A (en) Image recognition method and device, electronic equipment and storage medium
CN108073291B (en) Input method and device and input device
CN109388249B (en) Input information processing method and device, terminal and readable storage medium
CN113936697B (en) Voice processing method and device for voice processing
CN111596832B (en) Page switching method and device
CN110795014B (en) Data processing method and device and data processing device
CN109542244B (en) Input method, device and medium
CN112331194A (en) Input method and device and electronic equipment
CN107340881B (en) Input method and electronic equipment
CN114154395A (en) Model processing method and device for model processing
CN113918029A (en) Input method and device
CN109725736B (en) Candidate sorting method and device and electronic equipment
CN107765884B (en) Sliding input method and device and electronic equipment
CN113589954A (en) Data processing method and device and electronic equipment
CN110780749A (en) Character string error correction method and device
CN113127613B (en) Chat information processing method and device
CN110716653B (en) Method and device for determining association source
CN111722727B (en) Model training method applied to handwriting input, handwriting input method and device
CN112242142B (en) Voice recognition input method and related device
CN107688400B (en) Input error correction method and device for input error correction
CN114594861A (en) Recommendation method and device and electronic equipment

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