CN107092424B - Display method and device of error correction items and device for displaying error correction items - Google Patents

Display method and device of error correction items and device for displaying error correction items Download PDF

Info

Publication number
CN107092424B
CN107092424B CN201610091544.2A CN201610091544A CN107092424B CN 107092424 B CN107092424 B CN 107092424B CN 201610091544 A CN201610091544 A CN 201610091544A CN 107092424 B CN107092424 B CN 107092424B
Authority
CN
China
Prior art keywords
error correction
pressing operation
target
candidate
displaying
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
CN201610091544.2A
Other languages
Chinese (zh)
Other versions
CN107092424A (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 CN201610091544.2A priority Critical patent/CN107092424B/en
Publication of CN107092424A publication Critical patent/CN107092424A/en
Application granted granted Critical
Publication of CN107092424B publication Critical patent/CN107092424B/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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser

Abstract

The embodiment of the invention provides a method and a device for displaying error correction items and a device for displaying the error correction items, wherein the method comprises the following steps: displaying one or more candidate items found based on the character string when the character string is received; detecting a pressing operation for the candidate item; inquiring the pressing type of the pressing operation; and when the pressing type is a specified first target pressing operation, displaying one or more error correction items obtained by performing error correction processing on the character string. The embodiment of the invention avoids the grid-returning and re-inputting operation of the user, ensures the aim of error correction, improves the input efficiency and reduces the waste of equipment resources.

Description

Display method and device of error correction items and device for displaying error correction items
Technical Field
The invention relates to the technical field of input methods, in particular to a display method of an error correction item, a display device of the error correction item and a device for displaying the error correction item.
Background
With the wider application of internet technology, many daily tasks and entertainment activities need to be performed on mobile devices or touch-enabled devices, and human-computer interaction is completed by inputting information through click operations.
For users in chinese, japanese, korean, etc. and today's users in part of the arabic system, interaction with various devices through input methods is generally required.
Taking the example of chinese, generally, a string of letters is input by the user, the system needs to convert the string of letters into a string of chinese characters, and the user is likely to have many errors due to various interferences during the input process.
The reasons for these errors are the following:
1. chinese characters are used instead of pinyin when writing, although education of pinyin is received from a short time, the pinyin character strings are input incorrectly due to the fact that the Chinese characters are used infrequently.
2. Due to regional limitation, China has many dialects, and the pronunciations of people in different places have certain differences, for example, the southern people distinguish the curled tongue-flat tongue, the front nose sound-back nose sound differently from the northern people, which easily causes the input error of the pinyin character string.
3. The proficiency of the keyboard and the speed of input directly affect the accuracy of the user input.
In order to reduce the number of times of user modification and improve the input speed, some input methods realize the error correction function at present, carry out error correction processing on letters input by a user to obtain corresponding candidate items, and display the candidate items to the user by the input method for the user to select.
When a whole sentence is input, if a character is input by mistake, not only the character corresponding to the character string can be mistaken, but also some characters before and after the character can be influenced, and more errors are introduced.
In a touch screen, especially a mobile phone with a small area, because the number of the candidate items that can be presented is limited, in order to ensure that the candidate items of the error correction item do not affect the normal candidate items, the presentation of the error correction candidate items is often strictly limited, and generally only one or two error correction candidate items are provided.
However, one or two error correction candidates often cannot meet the requirements of the user, and especially, under the condition that the input letters have multiple error correction modes, the user can only quit the check and re-input, the purpose of error correction is not achieved, the input efficiency is low, and equipment resources are wasted.
Disclosure of Invention
In view of the above problems, in order to solve the above problems of low input efficiency and waste of device resources, embodiments of the present invention provide a method for displaying an error correction item, a corresponding apparatus for displaying an error correction item, and an apparatus for displaying an error correction item.
In order to solve the above problem, an embodiment of the present invention discloses a method for displaying an error correction item, including:
displaying one or more candidate items found based on the character string when the character string is received;
detecting a pressing operation for the candidate item;
inquiring the pressing type of the pressing operation;
and when the pressing type is a specified first target pressing operation, displaying one or more error correction items obtained by performing error correction processing on the character string.
Preferably, the candidate item comprises a feature candidate item and/or an error correction item, and the error correction item comprises an error correction character string and an error correction candidate item;
the step of displaying one or more candidates found based on the character string comprises:
searching one or more characteristic candidate items matched with the character strings in a preset word bank;
carrying out error correction processing on the character strings to obtain one or more error correction character strings;
searching one or more error correction candidate items matched with the one or more error correction character strings in a preset word bank;
displaying at least part of the feature candidates and/or at least part of the error correction candidates.
Preferably, the step of detecting a pressing operation for the candidate item includes:
when a pressing operation is detected, determining a position where the pressing operation occurs;
and determining that a pressing operation for the error correction candidate is detected when the error correction candidate is displayed at the position.
Preferably, the step of inquiring the pressing type of the pressing operation includes:
detecting a pressing pressure of the pressing operation;
inquiring a pressure range to which the pressing pressure belongs;
and determining that the pressing operation belongs to a pressing type corresponding to the pressure range.
Preferably, the first target pressing operation comprises a first sub-target pressing operation and/or a second sub-target pressing operation;
the step of displaying one or more error correction items obtained by performing error correction processing on the character string when the pressing type is a specified first target pressing operation comprises:
when the pressing type is a pressing operation of a first sub-target, displaying one or more error correction character strings obtained by performing error correction processing on the character strings;
and/or the presence of a gas in the gas,
and when the press type is a specified second sub-target press operation, displaying one or more error correction candidates matched with one or more error correction character strings.
Preferably, the step of displaying one or more error correction character strings obtained by performing error correction processing on the character strings includes:
determining an error correction character string corresponding to an error correction candidate aimed at by the first sub-target pressing operation;
searching for a target error correction string other than the error correction string;
displaying at least a portion of the target error correction string;
the step of displaying one or more error correction candidates matching the one or more error correction strings comprises:
determining an error correction character string corresponding to the error correction candidate aimed by the second sub-target pressing operation;
searching target error correction candidate items matched with the error correction character strings except the error correction candidate items;
and displaying at least part of the target error correction candidates.
Preferably, when the pressing type is a specified first target pressing operation, the step of displaying one or more error correction items obtained by performing error correction processing on the character string further includes:
when the target error correction character string is triggered, one or more error correction candidates matched with the target error correction character string are displayed.
Preferably, the method further comprises the following steps:
and when the pressing type is a specified second target pressing operation, performing screen-up processing on the candidate item.
Preferably, the pressure range corresponding to the first sub-target pressing operation is a first pressure range, the pressure range corresponding to the second sub-target pressing operation is a second pressure range, and the pressure range corresponding to the second target pressing operation is a third pressure range;
wherein the pressure value in the first pressure range is smaller than the pressure value in the second pressure range, and the pressure value in the third pressure range is smaller than the pressure value in the first pressure range.
The embodiment of the invention also discloses a display device of the error correction item, which comprises:
the candidate item display module is used for displaying one or more candidate items searched based on the character string when the character string is received;
a pressing operation detection module for detecting a pressing operation for the candidate item;
the pressing type query module is used for querying the pressing type of the pressing operation;
and the error correction item display module is used for displaying one or more error correction items obtained by performing error correction processing on the character string when the pressing type is a specified first target pressing operation.
Preferably, the candidate item comprises a feature candidate item and/or an error correction item, and the error correction item comprises an error correction character string and an error correction candidate item;
the candidate item display module comprises:
the character string searching sub-module is used for searching one or more character string matching character strings in a preset word bank;
the error correction processing submodule is used for carrying out error correction processing on the character strings to obtain one or more error correction character strings;
the error correction candidate item searching sub-module is used for searching one or more error correction candidate items matched with the one or more error correction character strings in a preset word bank;
and the display sub-module is used for displaying at least part of the feature candidates and/or at least part of the error correction candidates.
Preferably, the pressing operation detection module includes:
the occurrence position determining submodule is used for determining the position of the occurrence of the pressing operation when the pressing operation is detected;
and the pressing operation determining sub-module is used for determining that the pressing operation aiming at the error correction candidate item is detected when the error correction candidate item is displayed on the position.
Preferably, the press type query module includes:
a pressing pressure detection submodule for detecting a pressing pressure of the pressing operation;
the pressure range query submodule is used for querying the pressure range to which the pressing pressure belongs;
and the pressing type determining submodule is used for determining that the pressing operation belongs to the pressing type corresponding to the pressure range.
Preferably, the first target pressing operation comprises a first sub-target pressing operation and/or a second sub-target pressing operation;
the error correction item display module includes:
the error correction character string display sub-module is used for displaying one or more error correction character strings obtained by carrying out error correction processing on the character strings when the pressing type is the pressing operation of a first sub-target which is specified;
and/or the presence of a gas in the gas,
and the error correction candidate display sub-module is used for displaying one or more error correction candidates matched with one or more error correction character strings when the pressing type is a specified second sub-target pressing operation.
Preferably, the error correction string display sub-module includes:
a first error correction string determining unit, configured to determine an error correction string corresponding to an error correction candidate for which the first sub-target pressing operation is performed;
a target error correction string search unit for searching for a target error correction string other than the error correction string;
a target error correction string display unit for displaying at least a part of the target error correction string;
the error correction candidate display sub-module includes:
a second error correction string determining unit, configured to determine an error correction string corresponding to an error correction candidate for which the second sub-target pressing operation is performed;
a target error correction candidate item searching unit for searching for target error correction candidate items other than the error correction candidate items, which match the error correction character string;
and the target error correction candidate display unit is used for displaying at least part of the target error correction candidates.
Preferably, the error correction item display module further includes:
and the error correction character string triggering sub-module is used for displaying one or more error correction candidates matched with the target error correction character string when the target error correction character string is triggered.
Preferably, the method further comprises the following steps:
and the screen-up module is used for performing screen-up processing on the candidate item when the pressing type is the appointed second target pressing operation.
The embodiment of the invention also discloses a device for displaying the error correction item, 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:
displaying one or more candidate items found based on the character string when the character string is received;
detecting a pressing operation for the candidate item;
inquiring the pressing type of the pressing operation;
and when the pressing type is a specified first target pressing operation, displaying one or more error correction items obtained by performing error correction processing on the character string.
The embodiment of the invention has the following advantages:
the embodiment of the invention aims at displaying the error correction item obtained by carrying out error correction processing on the character string by triggering the specified pressing operation aiming at the candidate item, the pressing operation is simple and quick, the grid rejection and re-input operation of a user is avoided, the error correction purpose is ensured, the input efficiency is improved, and the waste of equipment resources is reduced.
According to the embodiment of the invention, the error correction character string or the error correction candidate item can be selectively displayed through the specified type of the pressing operation, so that the flexibility of displaying the error correction item is greatly improved, the accuracy of the error correction item is improved, and the input efficiency is further improved.
Drawings
FIG. 1 is a flowchart illustrating the steps of an embodiment of a method for displaying error correction terms according to the present invention;
FIGS. 2A-2C are exemplary diagrams of a virtual keyboard according to embodiments of the present invention;
fig. 3A to 3F are exemplary diagrams showing an error correction character string based on a re-press operation according to an embodiment of the present invention;
fig. 4A to 4D are exemplary diagrams illustrating error correction candidates displayed based on a tap operation according to an embodiment of the present invention;
FIG. 5 is a block diagram of an embodiment of a display device for correcting errors according to the present invention;
FIG. 6 is a block diagram illustrating an apparatus for display of error correction terms in accordance with 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 an embodiment of a method for displaying an error correction item according to the present invention is shown, which may specifically include the following steps:
step 101, when a character string is received, displaying one or more candidate items found based on the character string;
it should be noted that the embodiment of the present invention may be applied to an electronic device with a touch screen, for example, a mobile phone, a PDA (Personal digital assistant), a laptop computer, a palmtop computer, and the like, and the embodiment of the present invention is not limited thereto.
The electronic device can support operating systems such as Windows, Android, IOS, Windows Phone and the like, and can generally run application programs for touch input in modes such as a virtual keyboard and the like.
In practical applications, the virtual keyboard may include a nine-grid keyboard, a full keyboard (e.g., a QWERT keyboard), etc., and the application program may include an input method program, etc.
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 embodiment of the present invention, in the embodiment of the present invention, chinese is illustrated as an example of speech.
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 (such as pinyin characters, stroke characters, etc.), and symbolic characters.
For example, referring to fig. 2A and 2B, there are shown exemplary diagrams of a virtual keyboard 200, which may be referred to as a squared or 9-key keyboard, according to embodiments of the present invention.
For the virtual key 201, as shown in fig. 2A, in the pinyin input mode, the virtual key 201 maps pinyin characters, an initial "d", a final "e", and an initial "f"; in the numeric input mode, the virtual button 201 may map the numeric character "3", and in the english input mode, the virtual button 201 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 202 may map symbolic characters, commas, "; as shown in FIG. 2B, in the stroke input mode, the virtual key 201 maps stroke characters "" down "" and "" down "".
For another example, referring to fig. 2C, which shows an exemplary view of another virtual keyboard of embodiments of the present invention, the virtual keyboard 210 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 211, in the pinyin input mode, the virtual key 211 may map a pinyin character, a semi-vowel "w"; in the english input mode, the virtual key 211 can map an english character "w"; in the number input mode, the virtual key 211 may have a number character of "2"; for the virtual key 212, in the pinyin input mode, the virtual key 212 may map the pinyin character "g"; in the english input mode, the virtual key 211 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 triggered characters are combined into character strings, and the character strings can be converted into candidate items through a preset coding mode (such as pinyin, wubi, English and the like).
In a specific implementation, the character string may include, but is not limited to, at least one of a numeric character string, an english character string, a chinese character string (e.g., a pinyin character string, a stroke character string, etc.), a symbolic character string, and a hybrid character string (including at least two different character strings), which may be converted into at least one of a numeric candidate item, an english candidate item, a chinese candidate item, a symbolic candidate item, and a hybrid candidate item (including at least two different candidate items).
In one embodiment of the present invention, the candidate item may include a feature candidate item and/or an error correction item.
The character candidate item is a candidate item matched with the character string;
the error correction item may include an error correction character string and an error correction candidate item, the error correction character string is obtained by performing error correction processing on the character string, and the error correction candidate item is a candidate item matched with the error correction character string.
Then, in an embodiment of the present invention, step 101 may include the following sub-steps:
a substep S11 of searching one or more feature candidate items matched with the character string in a preset word stock;
in the speech such as chinese and japanese, the characters such as chinese and japanese as basic language units are not generally directly mapped to the keys on the virtual keyboard, and therefore, conversion between character strings and words is generally required at the time of 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 through a virtual keyboard, and the input method decodes the character string, and 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 this embodiment of the present invention, 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-made 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 the character string with the characters, the words and the sentences through the word stock, and guess the real input intention of the user.
In the embodiment of the present invention, the thesaurus may contain various language 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 displaying the searched characters, words and sentences as candidate items.
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) user attributes;
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) And a 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.
A substep S12, performing error correction processing on the character string to obtain one or more error correction character strings;
a substep S13 of searching one or more error correction candidates matching the one or more error correction strings in a preset lexicon;
because pinyin letters generally need to be input when Chinese characters are input, and then the pinyin letters are converted into Chinese characters through interaction between an input method program and a computer, errors which may occur in the conversion process are corrected, and related error correction scenes can include, but are not limited to, the following types:
(1) and 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) And 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 in the middle of the "u" key and the "y" key causes both keys to be pressed, and these erroneous inputs are often accompanied by a backspace correction by the user.
(4) The keyboard buttons are relatively narrow: for example, in the limited input environment of the virtual keyboard, the keyboard buttons are relatively narrow and the operation is completed by the thumb with a large area, so that wrong input such as wrong pressing, multiple 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.
In the embodiment of the invention, the input information of the user can be collected, the input habit information of the user is identified according to the input information, and the preset error correction model is adjusted by adopting the input habit information to obtain the personalized error correction model.
And correcting the error of the character string input by the user by adopting a preset error correction model or the personalized error correction model to obtain error correction characters.
In practical applications, the input information of the user may include user input content, user behavior characteristics, input environment characteristics, input method input modes, and the like.
The input internal answer comprises a user word bank and content displayed on a screen, and for the content of the user word bank, the coding habits related to the user word bank and the entries can be obtained. In addition, if the user thesaurus can store a relatively long user input sequence, the user habit can be obtained from the user input sequence.
In identifying input habit information, the analysis of user behavior characteristics may include the following:
(1) 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.
(2) Inputting proficiency: speed per letter, speed per entry, etc. is entered. According to the input proficiency of the user, whether the user frequently generates input errors can be judged.
(3) The input time interval of the two continuous keys and the layout of the two keys are as follows: 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.
(4) The keystroke position deviation degree and the keystroke force are as follows: whether a certain key is frequently pressed and wrongly pressed, and the flexibility of fingers related to the key.
(5) And simply piecing together the habit: whether to use simple spelling or commonly used simple spelling mode. Such as a simple spelling of the last syllable initial, a full simple spelling, etc.
(6) And user feedback: whether the user uses the error correction prompt information given by the input method. If the error correction result given by the input method is corrected by the user, the corresponding penalty (such as weight reduction) is received.
For example, errors caused by physiological reasons (such as "ia-ai", "re-er", "ehh-heh" (last word syllable simple spelling form of the laugh' operation)) caused by uncoordinated operation, or errors such as "y-u" caused by unskilled operation, or specific errors caused by input environment limitations (such as "aa-a" caused by poor quality of some key positions of the keyboard and response to sticking, or errors such as "qw-q" caused by narrow key position layout of the keyboard) can be corrected.
The analysis of the input environment features may include analyzing the characteristics of the keyboard, including area per key, distance between keys, etc.
The analysis of the input mode of the input method can include analyzing whether the input method supports simple spelling or English input, and the like, and if so, some error correction rules established in the full spelling mode are not applicable any more.
The specific form of the error correction model can be various, such as a decision tree, a rule base composed of a series of error correction rules, and the like.
In the decision tree method, a plurality of judgment conditions may be used as each node of the decision tree. Because each judgment condition has a certain discrimination, a discrimination-based method can be adopted when the decision tree is constructed, and the higher the discrimination is, the closer the discrimination is to the root node.
For example, inputting a pinyin character string beginning with tre, when performing error correction, an error correction model (here, a decision tree) available to a current user may be obtained first, and the following steps are performed according to the order of judgment conditions in the decision tree:
judging whether English input is supported, if so, not correcting the English (such as intently inputting English words 'tree'); if not, judging whether the simplified spelling habit of the non-last letter exists, if so, not correcting the error (for example, the simplified spelling form of 'too hot' is input); if not, judging whether the time interval between the user input t and r is less than a certain preset time, if not, not performing error correction (basically excluding the possibility of multi-typing in the r key when the t is typed in), and if so, giving an error correction suggestion of 'te'.
In the rule base method, the rule base may be composed of a series of error correction rules, which are expressed in the form of "gn-ng", "lgn-lng", etc., and when error correction is performed, the error correction rules available for the current user-input character string may be obtained, and then error correction is performed by using the available error correction rules.
The initial state of the personalized error correction model can be null, that is, the personalized error correction model of the user is established from the time when the user installs and uses the input method, and the personalized error correction model of the user is gradually adjusted by continuously collecting and analyzing the input information of the user.
In addition, the initial state of the current personalized error correction model may also be a general error correction model generated by training according to a large amount of user input information in advance, the general error correction model is gradually adjusted through the collection and analysis of the current user input information, the personalized error correction model is gradually accumulated, when the personalized user input information is less, the personalized proportion is less, and when the personalized user input information is more, the proportion is increased, and finally the personalized error correction model of the user is formed.
Wherein, the universal error correction model is trained by using data of all users and is generally determined when the input method is packed and released. When the current user uses the universal error correction model, the universal error correction model is trained by using the data of the user to generate a corresponding personalized error correction model
The universal error correction model can be issued to a file along with an input method installation packageThe calculator is local and can be updated through a network. The parameters of the error correction model are adjusted as the user input information is collected and analyzedWhich may be represented in implementation as a segment of memory space attached to the input method process and may save updates as appropriate as part of the current user profile and may update to a remote server when a network connection is available.
For the character string corrected after error correction, as with the normal character string, matched characters, words, sentences and the like can be searched in the word stock as the error correction candidate items.
And a substep S14 of displaying at least part of the feature candidates and/or at least part of the error correction candidates.
In practical application, when the candidate is matched in the word stock, the feature candidate obtains a score, when the error correction character string is matched in the word stock, the error correction candidate obtains an error correction score in the error correction model, when the candidate is matched in the word stock, the error correction candidate obtains a score, and the error correction score and the score of the candidate are combined (such as after weighting), so that the final score of the error correction candidate is obtained.
The feature candidate items and the error correction candidate items may be sorted according to the scores, and candidate items with scores lower than a preset score threshold value are screened out.
Since different chinese character sequences (characters, words, sentences) may have the same character string, resulting in more candidates, the input method usually provides a list of candidates for the user to select from.
However, the position in the candidate bar is generally limited, especially in electronic devices with small screens such as mobile phones, and therefore, the obtained candidates (feature candidates and/or error correction candidates) may be shown in pages, the candidates with higher scores (feature candidates and/or error correction candidates) are preferentially shown in the candidate bar, and the other candidates (feature candidates and/or error correction candidates) may be shown in the candidate bar generally through a page flipping operation.
It should be noted that, if the character string is correctly input, the score of the error correction candidate is low, and only the feature candidate may be present in the candidate.
If the character string is input incorrectly, the score of the characteristic candidate item is low, and only the error correction candidate item may exist in the candidate items.
If a character in the character string is input incorrectly, the scores of the feature candidate item and the error correction candidate item are equivalent, and the feature candidate item and the error correction candidate item may exist in the candidate items at the same time.
In this case, if the score of the error correction candidate is the highest, the error correction candidate may be presented as the first candidate.
Step 102, detecting a pressing operation aiming at the candidate item;
in the embodiment of the invention, on one hand, if the presented candidate item (the feature candidate item and/or the error correction candidate item) has a candidate item (the feature candidate item and/or the error correction candidate item) required by the user, the user can perform screen-up operation by performing pressing operation on the candidate item;
on the other hand, if the presented candidates (feature candidates and/or error correction candidates) do not have the error correction item (error correction character string or error correction candidate) required by the user, the user can trigger the presentation of other error correction items (error correction character string or error correction candidate) by pressing the candidates.
The pressing operation may refer to an operation generated when a user presses a touch screen of the electronic device.
When the pressing operation is detected, a position where the pressing operation occurs may be determined, and when the candidate is displayed in the position, the pressing operation for the candidate may be determined to be detected.
Wherein, when the feature candidate is displayed at the position, it may be determined that a pressing operation for the feature candidate is detected.
When the error correction candidates are displayed at the position, it may be determined that a pressing operation for the error correction candidates is detected.
Step 103, inquiring the pressing type of the pressing operation;
the pressing operation is triggered by a user and generally has the intention of the user, and if the pressing operation is detected, the operation mode of the intention of the user can be obtained by analyzing the pressing type of the pressing operation, such as screen-up candidate items, error correction character string display, error correction candidate item display and the like.
In one embodiment of the present invention, step 103 may comprise the following sub-steps:
a substep S21 of detecting a pressing pressure of the pressing operation;
in practical application, the pressing pressure of the pressing operation can be detected through a set of touch technologies integrating capacitive touch and infrared induction.
Specifically, one or more infrared transmitters are disposed below the touch screen to transmit infrared light to the touch screen glass cover at a specific angle.
These angles are selected to provide 100% reflection of reflected light from the top and bottom surfaces of the cover, as well as from the ambient air and fingers.
When the light in the glass cover is reflected, the emitted infrared rays will trigger a receiver which can calculate the total number of total internal reflections, and the receiver displays different output readings according to whether the reflected light comes from the surrounding air or the finger of the user, thereby realizing the detection of the pressing pressure.
Of course, besides, a pressure sensor may be attached under the touch screen to detect the pressing pressure, or the pressing pressure may be detected by other methods, which is not limited in the embodiment of the present invention.
A substep S22 of inquiring a pressure range to which the pressing pressure belongs;
and a substep S23 of determining that the pressing operation belongs to a pressing type corresponding to the pressure range.
By applying the embodiment of the invention, corresponding pressing types can be configured according to different operation modes, each pressing type corresponds to a pressure range, namely the pressing pressure is in the pressure range, and the pressing operation belongs to the pressing type.
In a specific implementation, for two operation modes of presenting an error correction item and an on-screen candidate item, two types of a first target pressing operation and a second target pressing operation can be configured.
Since the error correction item includes the error correction character string and the error correction candidate, the first target pressing operation may include a first sub-target pressing operation and/or a second sub-target pressing operation, which are respectively configured to two operation modes of presenting the error correction character string and presenting the error correction candidate.
The pressure range corresponding to the first sub-target pressing operation is a first pressure range;
the pressure range corresponding to the second sub-target pressing operation is a second pressure range;
the pressure range corresponding to the second target pressing operation is a third pressure range.
The pressure ranges, including the first pressure range, the second pressure range, and the third pressure range, may be preset, may be defined by a user, and may be formed by performing adjustment according to feedback of the user on the basis of the preset pressure ranges.
In one example, the pressure values in the first pressure range are less than the pressure values in the second pressure range and the pressure values in the third pressure range are less than the pressure values in the first pressure range.
Therefore, the first sub-target pressing operation may be referred to as a heavy pressing, that is, the heavy pressing candidate may trigger presentation of the error correction string; the second sub-target pressing operation may be called a tap, that is, the tap of the candidate item may trigger presentation of the error correction candidate item; the second target press operation may be referred to as a click, i.e. clicking on the candidate may trigger the candidate to be on-screen.
Of course, the operation manner of the pressing operation is only an example, and when the embodiment of the present invention is implemented, other operation manners of the pressing operation may be set according to actual situations, for example, a candidate is lightly pressed to trigger presentation of an error correction character string, a candidate is heavily pressed to trigger presentation of an error correction candidate, and the like.
If the operating system of the electronic device provides an API (Application Programming Interface) for detecting the press type, the API Interface may be directly called to detect the press type.
For example, a proxy object and a source view (such as a view for showing an error correction item) of the preview function are registered in the IOS system, and the proxy object accepts the UIViewControllerPreviewingDelegate protocol, that is, Peek (soft press) and Pop (heavy press) methods in the protocol can be realized.
If the operating system of the electronic device does not provide an API for press type detection, the press type can be identified after the press pressure is acquired.
And 104, when the pressing type is a first specified target pressing operation, displaying one or more error correction items obtained by performing error correction processing on the character string.
And if the detected pressing type is the first target pressing operation, indicating that no error correction item required by the user exists in the currently displayed candidate items.
In one case, only the feature candidates exist among the candidates, but the user needs an error correction character string to input the error correction candidates.
In another case, there are error correction candidates among the candidates, but the error correction string matching the error correction candidate is not required by the user, and the user needs another error correction string to input the other error correction candidates.
In another case, there is an error correction candidate among the candidates, and although an error correction string matching the error correction candidate is required by the user, the error correction candidate is not required by the user, and the user requires another error correction string.
Therefore, it is possible to display an error correction item, such as an error correction string or an error correction candidate, obtained by performing error correction processing for the string.
In one embodiment of the present invention, step 104 may include the following sub-steps:
a substep S31 of displaying one or more error correction character strings obtained by performing error correction processing for the character strings when the pressing type is a designated first sub-target pressing operation;
in the embodiment of the present invention, if the first sub-target pressing operation is detected, the error correction character string corresponding to the error correction candidate targeted by the first sub-target pressing operation may be determined.
If the first sub-target pressing operation occurs on the error correction candidate, it may be indicated that the first sub-target pressing operation is directed to the error correction candidate;
if the first sub-target pressing operation occurs on the error correction candidates, it may also be indicated that the first sub-target pressing operation is directed to all the error correction candidates currently displayed in the candidate bar.
If the first sub-target pressing operation occurs on the feature candidate, it may indicate that the error correction candidate for which the first sub-target pressing operation is directed is empty.
Of course, the above determination manner of the error correction candidates is only used as an example, and when the embodiment of the present invention is implemented, other determination manners of the error correction candidates may be set according to actual situations, which is not limited in the embodiment of the present invention.
If the error correction character string is determined, the target error correction character string other than the error correction character string can be searched in all the error correction character strings obtained by performing error correction processing on the character string.
In the embodiment of the present invention, the target error correction character strings may be displayed in candidate columns and the like, and due to the limited display positions, at least part of the target error correction character strings, such as one or more of the highest-scoring target error correction character strings, may be displayed.
Taking the user's intention to input "full-time" as an example, as shown in fig. 3A, assuming that the user wrongly inputs the character string "qjanzhi" in the pinyin mode, the input method receives the character string "qjanzhi" input by the user and performs chinese character conversion, and obtains feature candidate items "interval" (treating "qjan" as a simple spelling of "qujian"), "please see" (treating "qjan" as a simple spelling of "qinjiang"), "ask for leave" (treating "qja" as a simple spelling of "qinjia"), "gunshot case" (treating "qjan" as a simple spelling of "qinji' an"), "scene" (treating "qj" as a simple spelling of "qinjing") and the like.
The character string 'qjanzhi' can be corrected into 'qianzhi' (regarding 'j' as 'i' for error input), 'quanzhi' (regarding 'j' as 'u' for error input) and the like according to an error correction model, and then Chinese character conversion is carried out to obtain error correction candidate items 'potential', 'preposition', 'full-time', 'weight', 'full-fat' and the like.
The feature candidates and the error correction candidates with higher scores (such as "potential", "gunshot case", "interval", and "scene") are displayed first, and the other feature candidates and the error correction candidates with lower scores (such as "full-time", "front", and the like) are not displayed.
Since the displayed error correction candidate belongs to the error correction character strings "qanzhi", "qaangji' an" and "qingjing", the belonging error correction character string "quanzhi" of "full-time" is not included.
Therefore, as shown in fig. 3B, the user may perform a re-pressing operation on the error correction candidates "potential", and assume that the re-pressing operation is directed to all error correction candidates currently displayed in the candidate bar, and the error correction string to which the re-pressing operation belongs is "qanzhi", that is, the target error correction string is "quanzhi", and is displayed in the candidate bar as shown in fig. 3C.
And a substep S32, when the target error correction string is triggered, displaying one or more error correction candidates matching the target error correction string.
If the displayed target error correction character string is needed by the user, the user can trigger the needed target error correction character string through specified operation, and then the matched error correction candidate item is displayed.
The triggering mode may include performing a second target pressing operation on the target error correction string, directly clicking a determination key to trigger a first target error correction string, and so on.
For example, as shown in fig. 3C, if the target error correction string is "quanzhi" as needed by the user, the user may click on "quanzhi" as shown in fig. 3D, and further, as shown in fig. 3E, the string is displayed as "quanzhi", and the error correction candidates "full-time", "weight", "full-fat", "full-knowledge", and "full-finger" matching the string are displayed in the candidate bar.
As shown in fig. 3F, the user can directly click "full-time" to perform the screen-up operation.
And/or the presence of a gas in the gas,
and a substep S33 of displaying one or more error correction candidates matching one or more error correction character strings when the press type is the designated second sub-target press operation.
In the embodiment of the present invention, if the second sub-target pressing operation is detected, the error correction character string corresponding to the error correction candidate for the second sub-target pressing operation may be determined.
If the second sub-target pressing operation occurs on the error correction candidate, it may be indicated that the second sub-target pressing operation is directed to the error correction candidate.
If the error correction character string is determined, searching target error correction candidate items, except the error correction candidate items, matched with the error correction character string from all the error correction candidate items matched with the error correction character string;
in the embodiment of the present invention, the target error correction candidates may be displayed in a floating layer, a window, or the like, or at other positions below the error correction candidate targeted by the second sub-target pressing operation, and because the display positions are limited, at least part of the target error correction candidates, such as one or more target error correction character strings with the highest scores, may be displayed.
It should be noted that the error correction candidate for which the second sub-target pressing operation is performed may be retained or deleted, so as to retain the position of the target error correction character string, which is not limited in this embodiment of the present invention.
Taking the user's intention to input "come" as an example, as shown in fig. 4A, assuming that the user wrongly inputs the character string "cjulai" in the pinyin mode, the input method receives the character string "cjulai" input by the user and performs chinese character conversion to obtain feature candidates "come distance", "difference", "tableware", "distance measurement", "offer", and the like.
The character string 'cjuulai' can be corrected into 'chuulai' according to the error correction model, Chinese character conversion is carried out, and error correction candidate items 'come out', 'come from the beginning' and the like are obtained.
The feature candidates and the error correction candidates with higher scores (such as "come out", "come from", "difference", "tableware") are displayed first, and the other feature candidates and the error correction candidates with lower scores (such as "range finding", "show", "come from", etc.) are not displayed.
The error correction character string to which the displayed error correction candidate "out" belongs is "chulaii" and is a "begining" character string, but the error correction candidate does not include "begining".
Therefore, as shown in fig. 4B, the user can perform a tap operation on the error correction candidate "out", the error correction string to which the user belongs is "chulai", and the error correction candidate matching the error correction string "chulai" includes "beginnings" in addition to "out".
Then "come" is displayed as the target error correction candidate in the form of a pull-down menu below the error correction candidate "come" as shown in fig. 4C.
As shown in fig. 4D, the user can directly click "home" to perform the screen-up operation.
In an embodiment of the present invention, the method embodiment may further include the steps of:
and 105, when the pressing type is a specified second target pressing operation, performing screen-up processing on the candidate.
In the embodiment of the present invention, if the second target pressing operation is detected, a candidate item for the second target pressing operation may be subjected to screen-up operation, where the candidate item may be a feature candidate item or an error correction candidate item.
The embodiment of the invention aims at displaying the error correction item obtained by carrying out error correction processing on the character string by triggering the specified pressing operation aiming at the candidate item, the pressing operation is simple and quick, the grid rejection and re-input operation of a user is avoided, the error correction purpose is ensured, the input efficiency is improved, and the waste of equipment resources is reduced.
According to the embodiment of the invention, the error correction character string or the error correction candidate item can be selectively displayed through the specified type of the pressing operation, so that the flexibility of displaying the error correction item is greatly improved, the accuracy of the error correction item is improved, and the input efficiency is further improved.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the 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 display device according to an embodiment of the present invention, which includes the following modules:
a candidate item display module 501, configured to display one or more candidate items found based on a character string when the character string is received;
a pressing operation detection module 502 for detecting a pressing operation for the candidate item;
a pressing type query module 503, configured to query a pressing type of the pressing operation;
and an error correction item display module 504, configured to display one or more error correction items obtained by performing error correction processing on the character string when the pressing type is a specified first target pressing operation.
In one embodiment of the present invention, the candidate items may include feature candidate items and/or error correction items, and the error correction items may include error correction character strings and error correction candidate items;
the candidate display module 501 may include the following sub-modules:
the character string searching sub-module is used for searching one or more character string matching character strings in a preset word bank;
the error correction processing submodule is used for carrying out error correction processing on the character strings to obtain one or more error correction character strings;
the error correction candidate item searching sub-module is used for searching one or more error correction candidate items matched with the one or more error correction character strings in a preset word bank;
and the display sub-module is used for displaying at least part of the feature candidates and/or at least part of the error correction candidates.
In one embodiment of the present invention, the pressing operation detection module 502 may include the following sub-modules:
the occurrence position determining submodule is used for determining the position of the occurrence of the pressing operation when the pressing operation is detected;
and the pressing operation determining sub-module is used for determining that the pressing operation aiming at the error correction candidate item is detected when the error correction candidate item is displayed on the position.
In one embodiment of the present invention, the press type query module 503 may include the following sub-modules:
a pressing pressure detection submodule for detecting a pressing pressure of the pressing operation;
the pressure range query submodule is used for querying the pressure range to which the pressing pressure belongs;
and the pressing type determining submodule is used for determining that the pressing operation belongs to the pressing type corresponding to the pressure range.
In one embodiment of the present invention, the first target pressing operation may include a first sub-target pressing operation and/or a second sub-target pressing operation;
the error correction item display module 504 may include the following sub-modules:
the error correction character string display sub-module is used for displaying one or more error correction character strings obtained by carrying out error correction processing on the character strings when the pressing type is the pressing operation of a first sub-target which is specified;
and/or the presence of a gas in the gas,
and the error correction candidate display sub-module is used for displaying one or more error correction candidates matched with one or more error correction character strings when the pressing type is a specified second sub-target pressing operation.
In one embodiment of the present invention, the error correction string display sub-module may include the following units:
a first error correction string determining unit, configured to determine an error correction string corresponding to an error correction candidate for which the first sub-target pressing operation is performed;
a target error correction string search unit for searching for a target error correction string other than the error correction string;
a target error correction string display unit for displaying at least a part of the target error correction string;
the error correction candidate display sub-module may include the following elements:
a second error correction string determining unit, configured to determine an error correction string corresponding to an error correction candidate for which the second sub-target pressing operation is performed;
a target error correction candidate item searching unit for searching for target error correction candidate items other than the error correction candidate items, which match the error correction character string;
and the target error correction candidate display unit is used for displaying at least part of the target error correction candidates.
In an embodiment of the present invention, the error correction item display module 504 may further include the following sub-modules:
and the error correction character string triggering sub-module is used for displaying one or more error correction candidates matched with the target error correction character string when the target error correction character string is triggered.
In one embodiment of the present invention, the apparatus may further include the following modules:
and the screen-up module is used for performing screen-up processing on the candidate item when the pressing type is the appointed second target pressing operation.
In an example of the embodiment of the present invention, a pressure range corresponding to the first sub-target pressing operation is a first pressure range, a pressure range corresponding to the second sub-target pressing operation is a second pressure range, and a pressure range corresponding to the second target pressing operation is a third pressure range;
wherein the pressure value in the first pressure range is smaller than the pressure value in the second pressure range, and the pressure value in the third pressure range is smaller than the pressure value in the first pressure range.
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 an apparatus 600 for display of an error correction term, according to an example 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 operation at the device 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, instructions in which, when executed by a processor of a mobile terminal, enable the mobile terminal to perform a method of displaying an error correction item, the method comprising:
displaying one or more candidate items found based on the character string when the character string is received;
detecting a pressing operation for the candidate item;
inquiring the pressing type of the pressing operation;
and when the pressing type is a specified first target pressing operation, displaying one or more error correction items obtained by performing error correction processing on the character string.
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 only limited 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 (24)

1. A method for displaying error correction items, comprising:
displaying one or more candidate items found based on the character string when the character string is received;
detecting a pressing operation for the candidate item;
inquiring the pressing type of the pressing operation;
when the pressing type is a first specified target pressing operation, displaying one or more error correction items obtained by performing error correction processing on the character string;
wherein the first target pressing operation includes: a first sub-target pressing operation or a second sub-target pressing operation;
the step of displaying one or more error correction items obtained by performing error correction processing on the character string when the pressing type is a specified first target pressing operation comprises:
when the pressing type is a pressing operation of a first sub-target, displaying one or more error correction character strings obtained by performing error correction processing on the character strings;
and when the press type is a specified second sub-target press operation, displaying one or more error correction candidates matched with one or more error correction character strings.
2. The method of claim 1, wherein the candidate items comprise feature candidate items and/or error correction items, and the error correction items comprise error correction strings and error correction candidate items;
the step of displaying one or more candidates found based on the character string comprises:
searching one or more characteristic candidate items matched with the character strings in a preset word bank;
carrying out error correction processing on the character strings to obtain one or more error correction character strings;
searching one or more error correction candidate items matched with the one or more error correction character strings in a preset word bank;
displaying at least part of the feature candidates and/or at least part of the error correction candidates.
3. The method of claim 2, wherein the step of detecting a press operation against the candidate item comprises:
when a pressing operation is detected, determining a position where the pressing operation occurs;
and determining that a pressing operation for the error correction candidate is detected when the error correction candidate is displayed at the position.
4. The method of claim 1, wherein the step of querying the press type of the press operation comprises:
detecting a pressing pressure of the pressing operation;
inquiring a pressure range to which the pressing pressure belongs;
and determining that the pressing operation belongs to a pressing type corresponding to the pressure range.
5. The method of claim 1,
the step of displaying one or more error correction character strings obtained by performing error correction processing on the character strings includes:
determining an error correction character string corresponding to an error correction candidate aimed at by the first sub-target pressing operation;
searching for a target error correction string other than the error correction string;
displaying at least a portion of the target error correction string;
the step of displaying one or more error correction candidates matching the one or more error correction strings comprises:
determining an error correction character string corresponding to the error correction candidate aimed by the second sub-target pressing operation;
searching target error correction candidate items matched with the error correction character strings except the error correction candidate items;
and displaying at least part of the target error correction candidates.
6. The method according to claim 1, wherein the step of displaying one or more error correction items obtained by performing error correction processing on the character string when the pressing type is a specified first target pressing operation further comprises:
when the target error correction character string is triggered, one or more error correction candidates matched with the target error correction character string are displayed.
7. The method of claim 1, 2, 3, 4, 5, or 6, further comprising:
and when the pressing type is a specified second target pressing operation, performing screen-up processing on the candidate item.
8. The method according to claim 7, wherein the first sub-target pressing operation corresponds to a first pressure range, the second sub-target pressing operation corresponds to a second pressure range, and the second target pressing operation corresponds to a third pressure range;
wherein the pressure value in the first pressure range is smaller than the pressure value in the second pressure range, and the pressure value in the third pressure range is smaller than the pressure value in the first pressure range.
9. A display device of error correction items, comprising:
the candidate item display module is used for displaying one or more candidate items searched based on the character string when the character string is received;
a pressing operation detection module for detecting a pressing operation for the candidate item;
the pressing type query module is used for querying the pressing type of the pressing operation;
the error correction item display module is used for displaying one or more error correction items obtained by performing error correction processing on the character string when the pressing type is a specified first target pressing operation;
wherein the first target pressing operation includes: a first sub-target pressing operation or a second sub-target pressing operation;
the error correction item display module includes:
the error correction character string display sub-module is used for displaying one or more error correction character strings obtained by carrying out error correction processing on the character strings when the pressing type is the pressing operation of a first sub-target which is specified;
and the error correction candidate display sub-module is used for displaying one or more error correction candidates matched with one or more error correction character strings when the pressing type is a specified second sub-target pressing operation.
10. The apparatus of claim 9, wherein the candidate items comprise feature candidate items and/or error correction items, and the error correction items comprise error correction strings and error correction candidate items;
the candidate item display module comprises:
the character string searching sub-module is used for searching one or more character string matching character strings in a preset word bank;
the error correction processing submodule is used for carrying out error correction processing on the character strings to obtain one or more error correction character strings;
the error correction candidate item searching sub-module is used for searching one or more error correction candidate items matched with the one or more error correction character strings in a preset word bank;
and the display sub-module is used for displaying at least part of the feature candidates and/or at least part of the error correction candidates.
11. The apparatus of claim 9, wherein the pressing operation detection module comprises:
the occurrence position determining submodule is used for determining the position of the occurrence of the pressing operation when the pressing operation is detected;
and the pressing operation determining sub-module is used for determining that the pressing operation aiming at the error correction candidate item is detected when the error correction candidate item is displayed on the position.
12. The apparatus of claim 9, wherein the press type query module comprises:
a pressing pressure detection submodule for detecting a pressing pressure of the pressing operation;
the pressure range query submodule is used for querying the pressure range to which the pressing pressure belongs;
and the pressing type determining submodule is used for determining that the pressing operation belongs to the pressing type corresponding to the pressure range.
13. The apparatus of claim 9, wherein the error correction string display sub-module comprises the following units:
a first error correction string determining unit, configured to determine an error correction string corresponding to an error correction candidate for which the first sub-target pressing operation is performed;
a target error correction string search unit for searching for a target error correction string other than the error correction string;
a target error correction string display unit for displaying at least a part of the target error correction string;
the error correction candidate display submodule comprises the following units:
a second error correction string determining unit, configured to determine an error correction string corresponding to an error correction candidate for which the second sub-target pressing operation is performed;
a target error correction candidate item searching unit for searching for target error correction candidate items other than the error correction candidate items, which match the error correction character string;
and the target error correction candidate display unit is used for displaying at least part of the target error correction candidates.
14. The apparatus of claim 9, wherein the error correction term display module further comprises:
and the error correction character string triggering sub-module is used for displaying one or more error correction candidates matched with the target error correction character string when the target error correction character string is triggered.
15. The apparatus of claim 9, 10, 11, 12, 13, or 14, further comprising:
and the screen-up module is used for performing screen-up processing on the candidate item when the pressing type is the appointed second target pressing operation.
16. The apparatus according to claim 15, wherein the first sub-target pressing operation corresponds to a first pressure range, the second sub-target pressing operation corresponds to a second pressure range, and the second target pressing operation corresponds to a third pressure range;
wherein the pressure value in the first pressure range is smaller than the pressure value in the second pressure range, and the pressure value in the third pressure range is smaller than the pressure value in the first pressure range.
17. An apparatus for display of error correction terms, 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 include instructions for:
displaying one or more candidate items found based on the character string when the character string is received;
detecting a pressing operation for the candidate item;
inquiring the pressing type of the pressing operation;
when the pressing type is a first specified target pressing operation, displaying one or more error correction items obtained by performing error correction processing on the character string;
wherein the first target pressing operation includes: a first sub-target pressing operation or a second sub-target pressing operation;
the step of displaying one or more error correction items obtained by performing error correction processing on the character string when the pressing type is a specified first target pressing operation comprises:
when the pressing type is a pressing operation of a first sub-target, displaying one or more error correction character strings obtained by performing error correction processing on the character strings;
and when the press type is a specified second sub-target press operation, displaying one or more error correction candidates matched with one or more error correction character strings.
18. The apparatus of claim 17, wherein the candidate items comprise feature candidate items and/or error correction items, and the error correction items comprise error correction strings and error correction candidate items;
the step of displaying one or more candidates found based on the character string comprises:
searching one or more characteristic candidate items matched with the character strings in a preset word bank;
carrying out error correction processing on the character strings to obtain one or more error correction character strings;
searching one or more error correction candidate items matched with the one or more error correction character strings in a preset word bank;
displaying at least part of the feature candidates and/or at least part of the error correction candidates.
19. The apparatus of claim 17, wherein the step of detecting a pressing operation against the candidate item comprises:
when a pressing operation is detected, determining a position where the pressing operation occurs;
and determining that a pressing operation for the error correction candidate is detected when the error correction candidate is displayed at the position.
20. The apparatus of claim 17, wherein the step of querying the press type of the press operation comprises:
detecting a pressing pressure of the pressing operation;
inquiring a pressure range to which the pressing pressure belongs;
and determining that the pressing operation belongs to a pressing type corresponding to the pressure range.
21. The apparatus of claim 20,
the step of displaying one or more error correction character strings obtained by performing error correction processing on the character strings includes:
determining an error correction character string corresponding to an error correction candidate aimed at by the first sub-target pressing operation;
searching for a target error correction string other than the error correction string;
displaying at least a portion of the target error correction string;
the step of displaying one or more error correction candidates matching the one or more error correction strings comprises:
determining an error correction character string corresponding to the error correction candidate aimed by the second sub-target pressing operation;
searching target error correction candidate items matched with the error correction character strings except the error correction candidate items;
and displaying at least part of the target error correction candidates.
22. The apparatus according to claim 21, wherein the step of displaying one or more error correction items obtained by performing error correction processing on the character string when the pressing type is a specified first target pressing operation further comprises:
when the target error correction character string is triggered, one or more error correction candidates matched with the target error correction character string are displayed.
23. The apparatus of claim 17 or 18 or 19 or 20 or 21 or 22, further comprising instructions for:
and when the pressing type is a specified second target pressing operation, performing screen-up processing on the candidate item.
24. The apparatus according to claim 23, wherein the first sub-target pressing operation corresponds to a first pressure range, the second sub-target pressing operation corresponds to a second pressure range, and the second target pressing operation corresponds to a third pressure range;
wherein the pressure value in the first pressure range is smaller than the pressure value in the second pressure range, and the pressure value in the third pressure range is smaller than the pressure value in the first pressure range.
CN201610091544.2A 2016-02-18 2016-02-18 Display method and device of error correction items and device for displaying error correction items Active CN107092424B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610091544.2A CN107092424B (en) 2016-02-18 2016-02-18 Display method and device of error correction items and device for displaying error correction items

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610091544.2A CN107092424B (en) 2016-02-18 2016-02-18 Display method and device of error correction items and device for displaying error correction items

Publications (2)

Publication Number Publication Date
CN107092424A CN107092424A (en) 2017-08-25
CN107092424B true CN107092424B (en) 2021-03-12

Family

ID=59648859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610091544.2A Active CN107092424B (en) 2016-02-18 2016-02-18 Display method and device of error correction items and device for displaying error correction items

Country Status (1)

Country Link
CN (1) CN107092424B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729318B (en) * 2017-10-17 2021-04-20 语联网(武汉)信息技术有限公司 Method for automatically correcting partial characters by Chinese part-of-speech judgment
CN108182000A (en) * 2017-12-25 2018-06-19 科大讯飞股份有限公司 Input through keyboard detection method and device, storage medium, electronic equipment
CN110673753B (en) * 2018-07-03 2024-04-12 北京搜狗科技发展有限公司 Key false touch error correction method and device
CN109492202B (en) * 2018-11-12 2022-12-27 浙江大学山东工业技术研究院 Chinese error correction method based on pinyin coding and decoding model
CN109656384B (en) * 2018-12-24 2023-07-18 抖音视界有限公司 Character string input method and device
CN111090341A (en) * 2019-12-24 2020-05-01 科大讯飞股份有限公司 Input method candidate result display method, related equipment and readable storage medium
CN111753175A (en) * 2020-06-28 2020-10-09 恩亿科(北京)数据科技有限公司 Entry display method, entry display device and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102866826A (en) * 2012-07-09 2013-01-09 李晶 Character input method and device
CN105159588A (en) * 2015-08-27 2015-12-16 广东欧珀移动通信有限公司 Input method operation method and electronic terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266533A (en) * 2008-04-24 2008-09-17 广东国笔科技股份有限公司 Input method for touch screen
CN101710262B (en) * 2009-12-11 2015-09-30 北京搜狗科技发展有限公司 The character error correction method of coded string and device in input method
JP2015090575A (en) * 2013-11-06 2015-05-11 アルパイン株式会社 Electronic apparatus, method of selecting candidates and program for selecting candidates of operation button

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102866826A (en) * 2012-07-09 2013-01-09 李晶 Character input method and device
CN105159588A (en) * 2015-08-27 2015-12-16 广东欧珀移动通信有限公司 Input method operation method and electronic terminal

Also Published As

Publication number Publication date
CN107092424A (en) 2017-08-25

Similar Documents

Publication Publication Date Title
CN107436691B (en) Method, client, server and device for correcting errors of input method
CN107092424B (en) Display method and device of error correction items and device for displaying error correction items
CN107844199B (en) Input method, system and device for inputting
CN107544684B (en) Candidate word display method and device
US20190087084A1 (en) User-centric soft keyboard predictive technologies
CN109120511B (en) Automatic correction method, computing device and system based on characteristics
CN107102746B (en) Candidate word generation method and device and candidate word generation device
CN108345612B (en) Problem processing method and device for problem processing
CN107564526B (en) Processing method, apparatus and machine-readable medium
WO2022135474A1 (en) Information recommendation method and apparatus, and electronic device
CN109002183B (en) Information input method and device
CN109101505B (en) Recommendation method, recommendation device and device for recommendation
US20190340233A1 (en) Input method, input device and apparatus for input
WO2023078414A1 (en) Related article search method and apparatus, electronic device, and storage medium
CN107688397B (en) Input method, system and device for inputting
CN107424612B (en) Processing method, apparatus and machine-readable medium
CN107797676B (en) Single character input method and device
CN107291260B (en) Information input method and device for inputting information
CN112133295B (en) Speech recognition method, device and storage medium
CN107422921B (en) Input method, input device, electronic equipment and storage medium
CN108803890B (en) Input method, input device and input device
CN108073293B (en) Method and device for determining target phrase
KR102327790B1 (en) Information processing methods, devices and storage media
CN109388252B (en) Input method and device
CN107817942B (en) Sliding input method and system and device for sliding input

Legal Events

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