CN106886294B - Input method error correction method and device - Google Patents

Input method error correction method and device Download PDF

Info

Publication number
CN106886294B
CN106886294B CN201510940077.1A CN201510940077A CN106886294B CN 106886294 B CN106886294 B CN 106886294B CN 201510940077 A CN201510940077 A CN 201510940077A CN 106886294 B CN106886294 B CN 106886294B
Authority
CN
China
Prior art keywords
character string
input
code
touch control
code character
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
CN201510940077.1A
Other languages
Chinese (zh)
Other versions
CN106886294A (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 CN201510940077.1A priority Critical patent/CN106886294B/en
Publication of CN106886294A publication Critical patent/CN106886294A/en
Application granted granted Critical
Publication of CN106886294B publication Critical patent/CN106886294B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods

Abstract

The invention provides an input method error correction method and device and a device for input method error correction, wherein the input method error correction method comprises the following steps: receiving an input first code character string, and marking code characters of which the touch control strength falls outside a currently set touch control strength range in the input first code character string; deleting the marked code characters in the first code character string and generating a second code character string; determining a candidate entry corresponding to the first coding character string; determining a candidate entry corresponding to the second coding character string; and sequencing and displaying the candidate entries according to a set rule. The input method error correction method provided by the embodiment of the invention can ensure the reliability of the candidate entries pushed to the user.

Description

Input method error correction method and device
Technical Field
The invention relates to the technical field of input methods, in particular to an input method error correction method and device.
Background
The current input method error correction function is mainly based on the position error correction rule of adjacent key positions, and the error correction rule replaces corresponding code characters in a code character string input by a user with code characters corresponding to the adjacent key positions, then correspondingly converts the replaced code character string, and returns the converted code character string to a candidate entry corresponding to the code character string corrected by the user. For example: the user intends to input 'eat', but can not accurately locate the corresponding key position when inputting the coded character 'n', mistakenly hit the'm' key position beside the 'n' key position, the input coded character string becomes 'chifam', when the input method is used for error correction, the coded character'm' is replaced by the coded character 'n' corresponding to the adjacent key position 'n' of the'm' key position by analyzing the input coded character string, the input coded character string is corrected to 'chifam', and then the corresponding candidate vocabulary entry 'eat' is returned.
However, there are many uncertain factors in the user's input, and the erroneous input of the code character is usually not caused by the erroneous pressing of the adjacent key, but is also caused by the unintentional touching of other non-adjacent keys. If the user inputs the code character string and performs the screen-on operation, when the finger moves from the last code character input key position to the corresponding candidate entry in the candidate frame, the user is easy to miss one or more other keys in the middle; or, when the user finishes the screen-on operation and continues inputting, the finger moves from the candidate frame to the first coded character key position, and other key positions are easily erased by mistake; or, in the process of inputting the code character string, the user can easily miss other key positions due to factors such as environment, jitter, operation interface size and the like. Obviously, the above-listed cases of mistakenly inputting coded characters do not pertain to the case of mistakenly pressing an adjacent key.
Therefore, the existing input method error correction scheme is generally only suitable for the problem of erroneous input caused by adjacent key positions, but in the practical application process, users can inevitably cause erroneous input caused by touching non-adjacent key positions, but the existing input method error correction scheme cannot effectively correct the code character strings erroneously input by erroneously pressing the non-adjacent key positions. Because the existing input method error correction scheme cannot effectively correct the mistakenly input coded character string by mistakenly pressing a non-adjacent key, the mistakenly input coded character string of the user cannot be converted into the coded character string which is intended to be input by the user correspondingly, and finally, the candidate entry which the user wants cannot be returned, namely, the reliability of the candidate entry pushed to the user is poor.
Therefore, it is a technical problem to be solved by those skilled in the art to provide an input method error correction scheme capable of performing error correction on a code string generated by various error input operations of a user, so as to obtain a code string intended to be input by the user, and further improve reliability of a candidate entry pushed to the user.
Disclosure of Invention
The invention provides an input method error correction method and device and an input method error correction device, which solve the problem that the existing input method scheme can not effectively correct the error of a coded character string generated by mistakenly pressing a non-adjacent key by a user.
In order to solve the above problems, the present invention discloses an input method error correction method, which comprises: receiving an input first code character string, and marking code characters of which the touch control strength falls outside a currently set touch control strength range in the input first code character string; deleting the marked code characters in the first code character string and generating a second code character string; determining a candidate entry corresponding to the first coding character string; determining a candidate entry corresponding to the second coding character string; and sequencing and displaying the candidate entries according to a set rule.
Preferably, the step of receiving the input code character string and marking the code character of which the touch strength falls outside the currently set touch strength range when the input code character string is input in the first code character string includes: receiving a code character and determining the touch control strength when the code character is input; when the touch control strength is out of the currently set touch control strength range, marking the code characters; judging whether the input of the first coding character string is finished; if the input is not finished, continuing to execute the step of receiving the code characters and simultaneously determining the touch control strength when the code characters are input; and if the input is finished, executing the step of deleting the marked code characters in the first code character string and generating a second code character string.
Preferably, the currently set touch strength range is obtained through the following steps: respectively receiving an upper limit value and a lower limit value of the currently set touch control force range; or receiving touch control operation of the set times input by the user, determining the touch control strength corresponding to each touch control operation, and determining the currently set touch control strength range according to each touch control strength.
Preferably, the input method error correction method further includes: and when the marked code characters do not exist in the input first code character string and the candidate entry corresponding to the first code character string is displayed on the screen by the user, keeping the currently set touch control force range unchanged.
Preferably, the input method error correction method further includes: and when the marked code characters exist in the input first code character string and the candidate entry corresponding to the code character string after error correction is displayed on the screen of the user, keeping the currently set touch control force range unchanged.
Preferably, the input method error correction method further includes: when the marked code characters exist in the input first code character string and candidate entries corresponding to the code character string which is not corrected by the user on the screen are found, the currently set touch control strength range is adjusted according to the touch control strength range increasing factor and the touch control strength increasing coefficient, and the currently set touch control strength range is updated to the adjusted touch control strength range.
Preferably, the input method error correction method further includes: when the marked code characters do not exist in the input first code character string and the user executes the grid quitting operation, adjusting the currently set touch control strength range according to the touch control strength range increasing factor and the touch control strength increasing coefficient, and updating the currently set touch control strength range into the adjusted touch control strength range.
Preferably, the input method error correction method further includes: carrying out error correction on the coding characters adjacent to the key positions on the first coding character string to generate a third coding character string; and determining a candidate entry corresponding to the third encoding character string.
Preferably, the step of performing error correction on the code characters adjacent to the key positions on the first code character string to generate a third code character string includes: determining the marked code character in the first code character string; finding out at least one code character adjacent to the marked code character from the adjacent key position table; and correspondingly replacing the marked code characters in the first code character string with the searched code characters to generate a third code character string.
In order to solve the above problem, the present invention also discloses an input method error correction apparatus comprising: the marking module is used for receiving an input first coded character string and marking coded characters of which the touch control strength is out of the currently set touch control strength range when the input coded characters are in the first coded character string; the deleting module is used for deleting the marked code characters in the first code character string and generating a second code character string; the first entry determining module is used for determining a candidate entry corresponding to the first coding character string; the second entry determining module is used for determining a candidate entry corresponding to the second coding character string; and the display module is used for sequencing and displaying the candidate entries according to a set rule.
Preferably, the marking module comprises: the touch control strength determining module is used for receiving the code characters and determining the touch control strength when the code characters are input; the code marking module is used for marking the code characters when the touch control strength is out of the currently set touch control strength range; the second judgment module is used for judging whether the input of the first coding character string is finished; the execution module is used for continuing to execute the touch control strength determination module if the input is not finished; and if the input is finished, executing the deleting module.
Preferably, the input method error correction apparatus further includes: the range value receiving module is used for respectively receiving an upper limit value and a lower limit value of the currently set touch control force range; or, the touch operation receiving module is configured to receive touch operations of a set number of times input by a user, determine a touch strength corresponding to each touch operation, and determine the currently set touch strength range according to each touch strength.
Preferably, the input method error correction apparatus further includes: and the first adjusting module is used for keeping the currently set touch control strength range unchanged when the marked code characters do not exist in the input first code character string and the candidate entry corresponding to the first code character string is displayed on the screen by a user.
Preferably, the input method error correction apparatus further includes: and the second adjusting module is used for keeping the currently set touch control force range unchanged when the marked code characters exist in the input first code character string and the candidate entries corresponding to the code character string after the error correction is performed on the screen of the user.
Preferably, the input method error correction apparatus further includes: and the third adjusting module is used for adjusting the currently set touch control strength range according to the touch control strength range increasing factor and the touch control strength increasing coefficient and updating the currently set touch control strength range into the adjusted touch control strength range when the marked code characters exist in the input first code character string and the candidate entries corresponding to the code character string after the user does not perform screen error correction.
Preferably, the input method error correction apparatus further includes: and the fourth adjusting module is used for adjusting the currently set touch strength range according to the touch strength range increasing factor and the touch strength increasing coefficient when the marked code character does not exist in the input first code character string and the user executes the grid quitting operation, and updating the currently set touch strength range into the adjusted touch strength range.
Preferably, the input method error correction apparatus further includes: the adjacent key position error correction module is used for carrying out adjacent key position coding character error correction on the first coding character string to generate a third coding character string; and the third entry determining module is used for determining a candidate entry corresponding to the third coding character string.
Preferably, the adjacent key position error correction module includes: the marking determining module is used for determining marked code characters in the first code character string; the code character searching module is used for searching at least one code character adjacent to the marked code character from the adjacent key position table; and the replacing module 3 is used for correspondingly replacing the marked code characters in the first code character string by the searched code characters to generate a third code character string.
To solve the above problem, the present invention also discloses an apparatus for input method error correction, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and configured to be executed by one or more processors comprises instructions for: receiving an input first code character string, and marking code characters of which the touch control strength falls outside a currently set touch control strength range in the input first code character string; deleting the marked code characters in the first code character string and generating a second code character string; determining a candidate entry corresponding to the first coding character string; determining a candidate entry corresponding to the second coding character string; and sequencing and displaying the candidate entries according to a set rule.
Compared with the prior art, the invention has the following advantages:
according to the input method error correction scheme provided by the embodiment of the invention, when the input first code character string is received, the code character of which the touch control strength falls outside the currently set touch control strength range is marked when the input first code character string is input, and the error correction is carried out on the first code character string by deleting the marked code character in the first code character string, so that the error-corrected second code character string is obtained. Because the touch control force when the code character is input by mistake is different from that when the code character is input normally, whether the code character is input by mistake can be determined by the touch control force when the code character is input. The input method error correction scheme provided by the embodiment of the invention judges whether the input character is the wrongly input code character based on the touch strength, so that the input method error correction scheme is not only suitable for judging the wrongly input character caused by the adjacent key position, but also suitable for judging the wrongly input character caused by the non-adjacent key position, and can effectively correct the wrongly input code character string caused by the non-adjacent key position.
Moreover, according to the input method error correction scheme provided by the embodiment of the present invention, candidate entries corresponding to the first encoded character string and the second encoded character string are sorted and displayed according to a set rule. Therefore, the entry required by the user can be ensured to appear in the first candidate page with higher probability, and the reliability and hit rate of the candidate entry pushed to the user are ensured.
Drawings
Fig. 1 is a flowchart illustrating steps of a method for correcting errors of an input method according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of a method for correcting errors of an input method according to a second embodiment of the present invention;
FIG. 3 is a detailed flowchart of the input method error correction using the method shown in example II;
fig. 4 is a block diagram of an input method error correction apparatus according to a third embodiment of the present invention;
fig. 5 is a block diagram of an input method error correction apparatus according to a fourth embodiment of the present invention;
fig. 6 is a block diagram of an apparatus for error correction of an input method according to a fifth embodiment of the present invention;
fig. 7 is a block diagram of a server according to a fifth embodiment of the present invention.
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.
Example one
Referring to fig. 1, a flowchart illustrating steps of an input method error correction method according to a first embodiment of the present invention is shown.
The input method error correction method of the embodiment of the invention comprises the following steps:
step S102: and receiving an input first code character string, and marking code characters of which the touch control strength is out of the currently set touch control strength range when the input code characters in the first code character string are input.
The marking of the code characters in the first code string may be performed in any suitable manner. For example: after the input of the whole first code character string is completed, the code characters of which the input touch strength is out of the currently set touch strength range can be marked in a unified manner. Or judging the touch strength of each code character when inputting the code character, and then determining whether to mark the code character according to the judgment result.
Step S104: and deleting the marked code characters in the first code character string and generating a second code character string.
In this step, the first code string is corrected according to the predetermined touch force range to generate a second code string.
Step S106: and determining a candidate entry corresponding to the first coding character string.
Step S108: and determining a candidate entry corresponding to the second encoding character string.
It should be noted that, for the operation of determining the candidate entry corresponding to the code character string, reference may be made to related technologies, which is not specifically limited in the embodiment of the present invention.
Step S108 is not limited to being performed after step S106, and may be performed at any time after step S102 and before step S110.
Step S110: and sequencing and displaying the candidate entries according to a set rule.
The candidate entries comprise a candidate entry corresponding to the first encoding character string and a candidate entry corresponding to the second encoding character string.
When the candidate entries are sorted, reference may be made to a technology for sorting and displaying the candidate entries, which is not specifically limited in the embodiment of the present invention. For example: the ranking is performed based on the type, word frequency, context, time, location, application environment, group to which the user belongs, and the like of the candidate entries.
The input method error correction scheme provided by the embodiment of the invention judges whether the code character is input by the user by the touch control strength when the code character is input based on the principle that the touch control strength when the code character is input by mistake is different from that when the code character is input normally. Because whether the code character is wrongly input is judged based on the touch strength, the method is not only suitable for judging the wrongly input caused by the adjacent key position, but also suitable for judging the wrongly input caused by the non-adjacent key position, and therefore the error correction can be effectively carried out on the wrongly input code character string which is not adjacent to the key position. Moreover, in the input method error correction method provided by the embodiment of the present invention, the candidate entries corresponding to the first encoded character string and the second encoded character string are sorted and displayed according to the set rule. Thus, the entry required by the user can be ensured in the candidate entry, and the reliability of the candidate entry pushed to the user is ensured.
Example two
Referring to fig. 2, a flowchart illustrating steps of an input method error correction method according to a second embodiment of the present invention is shown.
The input method error correction method of the embodiment of the invention comprises the following steps:
step S202: and respectively receiving an upper limit value and a lower limit value of the currently set touch force range.
The input method error correction method provided by the embodiment of the invention is suitable for the input method client, and the input method client comprises but is not limited to: and the input method client side comprises an input method client side such as a mobile phone, a tablet, a computer and an intelligent terminal.
In the embodiment of the present invention, the currently set touch strength range includes an upper limit value and a lower limit value, and the description is given by taking an example in which a user directly inputs the currently set touch strength range value. However, in the specific implementation process, the currently set touch force range is not limited to the obtained mode, and the currently set touch force range may also be obtained through the following two preferred modes:
the first preferred mode is to receive touch control operations of set times input by a user, determine touch control strength corresponding to each touch control operation, and determine a currently set touch control strength range according to each touch control strength.
One preferable way to determine the currently set touch strength range according to each touch strength is as follows: generating a distribution graph, such as a normal distribution graph, according to each touch strength, discarding the touch strengths at two ends of the normal distribution graph, selecting only the touch strength in a certain data area in the middle of the normal distribution graph, and then determining the currently set touch strength range according to the touch strength in the data area. In the preferred mode of determining the currently set touch strength range, the incredible touch strength is abandoned, so that the obtained touch strength range has higher reliability.
It should be noted that, when determining the Touch strength corresponding to each Touch operation, the determination may be performed by using a 3D-Touch related pressure sensing and control technology. Of course, the touch strength corresponding to each touch operation can also be determined by arranging a touch strength sensing module under the display screen.
In the second preferred mode, the currently set touch strength range corresponding to the latest input encoded character string is adjusted based on the currently set touch strength range corresponding to the latest input encoded character string before and when the encoded character string is input this time, the latest input encoded character string error correction result, and the result of the entry on the screen of the user, and the adjusted touch strength range is used as the currently set touch strength range in step 202.
The specific scheme for adjusting the currently set touch control force range corresponding to the latest input of the code character string is as follows:
and when the marked code character does not exist in the code character string input for the last time and the candidate entry corresponding to the code character string input by the user is displayed on the screen, keeping the currently set touch control force range unchanged. That is, the currently set touch strength range when the user performs the current input in step S202 is the same as the currently set touch strength range corresponding to the latest input.
And when the marked code characters exist in the code character string input for the last time and the candidate entry corresponding to the code character string after error correction is displayed on the screen of the user, keeping the currently set touch control force range unchanged. That is, the currently set touch strength range when the user performs the current input in step S202 is the same as the currently set touch strength range corresponding to the latest input.
When the marked code character exists in the code character string input last time and the candidate entry corresponding to the code character string after the user does not perform screen error correction, the currently set touch strength range is adjusted according to the touch strength range increase factor and the touch strength increase coefficient, the adjusted touch strength range is used as the currently set touch strength range again, and the adjusted touch strength range is used as the currently set touch strength range when the user performs current input in step S202.
When no marked code character exists in the code character string input last time and the user performs the check quitting operation, the currently set touch strength range is adjusted according to the touch strength range increase factor and the touch strength increase coefficient, the adjusted touch strength range is used as the currently set touch strength range again, and the adjusted touch strength range is used as the currently set touch strength range when the user performs the current input in step S202.
The touch strength range increase factor and the touch strength increase coefficient may be set by those skilled in the art according to actual needs, and are not particularly limited in the embodiment of the present invention.
It should be noted that, in the embodiment of the present invention, the currently set touch strength range in step S202 is obtained by adjusting the corresponding touch strength range when the encoded character string is input last time, only by way of example. In the specific implementation process, the touch force range currently set in step S202 may be obtained by adjusting the touch force range corresponding to the last input of the encoded character string n times or the touch force range corresponding to the input of the encoded character string within the last period of time, without being limited thereto.
Step S204: and receiving the code characters and simultaneously determining the touch control strength when the code characters are input.
When the user uses the input method, the required entries are obtained by inputting the code character strings. When inputting the code character string, one or more code characters are required to be input. In this step, the input method client receives each input code character and obtains the touch strength when the user inputs the code character.
Step S206: judging whether the touch control strength corresponding to the code character falls outside a currently set touch control strength range or not; if yes, go to step S208, otherwise, go to setup operation.
If the touch force falls outside the currently set touch force range, the corresponding code character is indicated as being input by mistake, and if the touch force falls within the currently set touch force range, the corresponding code character is indicated as being input intentionally.
The setting operation may be a flag for the code character determined to be incorrectly input.
Step S208: and when the touch control strength corresponding to the code character is out of the current set touch control strength range, marking the code character.
The purpose of marking the code characters is to distinguish the code characters input by mistake by the user from the code characters input by intention by the user. The specific form of the mark may be set by those skilled in the art according to actual needs in specific implementation processes, which are not specifically limited in the embodiments of the present invention.
Step S210: judging whether the input of the first coding character string is finished; if so, go to step S212, otherwise, go back to step S204.
Since the first encoded character string may include a plurality of encoded characters, and the above steps S204 and S208 are only operations on one encoded character, it is necessary to determine whether there are any encoded characters that are not input after the operation on one encoded character is completed in this step. If yes, step S204 to step S208 are repeatedly executed until the first code string is completely input.
The specific determination method of whether the first code string is completely input may be set by a person skilled in the art according to actual requirements. For example: if no new code character is received beyond the set time, the first code character string is determined to be input completely.
Step S212: and when the input of the first code character string is finished, deleting the marked code characters in the first code character string to generate a second code character string.
The marked code character is the code character input by the user by mistake, and the error correction of the first code character string can be finished by deleting the marked code character in the first code character string in the step.
Step S214: and determining a candidate entry corresponding to the first coding character string.
It should be noted that step S214 is not limited to be executed after step S212, and step S214 may also be executed before step S212 or in parallel with step S212.
Step S216: and determining a candidate entry corresponding to the second encoding character string.
For the specific operation of determining the candidate entry corresponding to the encoded character string, reference may be made to related technologies, which is not specifically limited in the embodiment of the present invention. For example: firstly, segmenting the coded character string, and then determining candidate entries according to the segmentation result.
It should be noted that step S216 is not limited to be executed after step S214, and step S216 may be executed at any time after the first code string is input and before step S220.
Step S218: and carrying out error correction on the coding characters adjacent to the key positions on the first coding character string to generate a third coding character string, and determining a candidate entry corresponding to the third coding character string.
One preferred way to perform error correction of code characters adjacent to the key positions on the first code character string and generate the third code character string is as follows:
s1: determining the marked code character in the first code character string;
s2: finding out at least one code character adjacent to the marked code character from the adjacent key position table;
s3: and correspondingly replacing the marked code character in the first code character string with the adjacent code character to generate a third code character string.
If the first code string contains a plurality of marked code characters, then when the code characters adjacent to the key positions are corrected, only the code character adjacent to one marked code character can be searched from the adjacent key position table, and then, only the one marked code character is replaced to generate the third code string. Of course, two or three code characters adjacent to the marked code character can be searched from the adjacent key mapping table, and the marked code characters in the first code character string are respectively replaced correspondingly to generate the third code character string.
The third encoding string may be a string of characters or may be a plurality of strings of characters. When the third encoded character string is a multi-string encoded character string, candidate entries corresponding to the plurality of encoded character strings may be determined, respectively. One or more optimal encoding strings can be selected, and only the candidate entries corresponding to the optimal encoding strings are determined.
In the embodiment of the invention, the error correction processing is carried out on the first coding character string by combining two error correction modes of adjacent key position error correction and touch control strength range error correction. Compared with the mode of only correcting errors according to the adjacent key positions or only correcting errors according to the touch force range, the method can improve the accuracy of error correction and further improve the reliability of candidate entries pushed to the user.
In a specific implementation process, step S218 may not be executed, and the error correction may be performed on the encoded character string only according to the touch strength range.
Step S220: and sequencing and displaying the candidate entries according to a set rule.
In this embodiment, the candidate entries include: the candidate entries corresponding to the first encoded character string, the candidate entries corresponding to the second encoded character string, and the candidate entries corresponding to the third encoded character string.
When the candidate entries are sorted, reference may be made to a technology for sorting and displaying the candidate entries, which is not specifically limited in the embodiment of the present invention. For example: the ranking is based on the type, word frequency, context, time, location, application environment, user type, etc. of the candidate entries.
After the candidate entries are displayed in sequence, the user can browse the candidate entries and select the required entries from the candidate entries on the screen, and of course, the user can also perform a backspace operation and re-input a new code string. At this time, the input rule adjusts the currently set touch force range in step S202 according to the specific operation of the candidate entry by the user.
Step S222: and adjusting the currently set touch control force range.
The new touch control strength range obtained by adjusting the currently set touch control strength range can be used as the currently set touch control strength range corresponding to the input of the next encoded character string.
Four preferred ways of adjusting the currently set touch force range are as follows:
first preferred mode: when the marked code character does not exist in the input first code character string and the candidate entry corresponding to the first code character string is displayed on the screen by the user, the currently set touch control force range is kept unchanged.
Second preferred mode: and when the marked code characters exist in the input first code character string and the candidate entries corresponding to the code character string after error correction are displayed on the screen of the user, keeping the currently set touch control force range unchanged.
Third preferred mode: when the marked code characters exist in the input first code character string and the candidate entries corresponding to the code character string are not corrected by the user on the screen, the currently set touch control strength range is adjusted according to the touch control strength range increasing factor and the touch control strength increasing coefficient, and the currently set touch control strength range is updated to the adjusted touch control strength range to serve as a basis for marking the mistakenly input code characters when the user inputs the code character string next time.
In the embodiment of the present invention, the setting of the touch force range increase factor and the touch force increase coefficient is not specifically limited in the embodiment of the present invention. The specific way of adjusting the currently set touch strength range with reference to the two parameters can also be set to any feasible way by those skilled in the art according to actual requirements.
For example, the following settings may be made: assuming that the currently set touch strength range is [ x, y ], the adjusted currently set touch strength range is [ x ', y' ], the touch strength range growth factor is d, and the touch strength growth coefficient is w. If the minimum touch force in the process of inputting the first code character string by the user is less than x, x' is x-w d; and if the minimum touch strength in the process of inputting the first code character string by the user is greater than y, y + w.
Fourth preferred mode: when the marked code character does not exist in the input first code character string and the user executes the check quitting operation, the currently set touch control strength range is adjusted according to the touch control strength range increasing factor and the touch control strength increasing coefficient, and the currently set touch control strength range is updated to the adjusted touch control strength range to serve as the basis for marking the code character which is input by mistake when the user inputs the code character string next time.
In the embodiment of the present invention, the setting of the touch force range increase factor and the touch force increase coefficient is not specifically limited in the embodiment of the present invention. The specific manner of adjusting the currently set touch strength range with reference to the two parameters may also be set to any feasible manner by those skilled in the art according to actual requirements.
For example, the following settings may be made: assuming that the currently set touch strength range is [ x, y ], the adjusted currently set touch strength range is [ x ', y' ], the touch strength range growth factor is d, and the touch strength growth coefficient is w. If the minimum touch strength in the process of inputting the first code character string by the user is greater than x, x' is x + w x d; and if the minimum touch strength in the process of inputting the first code character string by the user is less than y, y' -y-w x d.
The input method error correction method provided by the embodiment of the invention has the beneficial effects of the input method error correction method in the first embodiment, and can automatically learn the habitual pressing pressure degree (namely the currently set touch force range) of the touch screen of the user, thereby better meeting the actual requirements of the user and improving the use experience of the user.
Referring to fig. 3, a description is given of an input method error correction flow according to an embodiment of the present invention.
The input method error correction process in this specific example includes the following steps:
step S302: and (4) starting the input method client by the user, and setting the touch control force range during normal input.
The currently set touch control force range reflects the pressing force degree of the user habit. For the determination of the currently set touch strength range, the setting manner shown in the second embodiment may be referred to, and details thereof are not repeated in this specific example.
Step S304: and (3) inputting the code characters by a user, identifying the pressing force of the user by an input method, comparing the pressing force with the touch force range during normal input, and marking error correction.
In the embodiment of the present invention, the specific example is described by taking the input first code character string as an alphabetic sequence. The pressing force of the user is the touch force when the user inputs letters.
The user inputs letters to be input in sequence, in the process, the user may touch other keys by mistake, the input method can identify the touch strength of each key of the user, then the touch strength is compared with the touch strength range of normal input of the user, and if the touch strength of the user is not in the touch strength range of normal input of the user, error correction marks are made on the letters input at the time. The input of the touch force range when the touch force is in the normal input is regarded as the normal input.
Step S306: judging whether letters are input; if yes, the process returns to step S304, otherwise, step S308 is performed.
And when the letters are input, circularly executing the steps S304 to S306 until no letters are input or the letter sequence is input.
Step S308: and the input method kernel conversion module converts the original input letter sequence to obtain the candidate queue 1 without error correction.
In this step, the input method kernel performs a normal conversion process. The input method kernel conversion module converts the original input sequence, such as syllable division, pinyin conversion, word stock search and word filling, and candidate frequency modulation sequencing, and finally obtains a candidate queue 1 without error correction. Candidate queue 1 is the candidate entry corresponding to the original input letter sequence.
Step S310: and the input method kernel error correction module constructs a new input letter sequence according to the touch strength error correction mark and converts the new letter sequence to obtain an error correction candidate queue 2.
The input method kernel error correction module corrects the letter sequence input by the user according to the error correction marks of the letters in the letter sequence, discards letters (namely the letters marked with the error correction marks) with touch control strength not in the touch control strength range when the user normally inputs the letters, constructs an error correction letter sequence, and then performs corresponding conversion and other processing on the constructed error correction letter sequence to obtain an error correction candidate queue 2 corresponding to the error correction letter sequence.
In the step S310, when the touch strength-based error correction is performed on the original input letter sequence, the method can be used in combination with a position error correction method based on adjacent key positions, and when the letter with touch strength not in the range of the touch strength of the normal input of the user is discarded, the error corrected letter sequence a is obtained. And constructing a plurality of error-corrected letter sequences B based on the position error correction of adjacent keys, specifically, constructing a plurality of error-corrected letter sequences (for example, performing adjacent key position replacement on one or more letters) by searching an adjacent key position table and correspondingly replacing letters in the input sequence. Then, the error correction letter sequence A and the plurality of error correction letter sequences B are sequenced according to the language model of the error correction sequence, and the optimal error correction letter sequence is selected for the conversion, so that the error correction candidate queue 2 is obtained.
Of course, it is also possible to select an optimal error correction alphabet sequence from the plurality of error correction alphabet sequences B, and then use both the error correction alphabet sequence a and the selected optimal error correction alphabet sequence as the error correction candidate sequence 2.
S312: and the input method kernel merges the candidate queue 1 and the error correction candidate queue 2 according to the candidate entry type, the word frequency, the language model of the letter sequence and the like, and returns to the merged queue.
And checking the queue 1 and the error correction candidate queue 2 which do not contain error correction candidates in the input method, merging according to the types of the candidate words, the word frequency and the like, sequencing all the candidate entries in the candidate queue, returning all the candidate entries to the front end of the input method according to the sequencing for displaying, and enabling a user to select to screen.
The following describes an input method error correction process of this specific example, taking as an example that a user inputs an alphabet sequence through a qwerty26 keyboard of a mobile phone, where a touch force range during normal input by the user is Pr [ x, y ], and the user intends to continue inputting an error input and error correction process of "habit" ("xiguan") after the last screen-on operation. The specific process is as follows:
(1) in the process that the fingers of the user move from the candidate frame to the 'x' key, the 'w' key is erased by mistake, the pressing pressure of the user is identified by the input method and is not in the range of the touch force when the user normally inputs, and therefore an error correction mark is marked on the 'w' letter;
(2) pressing an 'x' key by a user finger, and identifying the pressing pressure degree of the user by an input method, wherein the pressing pressure degree is within the touch control force range when the user normally inputs; therefore, the 'x' alphabet is not marked with an error correction flag;
(3) the finger of the user moves from the 'x' key to the 'i' key, the 'g' key is touched by mistake, the pressing pressure of the user is identified by the input method and is not in the touch force range during normal input of the user, and therefore an error correction mark is marked on the 'g' letter;
(4) pressing keys of 'i', 'g' and 'u' by fingers of a user, and identifying the pressing pressure degree of the user and the touch force range when the user normally inputs the input method; therefore, the error correction flag is not marked for the three letters;
(5) the user fingers move from the 'u' key to the 'a' key, the'd' key is touched by mistake, and the input method identifies the pressing pressure degree of the user and is not in the touch control force range when the user normally inputs; therefore, the'd' alphabet is marked with an error correction flag;
(6) pressing an 'a' key by a user finger, and identifying the pressing pressure degree of the user by the input method, wherein the pressing pressure degree is within the touch control force range when the user normally inputs; therefore, the 'a' alphabet is not marked with an error correction flag;
(7) the user fingers move from the 'a' key to the 'n' key, the 'f' key is touched by mistake, and the input method identifies the pressing pressure degree of the user and is not in the touch control force range when the user normally inputs the input; thus, the 'f' alphabet is error-correction marked;
(8) pressing an 'n' key by a user finger, and identifying the pressing pressure degree of the user by an input method, wherein the pressing pressure degree is within the touch control force range when the user normally inputs; therefore, the 'n' alphabet is not marked with an error correction flag;
(9) the kernel converts the letter sequence 'wxgugdafn' input by the user, the error correction module discards the letters subjected to error correction marking by analyzing the error correction marking to obtain the letter sequence 'xiguan' input by the user intention, and further performs letter sequence conversion to obtain a candidate entry 'habit', and returns the candidate entry 'habit' to the user.
The input method identifies the touch strength when each letter is input by the user, compares the touch strength with the touch strength range when the user normally inputs the letter, and corrects the letter sequence by abandoning the letters with the pressure degree not in the touch strength range when the user normally inputs the letter. The error correction method is not only suitable for judging the mis-input caused by the adjacent key position, but also suitable for judging the mis-input caused by the non-adjacent key position, so that the error correction accuracy of the input method can be improved, and the candidate entries with high reliability are provided for the user. Furthermore, the candidate entries with high reliability can be provided for the user, so that backspace deleting operation of the user can be reduced, and input experience of the user is improved.
EXAMPLE III
Referring to fig. 4, a block diagram of an input method error correction apparatus according to a third embodiment of the present invention is shown.
The input method error correction device of the embodiment of the invention comprises: a marking module 402, configured to receive an input first encoded character string, and mark an encoded character in the first encoded character string whose input touch strength is outside a currently set touch strength range; a deleting module 404, configured to delete the marked code character in the first code character string and generate a second code character string; a first entry determining module 406, configured to determine a candidate entry corresponding to the first encoded character string; a second entry determining module 408, configured to determine a candidate entry corresponding to the second encoded character string; and a display module 410, configured to sort and display the candidate entries according to a set rule.
The input method error correction device provided by the embodiment of the invention judges whether the code character is input by mistake or not according to the touch control strength when the code character is input by mistake based on the principle that the touch control strength is different when the code character is input by mistake and when the code character is input normally. Because whether the code character is wrongly input is judged based on the touch strength, the method is not only suitable for judging the wrongly input caused by the adjacent key position, but also suitable for judging the wrongly input caused by the non-adjacent key position, and therefore the error correction can be effectively carried out on the wrongly input code character string which is not adjacent to the key position. Moreover, the input method error correction apparatus provided in the embodiment of the present invention further performs sorting and displaying on the candidate entries corresponding to the first encoded character string and the second encoded character string according to a set rule. Thus, the entry required by the user can be ensured in the candidate entry, and the reliability of the candidate entry pushed to the user is ensured.
Example four
Referring to fig. 5, a block diagram of an input method error correction apparatus according to a fourth embodiment of the present invention is shown.
The embodiment of the invention is further optimized for the input method error correction device in the third embodiment, and the optimized input method error correction device comprises: a marking module 502, configured to receive an input first encoded character string, and mark an encoded character in the first encoded character string whose input touch strength is outside a currently set touch strength range; a deleting module 504, configured to delete the marked code character in the first code character string and generate a second code character string; a first entry determining module 506, configured to determine a candidate entry corresponding to the first encoded character string; a second entry determining module 508, configured to determine a candidate entry corresponding to the second encoded character string; and a display module 510, configured to sort and display the candidate entries according to a set rule.
Preferably, the marking module 502 comprises: the touch control strength determining module 5021 is used for receiving the code characters and determining the touch control strength when the code characters are input; a code marking module 5022, configured to mark the code character when the touch strength is outside the currently set touch strength range; a second determining module 5023, configured to determine whether the input of the first encoded string is completed; the executing module 5024 is used for continuing to execute the touch strength determining module if the input is not finished; if the input is completed, the delete module 504 is executed.
Preferably, the input method error correction apparatus provided in the embodiment of the present invention further includes: a range value receiving module 512, configured to receive an upper limit value and a lower limit value of the currently set touch force range, which are input; or, the touch operation receiving module 514 is configured to receive touch operations of a set number of times input by the user, determine a touch strength corresponding to each touch operation, and determine the currently set touch strength range according to each touch strength.
Preferably, the input method error correction apparatus provided in the embodiment of the present invention further includes: the first adjusting module 516 is configured to, when there is no marked code character in the input first code character string and a candidate entry corresponding to the first code character string is displayed on a screen of a user, keep a currently set touch force range unchanged.
Preferably, the input method error correction apparatus provided in the embodiment of the present invention further includes: the second adjusting module 518 is configured to, when the marked code character exists in the input first code character string and the candidate entry corresponding to the code character string after the error correction is performed on the screen of the user, keep the currently set touch force range unchanged.
Preferably, the input method error correction apparatus provided in the embodiment of the present invention further includes: a third adjusting module 520, configured to, when there is a marked code character in the input first code character string and a candidate entry corresponding to a code character string that is not corrected by the user on the screen, adjust the currently set touch strength range according to the touch strength range increase factor and the touch strength increase coefficient, and update the currently set touch strength range to the adjusted touch strength range.
Preferably, the input method error correction apparatus provided in the embodiment of the present invention further includes: a fourth adjusting module 522, configured to, when there is no marked code character in the input first code character string and the user performs a lattice-quitting operation, adjust the currently set touch strength range according to the touch strength range increase factor and the touch strength increase coefficient, and update the currently set touch strength range to the adjusted touch strength range.
Preferably, the input method error correction apparatus provided in the embodiment of the present invention further includes: the adjacent key position error correction module 524 is configured to perform error correction on the coded characters of the adjacent key positions of the first coded character string to generate a third coded character string; a third entry determining module 526, configured to determine a candidate entry corresponding to the third encoded character string.
Preferably, the neighbor key correction module 524 includes: a marker determining module 5241 for determining the marked code characters in the first code string; a code character searching module 5242 for searching for code characters adjacent to at least one marked code character from the adjacent key table; a replacing module 5243, configured to replace the marked code character in the first code string with the found code character to generate a third code string.
The input method error correction device of the embodiment of the present invention is used to implement the corresponding input method error correction method in the first embodiment and the second embodiment, and has the beneficial effects of the corresponding method embodiments, which are not described herein again.
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.
EXAMPLE five
Referring to fig. 6, a block diagram of an apparatus for error correction of an input method according to a fifth embodiment of the present invention is shown.
Fig. 6 is a block diagram illustrating an apparatus 600 for error correction of an input method 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 810 also 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 having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform an input method error correction method, the method comprising: receiving an input first code character string, and marking code characters of which the touch control strength falls outside a currently set touch control strength range in the input first code character string; deleting the marked code characters in the first code character string to generate a second code character string; determining a candidate entry corresponding to the first coding character string; determining a candidate entry corresponding to the second coding character string; and sequencing the candidate entries according to a set rule, and displaying according to the sequence.
Fig. 7 is a schematic structural diagram of a server in an embodiment of the present invention. The server 1900 may vary widely by configuration or performance and may include one or more Central Processing Units (CPUs) 1922 (e.g., one or more processors) and memory 1932, one or more storage media 1930 (e.g., one or more mass storage devices) storing applications 1942 or data 1944. Memory 1932 and storage medium 1930 can be, among other things, transient or persistent storage. The program stored in the storage medium 1930 may include one or more modules (not shown), each of which may include a series of instructions operating on a server. Still further, a central processor 1922 may be provided in communication with the storage medium 1930 to execute a series of instruction operations in the storage medium 1930 on the server 1900.
The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input-output interfaces 1958, one or more keyboards 1956, and/or one or more operating systems 1941, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The above detailed description is made on an input method error correction scheme provided by the present invention, and a specific example is applied in the present document to explain the principle and the implementation of the present invention, and the description of the above example is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
The input method error correction schemes provided herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The structure required to construct a system incorporating aspects of the present invention will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in an input method error correction scheme according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (9)

1. An input method error correction method, comprising:
receiving an input first code character string, and marking code characters of which the touch control strength falls outside a currently set touch control strength range in the input first code character string;
deleting the marked code characters in the first code character string and generating a second code character string;
determining a candidate entry corresponding to the first coding character string;
determining a candidate entry corresponding to the second coding character string;
sorting and displaying the candidate entries according to a set rule;
when the marked code characters exist in the input first code character string and candidate entries corresponding to the code character string which is not corrected by the user on the screen are found, the currently set touch control strength range is adjusted according to the touch control strength range increasing factor and the touch control strength increasing coefficient, and the currently set touch control strength range is updated to the adjusted touch control strength range.
2. The method according to claim 1, wherein the step of receiving an input code string, and marking the code string in the first code string whose touch strength is outside a currently set touch strength range includes:
receiving a code character and determining the touch control strength when the code character is input;
when the touch control strength is out of the currently set touch control strength range, marking the code characters;
judging whether the input of the first coding character string is finished;
if the input is not finished, continuing to execute the step of receiving the code characters and simultaneously determining the touch control strength when the code characters are input;
and if the input is finished, executing the step of deleting the marked code characters in the first code character string and generating a second code character string.
3. The method according to claim 1, wherein the currently set touch strength range is obtained by:
respectively receiving an upper limit value and a lower limit value of the currently set touch control force range;
alternatively, the first and second electrodes may be,
the method comprises the steps of receiving touch control operation of set times input by a user, determining touch control strength corresponding to each touch control operation, and determining the currently set touch control strength range according to each touch control strength.
4. The method of claim 1, wherein the input method error correction method further comprises:
and when the marked code characters do not exist in the input first code character string and the candidate entry corresponding to the first code character string is displayed on the screen by the user, keeping the currently set touch control force range unchanged.
5. The method of claim 1, wherein the input method error correction method further comprises:
and when the marked code characters exist in the input first code character string and the candidate entry corresponding to the code character string after error correction is displayed on the screen of the user, keeping the currently set touch control force range unchanged.
6. The method of claim 1, wherein the input method error correction method further comprises:
when the marked code characters do not exist in the input first code character string and the user executes the grid quitting operation, adjusting the currently set touch control strength range according to the touch control strength range increasing factor and the touch control strength increasing coefficient, and updating the currently set touch control strength range into the adjusted touch control strength range.
7. The method of claim 1, wherein the input method error correction method further comprises:
carrying out error correction on the coding characters adjacent to the key positions on the first coding character string to generate a third coding character string;
and determining a candidate entry corresponding to the third encoding character string.
8. The method of claim 7, wherein said error correcting the first encoded string with the encoded characters adjacent to the key locations to generate a third encoded string comprises:
determining the marked code character in the first code character string;
finding out at least one code character adjacent to the marked code character from the adjacent key position table;
and correspondingly replacing the marked code characters in the first code character string with the searched code characters to generate a third code character string.
9. An input method error correction apparatus, comprising:
the marking module is used for receiving an input first coded character string and marking coded characters of which the touch control strength is out of the currently set touch control strength range when the input coded characters are in the first coded character string;
the deleting module is used for deleting the marked code characters in the first code character string and generating a second code character string;
the first entry determining module is used for determining a candidate entry corresponding to the first coding character string;
the second entry determining module is used for determining a candidate entry corresponding to the second coding character string;
the display module is used for sequencing and displaying the candidate entries according to a set rule;
and the third adjusting module is used for adjusting the currently set touch control strength range according to the touch control strength range increasing factor and the touch control strength increasing coefficient and updating the currently set touch control strength range into the adjusted touch control strength range when the marked code characters exist in the input first code character string and the candidate entries corresponding to the code character string after the user does not perform screen error correction.
CN201510940077.1A 2015-12-15 2015-12-15 Input method error correction method and device Active CN106886294B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510940077.1A CN106886294B (en) 2015-12-15 2015-12-15 Input method error correction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510940077.1A CN106886294B (en) 2015-12-15 2015-12-15 Input method error correction method and device

Publications (2)

Publication Number Publication Date
CN106886294A CN106886294A (en) 2017-06-23
CN106886294B true CN106886294B (en) 2020-10-27

Family

ID=59175127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510940077.1A Active CN106886294B (en) 2015-12-15 2015-12-15 Input method error correction method and device

Country Status (1)

Country Link
CN (1) CN106886294B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109271037B (en) * 2017-07-13 2022-09-09 北京搜狗科技发展有限公司 Method and device for establishing error correction word bank
CN109558016B (en) * 2017-09-25 2022-12-13 北京搜狗科技发展有限公司 Input method and device
CN110673753B (en) * 2018-07-03 2024-04-12 北京搜狗科技发展有限公司 Key false touch error correction method and device
CN109471539B (en) * 2018-10-23 2023-06-06 维沃移动通信有限公司 Input content modification method and mobile terminal
CN109656384B (en) * 2018-12-24 2023-07-18 抖音视界有限公司 Character string input method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5635958A (en) * 1992-12-09 1997-06-03 Matsushita Electric Industrial Co., Ltd. Information inputting and processing apparatus
CN101350004A (en) * 2008-09-11 2009-01-21 北京搜狗科技发展有限公司 Method for forming personalized error correcting model and input method system of personalized error correcting
CN101644959A (en) * 2008-08-08 2010-02-10 深圳富泰宏精密工业有限公司 System and method for inputting characters by utilizing key induced prompts
CN101937313A (en) * 2010-09-13 2011-01-05 中兴通讯股份有限公司 Dynamic generation and input method and device for touch keyboard
CN102156551A (en) * 2011-03-30 2011-08-17 北京搜狗科技发展有限公司 Method and system for correcting error of word input
CN102637164A (en) * 2011-02-12 2012-08-15 网际智慧股份有限公司 System and method for combining single-character word with multi-character word
CN104199607A (en) * 2014-08-11 2014-12-10 北京搜狗科技发展有限公司 Candidate selection method and device based on input method
CN104932829A (en) * 2015-07-07 2015-09-23 努比亚技术有限公司 Device and method for controlling output modes

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012203622A (en) * 2011-03-25 2012-10-22 Panasonic Corp Input device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5635958A (en) * 1992-12-09 1997-06-03 Matsushita Electric Industrial Co., Ltd. Information inputting and processing apparatus
CN101644959A (en) * 2008-08-08 2010-02-10 深圳富泰宏精密工业有限公司 System and method for inputting characters by utilizing key induced prompts
CN101350004A (en) * 2008-09-11 2009-01-21 北京搜狗科技发展有限公司 Method for forming personalized error correcting model and input method system of personalized error correcting
CN101937313A (en) * 2010-09-13 2011-01-05 中兴通讯股份有限公司 Dynamic generation and input method and device for touch keyboard
CN102637164A (en) * 2011-02-12 2012-08-15 网际智慧股份有限公司 System and method for combining single-character word with multi-character word
CN102156551A (en) * 2011-03-30 2011-08-17 北京搜狗科技发展有限公司 Method and system for correcting error of word input
CN104199607A (en) * 2014-08-11 2014-12-10 北京搜狗科技发展有限公司 Candidate selection method and device based on input method
CN104932829A (en) * 2015-07-07 2015-09-23 努比亚技术有限公司 Device and method for controlling output modes

Also Published As

Publication number Publication date
CN106886294A (en) 2017-06-23

Similar Documents

Publication Publication Date Title
US20200159392A1 (en) Method of processing content and electronic device thereof
CN107102746B (en) Candidate word generation method and device and candidate word generation device
CN106886294B (en) Input method error correction method and device
US9977779B2 (en) Automatic supplementation of word correction dictionaries
US20180366119A1 (en) Audio input method and terminal device
CN107870677B (en) Input method, input device and input device
CN107340880B (en) Association input method and device and electronic equipment for realizing association input
CN104123937A (en) Method, device and system for reminding setting
CN107918496B (en) Input error correction method and device for input error correction
CN107436691A (en) A kind of input method carries out method, client, server and the device of error correction
US20120221969A1 (en) Scrollable list navigation using persistent headings
CN107291772B (en) Search access method and device and electronic equipment
CN107688399B (en) Input method and device and input device
CN108958503A (en) input method and device
CN108803890B (en) Input method, input device and input device
CN107564526B (en) Processing method, apparatus and machine-readable medium
CN109783244B (en) Processing method and device for processing
CN112989148A (en) Error correction word ordering method and device, terminal equipment and storage medium
CN107613109B (en) Input method of mobile terminal, mobile terminal and computer storage medium
CN110795014A (en) Data processing method and device and data processing device
CN109992120B (en) Input error correction method and device
KR102327790B1 (en) Information processing methods, devices and storage media
CN109426354B (en) Input method, device and device for input
CN110780749B (en) Character string error correction method and device
CN109144286B (en) Input method and device

Legal Events

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