CN110488990A - Input error correction method and device - Google Patents

Input error correction method and device Download PDF

Info

Publication number
CN110488990A
CN110488990A CN201910741374.1A CN201910741374A CN110488990A CN 110488990 A CN110488990 A CN 110488990A CN 201910741374 A CN201910741374 A CN 201910741374A CN 110488990 A CN110488990 A CN 110488990A
Authority
CN
China
Prior art keywords
key
character string
user
association
soft keyboard
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910741374.1A
Other languages
Chinese (zh)
Inventor
鲁四喜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910741374.1A priority Critical patent/CN110488990A/en
Publication of CN110488990A publication Critical patent/CN110488990A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques
    • 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
    • G06F3/0237Character input methods using prediction or retrieval techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Document Processing Apparatus (AREA)

Abstract

Embodiment of the disclosure provides a kind of input error correction method and device.The input error correction method includes: the enter key for identifying user on soft keyboard, to generate character string according to the enter key;Dictionary is inquired according to the character string;If do not found in the dictionary it is with the string matching as a result, if according to the associated key of each enter key of user on soft keyboard, generate associated character string;Association's matching result is searched in the dictionary with the associated character string;Association's matching result is fed back into the user, for user selection.The embodiment of the present disclosure can correct user when inputting using soft keyboard, accidentally press or leak the input error generated by the key on soft keyboard.

Description

Input error correction method and device
Technical field
This disclosure relates to field of computer technology, in particular to a kind of input error correction method and device.
Background technique
Touch screen smart phone has become current mainstream mobile phone, and people's lives also increasingly be unable to do without mobile phone, use mobile phone When being chatted or being handled official business, inevitably need to input text.To allow users to carry out text input, lead in smart phone It is standing to have soft keyboard.But the screen size of smart phone is limited, and the soft keyboard being disposed therein is usually smaller, on soft keyboard Interval between key and key and key is also corresponding smaller, and easily causing user, for mistake by key, generating includes one in input Or the character string of several error characters;In input, it is also possible to input error can be led to by the blank position on soft keyboard, It cannot be inputted according to user and generate reasonable word or word.
Common computor-keyboard, non-smart mobile phone keyboard are usually mechanical keyboard, and mechanical keyboard does not have the triggering of soft keyboard High sensitivity, and the input face of mechanical keyboard is usually larger, key area is big, and position is clearly demarcated between key and key, seldom makes The mistake easily occurred when being inputted with soft keyboard by or not by middle situation.And the mechanism for correcting errors in existing input method, it is based on machine more The setting of tool keyboard, to use that soft keyboard easily occurs when inputting it is wrong by, leakage by brought input error, without very good solution Scheme.
It should be noted that information is only used for reinforcing the reason to the background of the disclosure disclosed in above-mentioned background technology part Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
Embodiment of the disclosure provides a kind of input error correction method and device, and then at least to a certain extent can be right When user is inputted using soft keyboard, it is wrong by or leakage carry out intelligence by input error caused by the key on soft keyboard and entangle Just.
Other characteristics and advantages of the disclosure will be apparent from by the following detailed description, or partially by the disclosure Practice and acquistion.
According to the one aspect of the embodiment of the present disclosure, a kind of input error correction method is disclosed, comprising:
Enter key of the user on soft keyboard is identified, to generate character string according to the enter key;
Dictionary is inquired according to the character string;
If do not found in the dictionary it is with the string matching as a result, if according to each of user on soft keyboard The associated key of enter key generates associated character string;
Association's matching result is searched in the dictionary with the associated character string;
Association's matching result is fed back into the user, for user selection.
According to the one aspect of the embodiment of the present disclosure, a kind of input error correction method is disclosed, comprising:
Continuous input position sequence for character string of the user on soft keyboard is obtained, in the continuous input position sequence At least one input position does not correspond to any one key on soft keyboard;
According to the associated key of at least one input position on soft keyboard, associated character string is generated;
Association's matching result is searched in the dictionary with the associated character string;
Association's matching result is fed back into the user, for user selection.
According to one embodiment of the disclosure, each input position at least one described input position will The character of the associated key of the input position on the soft keyboard, as the corresponding candidate characters of the input position, then traverses The combination of the corresponding candidate characters of each input position at least one described input position, every kind of combination are used as a relevant character After string, the method also includes:
For each input position at least one described input position, according to where candidate characters on the soft keyboard Key at a distance from the input position, determine the weight of the candidate characters;
By the multiplied by weight of candidate characters each in the associated character string, the weight of the associated character string is obtained;
It is described that association's matching result is fed back into the user, for user selection, comprising: by the matching As a result it sorts according to the sequence of the weight of corresponding associated character string, for user selection.
According to one embodiment of the disclosure, each input position at least one described input position will The character of the associated key of the input position on the soft keyboard, as the corresponding candidate characters of the input position, then traverses The combination of the corresponding candidate characters of each input position at least one described input position, every kind of combination are used as a relevant character After string, the method also includes:
For each input position at least one described input position, according to where candidate characters on the soft keyboard Key determines the weight of the candidate characters at a distance from the input position;
By the multiplied by weight of candidate characters each in the associated character string, the weight of the associated character string is obtained;
It is described to search association's matching result in the dictionary with the associated character string, comprising: with the relevant character String finds multiple association's matching results, each association's matching result corresponding one common degree weight in the dictionary;
It is described that association's matching result is fed back into the user, for user selection, comprising:
By the weight of the corresponding associated character string of association's matching result multiplied by the common degree of association's matching result Weight obtains total weight of association's matching result;
Association's matching result is sorted according to the sequence of total weight, for user selection.
According to the third aspect of an embodiment of the present disclosure, a kind of input error correction device is disclosed, comprising:
First generation unit, enter key of the user on soft keyboard for identification, to generate character according to the enter key String;
Query unit, for inquiring dictionary according to the character string;
Second generation unit, for if do not found in the dictionary it is with the string matching as a result, if basis The associated key of each enter key of user on soft keyboard generates associated character string;
First searching unit, for searching association's matching result in the dictionary with the associated character string;
First feedback unit, for association's matching result to be fed back to the user, for user selection.
According to a fourth aspect of embodiments of the present disclosure, a kind of input error correction device is disclosed, comprising:
Acquiring unit, for obtaining continuous input position sequence for character string of the user on soft keyboard, this is continuous At least one input position does not correspond to any one key on soft keyboard in input position sequence;
Third generation unit generates relevant character for the associated key according at least one input position on soft keyboard String;
Second searching unit, for searching association's matching result in the dictionary with the associated character string;
Second feedback unit, for association's matching result to be fed back to the user, for user selection.
According to a fifth aspect of the embodiments of the present disclosure, a kind of calculating equipment, including memory, processor and storage are disclosed On a memory and the computer instruction that can run on a processor, the processor realize above-mentioned input when executing described instruction The step of error correction method.
According to a sixth aspect of an embodiment of the present disclosure, a kind of computer readable storage medium is disclosed, calculating is stored with The step of machine instruction, which realizes above-mentioned input error correction method when being executed by processor.
In one embodiment of the disclosure, if user when pressing the enter key on soft keyboard, has accidentally pressed surrounding Other keys, the character string inquiry dictionary that at this moment enter key according to user on soft keyboard generates is that can not find matching knot mostly Fruit.Therefore, according to the associated key (key of such as surrounding) of each enter key of user on soft keyboard, associated character string is generated, with Associated character string searches association's matching result in the dictionary, association's matching result is fed back to the user, for user Selection, this makes it possible to remain to return to correct result when accidentally having pressed other keys around correct key in user.
In one embodiment of the disclosure, if user has pressed correct key when pressing the enter key on soft keyboard Side does not have the position of any key, and each position that at this moment user presses on soft keyboard still forms a position sequence, only not Crossing in the sequence may have at least one input position not correspond to any one key on soft keyboard.Therefore, according on soft keyboard The associated key (such as center key) nearest from the input position of at least one input position, generates associated character string, to close Connection character string searches association's matching result in dictionary, and association's matching result is fed back to the user, for selection by the user, this Sample can remain to when having pressed the position beside correct key without any key when user presses the enter key on soft keyboard Return to correct result.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.It should be evident that the accompanying drawings in the following description is only the disclosure Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.In the accompanying drawings:
Fig. 1 is the general frame of the architecture of embodiment of the present disclosure application;
Each mould that Fig. 2A-Fig. 2 B is the dictionary that the embodiment of the present disclosure is related in embodiment of the present disclosure Fig. 1 and processor includes The module frame chart of block;
Fig. 3 A is the flow chart that the embodiment of the present disclosure carries out input error correction using module each in Fig. 2A;
Fig. 3 B is the flow chart that the embodiment of the present disclosure carries out input error correction using each module in Fig. 2 B;
Fig. 4 A- Fig. 4 B be in practical applications, when carrying out input error correction based on soft keyboard, the usage state diagram of soft keyboard;
Fig. 5 is a kind of input error correction method under the scene that user misses by other keys that one embodiment of the disclosure provides Flow chart;
Fig. 6 is a kind of input error correction under the scene that user misses by other keys that one embodiment of the disclosure disclosure provides The flow chart of method;
Fig. 7 is that pressing in user of providing of one embodiment of the disclosure does not correspond to the blank input position of any key on soft keyboard Scene under it is a kind of input error correction method flow chart;
Fig. 8 is that one embodiment of the disclosure provides appointing in user by not corresponding on soft keyboard for one embodiment of disclosure offer A kind of flow chart inputting error correction method under the scene of the blank input position of He Jian;
Fig. 9 is a kind of input error correction device under the scene that user misses by other keys that one embodiment of the disclosure provides Each module connection diagram;
Figure 10 is a kind of input error correction device under the scene that user misses by other keys that one embodiment of the disclosure provides Each module connection diagram;
Figure 11 be one embodiment of the disclosure provide that one embodiment of the disclosure provides in user by not corresponding on soft keyboard A kind of each module connection diagram inputting error correction device under the scene of the blank input position of any key;
Figure 12 be one embodiment of the disclosure provide that one embodiment of the disclosure provides in user by not corresponding on soft keyboard A kind of each module connection diagram inputting error correction device under the scene of the blank input position of any key;
Figure 13 is a kind of for inputting the hardware structure diagram of the terminal device of error correction of one embodiment of disclosure offer.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the disclosure will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.
In addition, described feature, structure or characteristic can be incorporated in one or more implementations in any suitable manner In example.In the following description, many details are provided to provide and fully understand to embodiment of the disclosure.However, It will be appreciated by persons skilled in the art that can with technical solution of the disclosure without one or more in specific detail, Or it can be using other methods, constituent element, device, step etc..In other cases, it is not shown in detail or describes known side Method, device, realization or operation are to avoid fuzzy all aspects of this disclosure.
Block diagram shown in the drawings is only functional entity, not necessarily must be corresponding with physically separate entity. I.e., it is possible to realize these functional entitys using software form, or realized in one or more hardware modules or integrated circuit These functional entitys, or these functional entitys are realized in heterogeneous networks and/or processor device and/or microcontroller device.
Flow chart shown in the drawings is merely illustrative, it is not necessary to including all content and operation/step, It is not required to execute by described sequence.For example, some operation/steps can also decompose, and some operation/steps can close And or part merge, therefore the sequence actually executed is possible to change according to the actual situation.
In the specification of the disclosure, a kind of input error correction method and device are provided, in the following embodiments one by one It is described in detail.
Based on the above issues, following prioritization scheme is proposed in the embodiment of the present disclosure:
One embodiment of the disclosure provides a kind of terminal device 130, as shown in Figure 1, the terminal device 130 includes memory 140 and processor 150.One or more programs are stored in memory 140, processor 150 executes the journey that memory 140 stores Sequence generates the soft keyboard 170 that can be shown in display 160.Soft keyboard 170 be equipped be able to carry out contact action by Key, processor 150 identify enter key of the user on soft keyboard 170, can generate character string according to enter key.
Terminal device 130 is equipped with network access equipment, which includes network interface.Terminal device 130 It is connected to the network by network interface and network 120 and dictionary 110, to inquire dictionary 110, detection according to generated character string Whether the character string of input is correct or reasonable.Dictionary 110 includes " the cloud dictionary " for being stored in server end.
Fig. 2A is to the connection schematic diagram missed on soft keyboard by the 150 each module in inside of processor when progress error correction.Such as Fig. 2 Shown, processor 150 includes input method module 210, association's correction module 220, soft keyboard layout module 240 and user key-press prison Control device 230.Soft keyboard 170 is equipped with key, and each key is in display 160 in the storage soft keyboard 170 of soft keyboard layout module 240 On band of position coordinate, such as when key is square, soft keyboard layout module 240 store the square button four angles coordinate. User key-press monitor 230 obtains user's input position on display 160, and the input position that will acquire be sent to it is defeated Enter method module 210.Input method module 210 inquires soft keyboard layout module 240, if input bit according to the input position received It sets and falls in the band of position of the key stored in soft keyboard layout module 240, then using the character of the key as inputting character, To obtain the corresponding character of the input position, further according to a series of input positions of the user on soft keyboard 170, character is generated String.Finally dictionary 110 is inquired using generated character string.
If do not found in dictionary 110 it is with the string matching as a result, if input method module 210 will according to from The character string that a series of continuous input positions that family key monitor 230 obtains obtain is transferred to association's correction module 220, by Associate correction module 220 and soft keyboard layout module 240 inquired according to character string, key where character each in character string and The band of position of each key that soft keyboard layout module 240 stores on soft keyboard carries out association's error correction, generates association's character string, And dictionary 110 is inquired using association's character string.Knot is matched with the association for associating string matching if having found in dictionary 110 Fruit then generates or downloads association's matching result, and association's matching result is fed back to user, for selection by the user.Association's matching It as a result include the word or word for including in dictionary 110.Here dictionary 110 is also possible to local offline dictionary.
Fig. 2 B is to the connection schematic diagram leaked on soft keyboard by the 150 each module in inside of processor when progress error correction.Such as Fig. 3 Shown, processor 150 includes input method module 210, association's correction module 220, soft keyboard layout module 240 and user key-press prison Control device 230.User key-press monitor 230 obtains the input position of user on display 160, and the input position that will acquire It is sent to input method module 210.Input method module 210 inquires soft keyboard layout module 240 according to the input position received. If input method module 210 does not find the matched character of the input position in soft keyboard layout module 240, by user in soft key A series of continuous input positions comprising the input position on disk 170, are sent to association's correction module 220, by association's error correction Module 220 inquires soft keyboard layout module 240 according to a series of continuous input positions, generates association's character string, reuses connection Think that character string inquires dictionary, obtain association's matching result, and association's matching result of generation is fed back into user, for user's choosing It selects.Here dictionary 110 is also possible to local offline dictionary.
Fig. 3 A is the flow chart that input error correction is carried out using each module in Fig. 2A.Firstly, being used using soft keyboard 170 Family interaction, input method module 210 receive input position of the user of the acquisition of user key-press monitor 230 on soft keyboard 170, root The position area of each character keys on a display screen on the soft keyboard 170 recorded according to input position inquiry soft keyboard layout module 240 Domain obtains input character, and then according to user on soft keyboard 170 to identify enter key of the user on soft keyboard 170 A series of input positions obtain the character string comprising several input characters.
Input method module 210 inquires dictionary 110 using generated character string.If input method module 210 is in dictionary 110 Found with generated string matching as a result, then showing matched result.
If input method module 210 do not found in dictionary 110 with generated string matching as a result, if input method mould Character string is sent to association's correction module 220 by block 210.
Association's correction module 220 inquires soft keyboard layout module 240 using the key where character in the character string obtained, Obtain associated character string.Then association's correction module 220 inquires dictionary 110 using associated character string.
If association correction module 220 do not found in dictionary 110 it is matched as a result, if associate correction module 220 should Character string is transferred to display 160, shows that user inputs the character string generated as former state by display 160, may in the character string The error character generated comprising one or more because user's mistake presses soft keyboard 170.
If associating correction module 220 in dictionary, have found matched with associated character string as a result, associating correction module 220 generate this it is matched as a result, and the matched result is transferred in display 160, show that this is matched by display 160 As a result, the matched result includes middle text, Chinese word, foreign language word, foreign language phrase etc..
Fig. 3 B is the flow chart that input error correction is carried out using each module in Fig. 2 B.Firstly, being used using soft keyboard 170 Family interaction, input method module 210 receive the input position for the user that user key-press monitor 230 obtains, are looked into according to input position The band of position of each character keys on a display screen on the soft keyboard 170 that soft keyboard layout module 240 records is ask, to identify use Enter key of the family on soft keyboard 170.
When input method module 210 finds that input position is not in the position of any character in soft keyboard layout module 240 In region, the band of position comprising be not in any one character of the user that input method module 210 will acquire on soft keyboard A series of continuous input positions of interior input position pass to association's correction module 220, and being used by association's correction module 220 should A series of continuous input positions inquire user key-press monitor 230, obtain associated character string.
Then, association's correction module 220 inquires dictionary 110 using associated character string.If association's correction module 220 does not exist Find matched with associated character string in dictionary 110 as a result, then display inputs the character string generated according to user as former state, user is defeated Entering character quantity that the character string of generation includes may be one fewer than a series of continuous input positions of the user on soft keyboard 170 Or it is several.If association correction module 220 had found in dictionary 110 it is matched with associated character string as a result, if show it is matched As a result.The matched result includes middle text, Chinese word, word or phrase etc..
In the following, in conjunction with the layout of soft keyboard, being briefly described in practical applications with reference to Fig. 4 A-4B, being based on soft keyboard When carrying out input error correction, the use state of soft keyboard.
Fig. 4 A-4B is common soft keyboard layout figure in the smart machines such as mobile phone, plate.
As shown in Figure 4 A, user is first had to when using soft keyboard input Chinese character " family " according to the key on soft keyboard, defeated Enter to generate character string " jia ".If user has accidentally pressed " h " key adjacent with character " j " key, can give birth to when input generates character " j " At the character string " hia " of mistake.And when using character string " hia " inquiry dictionary, it is not found in dictionary and character string " hia " The Chinese character or word to match.When inquiring dictionary using character string " hia ", it is impossible to find matched word.
At this moment, it can obtain to be located at least partially with " h " key midpoint on soft keyboard respectively and be according to the layout of soft keyboard Character keys in the first setting border circular areas 2 at center, the second setting circle being located at centered on " i " key midpoint at least partially Character keys in shape region 3, the character being located in the third setting border circular areas 4 centered on " a " key midpoint at least partially Key.At least part is located at the character keys in the first setting border circular areas 2 using centered on " h " key midpoint as " h " key Associated key, candidate characters of the character of the associated key of " h " key as character " h ";At least part is located at " i " key midpoint and is Associated key of the character keys as " i " key in the second setting border circular areas 3 at center;At least part is located in " a " key Associated key of the character keys in third setting border circular areas 4 as " a " key centered on point.The candidate word of character h can be obtained Accord with y, g, b, n, j, u, v, n, candidate characters u, j, k, o of character i, candidate characters q, w, s, z of character a.First setting is round Region 2, second sets border circular areas 3, third setting border circular areas 4 is that the error situation during actually entering and storage is soft The soft keyboard layout module of the band of position of each key is combined setting on keyboard.
Candidate characters and former input character are combined, the character string comprising candidate characters is generated.Combined process packet It includes: candidate characters being sequentially input according in character string order corresponding with its input position, the word comprising candidate characters is obtained Symbol combination, the character combination including candidate characters is associated character string.During generating associated character string, in character string " h " character can be replaced by 8 kinds of different characters, and " i " character can be replaced by 4 kinds of different characters in character string It changes, " a " character can be replaced by 4 kinds of different characters in character string.Therefore the associated character string generated will have 9*5* 5-1 kind form.In 9*5*5-1: 9 refer to known this 9 characters of y, g, b, n, j, u, v, n, h, first 5 refer to known u, j, k, O, this 5 characters of i, second 5 refers to this 5 characters of known q, w, s, z, a, and 1 be subtracted refers to generated character string “hia”。
Dictionary 110 is inquired using generated associated character string, matched result " family ", " adding ", " good " etc. can be found, " words ", " flower ", " picture " etc..Then generate matched result " family ", " adding ", " good " etc., " words ", " flower ", " picture " etc..It will be generated Matched result is transferred in display 160 and is shown.
As shown in Figure 4 B, user is first had to when using soft keyboard input Chinese character " family " according to the key on soft keyboard, defeated Enter to generate character string " jia ".But user has accidentally pressed the blank input around character " a " key when input generates character " a " Position 1 causes to generate character string " ji " according to the input of user.But monitoring gets user and clicks on soft keyboard Three input positions then obtain continuous input position sequence of the user when inputting character string " ji ", according to continuous input position Blank input position 1 in sequence searches the associated key of each blank input position 1, using the corresponding character of associated key as time Word selection symbol, generates the associated character string comprising candidate characters.
According to the blank input position 1 in continuous input position sequence, the associated key packet of each blank input position 1 is searched Include: positioned at centered on blank input position 1 the 4th setting border circular areas 5 in character keys, will at least part be located at Associated key of the character keys in the 4th setting border circular areas 5 as blank input position centered on blank input position 1, will be empty Candidate characters of the character of the associated key of white input position as blank input position can obtain candidate characters " q ", " a ".The Four setting border circular areas 5 are by the band of position of each key on the error situation during actually entering and storage soft keyboard Soft keyboard layout module is combined setting.
Candidate characters are sequentially input and have been generated in character string at the corresponding sequence location of blank input position 1, thus will It leaks defeated candidate characters to be successively added in character string, generates associated character string.Candidate characters " q ", " a " are added to character string In " ji ", associated character string " jiq ", " jia " can be generated.
Dictionary 110 is inquired using generated associated character string, matched result " family ", " adding ", " good " etc. can be found. Then generate matched result " family ", " adding ", " good " etc..Generated matched result is transferred in display 160 and is shown Show.
One embodiment of the disclosure provides a kind of input error correction method.This method can be held by the terminal device 130 in Fig. 1 Row.As shown in figure 5, the method comprising the steps of 510 to step 550:
Step 510: enter key of the identification user on soft keyboard, to generate character string according to the enter key;
Step 520: dictionary is inquired according to the character string;
Step 530: if do not found in the dictionary it is with the string matching as a result, if use according on soft keyboard The associated key of each enter key at family generates associated character string;
Step 540: searching association's matching result in the dictionary with the associated character string;
Step 550: association's matching result being fed back into the user, for user selection.
These steps are described in detail below.
In step 510, enter key of the identification user on soft keyboard, to generate character string according to the enter key.
In one or more embodiments that the disclosure provides, the terminal device of the tangible operation such as mobile phone, tablet computer, It is usually mounted with the soft keyboard for input.Soft keyboard is equipped with the character keys for being able to carry out contact action, user key-press monitoring Device is stored with the regional location coordinate of each character keys on soft keyboard, for example, user key-press monitor is deposited when key is square Contain the coordinate at four angles of square area.User triggers the key on soft keyboard, and user key-press monitor, which can detecte out, to be used The center point coordinate of family touch area.If the center point coordinate is fallen within the regional location of a key, this is identified Character keys are enter key, generate character corresponding with the enter key, and then generate comprising a series of according to the continuous input of user The character string of character.
In step 520, dictionary is inquired according to the character string.
According to the input of user generate character string after, can according to character string inquire dictionary, search dictionary in include with Matched result is simultaneously fed back to user by the result of string matching, with for users to use.The matched result include middle text, Chinese word, foreign language word, foreign language phrase etc., dictionary here include having downloaded the local offline dictionary of storage or/and having passed through net " the cloud dictionary " for the server end that network connection is able to access that." the cloud dictionary " of server end support downloading word or word wait until it is local from Line dictionary supports user to use to save inquiry velocity.Fig. 1 shows the case where dictionary of network connection, but the actually word Library can be local dictionary.
In one embodiment, after step 520, the method also includes: if being found in dictionary and character string It is matching as a result, then showing matched result.Matched result includes middle text, Chinese word, Hanzhong text, Chinese phrase etc..Such as Dictionary is inquired using the character string " jia " of above-mentioned generation, can be found in dictionary and character string " jia " matched result " family ", " adding ", " family " etc., then generation and character string " jia " matched result Chinese character " family ", " adding ", " good " etc., and use display Device shows generated Chinese character.
In step 530, if do not found in the dictionary it is with the string matching as a result, if according to soft keyboard The associated key of each enter key of upper user generates associated character string.
According to generated character string, the key in the character string where character can be obtained, it will be where character in character string Key as enter key, the associated key of each enter key can be obtained according to each enter key.It is defeated according to each of user on soft keyboard Enter the associated key of key, associated character string can be generated.According to the associated key of each enter key of user on soft keyboard, association is generated Character string includes: inquiry soft keyboard layout module, for each enter key of user on soft keyboard, by the soft keyboard at least one Part is located at the key in the border circular areas centered on the enter key central point, as the associated key of the enter key, then traverses each The combination of character in each associated key of a enter key, every kind of combination are used as an associated character string.
For each enter key, at least part is located at the setting centered on the enter key central point on soft keyboard Key in border circular areas, the associated key as the enter key.This sets the diameter of border circular areas as setting value, and setting value is greater than Zero.Therefore, at least part of associated key is located in the setting border circular areas centered on its corresponding enter key central point.It should The diameter for setting border circular areas is arranged according to practical application situation.By taking Fig. 4 A as an example, " G " key, " Y " key, " V " key, " B " In the first border circular areas 2 that a part is located at centered on the central point of " H " key, therefore key, " N " key, " J " key, " U " key are " G " key, " Y " key, " V " key, " B " key, " N " key, " J " key, " U " key are the associated keys of " H " key.
Setting border circular areas is by the position of each key on the error situation during actually entering and storage soft keyboard The soft keyboard layout module in region is combined setting.The position area of each character keys of expression of soft keyboard layout module storage There is certain surface area in domain, if input position of the user on soft keyboard is in a character keys of soft keyboard layout module storage Any point or any position region in the band of position, then the character keys are the enter key of user.Therefore as one on soft keyboard Any location point of character keys or the band of position are triggered by user, which can be considered as the enter key of user.
The character of associated key is the candidate characters of the corresponding enter key of the associated key.For each of user on soft keyboard Enter key, the key being located at least partially in the setting border circular areas centered on the central point of the enter key on soft keyboard, Associated key as the enter key.Therefore, because the spacing very little between each character keys on soft keyboard, each enter key can There can be multiple associated keys, each character in character string there may be multiple candidate characters.
The combination for traversing the character in each associated key of each enter key includes: in character string using the every of each character A candidate characters successively character in substitute character string, generate include at least one candidate characters character combination.Such as character It include 3 characters in string, each character has 6 candidate characters, then traverses the combination of the character in each associated key of enter key, The combination of 7*7*7-1 kind character will be generated.In 7*7*7-1: 7 refer to that the character in 1 character string adds 6 candidate words of the character Symbol, 1 subtracted refer to generated character string.
All character combinations comprising at least one candidate characters that can be generated are the associated character strings of the character string. Associated character string is in the anabolic process of the character in each associated key for traverse each enter key, and generation includes at least one The character combination of a candidate characters.
In step 540, association's matching result is searched in the dictionary with the associated character string.
Using each associated character string, inquire dictionary, find with the matched association's matching result of each associated character string, with Each result that associated character string matches is a kind of association's matching result.It recites in dictionary and associated character string or character The relevant information of the result of String matching is believed according to what is recorded in dictionary to associated character string or the related of the result of string matching Breath, can generate the result with associated character string or string matching.Matching result include include in dictionary and relevant character The result of String matching.Matched result includes middle text, Chinese word, foreign language word, foreign language phrase etc., therefore associates matching result It can be middle text, Chinese word, foreign language word, foreign language phrase etc..It is to associate to match knot with the matched result of associated character string Fruit.
In step 550, association's matching result is fed back into the user, for user selection.
Association's matching result is fed back into the user, for user selection, comprising: generate association's matching knot Fruit sends association's matching result in display and shows, for selection by the user.
In addition, after step 520, in one embodiment, if not finding association's matching result, Xiang Yong in dictionary Family shows generated associated character string, so that user rights the wrong.
It in one embodiment, after step 530, can also include step 531 and step 532.
Step 531: for each enter key of user on soft keyboard, according to the associated key of the enter key and the enter key Distance determines the weight of the candidate characters.
Soft keyboard layout module is inquired, the distance between each associated key and the enter key of enter key, root can be obtained According to the distance between each associated key of enter key and enter key, weight can be set for the candidate characters in each associated key.
The associated key of enter key refers to the key position area stored in soft keyboard layout module at a distance from the enter key The central point in domain and the distance between the central point of the enter key band of position.
It includes: by the associated key and the candidate characters where the candidate characters that weight, which is arranged, for the candidate characters in associated key Weight of the inverse ratio of distance multiplied by setting value A, as the candidate characters between corresponding enter key.Pass as where candidate characters Joining the distance between key enter key corresponding with the candidate characters is L, and the weight of the candidate characters is Q, then Q=A/L.Setting value A is greater than zero.Setting value A can store the half that key range maximum length is inputted on soft keyboard, weight Q for soft keyboard layout module Greater than zero less than one.
In other embodiments, the table of comparisons between distance value and weight also can be set.By distance value from zero to L into Row equidistant partition, the corresponding weight of every section of distance.The more big corresponding weight of distance value is smaller.Soft keyboard layout module is inquired, After obtaining the distance between associated key enter key corresponding with candidate characters where candidate characters, looked into according to the distance value of acquisition The table of comparisons is ask, weight corresponding with distance value is obtained, using the weight of acquisition as the weight of the candidate characters.
Step 532: by the multiplied by weight of candidate characters each in the associated character string, obtaining the associated character string Weight.
In the associated character string obtained according to step 530, each associated character string may include one or more candidate Character.By the multiplied by weight for all candidate characters for including in associated character string, then using the value obtained after multiplication as the pass Join the weight of character string.In this way, each associated character string can obtain a weight.
In step 540, association's matching result is searched in the dictionary with the associated character string.
Using each associated character string, dictionary is inquired, is found and the matched association's matching result of each associated character string.With Each result that associated character string matches is a kind of association's matching result.Association matching result include include in dictionary with The matched result of associated character string.Matched result includes middle text, Chinese word, foreign language word, foreign language phrase etc..
In step 550, association's matching result is fed back into the user, for user selection, comprising: by institute It states matching result to sort according to the sequence of the weight of corresponding associated character string, for user selection.
Multiple associated character strings can be obtained according to step 530.It, can when inquiring dictionary using acquired associated character string There can be at least two associated character strings that can find matching association's matching knot in acquired multiple associated character strings Fruit.At this moment, matched result can be sorted according to the sequence of the weight of corresponding associated character string.By matched result according to The sequence sequence of the weight of corresponding associated character string includes: to obtain associated character string weight according to step 531 and step 532 Matched result is ranked up by method from big to small according to the weight of corresponding associated character string.Then by matched result Successively feedback user in sequence, for selection by the user.Using this method, the result that family is quickly found out needs can be used.
In one embodiment, in step 540, association's matching knot is searched in the dictionary with the associated character string Fruit includes: to find multiple association's matching results in the dictionary with the associated character string, each association's matching result pair Answer a common degree weight.
Using each associated character string, inquire dictionary, find with the matched association's matching result of each associated character string, with Each result that associated character string matches is a kind of association's matching result.Association matching result include include in dictionary with The matched result of associated character string.Matched result includes middle text, Chinese word, foreign language word, foreign language phrase etc., therefore, connection Think that matching result can be middle text, Chinese word, foreign language word, foreign language phrase etc..
Each association's matching result can correspond to a common degree weight.It is each association matching result common degree weight be Acquisition is calculated according to usage amount of the user to association's matching result in dictionary.User's usage amount of association's matching result is got over Greatly, the common degree weight of association's matching result is bigger.
In step 550, association's matching result is fed back into the user, for user selection, including step 551 and step 552.
Step 551: by the weight of the corresponding associated character string of association's matching result multiplied by association's matching result Common degree weight, obtain it is described association matching result total weight.
Step 532 calculating obtains associated character string.It, can in step 540 when using associated character string inquiry dictionary Obtain the weight of the corresponding association's matching result of associated character string.By the corresponding associated character string of acquired association's matching result Weight multiplied by the common degree weight of association's matching result, total weight of association's matching result can be obtained.
Step 552: association's matching result being sorted according to the sequence of total weight, for user selection.
By association's matching result according to total weight sequencing of acquired association's matching result include: by association match tie Fruit is ranked up from big to small according to its total weight, and association's matching result is successively then fed back to user in sequence, for User's selection.Using this method, the result that family is quickly found out needs can be used.
Above-mentioned steps can to user when being inputted using soft keyboard, since soft keyboard is smaller, cause user accidentally by Think the other keys around enter key, lead to the character string for generating mistake, user inquires dictionary using the character string of mistake When, the error correction that the case where not finding matched result carries out allows users to after using the error correction method, and being quickly found out needs The result wanted.The result of user's needs can be quickly generated to mistake of the user on soft keyboard by error correction is carried out using this method.
One embodiment of the disclosure provides a kind of input error correction method.This method can be held by the terminal device 130 in Fig. 1 Row.As shown in fig. 7, the method comprising the steps of 710 to step 740:
Step 710: obtaining continuous input position sequence for character string of the user on soft keyboard, the continuous input bit It sets at least one input position in sequence and does not correspond to any one key on soft keyboard;
Step 720: according to the associated key of at least one input position on soft keyboard, generating associated character string;
Step 730: searching association's matching result in the dictionary with the associated character string;
Step 740: association's matching result being fed back into the user, for user selection.
These steps are described in detail below.
In step 720, continuous input position sequence for character string of the user on soft keyboard is obtained, this is continuous defeated Enter at least one input position in position sequence and does not correspond to any one key on soft keyboard.
In one or more embodiments that the disclosure provides, the soft key in the terminal devices such as mobile phone, tablet computer is used It, usually can be accidentally by the blank position between the character keys on soft keyboard or in soft key Disc border, to generate when disk is inputted The input position for not corresponding to any one key on soft keyboard causes input method module to be somebody's turn to do according to what user key-press monitor recorded When not corresponding to any one key inquiry soft keyboard layout module on soft keyboard, word corresponding with the input position can not be found Symbol.At this moment, continuous input position sequence for character string of the user on soft keyboard is obtained, in the continuous input position sequence At least one input position does not correspond to any one key on soft keyboard.
In step 720, according to the associated key of at least one input position on soft keyboard, associated character string is generated.
According to the associated key of at least one input position on soft keyboard, generating associated character string includes: at least one It is a not correspond on soft keyboard each input position in the input position of any one key, by least part position on soft keyboard Key in the setting border circular areas centered on the input position, as the associated key of the input position, by the word of associated key Symbol is as the corresponding candidate characters of each input position, then traverses the corresponding candidate word of each input position at least one input position The combination of symbol, every kind of combination are used as an associated character string.Therefore, at least part of associated key is located at its corresponding input In setting operation area centered on position, this sets the diameter of border circular areas as setting value, and setting value is greater than zero.Setting circle The diameter in shape region is arranged according to practical application situation.By taking Fig. 4 B as an example, " A " key is entirely located in blank input position 1 Centered on the 4th setting border circular areas 5 in, a part of " Q " key is located at the 4th setting centered on blank input position 1 In border circular areas 5, then " A " key, " Q " key are the associated keys of blank input position 1.Setting border circular areas is that will actually enter The soft keyboard layout module of the band of position of each key is combined setting on error situation and storage soft keyboard in journey.
The combination of the corresponding candidate characters of each input position at least one described input position, every kind of group cooperation are traversed again For an associated character string, comprising: the input position that at least one does not correspond to any one key on soft keyboard for this, by this Each candidate characters of input position are sequentially input at the correspondence order of the input position in character string, and what is sequentially generated includes difference All character combinations of candidate characters.Corresponding order is determined by the input order of input position each in character string, as this is defeated Enter position and come third position in input order, then corresponding to order is the order in character string for third character.
As do not corresponded to any one key on soft keyboard comprising two in the continuous input position sequence in a character string Input position, there are six candidate characters for each input position tool, then being directed to each input position, then by the input position Candidate characters sequentially input at the correspondence order of the input position in character string, sequentially generate comprising different candidate characters All character combinations, 6*6 kind character combination can be generated, every kind of combination is used as an associated character string.
In step 730, association's matching result is searched in the dictionary with the associated character string.
Using each associated character string, inquire dictionary, find with the matched association's matching result of each associated character string, with Each result that associated character string matches is a kind of association's matching result.Association matching result include include in dictionary with The matched result of associated character string.Matched result includes middle text, Chinese word, foreign language word, foreign language phrase etc..
In step 740, association's matching result is fed back into the user, for user selection.
Association's matching result is fed back into the user, for user selection, comprising: generate association's matching knot Fruit sends association's matching result in display and shows, for selection by the user.
In addition, after step 730, in one embodiment, if not finding association's matching result, Xiang Yong in dictionary Family shows generated associated character string, so that user rights the wrong.
It in one embodiment, after stage 720, can also include step 721 and step 722.
Step 721: for each input position at least one described input position, according to candidate word on the soft keyboard Key where according with determines the weight of the candidate characters at a distance from the input position.
Inquiry soft keyboard layout module can be obtained for each input position at least one described input position Key where the candidate characters of the input position is at a distance from the input position.The associated key of enter key is at a distance from the enter key Refer between the central point in the key position region stored in soft keyboard layout module and the central point of the enter key band of position Distance.Key where the candidate characters of input position on soft keyboard can be the input at a distance from the input position Weight is arranged in the candidate characters of position.For each input position at least one input position, the soft keyboard can be obtained Key where upper candidate characters is at a distance from the input position, comprising: defeated for each at least one described input position Enter position, the key on soft keyboard where the candidate characters of the input position can be obtained at a distance from the input position.
It includes: by the distance of the key of candidate characters and the corresponding input position of candidate characters that weight, which is arranged, for candidate characters Weight of the inverse ratio multiplied by setting value A, as candidate characters.As the distance between the corresponding associated key of candidate characters and enter key are L, the weight of candidate characters are Q, then Q=A/L.Setting value A is greater than zero.Setting value A is the character of soft keyboard layout module storage The half of key range maximum length, weight Q are greater than zero less than one.
In other embodiments, the table of comparisons between distance value and weight also can be set.By distance value from zero to L into Row equidistant partition, the corresponding weight of every section of distance.The more big corresponding weight of distance value is smaller.Soft keyboard layout module is inquired, After obtaining the key of candidate characters and the distance of the corresponding input position of candidate characters, the table of comparisons is inquired according to the distance value of acquisition, Weight corresponding with distance value is obtained, using the weight of acquisition as the weight of the candidate characters.
Step 722: by the multiplied by weight of candidate characters each in the associated character string, obtaining the associated character string Weight.
In the associated character string obtained according to step 720, each associated character string may include one or more candidate Character.By the multiplied by weight for all candidate characters for including in associated character string, then using the value obtained after multiplication as the pass Join the weight of character string.In this way, each associated character string can obtain a weight.
In step 730, association's matching result is searched in the dictionary with the associated character string.
Using each associated character string, inquire dictionary, find with the matched association's matching result of each associated character string, with Each result that associated character string matches is a kind of association's matching result.Association matching result include include in dictionary with The matched result of associated character string.Matched result includes middle text, Chinese word, foreign language word, foreign language phrase etc..
In step 740, association's matching result is fed back into the user, for user selection, comprising: by institute It states matching result to sort according to the sequence of the weight of corresponding associated character string, for user selection.
Multiple associated character strings can be obtained according to step 720.It, can when inquiring dictionary using acquired associated character string There can be at least two associated character strings that can find matching association's matching knot in acquired multiple associated character strings Fruit.At this moment, matched result can be sorted according to the sequence of the weight of corresponding associated character string, according to step 721 and step It is rapid 722 obtain associated character string weight methods, by matched result according to corresponding associated character string weight from big to small It is ranked up, then the successively feedback user in sequence by matched result, for selection by the user.Using this method, can make User is quickly found out the result of needs.
In one embodiment, in step 730, association's matching knot is searched in the dictionary with the associated character string Fruit can also include: to find multiple association's matching results in the dictionary with the associated character string, each association's matching As a result a common degree weight is corresponded to.
Using each associated character string, inquire dictionary, find with the matched association's matching result of each associated character string, with Each result that associated character string matches is a kind of association's matching result.Association matching result include include in dictionary with The matched result of associated character string.Recite the relevant information of the result with associated character string or string matching, root in dictionary According to the relevant information with associated character string or the result of string matching recorded in dictionary, can generate with associated character string or The result of string matching.Matching result include include in dictionary with the matched result of associated character string.Matched result packet Middle text, Chinese word, foreign language word, foreign language phrase etc. are included, therefore associates matching result and can be middle text, Chinese word, foreign language Word, foreign language phrase etc..It is to associate matching result with the matched result of associated character string.
Each association's matching result can correspond to a common degree weight.It is each association matching result common degree weight be Acquisition is calculated according to usage amount of the user to association's matching result in dictionary.The bigger association of user's usage amount matches knot The common degree weight of fruit, association's matching result is bigger.
In step 740, association's matching result is fed back into the user, for user selection, including step 741 and step 742.
Step 741: by the weight of the corresponding associated character string of association's matching result multiplied by association's matching result Common degree weight, obtain it is described association matching result total weight.
It is calculated in step 720 and obtains associated character string.In step 730 when using associated character string inquiry dictionary, energy Enough obtain the weight of the corresponding association's matching result of associated character string.By the corresponding relevant character of acquired association's matching result The weight of string can obtain total weight of association's matching result multiplied by the common degree weight of association's matching result.
Step 742: association's matching result being sorted according to the sequence of total weight, for user selection.
By association's matching result according to total weight sequencing of acquired association's matching result include: by association match tie Fruit is ranked up from big to small according to its total weight, and association's matching result is successively then fed back to user in sequence, for User's selection.Using this method, the result that family is quickly found out needs can be used.
Above-mentioned steps can be to user when being inputted using soft keyboard, and it is not right on soft keyboard that user has often accidentally pressed Should in the position of any one key, cause leakage by, at this moment need according to the continuous input position sequence of character string carry out error correction, with Just the result that user needs is generated.Use can be quickly generated to leakage of the user on soft keyboard by error correction is carried out using this method The result that family needs.
One embodiment of the application also provides a kind of input error correction device, as shown in Figure 9, comprising:
First generation unit 910, enter key of the user on soft keyboard for identification, to generate word according to the enter key Symbol string;
Query unit 920, for inquiring dictionary according to the character string;
Second generation unit 930, for if do not found in the dictionary it is with the string matching as a result, if root According to the associated key of each enter key of user on soft keyboard, associated character string is generated;
Generated character string is passed to the second generation unit 930 by query unit 920.Second generation unit, 930 basis Each character in character string obtains enter key of the user on soft keyboard.Then the second generation unit 930 is on soft keyboard Each enter key of user will be located at least partially in the border circular areas centered on the enter key central point on soft keyboard Key as the associated key of the enter key, then traverses the combination of the character in each associated key of each enter key, every kind of combination conduct One associated character string.
Then associated character string is passed to the first determination unit 931 by the second generation unit 930.First determination unit 931, For will be located at least partially with the enter key center on the soft keyboard in each enter key for user on soft keyboard The key in border circular areas centered on point as the associated key of the enter key, then traverses in each associated key of each enter key The combination of character, after every kind of combination is as an associated character string, for each enter key of user on soft keyboard, according to this The associated key of enter key determines the weight of the candidate characters at a distance from the enter key;
Associated character string and the acquired weight for being selected character are passed to the first computing unit by the first determination unit 931 932.First computing unit 932, for obtaining the association for the multiplied by weight of candidate characters each in the associated character string The weight of character string.Then the first computing unit 932 passes to the weight of associated character string and acquired associated character string First searching unit 940.
In one embodiment, the first searching unit 940, for searching connection in the dictionary with the associated character string Think matching result.The weight of the association's matching result and associated character string that find is passed to first by the first searching unit 940 Feedback unit 950.
First feedback unit 950, for association's matching result to be fed back to the user, for user choosing It selects.In the process, the first feedback unit 950 can by the matching result according to corresponding associated character string weight it is suitable Sequence sequence, for user selection.
As shown in Figure 10, in another embodiment, the weight of associated character string and acquired associated character string is received Afterwards, when the first searching unit 940 searches association's matching result with associated character string in dictionary, multiple associations can be found With as a result, each association's matching result corresponding one common degree weight.At this moment, the first searching unit 940 is downloaded or is generated each Think matching result, while obtaining the common degree weight of each association's matching result.First searching unit 940 is then by associated character string Weight, association matching result, associate matching result common degree weight pass to the first feedback unit 950.
First feedback unit 950 includes: the second computation subunit 951 and the first sorting subunit 952.
Second computation subunit 951 is by the weight of the corresponding associated character string of association's matching result multiplied by the association The common degree weight of matching result obtains total weight of association's matching result.
First sorting subunit 952 sorts association's matching result according to the sequence of total weight, for described User's selection.
The content that the unit in above embodiments executes, it is identical as the method content in above-described embodiment, here no longer It repeats.
One embodiment of the application also provides a kind of input error correction device, as shown in figure 11, comprising:
Acquiring unit 1010, obtains continuous input position sequence for character string of the user on soft keyboard, this is continuous At least one input position does not correspond to any one key on soft keyboard in input position sequence.Then acquiring unit 1010 will The continuous input position sequence obtained passes to third generation unit 1020.
Third generation unit 1020 generates relevant character according to the associated key of at least one input position on soft keyboard String.Third generation unit 1020 is for each input position at least one input position, by the input position on soft keyboard Associated key character, as the corresponding candidate characters of the input position, then traverse each defeated at least one described input position Enter the combination of the corresponding candidate characters in position, every kind of combination is used as an associated character string.Third generation unit 1020 is for extremely Each input position in a few input position will be located at least partially setting centered on the input position on soft keyboard Determine the key in border circular areas, the associated key as the input position.Then third generation unit 1020 is by generated associated characters Symbol string passes to the second determination unit 1021.
Second determination unit 1021 is directed to each input position at least one described input position, according to the soft keyboard Key where upper candidate characters determines the weight of the candidate characters at a distance from the input position.Then the second determination unit The weight of associated character string and candidate characters is passed to third computing unit 1022 by 1021.
The multiplied by weight of candidate characters each in the associated character string is obtained the association by third computing unit 1022 The weight of character string.
In one embodiment, the weight of associated character string and associated character string is passed to second and looked by third computing unit Look for unit 1030.Second searching unit 1030 searches association's matching result with the associated character string in the dictionary.Second Searching unit 1030 searches association's matching result with the associated character string in the dictionary.Then the second searching unit 1030 The weight of the association's matching result and associated character string that find is passed into the second feedback unit 1040.
Second feedback unit 1040, by the weight of the corresponding associated character string of association's matching result multiplied by the association The common degree weight of matching result obtains total weight of association's matching result.
As shown in figure 12, in another embodiment, the second searching unit 1030 is receiving associated character string and association After the weight of character string, association's matching result is searched in dictionary with associated character string, multiple association's matching knots can be found Fruit, each association's matching result corresponding one common degree weight.Second searching unit 1030 obtains multiple association's matching result And the common degree weight of each association's matching result, then by the multiple association's matching results obtained and each association matching knot The common degree weight of fruit is sent to the second feedback unit 1040.
Second feedback unit 1040 includes the 4th computation subunit 1041 and the second sorting subunit 1042.
4th computation subunit 1041 is by the weight of the corresponding associated character string of association's matching result multiplied by described The common degree weight for thinking matching result obtains total weight of association's matching result.
Second sorting subunit 1042 sorts association's matching result according to the sequence of total weight, for described User's selection.
The content that the unit in above embodiments executes, it is identical as the method content in above-described embodiment, here no longer It repeats.
The input error correction method of the embodiment of the present disclosure can terminal device 230 as shown in Figure 13 realize.Below with reference to figure 13 describe the terminal device 230 according to the embodiment of the present disclosure.The terminal device 230 that Figure 13 is shown is only an example, no The function and use scope for coping with the embodiment of the present disclosure bring any restrictions.
As shown in figure 13, terminal device 230 is showed in the form of universal computing device.The component of terminal device 230 can be with Including but not limited to: at least one above-mentioned processing unit 510, at least one above-mentioned storage unit 520, the different system components of connection The bus 530 of (including storage unit 520 and processing unit 510).
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 510 Row, so that the processing unit 510 executes described in the description section of this specification above-mentioned example method according to the present invention The step of various illustrative embodiments.For example, the processing unit 510 can be executed as shown in Fig. 5, Fig. 6, Fig. 7, Fig. 8 Each step.
Storage unit 520 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit (RAM) 5201 and/or cache memory unit 5202, it can further include read-only memory unit (ROM) 5203.
Storage unit 520 can also include program/utility with one group of (at least one) program module 5205 5204, such program module 5205 includes but is not limited to: operating system, one or more application program, other program moulds It may include the realization of network environment in block and program data, each of these examples or certain combination.
Bus 530 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures Local bus.
Terminal device 230 can also be with one or more external equipments 600 (such as keyboard, sensing equipment, bluetooth equipment Deng) communication, can also be enabled a user to one or more equipment interact with the terminal device 230 communicate, and/or with make Any equipment (such as the router, modulation /demodulation that the terminal device 230 can be communicated with one or more of the other calculating equipment Device etc.) communication.This communication can be carried out by input/output (I/O) interface 550.Also, terminal device 230 can be with By network adapter 560 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, Such as internet) communication.As shown, network adapter 560 is communicated by bus 530 with other modules of terminal device 230. It should be understood that although not shown in the drawings, other hardware and/or software module can not used in conjunction with terminal device 230, including but not Be limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and Data backup storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, terminal installation or network equipment etc.) is executed according to disclosure embodiment Method.
In an exemplary embodiment of the disclosure, a kind of computer program medium is additionally provided, computer is stored thereon with Readable instruction makes computer execute the above method and implements when the computer-readable instruction is executed by the processor of computer The method of example part description.
According to one embodiment of the disclosure, a kind of journey for realizing the method in above method embodiment is additionally provided Sequence product, can be using portable compact disc read only memory (CD-ROM) and including program code, and can set in terminal It is standby, such as run on PC.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing can With to be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or Person is in connection.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RGM), read-only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal, Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have Line, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages Code, described program design language include object oriented program language-JAVA, C++ etc., further include conventional Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network (WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP To be connected by internet).
It should be noted that although being referred to several modules or list for acting the equipment executed in the above detailed description Member, but this division is not enforceable.In fact, according to embodiment of the present disclosure, it is above-described two or more Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould The feature and function of block or unit can be to be embodied by multiple modules or unit with further division.
In addition, although describing each step of method in the disclosure in the accompanying drawings with particular order, this does not really want These steps must be executed in this particular order by asking or implying, or having to carry out step shown in whole could realize Desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/ Or a step is decomposed into execution of multiple steps etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, mobile terminal or network equipment etc.) is executed according to disclosure embodiment Method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by appended Claim is pointed out.

Claims (10)

1. a kind of input error correction method characterized by comprising
Enter key of the user on soft keyboard is identified, to generate character string according to the enter key;
Dictionary is inquired according to the character string;
If do not found in the dictionary it is with the string matching as a result, if according to each input of user on soft keyboard The associated key of key generates associated character string;
Association's matching result is searched in the dictionary with the associated character string;
Association's matching result is fed back into the user, for user selection.
2. input error correction method according to claim 1, which is characterized in that described defeated according to each of user on soft keyboard Enter the associated key of key, generate associated character string, comprising:
For each enter key of user on soft keyboard, will be located at least partially with the enter key central point on the soft keyboard Centered on setting border circular areas in key, as the associated key of the enter key, then traverse in each associated key of each enter key Character combination, every kind combination be used as an associated character string.
3. input error correction method according to claim 2, which is characterized in that in each input for user on soft keyboard Key, the key being located at least partially in the setting border circular areas centered on the enter key central point on the soft keyboard, makees For the associated key of the enter key, then the combination of the character in each associated key of each enter key is traversed, every kind of combination is used as one After associated character string, the method also includes:
The character of the associated key is the candidate characters of enter key corresponding to the associated key, for user on soft keyboard Each enter key, the key where candidate characters on the soft keyboard determines the candidate characters at a distance from the enter key Weight;
By the multiplied by weight of candidate characters each in the associated character string, the weight of the associated character string is obtained;
It is described that association's matching result is fed back into the user, for user selection, comprising: by the matching result According to the sequence sequence of the weight of corresponding associated character string, for user selection.
4. input error correction method according to claim 2, which is characterized in that in each input for user on soft keyboard Key, the key being located at least partially in the setting border circular areas centered on the enter key central point on the soft keyboard, makees For the associated key of the enter key, then the combination of the character in each associated key of each enter key is traversed, every kind of combination is used as one After associated character string, the method also includes:
For each enter key of user on soft keyboard, according to the associated key of the enter key at a distance from the enter key, determining should The weight of candidate characters;
By the multiplied by weight of candidate characters each in the associated character string, the weight of the associated character string is obtained;
It is described to search association's matching result in the dictionary with the associated character string, comprising: to be existed with the associated character string Multiple association's matching results, each association's matching result corresponding one common degree weight are found in the dictionary;
It is described that association's matching result is fed back into the user, for user selection, comprising:
By the weight of the corresponding associated character string of association's matching result multiplied by the common degree weight of association's matching result, Obtain total weight of association's matching result;
Association's matching result is sorted according to the sequence of total weight, for user selection.
5. input error correction method according to claim 1, which is characterized in that according to the character string inquire dictionary it Afterwards, the method also includes:
If being found in the dictionary with the string matching as a result, showing matched result.
6. input error correction method according to claim 1, which is characterized in that with the associated character string in the dictionary After middle lookup association matching result, the method also includes:
If not finding association's matching result, the associated character string is shown to user.
7. a kind of input error correction method characterized by comprising
Obtain continuous input position sequence for character string of the user on soft keyboard, in the continuous input position sequence at least One input position does not correspond to any one key on soft keyboard;
According to the associated key of at least one input position on soft keyboard, associated character string is generated;
Association's matching result is searched in the dictionary with the associated character string;
Association's matching result is fed back into the user, for user selection.
8. input error correction method according to claim 7, which is characterized in that it is described according on soft keyboard this at least one it is defeated Enter the associated key of position, generate associated character string, comprising:
For each input position at least one described input position, by the pass of the input position on the soft keyboard The character for joining key as the corresponding candidate characters of the input position, then traverses each input bit at least one described input position The combination of corresponding candidate characters is set, every kind of combination is used as an associated character string.
9. a kind of input error correction device characterized by comprising
First generation unit, enter key of the user on soft keyboard for identification, to generate character string according to the enter key;
Query unit, for inquiring dictionary according to the character string;
Second generation unit, for if do not found in the dictionary it is with the string matching as a result, if according to soft key The associated key of each enter key of user on disk generates associated character string;
First searching unit, for searching association's matching result in the dictionary with the associated character string;
First feedback unit, for association's matching result to be fed back to the user, for user selection.
10. a kind of input error correction device characterized by comprising
Acquiring unit, for obtaining continuous input position sequence for character string of the user on soft keyboard, the continuous input At least one input position does not correspond to any one key on soft keyboard in position sequence;
Third generation unit generates associated character string for the associated key according at least one input position on soft keyboard;
Second searching unit, for searching association's matching result in the dictionary with the associated character string;
Second feedback unit, for association's matching result to be fed back to the user, for user selection.
CN201910741374.1A 2019-08-12 2019-08-12 Input error correction method and device Pending CN110488990A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910741374.1A CN110488990A (en) 2019-08-12 2019-08-12 Input error correction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910741374.1A CN110488990A (en) 2019-08-12 2019-08-12 Input error correction method and device

Publications (1)

Publication Number Publication Date
CN110488990A true CN110488990A (en) 2019-11-22

Family

ID=68550670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910741374.1A Pending CN110488990A (en) 2019-08-12 2019-08-12 Input error correction method and device

Country Status (1)

Country Link
CN (1) CN110488990A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111090341A (en) * 2019-12-24 2020-05-01 科大讯飞股份有限公司 Input method candidate result display method, related equipment and readable storage medium
CN111665956A (en) * 2020-04-17 2020-09-15 北京百度网讯科技有限公司 Processing method and device of candidate character string, electronic equipment and storage medium
CN111782060A (en) * 2020-06-18 2020-10-16 维沃移动通信有限公司 Object display method and device and electronic equipment
CN112346577A (en) * 2020-11-09 2021-02-09 杭州拼便宜网络科技有限公司 Input information correction method, system and related device
CN112684910A (en) * 2020-12-29 2021-04-20 维沃移动通信有限公司 Input method candidate word display method and device and electronic equipment
CN115988130A (en) * 2022-12-22 2023-04-18 山西警察学院 Method for identifying input content in motion state based on mobile phone sensor

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111090341A (en) * 2019-12-24 2020-05-01 科大讯飞股份有限公司 Input method candidate result display method, related equipment and readable storage medium
CN111665956A (en) * 2020-04-17 2020-09-15 北京百度网讯科技有限公司 Processing method and device of candidate character string, electronic equipment and storage medium
CN111782060A (en) * 2020-06-18 2020-10-16 维沃移动通信有限公司 Object display method and device and electronic equipment
CN112346577A (en) * 2020-11-09 2021-02-09 杭州拼便宜网络科技有限公司 Input information correction method, system and related device
CN112346577B (en) * 2020-11-09 2024-05-07 杭州拼便宜网络科技有限公司 Input information correction method, system and related device
CN112684910A (en) * 2020-12-29 2021-04-20 维沃移动通信有限公司 Input method candidate word display method and device and electronic equipment
WO2022143341A1 (en) * 2020-12-29 2022-07-07 维沃移动通信有限公司 Input method candidate word display method and apparatus, and electronic device
CN115988130A (en) * 2022-12-22 2023-04-18 山西警察学院 Method for identifying input content in motion state based on mobile phone sensor

Similar Documents

Publication Publication Date Title
CN110488990A (en) Input error correction method and device
CN103915095B (en) The method of speech recognition, interactive device, server and system
US10339481B2 (en) Systems and methods for generating user interface-based service workflows utilizing voice data
JP7074964B2 (en) Recommended session methods, equipment and devices
CN107111725A (en) Private information is protected in input understanding system
CN109471863A (en) Information query method and device, electronic equipment based on distributed data base
CN106104528A (en) Begin a project for screen and select and the method based on model of disambiguation
CN103631853B (en) Phonetic search based on correlation and response
CN106796608A (en) Contextual search character string synonym is automatically generated
CN109359237A (en) It is a kind of for search for boarding program method and apparatus
CN106332020A (en) Short message merging method and apparatus, and terminal device
CN109343926A (en) Application program image target display methods, device, terminal and storage medium
US10839168B2 (en) Dynamic automation of pipeline creation
US10642358B2 (en) Remote control via proximity data
CN115022098B (en) Artificial intelligence safety target range content recommendation method, device and storage medium
CN107077319A (en) Location positioning method, device, user equipment and computer program product based on Voice command
CN105955507B (en) A kind of display methods and terminal of soft keyboard
CN114238150A (en) Program code variation testing method and device
CN107295086A (en) Collect group session anti-loss method and system
CN108062401A (en) Using recommendation method, apparatus and storage medium
CN109600510A (en) A kind of keyword method for pushing, device and storage medium
CN104484421B (en) Search for the method and client of same topic user
CN111966432A (en) Verification code processing method and device, electronic equipment and storage medium
CN112860840A (en) Search processing method, device, equipment and storage medium
CN106126661B (en) The display methods and device of singer's cover

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