CN113342183A - Input method, input device and input device - Google Patents

Input method, input device and input device Download PDF

Info

Publication number
CN113342183A
CN113342183A CN202110739348.2A CN202110739348A CN113342183A CN 113342183 A CN113342183 A CN 113342183A CN 202110739348 A CN202110739348 A CN 202110739348A CN 113342183 A CN113342183 A CN 113342183A
Authority
CN
China
Prior art keywords
syllable
target
pinyin
full
candidate
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
CN202110739348.2A
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 CN202110739348.2A priority Critical patent/CN113342183A/en
Publication of CN113342183A publication Critical patent/CN113342183A/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

Landscapes

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

Abstract

The embodiment of the application discloses an input method, an input device and a device for inputting. An embodiment of the method comprises: when a user inputs a simplified pinyin string, taking each simplified pinyin syllable in the simplified pinyin string as a target simplified pinyin syllable, and displaying at least one full pinyin syllable corresponding to the target simplified pinyin syllable; and when detecting that the user selects the target full pinyin section in the at least one full pinyin syllable, selecting a target candidate item corresponding to the simple pinyin string based on the target full pinyin syllable, and displaying the target candidate item. The embodiment improves the selection efficiency and the input efficiency of the candidate items.

Description

Input method, input device and input device
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to an input method, an input device and an input device.
Background
With the development of computer technology, the types and modes of input methods are more and more abundant. The simple pinyin syllable input method is taken as an example and can support various input modes such as a simple pinyin input mode, a full pinyin input mode and the like. The simple spelling input mode can reduce input time and is used by more and more users.
In the prior art, after a user inputs a simple spelling string, candidates hit by the simple spelling string are usually directly displayed according to a certain preset rule (for example, according to the alphabetical order of corresponding syllables). Because the number of syllable combinations corresponding to the simple spelling strings is large, the hit candidates are usually large, so the selection efficiency of the user on the candidates is low, and the input efficiency is low.
Disclosure of Invention
The embodiment of the application provides an input method, an input device and an input device, and aims to solve the technical problems that candidate items are low in selection efficiency and low in input efficiency in the prior art.
In a first aspect, an embodiment of the present application provides an input method, where the method includes: when a user inputs a simplified pinyin string, taking each simplified pinyin syllable in the simplified pinyin string as a target simplified pinyin syllable, and displaying at least one full pinyin syllable corresponding to the target simplified pinyin syllable; and when detecting that a user selects a target full pinyin section in the at least one full pinyin syllable, selecting a target candidate item corresponding to the simple pinyin string based on the target full pinyin syllable, and displaying the target candidate item.
In some embodiments, the presenting at least one full pinyin syllable corresponding to the target simple pinyin syllable includes: acquiring a candidate item set corresponding to the simply spliced string; and expanding the target simplified pinyin syllables based on the candidate item set to obtain at least one full pinyin syllable corresponding to the target simplified pinyin syllable, and displaying the at least one full pinyin syllable.
In some embodiments, the expanding the target simplified pinyin syllable based on the candidate set to obtain at least one full pinyin syllable corresponding to the target simplified pinyin syllable includes: extracting a target syllable of each candidate item in the candidate item set, wherein the target syllable is a syllable with the same order as the target simple spelling syllable; and carrying out duplication removal processing on the extracted target syllables to obtain at least one full-spelling syllable corresponding to the target simple spelling syllable.
In some embodiments, said presenting said at least one full pinyin syllable, comprises: ranking the at least one full pinyin syllable based on the score of each candidate in the candidate set; and displaying the at least one full spelling syllable according to the sequencing result.
In some embodiments, said ranking said at least one full pinyin syllable based on a score for each candidate item in said candidate item set comprises: taking the candidate item with the same target syllable in the candidate item group as a candidate item group, and determining the score of each full syllabic syllable in the at least one full syllabic syllable based on the score of the candidate item in each candidate item group; ranking the at least one full pinyin syllable based on the score for each full pinyin syllable.
In some embodiments, the determining the score for each of the at least one pinyin syllable based on the score for the candidate item of the respective candidate item group includes: for each candidate group, the scores of the candidates in the candidate group are summed to obtain the score of the corresponding pinyin syllable of the at least one pinyin syllable.
In some embodiments, the selecting a target candidate item corresponding to the concatemer string based on the target full-pinyin syllable includes: replacing the target simple pinyin syllable with the target full pinyin syllable to obtain a target input string; and selecting a target candidate item matched with the target input string from the candidate item set corresponding to the simple spelling string.
In a second aspect, an embodiment of the present application provides an input device, including: the display device comprises a first display unit and a second display unit, wherein the first display unit is configured to display at least one full pinyin syllable corresponding to a target simple pinyin syllable by taking each simple pinyin syllable in a simple pinyin string as the target simple pinyin syllable when a user inputs the simple pinyin string; and the second display unit is used for selecting a target candidate item corresponding to the simple spelling string based on the target full spelling syllable and displaying the target candidate item when detecting that the target full spelling syllable in the at least one full spelling syllable is selected by the user.
In some embodiments, the first presentation unit is further configured to: acquiring a candidate item set corresponding to the simply spliced string; and expanding the target simplified pinyin syllables based on the candidate item set to obtain at least one full pinyin syllable corresponding to the target simplified pinyin syllable, and displaying the at least one full pinyin syllable.
In some embodiments, the first presentation unit is further configured to: extracting a target syllable of each candidate item in the candidate item set, wherein the target syllable is a syllable with the same order as the target simple spelling syllable; and carrying out duplication removal processing on the extracted target syllables to obtain at least one full-spelling syllable corresponding to the target simple spelling syllable.
In some embodiments, the first presentation unit is further configured to: ranking the at least one full pinyin syllable based on the score of each candidate in the candidate set; and displaying the at least one full spelling syllable according to the sequencing result.
In some embodiments, the first presentation unit is further configured to: taking the candidate item with the same target syllable in the candidate item group as a candidate item group, and determining the score of each full syllabic syllable in the at least one full syllabic syllable based on the score of the candidate item in each candidate item group; ranking the at least one full pinyin syllable based on the score for each full pinyin syllable.
In some embodiments, the first presentation unit is further configured to: for each candidate group, the scores of the candidates in the candidate group are summed to obtain the score of the corresponding pinyin syllable of the at least one pinyin syllable.
In some embodiments, the second presentation unit is further configured to: replacing the target simple pinyin syllable with the target full pinyin syllable to obtain a target input string; and selecting a target candidate item matched with the target input string from the candidate item set corresponding to the simple spelling string.
In a third aspect, an embodiment of the present application provides an apparatus for input, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs are configured to be executed by the one or more processors and comprise instructions for performing the method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable medium on which a computer program is stored, which when executed by a processor, implements the method as described in the first aspect above.
According to the input method and device and the input device, when a user inputs the simplified pinyin strings, each simplified pinyin syllable in the simplified pinyin strings is used as a target simplified pinyin syllable, at least one full pinyin syllable corresponding to the target simplified pinyin syllable is displayed, and when the situation that the user selects the target full pinyin in the at least one full pinyin syllable is detected, the target candidate item corresponding to the simplified pinyin strings is selected based on the target full pinyin syllable, so that the target candidate item is displayed.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is a flow diagram of one embodiment of an input method according to the present application;
FIG. 2 is a flow diagram of yet another embodiment of an input method according to the present application;
FIG. 3 is a schematic diagram of an embodiment of an input device according to the present application;
FIG. 4 is a schematic diagram of a structure of an apparatus for input according to the present application;
FIG. 5 is a schematic diagram of a server in accordance with some embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Referring to FIG. 1, a flow 100 of one embodiment of an input method according to the present application is shown. The input method can be operated in various electronic devices including but not limited to: a server, a smart phone, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a laptop, a car computer, a desktop computer, a set-top box, an intelligent tv, a wearable device, and so on.
The input method application mentioned in the embodiment of the application can support various input methods. The input method may be an encoding method used for inputting various symbols to electronic devices such as computers and mobile phones, and a user may conveniently input a desired character or character string to the electronic devices using the input method application. It should be noted that, in the embodiment of the present application, in addition to the common chinese input method (such as pinyin input method, wubi input method, zhuyin input method, phonetic input method, handwriting input method, etc.), the input method may also support other languages (such as english input method, japanese hiragana input method, korean input method, etc.), and the input method and the language category of the input method are not limited at all.
The input method in this embodiment may include the following steps:
step 101, when a user inputs a simplified pinyin string, taking each simplified pinyin syllable in the simplified pinyin string as a target simplified pinyin syllable, and displaying at least one full pinyin syllable corresponding to the target simplified pinyin syllable.
In this embodiment, an execution subject of the input method (the electronic apparatus described above) may be installed with an input method application. The execution main body can acquire the simple spelling strings input by the user in the input method application in real time. The simple spelling string may be an initial string, an initial string of the initial, or a mixed string containing the initial string (or the initial string of the initial) and the full spelling string. By way of example, a user input of "srf," "sruf," "shrfa," etc., may be provided as a shorthand string.
In this embodiment, the pinyin string may be divided into a plurality of pinyin syllables. The first letter of each pinyin syllable may be the initial or the first letter of the initial. Therefore, each concinning syllable is a substring obtained by dividing the concinning string based on the initial consonant or initial consonant initial. For example, the concatemer string "srf" can be divided into three concatemer syllables, "s", "r", and "f", respectively. "sruf" can be divided into three syllables, s "," ru "and" f ", respectively. The concatemer string "shrfa" can be divided into three concatemer syllables, which are "sh", "r" and "fa", respectively.
In this embodiment, the execution subject may take each of the pinyin syllables in the pinyin string as a target pinyin syllable in turn (e.g., in order from left to right), and perform this step and the following step 102 for each target pinyin syllable in turn. Namely, the first simplified pinyin syllable in the simplified pinyin string is used as a target simplified pinyin syllable, at least one full pinyin syllable corresponding to the first simplified pinyin syllable is displayed, and when a user selects a certain target full pinyin syllable, a target candidate item corresponding to the simplified pinyin string is selected based on the target full pinyin syllable and displayed. And then, taking the second abbreviated spelling syllable in the abbreviated spelling string as a target abbreviated spelling syllable, displaying at least one full spelling syllable corresponding to the second abbreviated spelling syllable, and further selecting and displaying a new target candidate item corresponding to the abbreviated spelling string based on the target full spelling syllable when detecting that a user selects a displayed certain target full spelling syllable. And repeating the steps until the user finishes the expansion of a certain candidate item or all the syllables of the simple spell on the screen. In addition, the execution main body can also take each simple pinyin syllable in the simple pinyin string as a target simple pinyin syllable, simultaneously display at least one full pinyin syllable corresponding to each simple pinyin syllable, and select and display a target candidate item corresponding to the simple pinyin string based on a target full pinyin syllable when detecting that a user selects a certain target full pinyin section.
In this embodiment, when at least one full-pinyin syllable corresponding to the target simplified-pinyin syllable is displayed, the target simplified-pinyin syllable may be expanded to obtain at least one full-pinyin syllable corresponding to the target simplified-pinyin syllable; and then displaying the acquired full spelling syllables for the user to select. When the target simplified pinyin syllables are expanded, the finals which can be combined with the target simplified pinyin syllables can be traversed to obtain at least one full pinyin syllable corresponding to the target simplified pinyin syllables; or screening the traversed vowels to obtain at least one full pinyin syllable corresponding to the vowels; the target pinyin syllable can be expanded in other ways, which is not limited herein.
In some alternative implementations, the target pinyin syllable may be expanded based on the pinyin-string corresponding candidate. The method can be specifically executed according to the following steps:
firstly, a candidate item set corresponding to the abbreviated spelling string is obtained.
All candidates matching the abbreviated string may be included in the candidate set. The number of full pinyin syllables of each candidate item in the candidate item set is the same as the number of simple pinyin syllables of the simple pinyin string, and the number corresponds to one. Each full pinyin syllable is an extension of the corresponding simple pinyin syllable. As an example, if the abbreviated spelling string is "nm", the corresponding candidate set may include but is not limited to a large number of candidates such as "your", "younger sister", "then", "buy", "farmer", "that", "dissuable", "full of year", "brow", and so on. The syllable initials of the first word of these candidates are all "n" and the syllable initials of the second word are all "m".
And secondly, expanding the target simplified pinyin syllables based on the candidate item set to obtain at least one full pinyin syllable corresponding to the target simplified pinyin syllable, and displaying the at least one full pinyin syllable.
Here, the target syllable of each candidate in the candidate set may be extracted first, the target syllable being a syllable in the same order as the target pinyin syllable. That is, if the first abbreviated syllable of the abbreviated string needs to be expanded, the first syllable of each candidate in the candidate set is the target syllable. If the second abbreviated syllable of the abbreviated spelling string needs to be expanded, the second syllable of each candidate in the candidate set is the target syllable. Continuing with the above example, where the pinyin string is "nm," if the target pinyin syllable to be expanded is the first pinyin syllable "n," then it is expanded based on the first syllable of its candidates, resulting in the full pinyin syllables such as "na," nai, "" ni, "" nan, "" nian, "" non.
After the target syllables of the candidate items are extracted, the extracted target syllables can be subjected to de-duplication processing to obtain at least one full-spelling syllable corresponding to the target simple-spelling syllable. Continuing with the above example, the spell string is "nm," and its candidate set includes candidates where the first syllables of "your", "hello", etc. are "ni". After extracting the first syllable of each candidate, a plurality of identical full pinyin syllables "ni" are obtained. The extracted syllables are subjected to de-duplication processing to obtain different complete syllables so as to reduce subsequent data volume.
It should be noted that the step of expanding the target pinyin syllable based on the candidate set may also be performed in other manners. For example, the candidate item set may be first filtered, for example, according to word frequency, etc., then the target syllables of the filtered candidate items are extracted, and then the extracted syllables are subjected to de-duplication processing, so as to obtain at least one full-pinyin syllable corresponding to the target simple-pinyin syllable. And will not be described in detail herein.
In some optional implementations, when the at least one full-pinyin segment is presented, the at least one full-pinyin segment may be ranked based on a score of each candidate item in the candidate set (the score of the candidate item may be determined based on a plurality of factors, such as word frequency, user preference, context, etc.); and then displaying the at least one full spelling syllable according to the sorting result.
For example, a candidate with the same target syllable in the candidate set may be first regarded as a candidate set. A score for each of the at least one pinyin syllable is then determined based on the score for the candidate in each candidate group. Such as summing (or weighted summing, averaging, etc.) the scores of the candidates in each candidate group, resulting in a score for the full pinyin syllable corresponding to the candidate group. Finally, at least one of the full pinyin syllables may be ranked based on the score of each full pinyin syllable, e.g., in descending order of score.
Taking the simple spelling string as "nm" as an example, the simple spelling syllable n is expanded to obtain the full spelling syllables such as "na", "nai", "ni", "nan", "nian", "non", and the like. Since the waiting choices of "you", "you sister", "you buy", "you busy" are all words with higher word frequency, "ni" can be ranked first. Since the candidate word corresponding to "nai" is "mama" with a low word frequency, "nai" may be ranked in a later position. The final ranking result may be, in turn: "ni", "na", "non", "nan", "nian", "nai". Compared with the mode of arranging according to the alphabetical order, the implementation mode can lead the full spelling syllables expected by the user to be ordered at the front, thereby improving the efficiency of selecting syllables by the user.
In some optional implementations, in the process of sequentially processing each of the pinyin syllables in the pinyin string as a target pinyin syllable, the execution main body may determine a relationship with a subsequent unprocessed pinyin string based on a full-pinyin syllable obtained by the target pinyin syllable (the currently processed pinyin syllable), and may provide the relationship to the user in a full-pinyin combination form, so that the user can select the full-pinyin combination. For example, for the simple spelling string "nm", after the full spelling syllables obtained by expanding "n", considering the unprocessed "m", full spelling combinations such as "nimen" and "nengmin" can be provided for the user to select.
In some optional implementations, the execution body may further consider a relationship with the unprocessed pinyin string when sorting the full pinyin syllables obtained after the expansion. For example, for the abbreviated pinyin string "nm", after the full pinyin syllable obtained by expanding "n", the full pinyin syllable conforming to the word group or semantic logic may be preferentially displayed in combination with the subsequent pinyin string "m", for example, with "ni" arranged in front. Thereby improving the efficiency of user selection of syllables.
And 102, when detecting that the target full pinyin section in at least one full pinyin syllable is selected by the user, selecting a target candidate item corresponding to the simple pinyin string based on the target full pinyin syllable, and displaying the target candidate item.
In this embodiment, after displaying at least one full pinyin syllable corresponding to the target pinyin syllable, the execution main body may detect a user selection (e.g., click, touch, etc.) operation of the displayed full pinyin syllable. When detecting that a user selects one of the full pinyin sections, selecting a target candidate item corresponding to the abbreviated pinyin string based on the target full pinyin section, and displaying the target candidate item. Here, the target candidate may be selected from a candidate set corresponding to the abbreviated spelling string.
In some optional implementations, the execution subject may filter out candidates that do not include a word corresponding to the target full-pinyin syllable from the candidate set corresponding to the simple-pinyin string, and present the remaining candidates as the target candidates. Taking the simple spelling string as "nm" as an example, the simple spelling syllable "n" is expanded to obtain the full spelling syllables such as "na", "nai", "ni", "nan", "nian", "non". After the user selects "ni", the candidate items not containing the word corresponding to "ni" can be filtered out, such as "can buy", "peasant", "that face", "difficult to avoid", "yearly full", "eyebrow dense", etc., so as to display the remaining target candidate items such as "your", "you busy", "you sister", "you beautiful", "peat", "you do not". Continuing to expand the Jane syllable "m" may result in "ma", "mei", "men", "mai", etc. The user selects "mei", and then candidate items not containing the word corresponding to "mei" can be filtered out, for example, the candidate items of "your", "you busy" waiting for are filtered out, and new target candidate items of "you sister", "you beautiful", "peat", "you don't", etc. are obtained.
In other alternative implementations, the execution body may first replace the target simple pinyin syllable with the target full pinyin syllable, resulting in the target input string. In the above example, "n" in "nm" is replaced with "ni", resulting in the target input string "nim". And then, selecting target candidate items matched with the target input string from the candidate item set corresponding to the simple spelling string, wherein the target candidate items are 'your', 'you busy', 'you sister', 'you beautiful', 'peat', 'you don' and the like. After continuing to expand the Jane syllable "m" to obtain "ma", "mei", "men", "mai", if the user selects "mei", then the candidate results of "nimei" will be presented, such as "you don", "you sister", "you beautiful", "peat", etc.
The method provided by the above embodiment of the application, when a user inputs a simplified pinyin string, using each simplified pinyin syllable in the simplified pinyin string as a target simplified pinyin syllable, displaying at least one full-pinyin syllable corresponding to the target simplified pinyin syllable, and selecting a target candidate item corresponding to the simplified pinyin string based on the target full-pinyin syllable when detecting that the user selects the target full-pinyin syllable in the at least one full-pinyin syllable, thereby displaying the target candidate item.
With further reference to fig. 2, a flow 200 of yet another embodiment of an input method is shown. The process 200 of the input method comprises the following steps:
step 201, when a user inputs a simplified pinyin string, taking each simplified pinyin syllable in the simplified pinyin string as a target simplified pinyin syllable, acquiring a candidate item set corresponding to the simplified pinyin string, and expanding the target simplified pinyin syllable based on the candidate item set to obtain at least one full pinyin syllable corresponding to the target simplified pinyin syllable.
In this embodiment, the execution main body may, when the user inputs the pinyin string, sequentially use each pinyin syllable in the pinyin string as a target pinyin syllable to obtain a candidate set corresponding to the pinyin string. All candidates matching the abbreviated string may be included in the candidate set. The number of full pinyin syllables of each candidate item in the candidate item set is the same as the number of simple pinyin syllables of the simple pinyin string, and the number corresponds to one. Each full pinyin syllable is an extension of the corresponding simple pinyin syllable. As an example, if the abbreviated spelling string is "nm", the corresponding candidate set may include but is not limited to a large number of candidates such as "your", "younger sister", "then", "buy", "farmer", "that", "dissuable", "full of year", "brow", and so on. The syllable initials of the first word of these candidates are all "n" and the syllable initials of the second word are all "m".
In this embodiment, the execution subject may expand the target simplified pinyin syllable based on the candidate set to obtain at least one full pinyin syllable corresponding to the target simplified pinyin syllable, and display the at least one full pinyin syllable. For example, the target syllable for each candidate in the candidate set may be extracted first, the target syllable being a syllable in the same order as the target pinyin syllable. That is, if the first abbreviated syllable of the abbreviated string needs to be expanded, the first syllable of each candidate in the candidate set is the target syllable. If the second abbreviated syllable of the abbreviated spelling string needs to be expanded, the second syllable of each candidate in the candidate set is the target syllable. After the target syllables of the candidate items are extracted, the extracted target syllables can be subjected to de-duplication processing to obtain at least one full-spelling syllable corresponding to the target simple-spelling syllable. Continuing with the above example, where the pinyin string is "nm," if the target pinyin syllable to be expanded is the first pinyin syllable "n," then it is expanded based on the first syllable of its candidates, resulting in the full pinyin syllables such as "na," nai, "" ni, "" nan, "" nian, "" non.
Step 202, ranking the at least one full pinyin syllable based on the score of each candidate item in the candidate item set, and displaying the at least one full pinyin syllable according to a ranking result.
In this embodiment, each candidate in the candidate set may have a score. The score of a candidate may be determined based on a variety of factors, such as word frequency, user preference, context, and the like. The execution subject may rank the at least one full pinyin syllable based on a score for each candidate in the candidate set.
For example, a candidate with the same target syllable in the candidate set may be first regarded as a candidate set. A score for each of the at least one pinyin syllable is then determined based on the score for the candidate in each candidate group. Such as summing (or weighted summing, averaging, etc.) the scores of the candidates in each candidate group, resulting in a score for the full pinyin syllable corresponding to the candidate group. Finally, at least one of the full pinyin syllables may be ranked based on the score of each full pinyin syllable, e.g., in descending order of score.
Taking the simple spelling string as "nm" as an example, the simple spelling syllable n is expanded to obtain the full spelling syllables such as "na", "nai", "ni", "nan", "nian", "non", and the like. Since the waiting choices of "you", "you sister", "you buy", "you busy" are all words with higher word frequency, "ni" can be ranked first. Since the candidate word corresponding to "nai" is "mama" with a low word frequency, "nai" may be ranked in a later position. The resulting ranking results may be, in order, "ni", "na", "non", "nan", "nian", "nai". Compared with the mode of arranging according to the alphabetical order, the implementation mode can lead the full spelling syllables expected by the user to be ordered at the front, thereby improving the efficiency of selecting syllables by the user.
And 203, when detecting that the user selects the target full pinyin section in the at least one full pinyin syllable, selecting a target candidate item corresponding to the simple pinyin string based on the target full pinyin syllable, and displaying the target candidate item.
Step 203 in this embodiment can refer to step 102 in the corresponding embodiment of fig. 1, and is not described herein again.
As can be seen from fig. 2, compared to the embodiment of fig. 1, the flow 200 of the input method in this embodiment highlights the step of ranking the pinyin segments based on the score of each candidate in the candidate set. Compared with the mode of arranging according to the alphabetical order, the implementation mode can lead the full spelling syllables expected by the user to be ordered at the front, thereby improving the efficiency of selecting syllables by the user.
With further reference to fig. 3, as an implementation of the methods shown in the above figures, the present application provides an embodiment of an input device, which corresponds to the embodiment of the method shown in fig. 1, and which is particularly applicable to various electronic devices.
As shown in fig. 3, the input device 300 of the present embodiment includes: a first presentation unit 301 configured to present at least one full pinyin syllable corresponding to a target pinyin syllable, with each pinyin syllable in the pinyin string as the target pinyin syllable when a user inputs the pinyin string; a second presentation unit 302, configured to, when it is detected that a user selects a target full-pinyin syllable of the at least one full-pinyin syllable, select a target candidate item corresponding to the abbreviated pinyin string based on the target full-pinyin syllable, and present the target candidate item.
In some optional implementations of this embodiment, the first display unit 301 is further configured to: acquiring a candidate item set corresponding to the simply spliced string; and expanding the target simplified pinyin syllables based on the candidate item set to obtain at least one full pinyin syllable corresponding to the target simplified pinyin syllable, and displaying the at least one full pinyin syllable.
In some optional implementations of this embodiment, the first display unit 301 is further configured to: extracting target syllables of each candidate item in the candidate item set, wherein the target syllables are syllables with the same order as the target simple spelling syllables; and carrying out duplication removal processing on the extracted syllables to obtain at least one full-spelling syllable corresponding to the target simple spelling syllable.
In some optional implementations of this embodiment, the first display unit 301 is further configured to: ranking the at least one full pinyin syllable based on the score of each candidate item in the candidate item set; and displaying the at least one full spelling syllable according to the sequencing result.
In some optional implementations of this embodiment, the first display unit 301 is further configured to: taking the candidate item with the same target syllable in the candidate item group as a candidate item group, and determining the score of each full syllabic syllable in the at least one full syllabic syllable based on the score of the candidate item in each candidate item group; sorting the at least one full pinyin syllable based on the score of each full pinyin syllable.
In some optional implementations of this embodiment, the first display unit 301 is further configured to: and for each candidate item group, summing the scores of the candidate items in the candidate item group to obtain the score of the full syllables corresponding to the candidate item group in the at least one full syllables.
In some optional implementations of this embodiment, the second display unit 302 is further configured to: replacing the target simple pinyin syllable with the target full pinyin syllable to obtain a target input string; and selecting a target candidate item matched with the target input string from the candidate item set corresponding to the simple spelling string.
The device provided by the above embodiment of the application, when a user inputs a simplified pinyin string, the device takes each simplified pinyin syllable in the simplified pinyin string as a target simplified pinyin syllable, displays at least one full pinyin syllable corresponding to the target simplified pinyin syllable, and selects a target candidate item corresponding to the simplified pinyin string based on the target full pinyin syllable when detecting that the user selects the target full pinyin syllable in the at least one full pinyin syllable, thereby displaying the target candidate item.
Fig. 4 is a block diagram illustrating an apparatus 400 for input according to an example embodiment, where the apparatus 400 may be an intelligent terminal or a server. For example, the apparatus 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 4, the apparatus 400 may include one or more of the following components: processing components 402, memory 404, power components 406, multimedia components 408, audio components 410, input/output (I/O) interfaces 412, sensor components 414, and communication components 416.
The processing component 402 generally controls overall operation of the apparatus 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing element 402 may include one or more processors 420 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store various types of data to support operations at the apparatus 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 404 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.
Power supply components 406 provide power to the various components of device 400. The power components 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 400.
The multimedia component 408 includes a screen that provides an output interface between the device 400 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 the touch or slide action but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 400 is in an operational 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 410 is configured to output and/or input audio signals. For example, audio component 410 includes a Microphone (MIC) configured to receive external audio signals when apparatus 400 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 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 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 component 414 includes one or more sensors for providing various aspects of status assessment for the apparatus 400. For example, the sensor assembly 414 may detect an open/closed state of the device 400, the relative positioning of the components, such as a display and keypad of the apparatus 400, the sensor assembly 414 may also detect a change in the position of the apparatus 400 or a component of the apparatus 400, the presence or absence of user contact with the apparatus 400, orientation or acceleration/deceleration of the apparatus 400, and a change in the temperature of the apparatus 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 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 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate wired or wireless communication between the apparatus 400 and other devices. The apparatus 400 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 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 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 apparatus 400 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 404 comprising instructions, executable by the processor 420 of the apparatus 400 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.
Fig. 5 is a schematic diagram of a server in some embodiments of the present application. The server 500 may vary widely in configuration or performance and may include one or more Central Processing Units (CPUs) 522 (e.g., one or more processors) and memory 532, one or more storage media 530 (e.g., one or more mass storage devices) storing applications 542 or data 544. Memory 532 and storage media 530 may be, among other things, transient storage or persistent storage. The program stored on the storage medium 530 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 522 may be configured to communicate with the storage medium 530, and execute a series of instruction operations in the storage medium 530 on the server 500.
The server 500 may also include one or more power supplies 526, one or more wired or wireless network interfaces 550, one or more input-output interfaces 558, one or more keyboards 556, and/or one or more operating systems 541, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of an apparatus (smart terminal or server), enable the apparatus to perform an input method, the method comprising: when a user inputs a simplified pinyin string, taking each simplified pinyin syllable in the simplified pinyin string as a target simplified pinyin syllable, and displaying at least one full pinyin syllable corresponding to the target simplified pinyin syllable; and when detecting that a user selects a target full pinyin section in the at least one full pinyin syllable, selecting a target candidate item corresponding to the simple pinyin string based on the target full pinyin syllable, and displaying the target candidate item.
Optionally, the displaying of at least one full-pinyin syllable corresponding to the target simple-pinyin syllable includes: acquiring a candidate item set corresponding to the simply spliced string; and expanding the target simplified pinyin syllables based on the candidate item set to obtain at least one full pinyin syllable corresponding to the target simplified pinyin syllable, and displaying the at least one full pinyin syllable.
Optionally, the expanding the target simplified pinyin syllable based on the candidate item set to obtain at least one full pinyin syllable corresponding to the target simplified pinyin syllable includes: extracting a target syllable of each candidate item in the candidate item set, wherein the target syllable is a syllable with the same order as the target simple spelling syllable; and carrying out duplication removal processing on the extracted syllables to obtain at least one full-spelling syllable corresponding to the target simple spelling syllable.
Optionally, the presenting the at least one full-spelling syllable comprises: ranking the at least one full pinyin syllable based on the score of each candidate in the candidate set; and displaying the at least one full spelling syllable according to the sequencing result.
Optionally, the ranking the at least one full pinyin syllable based on the score of each candidate item in the candidate item set includes: taking the candidate item with the same target syllable in the candidate item group as a candidate item group, and determining the score of each full syllabic syllable in the at least one full syllabic syllable based on the score of the candidate item in each candidate item group; ranking the at least one full pinyin syllable based on the score for each full pinyin syllable.
Optionally, the determining the score of each of the at least one pinyin syllable based on the score of the candidate in each candidate group includes: for each candidate group, the scores of the candidates in the candidate group are summed to obtain the score of the corresponding pinyin syllable of the at least one pinyin syllable.
Optionally, the selecting a target candidate item corresponding to the concatemer string based on the target full-spelling syllable includes: replacing the target simple pinyin syllable with the target full pinyin syllable to obtain a target input string; and selecting a target candidate item matched with the target input string from the candidate item set corresponding to the simple spelling string.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice in the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.
The present application provides an input method, an input device and an input device, and the principles and embodiments of the present application are described herein using 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, characterized in that the method comprises:
when a user inputs a simplified pinyin string, taking each simplified pinyin syllable in the simplified pinyin string as a target simplified pinyin syllable, and displaying at least one full pinyin syllable corresponding to the target simplified pinyin syllable;
and when detecting that a user selects a target full pinyin section in the at least one full pinyin syllable, selecting a target candidate item corresponding to the simple pinyin string based on the target full pinyin syllable, and displaying the target candidate item.
2. The method of claim 1, wherein the presenting at least one full pinyin syllable corresponding to the target simple pinyin syllable comprises:
acquiring a candidate item set corresponding to the simply spliced string;
and expanding the target simplified pinyin syllables based on the candidate item set to obtain at least one full pinyin syllable corresponding to the target simplified pinyin syllable, and displaying the at least one full pinyin syllable.
3. The method of claim 2, wherein the expanding the target Jane syllable based on the candidate set to obtain at least one full Jane syllable corresponding to the target Jane syllable comprises:
extracting a target syllable of each candidate item in the candidate item set, wherein the target syllable is a syllable with the same order as the target simple spelling syllable;
and carrying out duplication removal processing on the extracted target syllables to obtain at least one full-spelling syllable corresponding to the target simple spelling syllable.
4. The method of claim 2, wherein said presenting said at least one full pinyin syllable, comprises:
ranking the at least one full pinyin syllable based on the score of each candidate in the candidate set;
and displaying the at least one full spelling syllable according to the sequencing result.
5. The method of claim 4, wherein said ranking said at least one full pinyin syllable based on a score for each candidate item in the candidate set comprises:
taking the candidate item with the same target syllable in the candidate item group as a candidate item group, and determining the score of each full syllabic syllable in the at least one full syllabic syllable based on the score of the candidate item in each candidate item group;
ranking the at least one full pinyin syllable based on the score for each full pinyin syllable.
6. The method of claim 5, wherein determining the score for each of the at least one pinyin syllable based on the score for the candidate in the respective candidate group comprises:
for each candidate group, the scores of the candidates in the candidate group are summed to obtain the score of the corresponding pinyin syllable of the at least one pinyin syllable.
7. The method of claim 1, wherein selecting the target candidate corresponding to the concatemer based on the target full-pinyin syllable comprises:
replacing the target simple pinyin syllable with the target full pinyin syllable to obtain a target input string;
and selecting a target candidate item matched with the target input string from the candidate item set corresponding to the simple spelling string.
8. An input device, the device comprising:
the display device comprises a first display unit and a second display unit, wherein the first display unit is configured to display at least one full pinyin syllable corresponding to a target simple pinyin syllable by taking each simple pinyin syllable in a simple pinyin string as the target simple pinyin syllable when a user inputs the simple pinyin string;
and the second display unit is used for selecting a target candidate item corresponding to the simple spelling string based on the target full spelling syllable and displaying the target candidate item when detecting that the target full spelling syllable in the at least one full spelling syllable is selected by the user.
9. The apparatus of claim 8, wherein the first presentation unit is further configured to:
acquiring a candidate item set corresponding to the simply spliced string;
and expanding the target simplified pinyin syllables based on the candidate item set to obtain at least one full pinyin syllable corresponding to the target simplified pinyin syllable, and displaying the at least one full pinyin syllable.
10. The apparatus of claim 9, wherein the first presentation unit is further configured to:
extracting a target syllable of each candidate item in the candidate item set, wherein the target syllable is a syllable with the same order as the target simple spelling syllable;
and carrying out duplication removal processing on the extracted target syllables to obtain at least one full-spelling syllable corresponding to the target simple spelling syllable.
11. The apparatus of claim 9, wherein the first presentation unit is further configured to:
ranking the at least one full pinyin syllable based on the score of each candidate in the candidate set;
and displaying the at least one full spelling syllable according to the sequencing result.
12. The apparatus of claim 11, wherein the first presentation unit is further configured to:
taking the candidate item with the same target syllable in the candidate item group as a candidate item group, and determining the score of each full syllabic syllable in the at least one full syllabic syllable based on the score of the candidate item in each candidate item group;
ranking the at least one full pinyin syllable based on the score for each full pinyin syllable.
13. The apparatus of claim 12, wherein the first presentation unit is further configured to:
for each candidate group, the scores of the candidates in the candidate group are summed to obtain the score of the corresponding pinyin syllable of the at least one pinyin syllable.
14. An apparatus for input, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and wherein the programs, when executed by the one or more processors, perform the steps of the method of any of claims 1-7.
15. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN202110739348.2A 2021-06-30 2021-06-30 Input method, input device and input device Pending CN113342183A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110739348.2A CN113342183A (en) 2021-06-30 2021-06-30 Input method, input device and input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110739348.2A CN113342183A (en) 2021-06-30 2021-06-30 Input method, input device and input device

Publications (1)

Publication Number Publication Date
CN113342183A true CN113342183A (en) 2021-09-03

Family

ID=77482050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110739348.2A Pending CN113342183A (en) 2021-06-30 2021-06-30 Input method, input device and input device

Country Status (1)

Country Link
CN (1) CN113342183A (en)

Similar Documents

Publication Publication Date Title
CN107608532B (en) Association input method and device and electronic equipment
US20170140254A1 (en) Method and device for adding font
CN112562675B (en) Voice information processing method, device and storage medium
CN112035031A (en) Note generation method and device, electronic equipment and storage medium
CN107132927B (en) Input character recognition method and device for recognizing input characters
CN108628461B (en) Input method and device and method and device for updating word stock
US20230267282A1 (en) Poetry generation
CN111679746A (en) Input method and device and electronic equipment
CN111324214A (en) Statement error correction method and device
CN110908523A (en) Input method and device
CN107977089B (en) Input method and device and input device
CN113342183A (en) Input method, input device and input device
CN109917927B (en) Candidate item determination method and device
CN109426359B (en) Input method, device and machine readable medium
CN110716653B (en) Method and device for determining association source
CN112306251A (en) Input method, input device and input device
CN111722726B (en) Method and device for determining pigment and text
CN109271094B (en) Text editing method, device and equipment
US20230196001A1 (en) Sentence conversion techniques
CN114253404A (en) Input method, input device and input device
CN115705095A (en) Input association method and device for input association
CN110780750B (en) Input method and device
CN113434045A (en) Input method, input device and input device
CN113495656A (en) Input method, input device and input device
CN113220392A (en) Interface display method and device and interface display device

Legal Events

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