Nothing Special   »   [go: up one dir, main page]

CN107797676B - Single character input method and device - Google Patents

Single character input method and device Download PDF

Info

Publication number
CN107797676B
CN107797676B CN201610805481.2A CN201610805481A CN107797676B CN 107797676 B CN107797676 B CN 107797676B CN 201610805481 A CN201610805481 A CN 201610805481A CN 107797676 B CN107797676 B CN 107797676B
Authority
CN
China
Prior art keywords
character string
user
input
sequence
splitting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610805481.2A
Other languages
Chinese (zh)
Other versions
CN107797676A (en
Inventor
刘辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201610805481.2A priority Critical patent/CN107797676B/en
Publication of CN107797676A publication Critical patent/CN107797676A/en
Application granted granted Critical
Publication of CN107797676B publication Critical patent/CN107797676B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

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)
  • Input From Keyboards Or The Like (AREA)
  • Machine Translation (AREA)

Abstract

The embodiment of the invention provides a single character input method and a device, wherein the method comprises the following steps: acquiring a candidate word list matched with a phrase sequence input by a user; detecting one or more non-single word candidate words from the candidate word list; when a trigger instruction is detected, splitting the non-single character candidate words to obtain a plurality of splitting units; and if the characteristic character string input by the user is detected, determining a splitting unit matched with the characteristic character string from the splitting unit, wherein the characteristic character string and the phrase sequence have matching items. The embodiment of the invention can be suitable for the scene that the user needs to input the uncommon single character without inputting the uncommon single character by turning pages for many times or deleting redundant words, thereby improving the input speed of the user and reducing the input cost.

Description

Single character input method and device
Technical Field
The invention relates to the technical field of input methods, in particular to a single character input method and a single character input device.
Background
With the development of information technology, many works and entertainment in daily life of people are performed on various electronic devices, and users frequently need to input information through an input method application program to complete human-computer interaction.
In the existing input method application program, when inputting Chinese, the pinyin input method is a commonly used input method, and a user inputs a plurality of letter combinations to generate pinyin, and obtains one or more corresponding candidate words according to the pinyin for the user to select. When there are multiple candidate words, the existing input method generates a ranking sequence for the candidate words in advance according to the calculated word frequency, the rules of unitary and binary relations of the words, and the like, and displays the ranking sequence.
When the pinyin input by the user obtains a single character, the candidate words are generally arranged from high to low according to the word frequency of the single character. Therefore, when the individual characters on the screen are rarely used, the user often needs to turn pages for many times to find the required target candidate characters, and the individual character acquisition method is high in cost. For example, a person has a name of xu 39580 (xu' ao), and if a pinyin string is directly input, "xu" is on a first candidate page and "good horse" is on a fourth candidate page, the cost of screening and page turning is high for a user.
In order to reduce the screening cost, when a user needs a rarely-used single word, the user generally firstly performs word combination on the single word, deletes unnecessary words after the word combination word is displayed on a screen, and retains the required single word. For example, when the user needs to enter "Xu \39580", the user first enters the "Xu", "good horse" word as follows: the user inputs "jieaobuxun", selects "26688", "39580and" don't-discipline "on the screen, and then deletes" discipline "," don "and" name of the last ruler of the Xia Dynasty "in order, thereby completing the correct input of the" good horse "word.
The inventor finds that the method needs to delete redundant characters and adjust the cursor, which affects the fluency of user input, has high editing cost and affects the input speed.
Disclosure of Invention
In view of the above problems, embodiments of the present invention provide a single character input method and a corresponding single character input device, in order to solve the problems of poor input fluency and slow input speed caused when inputting uncommon single characters in an input method.
In order to solve the above problems, the embodiment of the present invention discloses a single character input method, which comprises:
acquiring a candidate word list matched with a phrase sequence input by a user;
detecting one or more non-single word candidate words from the candidate word list;
when a trigger instruction is detected, splitting the non-single character candidate words to obtain a plurality of splitting units;
and if the characteristic character string input by the user is detected, determining a splitting unit matched with the characteristic character string from the splitting unit, wherein the characteristic character string and the phrase sequence have matching items.
Preferably, the trigger instruction is detected in the following manner:
and if the fact that the user presses the designated key within a first preset time period after the phrase sequence is input is detected, judging that a trigger instruction is detected.
Preferably, the characteristic character string is a character string input by the user within a second preset time period of pressing the designated key.
Preferably, the phrase sequence is a part of a character string sequence input by a user, and the character string sequence comprises a phrase sequence, designated character information and a characteristic character string which are sequentially arranged;
before the step of obtaining a candidate word list matched with the phrase sequence input by the user, the method further comprises the following steps:
receiving a character string sequence input by a user;
detecting whether specified character information is included in the character string sequence;
if the character string sequence comprises designated character information, taking the character sequence before the designated character information as a phrase sequence, taking the character sequence after the designated character information as a characteristic character string, and judging that a trigger instruction is detected.
Preferably, the method further comprises:
and if the number of the splitting units matched with the characteristic character string is one, the matched splitting units are displayed on a screen.
Preferably, the method further comprises:
if the number of the splitting units matched with the characteristic character strings is more than one, displaying the matched splitting units in a preset area;
and when detecting that a user selects a matched splitting unit in the preset area, displaying the selected splitting unit on a screen.
Preferably, the method further comprises:
respectively generating corresponding relations between the matched splitting units and preset shortcut key information;
and displaying the shortcut key information and the corresponding splitting unit in the preset area.
Preferably, when it is detected that a matching split unit in the preset area is selected by a user, the step of displaying the selected split unit on a screen includes:
and when the user keys in the shortcut key information, the splitting unit corresponding to the shortcut key information is displayed on the screen.
The embodiment of the invention also discloses a single character input device, which comprises:
the candidate word acquisition module is used for acquiring a candidate word list matched with the phrase sequence input by the user;
the non-single word candidate word detection module is used for detecting one or more non-single word candidate words from the candidate word list;
the candidate word splitting module is used for splitting the non-single word candidate words to obtain a plurality of splitting units when a trigger instruction is detected;
and the matching module is used for determining a splitting unit matched with the characteristic character string from the splitting unit if the characteristic character string input by the user is detected, wherein the characteristic character string and the phrase sequence have matching items.
The device further comprises:
the character string sequence input module is used for receiving a character string sequence input by a user;
the designated character detection module is used for detecting whether the character string sequence comprises designated character information or not;
and the detection module is used for taking the character sequence before the specified character information as a phrase sequence and taking the character sequence after the specified character information as a characteristic character string if the character string sequence comprises the specified character information, and judging that the trigger instruction is detected.
The device further comprises:
and the first screen-loading module is used for directly loading the matched split units on a screen when the split units matched with the characteristic character strings are one.
In a preferred embodiment of the embodiments of the present invention, the apparatus further comprises:
the splitting unit display module is used for displaying the matched splitting unit in a preset area when the number of the splitting units matched with the characteristic character string is more than one;
and the second screen-loading module is used for loading the selected splitting unit on the screen when detecting that a user selects a matched splitting unit in the preset area.
The device further comprises:
the corresponding pair generating module is used for respectively generating the corresponding relation between the matched splitting unit and preset shortcut key information;
and the corresponding display module is used for displaying the shortcut key information and the corresponding splitting unit in the preset area.
The second upper screen module is further configured to:
and when the user keys in the shortcut key information, the splitting unit corresponding to the shortcut key information is displayed on the screen.
The embodiment of the invention also discloses a single character input device, which comprises 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 one or more processors and comprise instructions for:
acquiring a candidate word list matched with a phrase sequence input by a user;
detecting one or more non-single word candidate words from the candidate word list;
when a trigger instruction is detected, splitting the non-single character candidate words to obtain a plurality of splitting units;
and if the characteristic character string input by the user is detected, determining a splitting unit matched with the characteristic character string from the splitting unit, wherein the characteristic character string and the phrase sequence have matching items.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, after a user inputs a phrase sequence, a non-single word candidate word corresponding to the phrase sequence is acquired, the non-single word candidate word is split into a plurality of splitting units by triggering the designated key, and after the user inputs a characteristic character string, the characteristic character string is matched in the plurality of splitting units, so that the splitting unit matched with the characteristic character string is acquired.
Drawings
FIG. 1 is a flowchart illustrating a first embodiment of a single character input method according to the present invention;
FIG. 2 is a flowchart illustrating steps of a second embodiment of a single character input method according to the present invention;
FIGS. 3A-3C are exemplary diagrams of a virtual keyboard according to embodiments of the present invention;
FIG. 4 is a flowchart illustrating the third step of a single character input method according to a third embodiment of the present invention;
FIG. 5 is a block diagram of an embodiment of a single character input device according to the present invention;
FIG. 6 is a block diagram illustrating a single word input device in accordance with one illustrative embodiment;
fig. 7 is a schematic diagram illustrating a configuration of a server according to an example embodiment.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Referring to fig. 1, a flowchart illustrating steps of a first embodiment of a single character input method according to the present invention is shown, which may include the following steps:
step 101, acquiring a candidate word list matched with a phrase sequence input by a user;
102, detecting one or more non-single word candidate words from the candidate word list;
103, when a trigger instruction is detected, splitting the non-single character candidate words to obtain a plurality of splitting units;
and 104, if the characteristic character string input by the user is detected, determining a splitting unit matched with the characteristic character string from the splitting units, wherein the characteristic character string and the phrase sequence have matching items.
In the embodiment of the invention, after a user inputs a phrase sequence, a non-single word candidate word corresponding to the phrase sequence is acquired, the non-single word candidate word is split into a plurality of splitting units by triggering the designated key, and after the user inputs a characteristic character string, the characteristic character string is matched in the plurality of splitting units, so that the splitting unit matched with the characteristic character string is acquired.
Referring to fig. 2, a flowchart of steps of a second embodiment of a single character input method according to the present invention is shown, where the second embodiment of the present invention may be applied to a terminal device having an information input function, where the information input function may be implemented by a program (e.g., a virtual keyboard) embedded in the terminal, or implemented by a physical keyboard, a handwriting pad, a sound collection device, and the like connected to the terminal device.
The terminal device may include a mobile phone, a PDA (Personal Digital Assistant), a laptop computer, a palmtop computer, a desktop computer, a signature terminal for providing an electronic signature for a user, and the like, which is not limited in this embodiment of the present invention.
The terminal can support operating systems such as Windows, Android, IOS and Windows Phone.
The embodiment of the invention specifically comprises the following steps:
step 201, acquiring a candidate word list matched with a phrase sequence input by a user;
in a specific implementation, after a user starts an input method application installed in the terminal device, the user may input the phrase sequence into the terminal device in a physical keyboard, a virtual keyboard, a handwriting pad, a sound collection device, and the like. Accordingly, the user's input may include key input, handwriting input, voice input, and the like.
The virtual keyboard may include a squared keyboard, a full keyboard (e.g., a QWERT keyboard), and the like. The virtual keyboard may typically have one or more virtual keys, which are often multiplexed, mapped with one or more characters, which may be used to input characters, and mapped to different characters for different languages, such as chinese, english, japanese, etc.
In order to make those skilled in the art better understand the embodiments of the present invention, in the embodiments of the present invention, a chinese character is described as an example of a language.
In a specific implementation, the characters of the virtual key mapping may specifically include, but are not limited to, at least one of input numeric characters, english characters, chinese characters (e.g., pinyin characters, stroke characters, etc.), and symbolic characters.
For example, referring to fig. 3A and 3B, there are shown exemplary diagrams of a virtual keyboard of an embodiment of the present invention, which virtual keyboard 300 may be referred to as a squared figure keyboard or a 9-key keyboard.
For the virtual key 301, as shown in fig. 3A, in the pinyin input mode, the virtual key 301 maps pinyin characters, an initial "d", a final "e", and an initial "f"; in the numeric input mode, the virtual key 301 may map the numeric character "3", and in the english input mode, the virtual key 301 may map the english characters "d", "e", "f"; in the pinyin input mode, the numeric input mode, and the english input mode, the virtual keys 302 may map symbolic characters, commas, "; as shown in FIG. 3B, in the stroke input mode, the virtual key 301 maps stroke characters.
For another example, referring to fig. 3C, which shows an exemplary view of another virtual keyboard of embodiments of the present invention, the virtual keyboard 310 may be referred to as a full keyboard or 26-key keyboard, and a typical full keyboard or 26-key keyboard may be a QWERT keyboard.
For the virtual key 311, in the pinyin input mode, the virtual key 311 may map a pinyin character, a semivowel "w"; in the english input mode, the virtual key 311 can map an english character "w"; in the number input mode, the virtual key 311 may have a number character of "2"; for the virtual key 312, in the pinyin input mode, the virtual key 312 may map the pinyin character "g"; in the english input mode, the virtual key 311 may map an english character "g", and in the symbol input mode, may map a symbol character, a percentile "%".
Of course, the virtual keyboard and the virtual keys are only examples, and other virtual keyboards and virtual keys may be set according to actual situations when implementing the embodiment of the present invention, which is not limited in the embodiment of the present invention. In addition, besides the virtual keyboard and the virtual keys, those skilled in the art may also adopt other virtual keyboards and virtual keys according to actual needs, which is not limited in the embodiment of the present invention.
The phrase sequence may include, but is not limited to: at least one of a numeric string, an English string, a Chinese string (e.g., a Pinyin string, a stroke string, etc.), a symbolic string, and a hybrid string (including at least two different strings).
In a preferred embodiment, the phrase sequence may be a string composed of a plurality of pinyin strings of words. For example, the phrase sequence may be in the form of "jieobauxun" or the like.
In a specific implementation, if it is detected that the user performs a pressing operation on the input area, whether the user has a normal input intention may be identified by detecting a pressing type of the user on the input area. Specifically, the pressing operation may refer to an operation generated when a press is performed on a touch screen or a physical keyboard of the electronic device. If the pressing operation of the user is detected, the pressing position corresponding to the pressing operation can be firstly acquired, if the pressing position is the position of the input area, the pressing type of the pressing operation is further determined, if the pressing type in the input area is the light-press Peek type, the user can be judged to have normal input intention, and therefore the phrase sequences respectively input by the user can be received.
In the process of inputting the phrase sequence by the user, there may be a case of erroneous input. For the case of erroneous input, error correction processing may be performed.
In practice, the phrase sequence may involve one or more of the following misinterpretation scenarios when input:
(1) southern fuzzy sound: due to regional limitation, China has many dialects, and the pronunciation of people in different places has certain difference, for example, the southern people can distinguish the curled tongue-flat tongue, the anterior nose sound-posterior nose sound differently from the northern people.
(2) The operation is uncoordinated: it is common to interchange left and right hand keys or two keys in succession with the same hand, such as inputting the syllable "le" to "el", or mistakenly inputting the left hand input sequence "er" to "re". Of course, the former case requires distinguishing between a "bad" spool and a true "le-el" error (wrong form-correct form, the same applies below).
(3) Frequently occurring key press errors: for example, the user mistakenly presses the "y" key into the "u" key due to the reasons of the flexibility degree of the fingers, the characteristics of the keyboard and the like; or pressing intermediate the "u" key and the "y" key causes both keys to be recognized as pressed, these erroneous inputs are often accompanied by a backspace correction by the user.
(4) The keyboard buttons are relatively narrow: for example, in an input environment where the size of the virtual keyboard is limited, the keyboard buttons are relatively narrow and the operation is completed by a thumb with a large area, so that erroneous input such as mistaken pressing, excessive pressing and the like is easily caused, and the associated key positions are often adjacent to the target key positions on the keyboard.
(5) Button response hysteresis: for example, the key response is delayed due to the quality of the keyboard, which is easy to cause the repeated input of the user. For example, system problems cause the key to be insensitive, and the user may not see the input screen after first clicking, which may result in subsequent multi-tap by the user.
Based on the error occurring in the error correction scene, the input method application program can judge whether the phrase sequence has an input error through modes of language simulation, input historical behavior statistics and the like.
Specifically, one or more of the following manners may be adopted to determine whether an input error occurs in the phrase sequence, but it should be understood that the embodiments of the present invention are not limited thereto:
(1) setting legal pinyin database, which contains multiple legal pinyin strings composed of legal pinyin syllables including 413 of a, ai …, zuo, etc. If the adjacent k (e.g. 3) characters in the character string input by the user are not part of the legal pinyin string, for example: if the afn in the chiafn is not part of the legal pinyin, it can be determined that there is an error.
(2) And setting an error correction database, wherein the error correction database comprises a plurality of error input character strings. If the phrase sequence input by the user hits a certain character string in the error correction database, the phrase sequence is judged to have errors.
(3) When the phrase sequence input by the user can not hit any entry in word banks such as a system word bank and a user word bank, judging that the phrase sequence has errors;
(4) in a mobile client such as a mobile phone, whether the phrase sequence is input wrongly can be judged by judging whether the pressing force degree when the phrase sequence is input by the user is within the range of normal pressing force degree and/or the offset from the pressing point to the central point of the key.
(5) Language model (N-Gram) statistics: N-Gram is a Language Model commonly used in large vocabulary continuous speech recognition, and is commonly referred to as Chinese Language Model (CLM) for Chinese.
The Chinese language model can calculate the sentences with the maximum probability by using the collocation information between adjacent words in the context when the continuous blank-free pinyin, strokes or numbers representing letters or strokes are required to be converted into Chinese character strings (namely sentences), thereby realizing the automatic conversion to Chinese characters.
The embodiment of the invention can analyze the input fragment, consider the context and judge whether the input fragment is reasonable or not. For example, in the case of no support for pinyin and english input, "tre" is an illegal sequence based on normal user input statistics.
(6) Input time interval of two continuous keys and layout of the two keys: if two adjacent key positions are continuously input and the time interval is extremely short, the possibility that the user mistakenly clicks one more key exists.
If the input method kernel determines that the input of the phrase sequence is incorrect, the error correction processing may be performed on the phrase sequence, and during implementation, the error correction may be performed on the phrase sequence by using a general error correction method, for example, performing error correction based on user habits, performing error correction based on an error correction database, and the like.
After the error correction is performed on the phrase sequence, candidate words corresponding to the phrase sequence can be further obtained.
In languages such as chinese and japanese, characters such as chinese and japanese as basic language units are not generally directly mapped to keys on a virtual keyboard, and therefore, conversion between character strings and words is generally required during input.
Specifically, a mapping relation is established between characters such as Chinese characters and words and character strings capable of being directly input through a coding rule, for example, the common codes in Chinese are pinyin (such as simple pinyin, double pinyin, full pinyin, fuzzy sound and the like), five strokes and the like.
Taking Chinese character input as an example, a user inputs a character string of a Chinese character into an input method application program through a virtual keyboard or a physical keyboard, and the input method application program decodes the character string and switches the character string into word candidate items. The method specifically comprises the following steps:
a. pinyin analysis: the character string is segmented into pinyin.
For example, the character string "zhuanli" is split into "zhuanan", "li", and the character string "fangan" is split into "fang", "an", and "fan", "gan".
b. Chinese character decoding: and searching characters, words and sentences corresponding to the pinyin in a word bank.
In a specific implementation, one or more word banks may be preset, and may include a system word bank that records basic words, a cell word bank that records expanded words (words in the cell word bank have at least one common attribute), such as a cell word bank that records a certain game-specific word, a cell word bank that records a biological-specific word, and the like, and may also include a user word bank that records user-customized words (e.g., self-created words), and the like, which is not limited in this embodiment of the present invention.
The language information needed by the input method is stored in the word stock, and as different characters may correspond to the same code, for a specific character string, the input method can complete the conversion of a phrase sequence with characters, words and sentences through the word stock to obtain one or more candidate words, and the one or more candidate words form a candidate word list which is used for guessing the real input intention of a user.
The lexicon may contain various linguistic information, such as:
(1) an entry;
although an input method can be constructed on the basis of characters, the input method uses entries in a large number because words are the smallest units of semantic meaning commonly used in chinese.
For example, when a user inputs the string "zhuan" based on the pinyin criterion, there are multiple homophones, and it is difficult to determine which word the user wants to input "turn, specialize, earn, brick … …".
Similarly, when the user inputs the character string "li" based on the pinyin specification, a plurality of homophones exist, and it is difficult to determine which character of "li, li … …" the user wants to input.
However, if the user continuously inputs the character string "zhuanli" based on the pinyin criterion, the input method may determine that the word "patent" is input by the user with a high probability according to the existing entry rule.
(2) And (4) word frequency.
Homophones exist in large numbers and homophones still exist, so the input method generally lists all options for the user to select.
However, the position of the candidate has a great influence on the usability of the input method, and it is often more beneficial for the user to put the more frequently used candidate at a position, i.e. the word frequency (i.e. the use frequency of the entry, including the use frequency of the current user and the use frequency of the group users) is one of the bases for sorting the candidates.
In addition, the input method often integrates the function of self-constructed words and sentences, and in this case, the word frequency is also one of the bases for word and sentence construction.
Of course, in addition, the word stock may also include other information, such as language connection relationships, that is, connection relationships between words, for example, "of" often appears after adjectives, nouns, pronouns, and the like, and "of" often appears after adverbs, and the like, which is not limited in the embodiment of the present invention.
c. And taking the searched characters, words and sentences as word candidates.
Because the displayed positions are limited, in order to display the candidate items with higher probability required by the user in a limited manner, the input method generally calculates scores for the searched candidate items.
In scoring, the following factors are typically considered:
(1) a user attribute;
different users may need to use the same word, but the importance of the word may vary from user to user.
For example, the homophones "research" and "smoking and drinking" are used more often in academic areas, while the latter are used more often in daily life, but both are possible.
Thus, when the user enters the pinyin string "yanjiu", both may appear in the candidate. However, if it is clear that the current user is a student, the "study" is more likely to be required by the current user, and the weight thereof may be increased.
(2) Inputting an environment;
the weight of the lexicon and/or the entry can be dynamically adjusted through the use environment of the input method.
For example, if the input method includes two cell word banks of "office words" and "network words," the entry words commonly used in office and the entry words commonly used in network chat are recorded, respectively.
The two Word banks are generally the same in priority, but when the input method identifies that the input is made in Word, the Word bank of the office expression can be weighted, and when the user makes an input in the conversation window of the instant messaging tool, the Word bank of the network expression can be weighted.
(3) Word frequency;
in general, the higher the word frequency, the higher its weight, whereas the lower the word frequency, the lower its weight.
(4) Location.
If the word banks in the word bank are ordered according to the weights, if the entry with the high weight is ordered in the front, the relative position of the entry in the word bank can express the weight of the entry.
Step 202, detecting one or more non-single word candidate words from the candidate word list;
the non-single word candidate word may be a candidate word including two or more single words. For example, if the phrase sequence input by the user is "jieaobuxun", the candidate word list may include "\26688", "39580", "don't discipline", "26688", "\39580", "jaao", "street", "connect", "borrow" and wait for the selection of words, the non-single word candidate word is "26688", "39580", "don't discipline", "26688", "39580", "jaao", and so on.
And after determining a candidate word list corresponding to the phrase sequence, detecting the candidate words in the candidate word list, and recording the non-single word candidate words if the candidate words are detected to be non-single word candidate words.
Generally, there are two general considerations when a user enters a phrase: one is that the user wishes to enter the word, and the other is that the user wishes to enter a word in the word by means of the word. For the latter consideration, the user often selects a word with a higher frequency of use when inputting a phrase. Therefore, the recorded non-single word candidate words can be sorted from high to low according to the word frequency.
In a preferred embodiment, the non-single word candidate words ranked in the top N digits may be selected from the ranked non-single word candidate words, where N may be determined according to practical situations, and may be, for example, 1, 2, and the like.
Step 203, if it is detected that the user presses an appointed key within a first preset time period after the phrase sequence is input, splitting the non-single character candidate word to obtain a plurality of splitting units;
in a specific implementation, the designated key may be a key preset by a developer, or a key preset by a user. For example, the designated key may be a Tab key, a Ctrl key, an Alt key, an F1 key, an F2 key, etc. on a physical keyboard. Of course, other key types may be used besides the above key types, and the embodiment of the present invention is not limited thereto.
It should be noted that the specific key may also be preset by a developer first, and the user may modify the specific key at a later stage according to actual conditions (e.g., actual usage habits).
If the user presses the designated key within a first preset time period (for example, within 10 milliseconds) after typing the phrase sequence, it may be considered that the user issues a trigger instruction to trigger splitting the one or more non-single character candidate words to form a plurality of splitting units, where each splitting unit includes one or more single characters, that is, each splitting unit includes one or more characters in the non-single character candidate words.
In a preferred embodiment, the detected non-word candidate word may be split into a plurality of words in units of a word, each word serving as a splitting unit, for example, for the detected non-word candidate word, "26688, \\ 39580, \\" 26688, \ "39580and jae, the splitting units obtained after splitting are" name of the last ruler of the Xia Dynasty "," good horse "," don "," discipline "," name of the last ruler of the Xia Dynasty "," good horse "," jae "and" ao ", respectively.
Further, when the user inputs a candidate word containing three or more words, the following two considerations may be considered: one is to input a single word in the non-single word candidate word, and the other is to input a plurality of continuous single words in the non-single word candidate word (usually, the plurality of continuous single words can form a word, which has a certain meaning). In view of the above, in another preferred embodiment, in addition to splitting the obtained non-single word candidate word into multiple single words, the non-single word candidate word is also analyzed, and a word with a certain meaning is split therefrom. For example, for \26688, \39580andinvariance, in addition to division into individual words, division into \26688, \39580andinvariance may be performed.
In practice, if there are a plurality of non-single character candidate words, the split units obtained after splitting may have a situation of repeated occurrence, so after the non-single character candidate words are split to form a plurality of split units, the multiple split units may be subjected to deduplication operations, that is, the repeated occurrence of the split units in the split units is removed. For example, the resolving units obtained after the above resolving are respectively "name of the last ruler of the Xia Dynasty", "good horse", "don", "taming", "name of the last ruler of the Xia Dynasty", "good horse", "jie" and "ao", wherein the two resolving units "name of the last ruler of the Xia Dynasty" and "good horse" are repeated, and after the repeated resolving units are removed, the resolving results of "name of the last ruler of the Xia Dynasty", "good horse", "don", "taming", "jie" and "ao" are obtained.
Step 204, if it is detected that the user inputs the characteristic character string within a second preset time period when the user presses the designated key, determining a splitting unit matched with the characteristic character string from the splitting units;
in the embodiment of the present invention, in a second preset time period when the user presses the designated key, it may be further detected whether the user types a characteristic character string, where there is a matching item between the characteristic character string and the phrase sequence, that is, the characteristic character string is a partial character string of the phrase sequence. For example, if the phrase sequence input by the user is "jieaobuxun", the characteristic character string may be "jie" or "ao", etc.
The second preset time period may be the same time period as the first preset time period, and the value may be preset by a developer or may be set by a user, which is not limited in the embodiment of the present invention.
If the characteristic character string input by the user is detected within the second preset time period when the user presses the designated key, the splitting unit corresponding to the characteristic character string can be matched from the splitting result.
Step 205, determining whether the number of the splitting units matched with the characteristic character string is more than one, if not, executing step 206, and if so, executing step 207;
in a specific implementation, the number of splitting units matched with the characteristic character string may be one or more than one.
For example, if the phrase sequence input by the user is "jieaobuxun", the detected candidate word of a non-single word is "26688", "39580and" don't care ", and then the user clicks the" Tab "button to trigger the splitting of \26688", "39580and" don't care ", the obtained splitting unit is" name of the last ruler of the Xia Dynasty "," good horse "," don't "and" don't care ", and then the characteristic character string input by the user is" ao ", the four splitting units of" name of the last ruler of the Xia Dynasty "," good horse "," don 'and "don't care" are matched with "ao", and the obtained matched single word is "good horse".
For another example, the phrase sequence input by the user is "jieaobuxun", the detected candidate word of a non-single word is "26688", "39580", "discipline", "26688", "39580", "jabo", then the user clicks the "Tab" button to trigger the pair of "26688", "39580", "discipline", "26688", "39580", and "jabo", the division units obtained after the duplication removal are "name of the last ruler of the Xia Dynasty", "good horse", "don", "discipline", "jabo", and "ao", then the characteristic character string input by the user is "ao", and then the six division units of "name of the last ruler of the Xia Dynasty", "good horse", "don", "discipline", "jabo", and "ao" are matched with "ao", and the obtained matched single word is "good horse" and "ao".
Step 206, directly displaying the matched splitting unit on a screen;
in the embodiment of the invention, when the number of the acquired splitting units matched with the characteristic character string is one, the characteristic character string can be directly displayed on a screen.
For example, in the above example, when the matching split unit obtained by the user inputting the characteristic character string "ao" is "good horse", the word "good horse" can be directly displayed on the screen.
And step 207, displaying the matched splitting units in a preset area, and when detecting that a user selects a certain matched splitting unit in the preset area, displaying the selected splitting unit on a screen.
In the embodiment of the invention, when the number of the acquired splitting units matched with the characteristic character strings is two or more, the two or more matched splitting units can be displayed to a user, and the user selects the matched single character to be finally displayed on a screen.
In a specific implementation, the region of the splitting unit that shows matching may be a preset region different from the candidate word region, where the preset region may be located below or on both sides of the candidate word region and near a blank of the candidate word region, or the preset region may also be located behind the corresponding single word candidate word. It should be understood that the display position of the preset area is not limited in the embodiment of the present invention, as long as it does not affect the normal input of the user.
After the matched split units are displayed in the preset area, a user can select the split units needing to be displayed on the screen in a mouse or finger touch mode and the like.
In an implementation manner, corresponding relations between the matched splitting units and preset shortcut key information can be respectively generated; and displaying the shortcut key information and the corresponding splitting unit in the preset area.
In practical applications, since a shortcut key is usually set for each candidate word in the candidate word area where the candidate word is displayed, for example, the number keys are set as the shortcut keys to input the candidate words, that is, when a user wants to input a certain candidate word, the user only needs to use the corresponding number keys to input the candidate word. In order not to affect the input of the candidate word, the shortcut key information corresponding to the splitting unit in the embodiment of the present invention may be shortcut key information different from the candidate word, and in order to avoid confusion with the specified key, the shortcut key information corresponding to the splitting unit may also be a key different from the specified key. For example, the shortcut key information corresponding to the splitting unit can be any key between F1-F12.
If the corresponding shortcut key is set for the matched splitting unit, the relation pair of the shortcut key and the splitting unit can be displayed in the preset area, and when a user types certain shortcut key information, the splitting unit corresponding to the shortcut key information is displayed on the screen.
For example, according to the above example, the matching split units are "good horse" and "ao", if the shortcut key information corresponding to "good horse" is F1, and the shortcut key information corresponding to "ao" is F2, when the user types F1, the word "good horse" is displayed on the screen.
In the embodiment of the invention, after a user inputs a phrase sequence, a non-single word candidate word corresponding to the phrase sequence is acquired, the non-single word candidate word is split into a plurality of splitting units by triggering the designated key, and after the user inputs a characteristic character string, the characteristic character string is matched in the plurality of splitting units, so that the splitting unit upper screen matched with the characteristic character string is acquired.
Referring to fig. 4, a flowchart illustrating steps of a third embodiment of a single character input method according to the present invention is shown, which may include the following steps:
step 401, receiving a character string sequence input by a user;
in the embodiment of the present invention, the character string sequence input by the user may include a phrase sequence, designated character information, and a characteristic character string, which are arranged in sequence. The phrase sequence may include a sequence composed of multiple single-character pinyins, and there is a matching item between the characteristic character string and the phrase sequence.
The specified character information may be a trigger character preset by a developer or a user, and in the embodiment of the present invention, a specified character database may be established to store one or more pieces of preset specified character information, where the specified character information may be a help word, a conjunction word, and the like, for example, the specified character information includes "de", "le", "zhi", and the like.
For example, if the character string sequence input by the user is "jieobauxundeao", the phrase sequence is "jieobauxuun", the designated character information is "de", and the characteristic character string is "ao".
Step 402, detecting whether the character string sequence includes designated character information;
in a specific implementation, after detecting that a user inputs a character string sequence, matching the character string sequence in a specified character database, and searching whether specified character information contained in the specified character database exists in the character string sequence.
For example, the string sequence input by the user is "jieobauxundeao", and if the specified character information included in the specified character database includes "de", "le", "zhi", and the like, the string sequence is matched in the specified character database, and the matched specified character information is "de".
Step 403, if the character string sequence includes the specified character information, taking the character sequence before the specified character information as a phrase sequence, taking the character sequence after the specified character information as a feature character string, and determining that the trigger instruction is detected.
In the embodiment of the present invention, if the character string sequence includes the specified character information, according to the rule that the phrase sequence, the specified character information, and the characteristic character string are sequentially arranged, the character sequence before the specified character information may be used as the phrase sequence, and the character sequence after the specified character information may be used as the characteristic character string.
For example, if the character string sequence input by the user is "jieobauxundeao" and the specified character information "de" is detected, the "jieobauxuun" may be used as the phrase sequence and the "ao" may be used as the feature character string.
Further, when the character string sequence includes the designated character information, it may also be determined that it is detected that the user has issued a trigger instruction, where the trigger instruction is used to trigger subsequent splitting of the non-single character candidate word.
Step 404, obtaining a candidate word list matched with the phrase sequence input by the user;
after determining the phrase sequence, one or more candidate words corresponding to the phrase sequence may be obtained, and the one or more candidate words are organized into a candidate word list.
Step 405, detecting one or more non-single word candidate words from the candidate word list;
the non-single word candidate word may be a candidate word including two or more single words. For example, if the phrase sequence input by the user is "jieaobuxun", the candidate word list may include "\26688", "39580", "don't discipline", "26688", "\39580", "jaao", "street", "connect", "borrow" and wait for the selection of words, the non-single word candidate word is "26688", "39580", "don't discipline", "26688", "39580", "jaao", and so on.
Step 406, splitting the non-single character candidate words to obtain a plurality of splitting units;
in step 403, if it is detected that the character string sequence includes the designated character information, it is determined that a trigger instruction sent by the user is detected, and at this time, the one or more non-single character candidate words may be split to obtain a plurality of splitting units.
Each splitting unit comprises one or more single characters, namely each splitting unit comprises one or more characters in the non-single character candidate words.
In practice, if there are a plurality of non-single character candidate words, there may be a situation that the split units obtained after splitting may appear repeatedly, so that after the non-single character candidate words are split to form a plurality of split units, the multiple split units may be subjected to deduplication operations.
Step 407, determining a splitting unit matched with the characteristic character string from the splitting units;
in step 403, if it is detected that the specified character information is included in the character string sequence and a character string exists after the specified character information, the character string after the specified character information is regarded as a characteristic character string, and a splitting unit matching the characteristic character string is determined from the splitting units.
Step 408, judging whether the number of the splitting units matched with the characteristic character strings is more than one; if not, go to step 409, if yes, go to step 410;
in a specific implementation, the number of splitting units matched with the characteristic character string may be one or more than one.
Step 409, directly displaying the matched splitting unit on a screen;
in the embodiment of the invention, when the number of the acquired splitting units matched with the characteristic character string is one, the characteristic character string can be directly displayed on a screen.
Step 410, displaying the matched splitting units in a preset area, and when detecting that a user selects a matching splitting unit in the preset area, displaying the selected splitting unit on a screen.
In the embodiment of the invention, when the number of the acquired splitting units matched with the characteristic character strings is two or more, the two or more matched splitting units can be displayed to a user, and the user selects the matched single character to be finally displayed on a screen.
After the matched split units are displayed in the preset area, a user can select the split units needing to be displayed on the screen in a mouse or finger touch mode and the like.
In an implementation manner, corresponding relations between the matched splitting units and preset shortcut key information can be respectively generated; displaying the shortcut key information and the corresponding splitting unit in the preset area, and when a user types a certain shortcut key information, displaying the splitting unit corresponding to the shortcut key information on a screen.
In the embodiment of the invention, after a user inputs a character string sequence, if a phrase sequence, designated character information and a characteristic character string can be detected from the character string sequence, a non-single character candidate word corresponding to the phrase sequence is obtained, the non-single character candidate word is split into a plurality of splitting units, and the characteristic character string is matched from the plurality of splitting units, so that the splitting unit screen matched with the characteristic character string is obtained.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 5, a block diagram of a single character input device according to an embodiment of the present invention is shown, which may specifically include the following modules:
a candidate word obtaining module 501, configured to obtain a candidate word list matched with a word group sequence input by a user;
a non-single word candidate word detection module 502, configured to detect one or more non-single word candidate words from the candidate word list;
the candidate word splitting module 503 is configured to split the non-single word candidate word when a trigger instruction is detected, so as to obtain a plurality of splitting units;
a matching module 504, configured to determine, if a characteristic character string input by a user is detected, a splitting unit that matches the characteristic character string from the splitting units, where there is a matching item between the characteristic character string and the phrase sequence.
In a preferred embodiment of the present invention, the trigger instruction is detected in the following manner:
and if the fact that the user presses the designated key within a first preset time period after the phrase sequence is input is detected, judging that a trigger instruction is detected.
In a preferred embodiment of the present invention, the characteristic character string is a character string input by the user within a second preset time period of pressing the designated key.
In a preferred embodiment of the present invention, the phrase sequence is a part of a character string sequence input by a user, and the character string sequence includes a phrase sequence, designated character information, and a characteristic character string, which are arranged in sequence;
the device further comprises:
the character string sequence input module is used for receiving a character string sequence input by a user;
the designated character detection module is used for detecting whether the character string sequence comprises designated character information or not;
and the detection module is used for taking the character sequence before the specified character information as a phrase sequence and taking the character sequence after the specified character information as a characteristic character string if the character string sequence comprises the specified character information, and judging that the trigger instruction is detected.
In a preferred embodiment of the embodiments of the present invention, the apparatus further comprises:
and the first screen-loading module is used for directly loading the matched split units on a screen when the split units matched with the characteristic character strings are one.
In a preferred embodiment of the embodiments of the present invention, the apparatus further comprises:
the splitting unit display module is used for displaying the matched splitting unit in a preset area when the number of the splitting units matched with the characteristic character string is more than one;
and the second screen-loading module is used for loading the selected splitting unit on the screen when detecting that a user selects a matched splitting unit in the preset area.
In a preferred embodiment of the embodiments of the present invention, the apparatus further comprises:
the corresponding pair generating module is used for respectively generating the corresponding relation between the matched splitting unit and preset shortcut key information;
and the corresponding display module is used for displaying the shortcut key information and the corresponding splitting unit in the preset area.
In a preferred embodiment of the present invention, the second upper screen module is further configured to:
and when the user keys in the shortcut key information, the splitting unit corresponding to the shortcut key information is displayed on the screen.
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.
FIG. 6 is a block diagram illustrating a single-word input device 600, according to an exemplary embodiment. For example, the apparatus 600 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. 6, apparatus 600 may include one or more of the following components: processing component 602, memory 604, power component 606, multimedia component 608, audio component 610, input/output (I/O) interface 612, sensor component 614, and communication component 616.
The processing component 602 generally controls overall operation of the device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 602 may include one or more processors 620 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the apparatus 600. Examples of such data include instructions for any application or method operating on device 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 604 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 component 606 provides power to the various components of device 600. The power components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 600.
The multimedia component 608 includes a screen that provides an output interface between the device 600 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 608 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 600 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 610 is configured to output and/or input audio signals. For example, audio component 610 includes a Microphone (MIC) configured to receive external audio signals when apparatus 600 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 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 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 614 includes one or more sensors for providing status assessment of various aspects of the apparatus 600. For example, the sensor component 614 may detect an open/closed state of the device 600, the relative positioning of components, such as a display and keypad of the apparatus 600, the sensor component 614 may also detect a change in position of the apparatus 600 or a component of the apparatus 600, the presence or absence of user contact with the apparatus 600, orientation or acceleration/deceleration of the apparatus 600, and a change in temperature of the apparatus 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 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 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communications between the apparatus 600 and other devices in a wired or wireless manner. The apparatus 600 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 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 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 600 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 604 comprising instructions, executable by the processor 620 of the apparatus 600 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer-readable storage medium in which instructions, when executed by a processor of a mobile terminal, enable the mobile terminal to perform a candidate word display method based on an input method, the method comprising: acquiring a candidate word list matched with a phrase sequence input by a user; detecting one or more non-single word candidate words from the candidate word list; when a trigger instruction is detected, splitting the non-single character candidate words to obtain a plurality of splitting units; and if the characteristic character string input by the user is detected, determining a splitting unit matched with the characteristic character string from the splitting unit, wherein the characteristic character string and the phrase sequence have matching items.
Preferably, the trigger instruction is detected in the following manner:
and if the fact that the user presses the designated key within a first preset time period after the phrase sequence is input is detected, judging that a trigger instruction is detected.
Preferably, the characteristic character string is a character string input by the user within a second preset time period of pressing the designated key.
Preferably, the phrase sequence is a part of a character string sequence input by a user, and the character string sequence comprises a phrase sequence, designated character information and a characteristic character string which are sequentially arranged;
before the step of obtaining a candidate word list matched with the phrase sequence input by the user, the method further comprises the following steps:
receiving a character string sequence input by a user;
detecting whether specified character information is included in the character string sequence;
if the character string sequence comprises designated character information, taking the character sequence before the designated character information as a phrase sequence, taking the character sequence after the designated character information as a characteristic character string, and judging that a trigger instruction is detected.
Preferably, the method further comprises:
and if the number of the splitting units matched with the characteristic character string is one, the matched splitting units are displayed on a screen.
Preferably, the method further comprises:
if the number of the splitting units matched with the characteristic character strings is more than one, displaying the matched splitting units in a preset area;
and when detecting that a user selects a matched splitting unit in the preset area, displaying the selected splitting unit on a screen.
Preferably, the method further comprises:
respectively generating corresponding relations between the matched splitting units and preset shortcut key information;
and displaying the shortcut key information and the corresponding splitting unit in the preset area.
Preferably, when it is detected that a matching split unit in the preset area is selected by a user, the step of displaying the selected split unit on a screen includes:
and when the user keys in the shortcut key information, the splitting unit corresponding to the shortcut key information is displayed on the screen.
Fig. 7 is a schematic structural diagram of a server in an embodiment of the present invention. The server 700 may vary significantly depending on configuration or performance, and may include one or more Central Processing Units (CPUs) 722 (e.g., one or more processors) and memory 732, one or more storage media 730 (e.g., one or more mass storage devices) storing applications 742 or data 744. Memory 732 and storage medium 730 may be, among other things, transient storage or persistent storage. The program stored in the storage medium 730 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Further, the central processor 722 may be configured to communicate with the storage medium 730, and execute a series of instruction operations in the storage medium 730 on the server 700.
The server 700 may also include one or more power supplies 726, one or more wired or wireless network interfaces 750, one or more input-output interfaces 758, one or more keyboards 756, and/or one or more operating systems 741, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
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.

Claims (21)

1. A single character input method, comprising:
acquiring a candidate word list matched with a phrase sequence input by a user;
detecting one or more non-single word candidate words from the candidate word list;
when a trigger instruction is detected, splitting the non-single character candidate words to obtain a plurality of splitting units;
if a characteristic character string input by a user is detected, determining a splitting unit matched with the characteristic character string from the splitting unit, wherein the characteristic character string and the phrase sequence have matching items;
the word group sequence is a part of a character string sequence input by a user, and the character string sequence comprises a word group sequence, designated character information and a characteristic character string which are sequentially arranged;
before the step of obtaining a candidate word list matched with the phrase sequence input by the user, the method further comprises the following steps:
receiving a character string sequence input by a user;
detecting whether specified character information is included in the character string sequence;
if the character string sequence comprises designated character information, taking the character sequence before the designated character information as a phrase sequence, taking the character sequence after the designated character information as a characteristic character string, and judging that a trigger instruction is detected.
2. The method of claim 1, wherein the trigger instruction is further detected by:
and if the fact that the user presses the designated key within a first preset time period after the phrase sequence is input is detected, judging that a trigger instruction is detected.
3. The method according to claim 2, wherein the characteristic character string is a character string input by a user within a second preset time period of pressing the designated key.
4. The method according to any one of claims 1-3, further comprising:
and if the number of the splitting units matched with the characteristic character string is one, the matched splitting units are displayed on a screen.
5. The method according to any one of claims 1-3, further comprising:
if the number of the splitting units matched with the characteristic character strings is more than one, displaying the matched splitting units in a preset area;
and when detecting that a user selects a matched splitting unit in the preset area, displaying the selected splitting unit on a screen.
6. The method of claim 5, further comprising:
respectively generating corresponding relations between the matched splitting units and preset shortcut key information;
and displaying the shortcut key information and the corresponding splitting unit in the preset area.
7. The method of claim 6, wherein the step of, when it is detected that a user selects a matching split unit in the preset area, displaying the selected split unit on a screen comprises:
and when the user keys in the shortcut key information, the splitting unit corresponding to the shortcut key information is displayed on the screen.
8. A single character input apparatus, said apparatus comprising:
the candidate word acquisition module is used for acquiring a candidate word list matched with the phrase sequence input by the user;
the non-single word candidate word detection module is used for detecting one or more non-single word candidate words from the candidate word list;
the candidate word splitting module is used for splitting the non-single word candidate words to obtain a plurality of splitting units when a trigger instruction is detected;
the matching module is used for determining a splitting unit matched with the characteristic character string from the splitting unit if the characteristic character string input by a user is detected, wherein the characteristic character string and the phrase sequence have matching items;
the word group sequence is a part of a character string sequence input by a user, and the character string sequence comprises a word group sequence, designated character information and a characteristic character string which are sequentially arranged;
the device further comprises:
the character string sequence input module is used for receiving a character string sequence input by a user;
the designated character detection module is used for detecting whether the character string sequence comprises designated character information or not;
and the detection module is used for taking the character sequence before the specified character information as a phrase sequence and taking the character sequence after the specified character information as a characteristic character string if the character string sequence comprises the specified character information, and judging that the trigger instruction is detected.
9. The apparatus of claim 8, wherein the trigger instruction is further detected by:
and if the fact that the user presses the designated key within a first preset time period after the phrase sequence is input is detected, judging that a trigger instruction is detected.
10. The apparatus of claim 9, wherein the characteristic character string is a character string input by a user within a second preset time period of pressing the designated key.
11. The apparatus according to any one of claims 8-10, further comprising:
and the first screen-loading module is used for directly loading the matched split units on a screen when the split units matched with the characteristic character strings are one.
12. The apparatus according to any one of claims 8-10, further comprising:
the splitting unit display module is used for displaying the matched splitting unit in a preset area when the number of the splitting units matched with the characteristic character string is more than one;
and the second screen-loading module is used for loading the selected splitting unit on the screen when detecting that a user selects a matched splitting unit in the preset area.
13. The apparatus of claim 12, further comprising:
the corresponding pair generating module is used for respectively generating the corresponding relation between the matched splitting unit and preset shortcut key information;
and the corresponding display module is used for displaying the shortcut key information and the corresponding splitting unit in the preset area.
14. The apparatus of claim 13, wherein the second upper screen module is further configured to:
and when the user keys in the shortcut key information, the splitting unit corresponding to the shortcut key information is displayed on the screen.
15. A single word input device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured for execution by one or more processors, the one or more programs comprising instructions for:
acquiring a candidate word list matched with a phrase sequence input by a user;
detecting one or more non-single word candidate words from the candidate word list;
when a trigger instruction is detected, splitting the non-single character candidate words to obtain a plurality of splitting units;
if a characteristic character string input by a user is detected, determining a splitting unit matched with the characteristic character string from the splitting unit, wherein the characteristic character string and the phrase sequence have matching items;
the word group sequence is a part of a character string sequence input by a user, and the character string sequence comprises a word group sequence, designated character information and a characteristic character string which are sequentially arranged;
further comprising instructions for:
receiving a character string sequence input by a user;
detecting whether specified character information is included in the character string sequence;
if the character string sequence comprises designated character information, taking the character sequence before the designated character information as a phrase sequence, taking the character sequence after the designated character information as a characteristic character string, and judging that a trigger instruction is detected.
16. The apparatus of claim 15, wherein the trigger instruction is further detected by:
and if the fact that the user presses the designated key within a first preset time period after the phrase sequence is input is detected, judging that a trigger instruction is detected.
17. The apparatus of claim 16, wherein the characteristic character string is a character string input by a user within a second preset time period of pressing the designated key.
18. The apparatus of any of claims 15-17, further comprising instructions to:
and if the number of the splitting units matched with the characteristic character string is one, the matched splitting units are displayed on a screen.
19. The apparatus of any of claims 15-17, further comprising instructions to:
if the number of the splitting units matched with the characteristic character strings is more than one, displaying the matched splitting units in a preset area;
and when detecting that a user selects a matched splitting unit in the preset area, displaying the selected splitting unit on a screen.
20. The apparatus of claim 19, further comprising instructions for:
respectively generating corresponding relations between the matched splitting units and preset shortcut key information;
and displaying the shortcut key information and the corresponding splitting unit in the preset area.
21. The apparatus of claim 20, wherein the step of, when it is detected that a matching splitting unit in the preset area is selected by a user, displaying the selected splitting unit on a screen comprises:
and when the user keys in the shortcut key information, the splitting unit corresponding to the shortcut key information is displayed on the screen.
CN201610805481.2A 2016-09-05 2016-09-05 Single character input method and device Active CN107797676B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610805481.2A CN107797676B (en) 2016-09-05 2016-09-05 Single character input method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610805481.2A CN107797676B (en) 2016-09-05 2016-09-05 Single character input method and device

Publications (2)

Publication Number Publication Date
CN107797676A CN107797676A (en) 2018-03-13
CN107797676B true CN107797676B (en) 2022-01-11

Family

ID=61530791

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610805481.2A Active CN107797676B (en) 2016-09-05 2016-09-05 Single character input method and device

Country Status (1)

Country Link
CN (1) CN107797676B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108664199A (en) * 2018-05-07 2018-10-16 平安普惠企业管理有限公司 List filling method, device, equipment and computer readable storage medium
CN110545440B (en) * 2019-09-05 2021-09-28 广州方硅信息技术有限公司 Game interaction method, terminal device and computer storage medium
CN112269475A (en) * 2020-10-23 2021-01-26 维沃移动通信有限公司 Character display method and device and electronic equipment
CN112711685A (en) * 2020-12-29 2021-04-27 维沃移动通信有限公司 Object display method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104076940A (en) * 2013-03-27 2014-10-01 北京千橡网景科技发展有限公司 Auxiliary input method and auxiliary input equipment
CN104133561A (en) * 2014-07-31 2014-11-05 百度在线网络技术(北京)有限公司 Auxiliary information display method and device based on input method
CN104346052A (en) * 2013-07-25 2015-02-11 诺基亚公司 Method and device for Chinese characters input

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2493709A (en) * 2011-08-12 2013-02-20 Siine Ltd Faster input of text in graphical user interfaces

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104076940A (en) * 2013-03-27 2014-10-01 北京千橡网景科技发展有限公司 Auxiliary input method and auxiliary input equipment
CN104346052A (en) * 2013-07-25 2015-02-11 诺基亚公司 Method and device for Chinese characters input
CN104133561A (en) * 2014-07-31 2014-11-05 百度在线网络技术(北京)有限公司 Auxiliary information display method and device based on input method

Also Published As

Publication number Publication date
CN107797676A (en) 2018-03-13

Similar Documents

Publication Publication Date Title
CN107436691B (en) Method, client, server and device for correcting errors of input method
US20210073467A1 (en) Method, System and Apparatus for Entering Text on a Computing Device
US11640503B2 (en) Input method, input device and apparatus for input
CN107544684B (en) Candidate word display method and device
CN107092424B (en) Display method and device of error correction items and device for displaying error correction items
RU2377664C2 (en) Text input method
US10838513B2 (en) Responding to selection of a displayed character string
CN109002183B (en) Information input method and device
CN107870677B (en) Input method, input device and input device
CN107844199B (en) Input method, system and device for inputting
WO2022083750A1 (en) Text display method and apparatus and electronic device
RU2733816C1 (en) Method of processing voice information, apparatus and storage medium
CN107797676B (en) Single character input method and device
CN108345612B (en) Problem processing method and device for problem processing
CN107688397B (en) Input method, system and device for inputting
CN107564526B (en) Processing method, apparatus and machine-readable medium
WO2022135474A1 (en) Information recommendation method and apparatus, and electronic device
CN107132927B (en) Input character recognition method and device for recognizing input characters
CN107422921B (en) Input method, input device, electronic equipment and storage medium
KR102327790B1 (en) Information processing methods, devices and storage media
CN109388252B (en) Input method and device
CN112346578A (en) Input method and device
CN107817942B (en) Sliding input method and system and device for sliding input
CN113407099A (en) Input method, device and machine readable medium
CN108227952B (en) Method and system for generating custom word and device for generating custom word

Legal Events

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