CN113885714A - Input method, apparatus and medium - Google Patents

Input method, apparatus and medium Download PDF

Info

Publication number
CN113885714A
CN113885714A CN202111154551.XA CN202111154551A CN113885714A CN 113885714 A CN113885714 A CN 113885714A CN 202111154551 A CN202111154551 A CN 202111154551A CN 113885714 A CN113885714 A CN 113885714A
Authority
CN
China
Prior art keywords
expansion
candidate
type
character
recognition
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
CN202111154551.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 CN202111154551.XA priority Critical patent/CN113885714A/en
Publication of CN113885714A publication Critical patent/CN113885714A/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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/04162Control or interface arrangements specially adapted for digitisers for exchanging data with external devices, e.g. smart pens, via the digitiser sensing hardware

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 invention provides an input method, an input device and a medium, wherein the input method specifically comprises the following steps: acquiring track data input by a user; identifying the track data to obtain an identification character corresponding to the track data; determining and displaying an expansion candidate item corresponding to the recognition character; the extension candidate corresponds to a language unit of a preset type, and the preset type includes: sentence type. The embodiment of the invention can improve the handwriting input efficiency.

Description

Input method, apparatus and medium
Technical Field
The embodiment of the invention relates to the technical field of input methods, in particular to an input method, an input device and a medium.
Background
The input method refers to a coding method adopted for inputting various characters into equipment (such as a computer, a mobile phone, a tablet computer and the like). The handwriting input method is an input method suitable for a touch screen device. Taking handwriting input of Chinese characters as an example, a user inputs Chinese character strokes by sliding on a touch screen device through a finger or a touch pen, the touch screen device recognizes characters formed by a group of Chinese character strokes as corresponding characters by recognizing the Chinese character strokes, and displays the characters in a certain font such as a song style and a regular script.
The current handwriting input process is generally as follows: the user inputs the characters one by one in the handwriting area, and waits and selects the single character candidate after one-time handwriting input is finished; after the user selects a single character candidate, the input method clears the handwriting area to continue the input of the next character.
The inventor finds that the current word-by-word input mode avoids the character segmentation problem of continuous handwriting recognition and has higher recognition rate in the process of implementing the embodiment of the invention; however, one handwriting input of the above-described character-by-character input mode can only realize input of one character, so that the handwriting input efficiency is low.
Disclosure of Invention
How to improve the handwriting input efficiency is a technical problem to be solved by the technical personnel in the field. In view of the above, embodiments of the present invention propose an input method, apparatus and medium that overcome or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present invention discloses an input method, including:
acquiring track data input by a user;
identifying the track data to obtain an identification character corresponding to the track data;
determining and displaying an expansion candidate item corresponding to the recognition character; the extension candidate corresponds to a language unit of a preset type, and the preset type includes: sentence type.
In another aspect, an embodiment of the present invention discloses an input device, including:
the track acquisition module is used for acquiring track data input by a user;
the track identification module is used for identifying the track data to obtain identification characters corresponding to the track data;
the expansion candidate item processing module is used for determining and displaying the expansion candidate item corresponding to the recognition character; the extension candidate corresponds to a language unit of a preset type, and the preset type includes: sentence type.
In another aspect, an embodiment of the present invention discloses an apparatus for input, which includes a memory and one or more programs, where the one or more programs are stored in the memory, and when the programs are executed by one or more processors, the steps of the foregoing method are implemented.
In yet another aspect, embodiments of the invention disclose one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause an apparatus to perform one or more of the methods described above.
The embodiment of the invention has the following advantages:
the embodiment of the invention displays the language units of the sentence types as the expansion candidate items. The expansion candidate items of preset types such as sentence types and the like can express a complete meaning, and can break through the limitation of only providing single character candidates and inputting word by word, thereby providing more choices for the handwriting input of a user. Under the condition that the expansion candidate of the sentence type meets the requirements of the user, the handwriting input times of the user can be reduced, the operation cost of the user is saved, and therefore the handwriting input efficiency can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is an illustration of an application environment for an input method of an embodiment of the invention;
FIG. 2 is a flow chart of the steps of an input method of an embodiment of the present invention;
FIG. 3 is a flow chart of the steps of an input method of an embodiment of the present invention;
FIG. 4 is a block diagram of an input device according to an embodiment of the present invention;
FIG. 5 is a block diagram of an apparatus 1000 for input in accordance with an embodiment of the present invention; and
fig. 6 is a schematic structural diagram of a server in some embodiments of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Current handwriting input methods typically employ a word-by-word input mode. The implementation process of the character-by-character input mode specifically comprises the following steps: after a user inputs track data of a character in a handwriting area, waiting and selecting single character candidates; after the user selects a single character candidate, the input method clears the handwriting area to continue the input of the next character. Since one-time handwriting input of the above-mentioned character-by-character input mode can only realize input of one character, the efficiency of handwriting input is low.
Aiming at the technical problem of how to improve the handwriting input efficiency, the embodiment of the invention provides an input scheme which can acquire track data input by a user; identifying the track data to obtain an identification character corresponding to the track data; determining and displaying the expansion candidate items corresponding to the recognition characters; the extension candidate may correspond to a language unit of a preset type, where the preset type specifically includes: sentence type.
The embodiment of the invention displays the language units of the sentence types as the expansion candidate items. The expansion candidate item of the sentence type can break through the limitation of only providing single word candidates and inputting word by word, and can provide more choices for the handwriting input of the user. Under the condition that the expansion candidate of the sentence type meets the requirements of the user, the handwriting input times of the user can be reduced, the operation cost of the user is saved, and therefore the handwriting input efficiency can be improved.
For example, in the case where the user inputs track data of "early", the embodiment of the present invention may provide expansion candidates of sentence types of "like all parents in the morning", "early" and the future ". The expansion candidate item can provide more choices for the handwriting input of the user, and under the condition that the expansion candidate item meets the requirements of the user, the handwriting input times of the user can be reduced, the operation cost of the user is saved, and therefore the handwriting input efficiency can be improved.
The embodiment of the invention can be applied to the Application environment of an input method APP (Application program), and can improve the handwriting input efficiency. In addition, the embodiment of the present invention may be applied to any input scenarios such as text editing, instant messaging, and web search, and it can be understood that the embodiment of the present invention does not limit the specific application environment and the specific input scenario.
The input method provided by the embodiment of the present invention can be applied to the application environment shown in fig. 1, as shown in fig. 1, the client 100 and the server 200 are located in a wired or wireless network, and the client 100 and the server 200 perform data interaction through the wired or wireless network.
The client 100 may run on a terminal with a touch screen, where the terminal specifically includes but is not limited to: smart phones, tablet computers, electronic book readers, MP3 (Moving Picture Experts Group Audio Layer III) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop portable computers, car-mounted computers, desktop computers, set-top boxes, smart televisions, wearable devices, and the like.
In practical applications, the client 100 may display an input interface, which may optionally include a handwriting area to receive trajectory data of the user via the handwriting area.
According to an embodiment, the client 100 may further obtain track data input by the user in the handwriting area, recognize the track data to obtain a recognition character corresponding to the track data, and determine and present an expansion candidate corresponding to the recognition character.
According to another embodiment, the client 100 may send the trajectory data input by the user in the handwriting area to the server, so that the server 200 recognizes the trajectory data to obtain the recognition character corresponding to the trajectory data, and determines the expansion candidate corresponding to the recognition character. It can be understood that the embodiment of the present invention does not limit the specific implementation subjects of recognizing the trajectory data and determining the expansion candidates corresponding to the recognition characters.
Method embodiment one
Referring to fig. 2, a flowchart illustrating steps of an input method according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 201, acquiring track data input by a user;
step 202, identifying the track data to obtain an identification character corresponding to the track data;
step 203, determining and displaying the expansion candidate items corresponding to the recognition characters; the extension candidate may correspond to a language unit of a preset type, and the preset type may specifically include a sentence type.
The embodiment of the invention can be applied to the intelligent terminal with the touch screen, and in practical application, the track data input by the user can be acquired through the touch screen. Alternatively, the trace data may be generated by a finger or a stylus, and in particular, the path of movement of the finger or stylus on the input interface may form the trace data. In practical application, the track data generated by the finger or the touch pen can be sensed through a sensing device which is arranged in or out of the terminal. Optionally, the trajectory data may include: position coordinates of the trace points, etc.
In step 201, a sensing device may be used to sense the displacement and the lifting motion of the finger or the touch pen, and when the displacement of the finger or the touch pen is detected, the trajectory of the finger or the touch pen in the displacement process is recorded until the lifting motion of the finger or the touch pen is detected, and one lifting motion may correspond to one trajectory. In practical applications, the trajectory data may include: at least one track. For example, for a user not accustomed to a running stroke, the trace data corresponding to the word "rancour" may include 9 traces, and for a user accustomed to a running stroke, the trace data corresponding to the word "rancour" may include less than 9 traces. It is to be understood that the number of tracks included in the track data is not limited by the embodiment of the present invention.
In step 202, the trajectory data may be recognized using handwriting recognition techniques. HandWriting Recognition (HandWriting Recognition) refers to a process of converting ordered tracks generated during writing on a HandWriting device into Chinese character internal codes in an informationization manner.
In a specific implementation, for a character, the corresponding character code may be determined, and the mapping relationship between the character code and the character may be stored through a word stock. For handwriting input, the corresponding character code may be determined according to the font of the character, and it is understood that the specific character code is not limited in the embodiment of the present invention.
In the embodiment of the present invention, the process of identifying the Chinese character from the trajectory data may include: the method comprises the steps of identifying a character formed by a group of Chinese character strokes as a Chinese character code, inquiring a character library according to the Chinese character code, and obtaining the character corresponding to the Chinese character code from the character library. For the recognition process from the track data to the numbers, letters, symbols or other characters, the process is similar to the recognition process from the track data to the Chinese characters, so that the description is omitted and the mutual reference is only needed.
The handwriting input mode provided by the embodiment of the invention can comprise the following steps: a single write input mode, an overwrite input mode, or a line write input mode, etc. Wherein, the single-writing input mode takes all written tracks as the tracks of one character; the over-write input mode may support a track of one character overlaid on a track of another character; the line writing input mode can support continuous input of a plurality of characters and a certain distance is reserved between different characters. And if the user can select different handwriting input modes in advance, the input method determines the recognition characters corresponding to the track data according to the handwriting input mode selected by the user.
According to different handwriting input modes, the number of characters corresponding to the recognized character in the embodiment of the present invention may be one or greater than one.
Wherein, when the handwriting input mode is the single-writing input mode, the number of characters corresponding to the recognized character may be one. For example, if the user inputs the trajectory data of "early", the identification characters may be "early", "drought", and the like, and these identification characters include one character.
In the case that the handwriting input mode is the overlay or line writing input mode, the number of characters corresponding to the recognized character may be one or more than one. For example, if the user sequentially inputs the trajectory data of "early" and "up", the identification characters may be "early morning" and the like, and these identification characters include two characters.
It can be understood that the number of characters corresponding to the recognition character may correspond to the trajectory data, and the number of characters corresponding to the recognition character is not limited in the embodiment of the present invention.
In practical applications, the recognition character itself may be a candidate. For convenience, the candidate word corresponding to the recognition character itself may be recorded as a common candidate.
In step 203, the expanded candidate may be used as a supplement to the general candidate, so as to increase information of the candidate, and further increase the selection chance of the user for the candidate.
In particular, the preset types of the expansion candidates may specifically include: the word type, the phrase type, the sentence type and the like can realize the input of a plurality of characters through one input operation under the condition that the expansion candidate items of the preset type meet the requirements of the user, so the input times of the user can be reduced.
The phrase refers to a certain combination relationship of two or more words. The sentence is a basic unit for language application, is composed of words and phrases, can express a complete meaning, such as telling others about a thing, proposing a problem, expressing a requirement or a stop, expressing a certain probability of feeling, and expressing the continuation or omission of a section of speech. The expansion candidate item of the sentence type of the embodiment of the invention can express a complete meaning and can effectively save the input times of the user.
The embodiment of the invention can provide the following technical scheme for determining the expansion candidate item corresponding to the recognition character:
the technical scheme 1,
In technical solution 1, the determining and presenting the expansion candidate corresponding to the recognition character may specifically include:
searching language units of a preset type in a word stock by taking the identification characters as prefixes; and/or
And searching a language unit of a preset type in a word stock by taking the identification character and the corresponding text as prefixes.
In practical applications, the word stock may specifically include: at least one of a system thesaurus, a user thesaurus and a cell thesaurus.
The word stock of the system can be a word stock provided by the input method, and can be a local word stock of the terminal, or a network word stock or a cloud word stock acquired by the input method from a server. Typically, the system thesaurus provided by the same input method to different users is the same.
The user word bank is a word bank relative to the system word bank, the same content is provided for different users relative to the system word bank, and the input method can store the entry on the screen (the entry on the screen after the action of the entry on the screen) input by the user into the user word bank by learning words. Typically, the system lexicon provided by the same input method to different users is different.
A cell word bank is a vocabulary set of a fine category, and the category of the cell word bank can be a professional field (such as a medical field word bank), a region (such as a Beijing place name word bank), a game (such as a magic animal world vocabulary) and the like;
it is understood that the system thesaurus, the user thesaurus and the cell thesaurus are only examples of thesaurus, and the embodiment of the present invention is not limited to the specific thesaurus.
In a specific implementation, the characters can be recognized as prefixes, and language units of preset types are searched in a word stock. The language unit may correspond to a unit of a language, and the language unit may correspond to a word, a phrase, or a sentence. Where a word may represent a single word, a phrase may represent a combination of multiple words.
For example, in the case that the recognized character is "early", the embodiment of the present invention may obtain the following search result based on the search of the lexicon: language units of word types such as "morning", "morning" and "breakfast" and "morning" and language units of sentence types such as "morning and" morning are good "and" morning and "future" and the like.
In one implementation, the search result may be directly used as an extension candidate corresponding to the recognition character. For example, when the number of search results is small, the search results may be directly used as the expansion candidates corresponding to the recognition characters.
In another implementation, the expansion candidate may be selected from the search results. Correspondingly, the determining and presenting the expansion candidate corresponding to the recognition character may further include: and selecting the expansion candidate items from the search result according to the use frequency.
The use frequency is used for representing the use times of the user for the search result. In the field of input methods, the frequency of use can be characterized by word frequency. The word frequency can represent the input times of the user for the entry corresponding to the search result, and the word frequency can be recorded as a parameter of the word bank. According to the embodiment of the invention, the expansion candidate item is selected from the search result according to the use frequency, and a more common expansion candidate item can be provided for the user, so that the matching degree between the expansion candidate item and the user requirement can be improved.
In practical application, the expansion candidate item whose usage frequency meets the first preset condition may be selected from the search result. The first preset condition may include: the usage frequency exceeds a frequency threshold, or the usage frequency is ranked N (N is a positive integer) bits first, and the like. Wherein, the search results can be ranked according to the order of the use frequency from high to low.
In an alternative embodiment, the expansion candidate items may be selected from the search results for a plurality of preset types, respectively. For example, for a word type, i expansion candidate items are selected from the search result; for another example, j expansion candidate items are selected from the search result aiming at the phrase type; as another example, k expansion candidates are selected from the search result for the sentence type, and so on. In this embodiment, i, j, and k may be positive integers, for example, the ranges of i, j, and k may be 1 to 3, and it is understood that the specific number of the corresponding expansion candidates is not limited in the embodiment of the present invention.
For example, in the case that the recognition character is "early", the embodiment of the present invention may select "morning", "early" from the search result for the word type; aiming at the phrase type, selecting 'good morning' from the search result; and aiming at the sentence types, selecting ' morning good like ' parents ', ' morning good, future ' and the like from the search results.
Technical scheme 2,
In technical solution 2, the number of identifiers may be multiple, and the determining and presenting the expansion candidates corresponding to the identifier may specifically include: selecting a target recognition character from the plurality of recognition characters according to the scores of the recognition characters; and determining and displaying the expansion candidate items corresponding to the target recognition characters.
Technical means 2 selects a target recognition character from a plurality of recognition characters based on the score of the recognition character. The score can represent the quality of the recognition character, so that a target recognition character with higher quality can be selected from a plurality of recognition characters, and an expansion candidate item is provided for the target recognition character, so that the matching degree between the expansion candidate item and the user requirement can be improved.
In a particular implementation, the score of the recognized character may be determined based on a degree of match between the recognized character and the trajectory data. In general, the higher the degree of matching between the recognition character and the trajectory data, the higher the score of the recognition character.
In practical application, the expansion candidate item with the score meeting the second preset condition may be selected from the search result. The second preset condition may include: the score exceeds a score threshold, or the score is ranked M top (M is a positive integer), and so on. Wherein the recognized characters may be ranked in order of scores from high to low. For example, the recognition character having the highest score may be selected as the target recognition character.
After the target recognition character is determined, the expansion candidate corresponding to the target recognition character can be determined and displayed by using the technical scheme 1. In other words, a combination of the technical solution 1 and the technical solution 2 can be adopted by those skilled in the art according to the actual application requirements.
In the process of presenting the expansion candidate items, the embodiment of the invention can present one of three preset types, or two or three types. For example, one of the expansion candidates of the sentence type may be presented. As another example, expansion candidates for sentence types and word types may be presented. As another example, expansion candidates for sentence type and phrase type may be presented. Alternatively, expansion candidates for sentence types, word types, and phrase types may be presented.
Also, presentation positions of extension candidates of different preset types may have different priorities. For example, a word type has a higher priority than a phrase type, which has a higher priority than a sentence type.
In a specific implementation, the extended candidate of the word type may be presented in front of the extended candidate of the word group type or the sentence type; and/or, showing the expansion candidate item of the phrase type in front of the expansion candidate item of the sentence type.
In practical application, common candidate items corresponding to the recognition characters can be displayed; the above-mentioned common candidate may be located in front of the extended candidate. For example, in order from front to back, the presented candidates may include in order: a common candidate item and an extended candidate item; wherein, in order from front to back, the expansion candidates may sequentially include: an extended candidate of a word type, an extended candidate of a phrase type, and an extended candidate of a sentence type.
In one implementation, the candidate region may include: the display device comprises a first area and a second area, wherein the first area and the second area are arranged up and down, and the first area is positioned above the second area. Wherein the first region may exhibit in sequence: the common candidate, the extended candidate of the word type, and the extended candidate of the phrase type, and the second region may show: the sentence type expansion candidates, of course, the above implementation is only an example, and in practice, the common candidates and the expansion candidates may be arranged in sequence from front to back and from top to bottom according to the specific sizes of the first region and the second region.
It should be noted that common candidates in the embodiments of the present invention specifically include: target recognition characters and non-target recognition characters. In practical applications, the target recognition character may be presented in front of the expansion candidate. For non-target recognition characters, they may not be presented, or they may be presented after the expansion candidates.
To sum up, the input method of the embodiment of the present invention displays the language units of the sentence types as the expansion candidates. The expansion candidate items of the sentence types can express a complete meaning, and can break through the limitation of only providing single word candidates and inputting word by word, thereby providing more choices for the handwriting input of the user. Under the condition that the expansion candidate of the sentence type meets the requirements of the user, the handwriting input times of the user can be reduced, the operation cost of the user is saved, and therefore the handwriting input efficiency can be improved.
Method embodiment two
Referring to fig. 3, a flowchart illustrating steps of an input method according to an embodiment of the present invention is shown, which may specifically include the following steps:
301, acquiring trajectory data input by a user;
step 302, identifying the track data to obtain a plurality of identification characters corresponding to the track data;
step 303, judging whether a target recognition character meeting a second preset condition exists in the plurality of recognition characters, if so, executing step 304, otherwise, executing step 306;
step 304, determining an expansion candidate item corresponding to the target recognition character;
the extension candidate may correspond to a language unit of a preset type, and the preset type may specifically include at least one of the following types: word type, phrase type, and sentence type.
Step 305, displaying the target recognition character and the expansion candidate item; wherein the target recognition character is located in front of the expansion candidate item;
and step 306, displaying the plurality of recognition characters according to the sequence of the scores from high to low.
The embodiment of the invention identifies the track data and can obtain a plurality of corresponding identification characters. For example, when the user inputs the trajectory data of "early", a plurality of recognized characters such as "early", "drought", and the like can be obtained.
When a target recognition character meeting a second preset condition exists in the plurality of recognition characters, a corresponding expansion candidate item can be determined for the target recognition character, and the target recognition character and the expansion candidate item are displayed. The second preset condition can improve the matching degree between the target recognition character and the track data, namely the matching degree between the target recognition character and the user requirement. On the basis, the expansion candidate item is provided for the target recognition character, and the matching degree between the expansion candidate item and the user requirement can be improved.
In this case, the non-target recognition character can be displayed. For example, non-target recognition characters may be presented behind the expansion candidates. As another example, non-target recognition characters may be presented between the target recognition characters and the expansion candidates. As another example, non-target recognition characters may be presented between different preset types of expansion candidates. It will be appreciated that it is also possible that non-target recognition characters are not presented.
In the case that there is no target recognition character meeting the second preset condition among the plurality of recognition characters, the plurality of recognition characters may be presented in an order of scores from high to low according to a conventional flow.
It should be noted that, for simplicity of description, the method embodiments are described as a series of motion combinations, but those skilled in the art should understand that the present invention is not limited by the described motion sequences, because some steps may be performed in other sequences or simultaneously according to the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no moving act is required as an embodiment of the invention.
Device embodiment
Referring to fig. 4, a block diagram of an embodiment of an input device according to the present invention is shown, which may specifically include:
a track obtaining module 401, configured to obtain track data input by a user;
a track identification module 402, configured to identify the track data to obtain an identification character corresponding to the track data;
an expansion candidate processing module 403, configured to determine and display an expansion candidate corresponding to the recognition character; the extension candidate corresponds to a language unit of a preset type, where the preset type specifically includes: sentence type.
Optionally, the expansion candidate processing module 403 may specifically include:
the first searching module is used for searching a language unit of a preset type in a word stock by taking the identification character as a prefix; and/or
And the second searching module is used for searching the language units of the preset type in the word stock by taking the identification characters and the corresponding texts as prefixes.
Optionally, the expansion candidate processing module 403 may further specifically include:
and the first selection module is used for selecting the expansion candidate item from the search result according to the use frequency.
Optionally, the number of the recognition characters may be multiple, and the extended candidate processing module 403 may specifically include:
a second selection module, configured to select a target recognition character from the plurality of recognition characters according to the score of the recognition character;
and the determining and displaying module is used for determining and displaying the expansion candidate items corresponding to the target recognition characters.
Optionally, the preset types may further include: word type, and/or phrase type; the extended candidate processing module 403 may specifically include:
the first expansion candidate item showing module is used for showing the expansion candidate items of the word types in front of the expansion candidate items of the word group types or the sentence types; and/or
And the second expansion candidate item showing module is used for showing the expansion candidate item of the phrase type in front of the expansion candidate item of the sentence type.
Optionally, the apparatus may further specifically include:
the common candidate item display module is used for displaying the common candidate items corresponding to the recognition characters; the normal candidate is located in front of the extended candidate.
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.
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.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The present invention provides a device for input, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs including instructions for: acquiring track data input by a user; identifying the track data to obtain an identification character corresponding to the track data; determining and displaying an expansion candidate item corresponding to the recognition character; the extension candidate corresponds to a language unit of a preset type, and the preset type includes: sentence type.
Fig. 5 is a block diagram illustrating an apparatus 1000 for input according to an example embodiment. For example, the apparatus 1000 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. 5, the apparatus 1000 may include one or more of the following components: processing component 1002, memory 1004, power component 1006, multimedia component 1008, audio component 1010, input/output (I/O) interface 1012, sensor component 1014, and communications component 1016.
The processing component 1002 generally controls the overall operation of the device 1000, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 1002 may include one or more processors 1020 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 1002 may include one or more modules that facilitate interaction between processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate interaction between the multimedia component 1008 and the processing component 1002.
The memory 1004 is configured to store various types of data to support operation at the device 1000. Examples of such data include instructions for any application or method operating on device 1000, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1004 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 supply component 1006 provides power to the various components of the device 1000. The power components 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 1000.
The multimedia component 1008 includes a screen that provides an output interface between the device 1000 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 1008 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 device 1000 is in an operating 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 1010 is configured to output and/or input audio signals. For example, audio component 1010 includes a Microphone (MIC) configured to receive external audio signals when apparatus 1000 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 1004 or transmitted via the communication component 1016. In some embodiments, audio component 1010 also includes a speaker for outputting audio signals.
I/O interface 1012 provides an interface between processing component 1002 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 1014 includes one or more sensors for providing various aspects of status assessment for the device 1000. For example, sensor assembly 1014 may detect an open/closed state of device 1000, the relative positioning of components, such as a display and keypad of apparatus 1000, sensor assembly 1014 may also detect a change in position of apparatus 1000 or a component of apparatus 1000, the presence or absence of user contact with apparatus 1000, orientation or acceleration/deceleration of apparatus 1000, and a change in temperature of apparatus 1000. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1014 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 1014 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1016 is configured to facilitate communications between the apparatus 1000 and other devices in a wired or wireless manner. The device 1000 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 1016 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1016 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 1000 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 1004 comprising instructions, executable by the processor 1020 of the device 1000 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. 6 is a schematic structural diagram of a server in some embodiments of the invention. The server 1900, which may vary widely in configuration or performance, may include one or more Central Processing Units (CPUs) 1922 (e.g., one or more processors) and memory 1932, one or more storage media 1930 (e.g., one or more mass storage devices) that store applications 1942 or data 1944. Memory 1932 and storage medium 1930 can be, among other things, transient or persistent storage. The program stored in the storage medium 1930 may include one or more modules (not shown), each of which may include a sequence of instructions operating on the server. Further, a central processor 1922 may be arranged to communicate with the storage medium 1930 to execute a series of instruction operations in the storage medium 1930 on the server 1900.
The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input/output interfaces 1958, one or more keyboards 1956, and/or one or more operating systems 1941, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of an apparatus (smart terminal or server), enable the apparatus to perform an input method, the method comprising: acquiring track data input by a user; identifying the track data to obtain an identification character corresponding to the track data; determining and displaying an expansion candidate item corresponding to the recognition character; the extension candidate corresponds to a language unit of a preset type, and the preset type includes: sentence type.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within 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 invention being indicated by the following claims.
It will be understood that the invention 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 invention is limited only by the appended claims.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
The present invention provides an input method, an input device, and a machine-readable medium, which are described in detail above, and the principles and embodiments of the present invention are explained herein by 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 invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, 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 invention.

Claims (14)

1. An input method, characterized in that the method comprises:
acquiring track data input by a user;
identifying the track data to obtain an identification character corresponding to the track data;
determining and displaying an expansion candidate item corresponding to the recognition character; the extension candidate corresponds to a language unit of a preset type, and the preset type includes: sentence type.
2. The method of claim 1, wherein the determining and presenting the expansion candidate corresponding to the recognition character comprises:
searching language units of a preset type in a word stock by taking the identification characters as prefixes; and/or
And searching a language unit of a preset type in a word stock by taking the identification character and the corresponding text as prefixes.
3. The method of claim 1, wherein the determining and presenting the expansion candidate corresponding to the recognition character further comprises:
and selecting the expansion candidate items from the search result according to the use frequency.
4. The method of claim 1, wherein the number of the recognition characters is multiple, and the determining and presenting the expansion candidates corresponding to the recognition characters comprises:
selecting a target recognition character from a plurality of recognition characters according to the scores of the recognition characters;
and determining and displaying the expansion candidate item corresponding to the target recognition character.
5. The method of claim 1, wherein the preset type further comprises: word type, and/or phrase type; the determining and presenting the expansion candidate item corresponding to the recognition character includes:
displaying the expansion candidate item of the word type in front of the expansion candidate item of the word group type or the sentence type; and/or
And showing the expansion candidate item of the phrase type in front of the expansion candidate item of the sentence type.
6. The method according to any one of claims 1 to 5, further comprising:
displaying common candidate items corresponding to the recognition characters; the normal candidate is located in front of the extended candidate.
7. An input device, the device comprising:
the track acquisition module is used for acquiring track data input by a user;
the track identification module is used for identifying the track data to obtain identification characters corresponding to the track data;
the expansion candidate item processing module is used for determining and displaying the expansion candidate item corresponding to the recognition character; the extension candidate corresponds to a language unit of a preset type, and the preset type includes: sentence type.
8. The apparatus of claim 7, wherein said extended candidate processing module comprises:
the first searching module is used for searching a language unit of a preset type in a word stock by taking the identification character as a prefix; and/or
And the second searching module is used for searching the language units of the preset type in the word stock by taking the identification characters and the corresponding texts as prefixes.
9. The apparatus of claim 7, wherein said extended candidate processing module further comprises:
and the first selection module is used for selecting the expansion candidate item from the search result according to the use frequency.
10. The apparatus of claim 7, wherein the recognition character is plural, and wherein the extended candidate processing module comprises:
the second selection module is used for selecting a target recognition character from the plurality of recognition characters according to the scores of the recognition characters;
and the determining and displaying module is used for determining and displaying the expansion candidate item corresponding to the target recognition character.
11. The apparatus of claim 7, wherein the preset type further comprises: word type, and/or phrase type; the extended candidate processing module includes:
the first expansion candidate item showing module is used for showing the expansion candidate items of the word types in front of the expansion candidate items of the word group types or the sentence types; and/or
And the second expansion candidate item showing module is used for showing the expansion candidate item of the phrase type in front of the expansion candidate item of the sentence type.
12. The apparatus of any of claims 7 to 11, further comprising:
the common candidate item display module is used for displaying the common candidate items corresponding to the recognition characters; the normal candidate is located in front of the extended candidate.
13. 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 one of claims 1 to 6.
14. One or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause an apparatus to perform the method of one or more of claims 1-6.
CN202111154551.XA 2021-09-29 2021-09-29 Input method, apparatus and medium Pending CN113885714A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111154551.XA CN113885714A (en) 2021-09-29 2021-09-29 Input method, apparatus and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111154551.XA CN113885714A (en) 2021-09-29 2021-09-29 Input method, apparatus and medium

Publications (1)

Publication Number Publication Date
CN113885714A true CN113885714A (en) 2022-01-04

Family

ID=79008473

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111154551.XA Pending CN113885714A (en) 2021-09-29 2021-09-29 Input method, apparatus and medium

Country Status (1)

Country Link
CN (1) CN113885714A (en)

Similar Documents

Publication Publication Date Title
CN107688399B (en) Input method and device and input device
CN107291704B (en) Processing method and device for processing
CN107918496B (en) Input error correction method and device for input error correction
CN108304412B (en) Cross-language search method and device for cross-language search
CN109783244B (en) Processing method and device for processing
CN110795014B (en) Data processing method and device and data processing device
CN107422921B (en) Input method, input device, electronic equipment and storage medium
CN109388249B (en) Input information processing method and device, terminal and readable storage medium
CN108628461B (en) Input method and device and method and device for updating word stock
CN108536653B (en) Input method, input device and input device
CN108073291B (en) Input method and device and input device
CN109542244B (en) Input method, device and medium
CN109979435B (en) Data processing method and device for data processing
CN113407099A (en) Input method, device and machine readable medium
CN112837668B (en) Voice processing method and device for processing voice
CN113885714A (en) Input method, apparatus and medium
CN110780749B (en) Character string error correction method and device
CN110716653B (en) Method and device for determining association source
CN109992124B (en) Input method, apparatus and machine readable medium
CN114967939A (en) Input method, device and medium
CN111258691B (en) Input method interface processing method, device and medium
CN115877955A (en) Input method, input device and input device
CN113407039A (en) Input method, device and machine readable medium
CN109388328B (en) Input method, device and medium
CN109271094B (en) Text editing method, device and 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