CN105589570B - A kind of method and apparatus handling input error - Google Patents

A kind of method and apparatus handling input error Download PDF

Info

Publication number
CN105589570B
CN105589570B CN201410572770.3A CN201410572770A CN105589570B CN 105589570 B CN105589570 B CN 105589570B CN 201410572770 A CN201410572770 A CN 201410572770A CN 105589570 B CN105589570 B CN 105589570B
Authority
CN
China
Prior art keywords
substring
character string
information
candidate information
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410572770.3A
Other languages
Chinese (zh)
Other versions
CN105589570A (en
Inventor
郝倩倩
张霓
李萍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201410572770.3A priority Critical patent/CN105589570B/en
Publication of CN105589570A publication Critical patent/CN105589570A/en
Application granted granted Critical
Publication of CN105589570B publication Critical patent/CN105589570B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a kind of method and apparatus for handling input error, the method includes: to receive the character string of input;The character string includes the first substring and the second substring;The character string is shown in character area, and the corresponding candidate information of the character string is shown in candidate regions;Determine the corresponding candidate information of first substring;Detect whether second substring malfunctions;If so, removing second substring in character string area.The embodiment of the present invention avoids user from repeatedly inputting the operation such as character string reselection candidate information, on the one hand, the keying speed of user can be effectively reduced, improve input efficiency, realization quickly and easily inputs, and improves user experience, on the other hand, the response that equipment inputs the operations such as key-press input string, selection to user can be reduced, the consumption of apparatus system resource is reduced.

Description

A kind of method and apparatus handling input error
Technical field
The present invention relates to the technical fields of input method, more particularly to a kind of method and a kind of processing for handling input error The device of input error.
Background technique
Widely available with electronic equipment, user handles this or that, such as communication, browsing commonly using electronic equipment Webpage, hair microblogging etc., user often needs to use input method procedure input word content therewith.
User causes accidentally to grasp when inputting text due to may clicking mistake etc. distraction or position Make, selected to be shielded on required text.
For example, it is assumed that user needs to input " weather today ", character string is had input in Pinyin Input mode " jintiantianqo " has found " tianqo " after having selected the corresponding candidate information " today " of character string " jintian " It is wrong, at this point, user will can only all delete " today " and " tianqo ", re-enter " jintiantianqi ".
This not only makes user's operation cumbersome, reduces input efficiency, and re-enter and will increase device resource Consumption.
Summary of the invention
The embodiment of the present invention the technical problem to be solved is that provide it is a kind of handle input error method, it is defeated to improve Enter efficiency, reduces device resource consumption.
Correspondingly, the embodiment of the invention also provides a kind of devices for handling input error, to guarantee the above method It realizes and applies.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of methods for handling input error, comprising:
Receive the character string of input;The character string includes the first substring and the second substring;
The character string is shown in character area, and the corresponding candidate information of the character string is shown in candidate regions;
Determine the corresponding candidate information of first substring;
Detect whether second substring malfunctions;If so, removing second substring in character string area.
Preferably, described to detect that the step of whether second substring malfunctions includes:
Judge whether to detect in including but not limited to specified key triggering information and specified gesture operation information It is at least one;If so, determining whether second substring malfunctions.
Preferably, the step of whether second substring malfunctions include:
Judge whether to detect error characteristic information;If so, determining whether second substring malfunctions;
Wherein, the error property information includes but is not limited to that there are error character or character are defeated for second character string Enter the information of sequence error, second substring information different with preset input habit information, and, second son At least one of character string information similar with feature input information.
Preferably, the character string is stored in buffer queue, and first substring has length information;
Described the step of removing second substring in character string area includes:
The length information of first substring is extracted in the buffer queue;
The third substring of the length information is determined for compliance in character string area;
The 4th substring is removed in character string area;4th substring is in the character string, except described Character string except third substring.
Preferably, further includes:
When the candidate information is triggered, upper screen processing is carried out to the candidate information.
Preferably, the candidate information is shown in character string area, the method further include:
When receiving back-off instruction, the candidate information in character string area is retracted as first substring.
Preferably, the candidate information by character string area retracts wraps for the step of first substring It includes:
The candidate information is removed in character string area;
The third substring is shown in character string area.
Preferably, further includes:
When receiving five substring of input, the 5th substring described in character string display, in candidate regions Show the corresponding candidate information of the 5th substring.
Preferably, further includes:
When detecting specified action event, the candidate information is removed.
Preferably, further includes:
Upper screen processing is carried out to the candidate information.
Preferably, further includes:
The candidate information is moved in area, association.
Preferably, further includes:
When the candidate information in area, the association is triggered, the candidate information in area, the association is carried out at upper screen Reason.
Preferably, further includes:
Obtain the 6th character string associated with second character string;
The 6th character string is shown in specified region.
Preferably, further includes:
When the 6th character string is triggered, the 6th character string is shown in character area;
The corresponding candidate information of the 6th substring is shown in candidate regions.
The embodiment of the invention also discloses a kind of devices for handling input error, comprising:
First character string receiving module, character string for receiving input;The character string include the first substring and Second substring;
First character string display module, for showing the character string in character area;
First candidate information display module, for showing the corresponding candidate information of the character string in candidate regions;
Candidate information determining module, for determining the corresponding candidate information of first substring;
Error detection module, for detecting whether second substring malfunctions;If so, character string is called to remove mould Block;
Character string remove module, for removing second substring in character string area.
Preferably, the error detection module includes:
First judging submodule, for judging whether to detect including but not limited to specified key triggering information and specifying At least one of gesture operation information;If so, calling the first decision sub-module;
First decision sub-module, for determining whether second substring malfunctions.
Preferably, the error detection module includes:
First judging submodule detects error characteristic information for judging whether;If so, calling second to determine submodule Block;
Second decision sub-module, for determining whether second substring malfunctions;
Wherein, the error property information includes but is not limited to that there are error character or character are defeated for second character string Enter the information of sequence error, second substring information different with preset input habit information, and, second son At least one of character string information similar with feature input information.
Preferably, the character string is stored in buffer queue, and first substring has length information;
The character string remove module includes:
Length information extracting sub-module, the length for extracting first substring in the buffer queue are believed Breath;
Substring determines submodule, the sub- character of the third for being determined for compliance with the length information in character string area String;
Substring removes submodule, for removing the 4th substring in character string area;4th substring For the character string in the character string, in addition to the third substring.
Preferably, further includes:
Shield processing module on first, for being carried out at upper screen to the candidate information when the candidate information is triggered Reason.
Preferably, the candidate information is shown in character string area, the device further include:
Rollback module, for being described by the candidate information rollback in character string area when receiving back-off instruction First substring.
Preferably, the rollback module includes:
First candidate information removes submodule, for removing the candidate information in character string area;
First substring display sub-module, for showing the third substring in character string area.
Preferably, further includes:
Second character string receiving module, when for receiving five substring of input, described in the character string display Five substrings;
Second candidate information display module shows that the 5th substring is corresponding for candidate information in candidate regions Candidate information.
Preferably, further includes:
Second candidate information remove module, for removing the candidate information when detecting specified action event.
Preferably, further includes:
Shield processing module on second, for carrying out upper screen processing to the candidate information.
Preferably, further includes:
Area's mobile module is associated, for moving to the candidate information in area, association.
Preferably, further includes:
Shield processing module in third, when being triggered for the candidate information in area, the association, in area, the association Candidate information carry out screen processing.
Preferably, further includes:
Character string obtains module, for obtaining the 6th character string associated with second character string;
Second substring display sub-module, for showing the 6th character string in specified region.
Preferably, further includes:
Third substring display sub-module, for showing institute in character area when the 6th character string is triggered State the 6th character string;
Third candidate information display module, for showing the corresponding candidate letter of the 6th substring in candidate regions Breath.
Compared with the background art, the embodiment of the present invention includes following advantages:
The embodiment of the present invention determines the corresponding candidate information of the first substring in the character string of input, is detecting mistake When, the second substring is removed, avoids user from repeatedly inputting the operation such as character string reselection candidate information, on the one hand, Neng Gouyou Effect ground reduces the keying speed of user, improves input efficiency, and realization quickly and easily inputs, and improving user experience on the other hand can The response that the operations such as key-press input string, selection are inputted to reduce equipment to user, reduces the consumption of apparatus system resource.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of the embodiment of the method for processing input error of the invention;
Fig. 2 is the exemplary diagram of a kind of display character string and candidate information of the invention;
Fig. 3 is the exemplary diagram that a kind of selected first character string of the invention corresponds to candidate information;
Fig. 4 is a kind of exemplary diagram of the second substring of removal of the invention;
Fig. 5 is a kind of exemplary diagram of upper screen operation of the invention;
Fig. 6 is a kind of exemplary diagram in area, association of the invention;
Fig. 7 is a kind of structural block diagram of the Installation practice of processing input error of the invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real Applying mode, the present invention is described in further detail.
Referring to Fig.1, a kind of step flow chart of the embodiment of the method for processing input error of the invention is shown, specifically may be used To include the following steps:
Step 101, the character string of input is received;
It should be noted that the embodiment of the present invention can be applied to have in the electronic equipment of touching device, touch dress Set may include vector pressure sensing technology touching device, resistive technologies touching device, capacitance technology touching device, infrared ray skill Art touching device, surface acoustic wave technique touching device etc.;Also it can be applied to be not configured in the electronic equipment of touching device, The embodiments of the present invention are not limited thereto.
The electronic equipment may include mobile phone, PDA (Personal Digital Assistant, personal digital assistant), Laptop computer, palm PC, computer etc., the embodiments of the present invention are not limited thereto.
These electronic equipments can usually support to include Windows, Android (Android), IOS, WindowsPhone etc. Operating system can run the application program inputted by the modes such as dummy keyboard or voice or physical keyboard.Wherein, should Dummy keyboard may include nine grids keyboard, full keyboard (such as QWERT keyboard), which may include input method journey Sequence etc..
The dummy keyboard or physical keyboard usually can have one or more keys, which is often re-used, can be with For inputting character string, inputting digital character string is can specifically include but is not limited to, English character string (may include capital and small letter English Text is female), Chinese character string (may include pinyin character string, stroke character string, five character strings etc.) and sign character string At least one of.
In the concrete realization, user can be slided by the key of click dummy keyboard or on the key of dummy keyboard The modes such as row (sliding input) or key or the input language (i.e. voice input) of clicking physical keyboard input character String.
Wherein, which may include long character string, can specifically include the first substring and the second substring.
It includes but is not limited to inputting digital character string, English character string, middle text that first substring, which can be used for inputting, At least one of symbol string and sign character string;It includes but is not limited to input numeric word that second substring, which can be used for input, Accord at least one of string, English character string, Chinese character string and sign character string.
For example, " shouji " can be the first substring, Ke Yiyong for pinyin character string " shoujishurufa " In input phrase " mobile phone ", " shurufa " can be the second substring, can be used for inputting phrase " input method ".
Step 102, the character string is shown in character area;
In the concrete realization, application program (for example, input method procedure) receives the character string of user's input, according to language Characteristic searches corresponding candidate information, which can specifically include but be not limited in number, English, Chinese and symbol At least one.
Wherein, character string area can may be displayed on character string area for the region of display character string, the character string of input.
For example, if user input English character string " spo ", corresponding candidate information may include " spot ", " spoke ", " sport " etc..
In another example as shown in Fig. 2, if user's input Pinyin character string in nine grids keyboard 201 " shoujishurufa ", then corresponding candidate information may include " cellphone inputting method ", " mobile phone ", " in hand " etc., and phonetic Character string " shoujishurufa " may be displayed in character string area 202.
Step 103, the corresponding candidate information of the character string is shown in candidate regions;
Candidate regions can be display candidate information to allow user to carry out the region of selection.If the corresponding candidate letter of character string Cease it is more, then can be with display portion candidate information, for example, the previous or multiple candidate information of upper screen maximum probability.
For example, as shown in Fig. 2, if user input Pinyin character string " shoujishurufa " in nine grids keyboard 201, Its corresponding candidate information " cellphone inputting method ", " mobile phone ", " in hand " etc., may be displayed in candidate regions 203.
It should be noted that the first substring and the second substring can have corresponding candidate information.
Step 104, the corresponding candidate information of first substring is determined;
In the concrete realization, user can be by clicking the candidate information in candidate regions, alternatively, specified by acknowledgement key etc. Key selection candidate regions in candidate information, alternatively, other modes, the instruction of triggering confirmation candidate information.
When application program (for example, input method procedure) receives the instruction of the corresponding candidate information of the first substring of confirmation When, the corresponding candidate information of the first substring of confirmation.
When the corresponding candidate information of the first substring of confirmation, in addition to the candidate information of confirmation, the first substring pair Other candidate informations answered cancel display, and the candidate information of the confirmation may be displayed in character string area;Second substring is still It may be displayed in character string area, the corresponding candidate information of the second substring still may be displayed in candidate regions.
For example, as shown in figure 3, if user input Pinyin character string " shoujishurufa " in nine grids keyboard 201, " shouji " can be the first substring, and " shurufa " can be the second substring.The user clicks in candidate regions 203 Candidate information " mobile phone ", then " mobile phone " can be shown in character string area 202, in candidate regions 203 show " shurufa " Corresponding candidate information.
Step 105, detect whether second substring malfunctions;If so, thening follow the steps 106;
Error, can indicate that there may be input errors for the second substring, it may be possible to some character errors, it is also possible to whole Body input error.Or second substring may without enter and leave mistake, but due to do not meet input scene or user it is defeated Enter to be intended to change, is unsuitable character string.
For example, character " o " may be the erroneous input of character " i " for pinyin character string " jintiantianqo ".
In another example for pinyin character string " shoujishurufa ", if user does not need according to current language environment " shurufa ", then " shurufa " can be mistake input.
In a preferred example of an embodiment of the present invention, step 105 may include following sub-step:
Sub-step S11 judges whether to detect including but not limited to specified key triggering information and specified gesture behaviour Make at least one of information;If so, executing sub-step S12;
Sub-step S12, determines whether second substring malfunctions.
In this example, there is input error in user's discovery, can be by clicking specified key, alternatively, executing specified Gesture operation trigger error message.
For example, as shown in figure 3, if user input Pinyin character string " shoujishurufa " in nine grids keyboard 201, The user clicks the candidate information " mobile phone " in candidate regions 203, then " mobile phone " can be shown in character string area 202, waited " shurufa " corresponding candidate information is shown in constituency 203.If click can be passed through it was found that " shurufa " and undesirable The defeated key 204 (specified key) of weight, or the character string area (specified gesture operation) where " shurufa " is slided, trigger mistake Information.
In another preferable example of the embodiment of the present invention, step 105 may include following sub-step:
Sub-step S21 judges whether to detect error characteristic information;If so, sub-step S22;
Sub-step S22, determines whether second substring malfunctions;
Wherein, the error characteristic information can include but is not limited to second character string there are error character or words Accord with the information of input sequence mistake, second substring information different with preset input habit information, and, described the At least one of two substrings information similar with feature input information.
In this example, application program (for example, input method procedure) can detecte the second character string with the presence or absence of mistake.
In one case, characteristic of speech sounds (characteristic of speech sounds, English characteristic of speech sounds such as Chinese) or input can be passed through The characteristic (the key regularity of distribution of such as physical/virtual keyboard) of device, detect in the second character string with the presence or absence of error character or Character input sequence error.
For example, some user's input Pinyin character string " nihap ", according to the characteristic of speech sounds of Chinese, " hap " is not one Correct pinyin character string, characteristic (the key regularity of distribution of the physical keyboard) analysis based on input unit, character " p " and character " o " is adjacent, and character " p " is likely to be the erroneous input of character " o ".
In another example some user's input Pinyin character string " nihoa ", according to the characteristic of speech sounds of Chinese, " hoa " is not one A correct pinyin character string, there may be mistake, the input sequence possibility of character " o " and character " a " for pinyin character string " hoa " Mistake, it may be possible to which pinyin character string " hoa " may be the mistake input of pinyin character string " hao ".
In another case, can acquire the input habit information of some user in advance, compare the second substring with Input habit information can indicate that there may be mistakes for second substring if different.
For example, some user's input Pinyin character string " nih " is preset higher than one with the frequency for inputting phrase " hello " Frequency threshold, then can be by the input habit information of the pinyin character string " nih " as user.If current user's input Pinyin Character string " nij " has differences with pinyin character string " nih ", it may be considered that, there may be mistakes for pinyin character string " nij ".
In another case, the input habit information of group of subscribers can be acquired in advance, and (input frequency can for statistics high frequency To be higher than another preset frequency threshold) input information, input information as feature, compare the second substring and feature Inputting information can indicate that there may be mistakes for second substring if similar.
For example, group of subscribers input Pinyin character string " nihao " is default higher than one with the frequency for inputting phrase " hello " Frequency threshold, then can by the pinyin character string " nihao " as feature input information.If active user's input Pinyin character It goes here and there " nihai ", it is similar to pinyin character string " nihao ", it may be considered that, there may be mistakes for pinyin character string " nihai ".
Certainly, above-mentioned error message is intended only as example, in implementing the embodiments of the present invention, can set according to the actual situation Other error messages are set, the embodiments of the present invention are not limited thereto.In addition, other than above-mentioned error message, art technology Personnel can also use other error messages according to actual needs, and the embodiment of the present invention is also without restriction to this.
Step 106, second substring is removed in character string area.
When the error of the second substring, removed.
In one preferred embodiment of the invention, the character string can store in buffer queue, first son Character string can have length information;
Then in embodiments of the present invention, step 106 may include following sub-step:
Sub-step S31 extracts the length information of first substring in the buffer queue;
Sub-step S32 is determined for compliance with the third character string of the length information in character string area;
Sub-step S33 removes the 4th substring in character string area;4th character string is in the character string In, the character string in addition to the third substring.
Using the embodiment of the present invention, a buffer queue can be constructed in advance and specifically may be used for saving input environment information To include character string, candidate information, selected situation, keyboard setting etc..When needed, defeated before being obtained in buffer queue Enter environmental information, to restore input scene.
For example, as shown in figure 3, selecting the example of candidate information " mobile phone " for input Pinyin string " shoujishurufa " In, buffer queue can be such that
Character string: shoujishurufa
Candidate information: in cellphone inputting method, mobile phone, hand ...
Selected situation: mobile phone
The length of " hand " corresponding character string " shou " is 4, and the length of " machine " corresponding character string " ji " is 2
Keyboard setting: Pinyin Input mode
……
I.e. " mobile phone " corresponding string length is 6, the pinyin character string " shoujishurufa " in character string area, The character string " shouji " for determining that length is 6 is third character string, then " shurufa " is the 4th character string, needs to remove.
As shown in figure 4, remove pinyin character string " shurufa " in character string area 202, then pinyin character string " shurufa " corresponding candidate information is also correspondingly removed from candidate regions 203, and the first character string is retained in candidate regions 203 Corresponding candidate information " mobile phone ".
The embodiment of the present invention determines the corresponding candidate information of the first substring in the character string of input, is detecting mistake When, the second substring is removed, avoids user from repeatedly inputting the operation such as character string reselection candidate information, on the one hand, Neng Gouyou Effect ground reduces the keying speed of user, improves input efficiency, and realization quickly and easily inputs, and improving user experience on the other hand can The response that the operations such as key-press input string, selection are inputted to reduce equipment to user, reduces the consumption of apparatus system resource.
In one preferred embodiment of the invention, the method can also include the following steps:
Step 107, when the candidate information is triggered, upper screen processing is carried out to the candidate information.
In embodiments of the present invention, which is candidate information needed for user, then user can be waited by clicking Candidate information in constituency, alternatively, determination key 205 as shown in Figure 4 is clicked, alternatively, other modes, trigger candidate information, then Upper screen processing can be carried out to the candidate information.
Wherein, upper screen can be the behavior for clicking candidate information, for allowing candidate information to enter in specified business object, For example, editor's text box etc. of the session window of the search column of search engine, immediate communication tool, short message.
For example, as shown in figure 5, upper screen processing can be carried out to " mobile phone " if user clicks " mobile phone ".
In one preferred embodiment of the invention, the candidate information may be displayed in character string area, the side Method can also include the following steps:
Step 108, when receiving back-off instruction, the candidate information in character string area is retracted as first son Character string.
In embodiments of the present invention, which can be character string needed for user, but the first substring Corresponding candidate information may not be candidate information needed for user, then user can be through but not limited to specified key (example At least one of such as, heavy defeated key 204 shown in Fig. 3) and specified gesture operation, trigger back-off instruction.
In one preferred embodiment of the invention, step 108 may include following sub-step:
Sub-step S41 removes the candidate information in character string area;
Sub-step S42 shows the third substring in character string area.
In embodiments of the present invention, the candidate information in character string area can be removed, display meets the candidate information The third substring of the length information of corresponding character string.
It, can be from caching to extracting the corresponding time of third substring (i.e. the first substring) in this in candidate regions Information is selected, is shown in candidate regions.
In one preferred embodiment of the invention, the method can also include the following steps:
Step 109, when receiving five substring of input, the 5th substring described in character string display;
Step 110, the corresponding candidate information of the 5th substring is shown in candidate regions;
In embodiments of the present invention, after removing the second character string, input operation can be continued, to input required text This information.Wherein, the character string (for example, the 5th character string) newly inputted may be displayed in character string area, corresponding candidate Information may be displayed in candidate region.
For example, user wants input " your nearest OK ", but character string " nizuijinOJma " is had input, accidentally by " K " Key input is at " J " key, at this point, the corresponding candidate information of the character string is " your nearest aunt ", after user has found mistake, selection Part candidate information " you are nearest ", the character string of remaining unselected part are " ojma ", want to retain selected part at this time " you are nearest " can then issue error message for character string " ojma ", such as click heavy defeated key, delete the character string of mistake " ojma " continues to input " okma " after deleting, select " OK ", to complete to input " your nearest OK ".
In one preferred embodiment of the invention, the method can also include the following steps:
Step 111, when detecting specified action event, the candidate information is removed.
In the embodiment of the present invention, if user has found the candidate information selected or the first character string, there is also mistakes, can Candidate information is removed with instruction.
In the concrete realization, the specified operating time can through but not limited to specified key trigger event (for example, At least one of heavy defeated key 204 shown in Fig. 3) and specified gesture operation event.
In one preferred embodiment of the invention, the method can also include the following steps:
Step 112, upper screen processing is carried out to the candidate information.
In embodiments of the present invention, which can be text information needed for user, then can be directly to candidate Information carries out screen processing.
For example, user wants input " hello ", but character string " nihaoo " is had input, maloperation, multi input one occurs A character " o ", candidate information includes " you are good " and " hello " at this time, after user selectes " hello ", is triggered for character " o " wrong False information such as clicks the defeated key of weight, removes the character string " o " of mistake, the directly upper screen of " hello " selected.
In one preferred embodiment of the invention, the method can also include the following steps:
Step 113, the candidate information is moved in area, association.
Step 114, when the candidate information in area, the association is triggered, to the candidate information in area, the association Carry out screen processing.
It should be noted that area, association can be tool bar region, can be used for showing and current text information Associated candidate information.As shown in fig. 6, if currently input text information " I ", can show in association region 206 and " I " associated candidate information " ", " ", " ", " just ", " " etc..
In the embodiment of the present invention, if uncertain selection of the user to candidate information, can be retained in area, association, with to User's further operating.Candidate information can continue to input character string, associate the candidate information in area not to input at area, association It has an impact.
For example, user inputs character string " kaixindehen ", selected character string " kaixin " corresponding candidate information " is opened The heart ", the character string " dehen " of remaining unselected candidate information, and then remove character string " dehen ".If uncertain user deletes Character string " dehen " is intended to retain " happy " or upper screen " happy ", then can be in the character string of unselected candidate information While " dehen ", selected part " happy " is moved in area, association, to user's further operating.If user clicks Candidate information in the association region can then carry out screen operation.
In one preferred embodiment of the invention, the method can also include the following steps:
Step 115, the 6th character string associated with second character string is obtained;
Step 116, the 6th character string is shown in specified region.
Step 117, when the 6th character string is triggered, the 6th character string is shown in character area;
Step 118, the corresponding candidate information of the 6th substring is shown in candidate regions.
During the present invention is implemented, for the error section (i.e. the second character string) of character string, when user selectes correct part (i.e. First character string) after, intelligent association can be carried out for error section, recommends (such as cloud recommendation) mode, and providing may be just True or user demand the 6th character string.
For example, some user's input Pinyin character string " nihoa ", according to the characteristic of speech sounds of Chinese, " hoa " is not one A correct pinyin character string, there may be mistake, the input sequence possibility of character " o " and character " a " for pinyin character string " hoa " Mistake, it may be possible to which pinyin character string " hoa " may be the mistake input of pinyin character string " hao ", then can provide pinyin character It goes here and there " hao ".
The 6th acquired character string can be shown in any specified region, such as toolbar, association region etc. Deng the embodiments of the present invention are not limited thereto.
After removing the second character string, user can trigger the 6th character string by modes such as click, slides, with replacement The character string of original mistake.To input required text information.Wherein, the 6th character string may be displayed in character string area, Its corresponding candidate information may be displayed in candidate region.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented Necessary to example.
Referring to Fig. 7, a kind of structural block diagram for the Installation practice for handling input error of the present invention is shown, specifically can wrap Include following module:
First character string receiving module 701, character string for receiving input;The character string includes the first substring With the second substring;
First character string display module 702, for showing the character string in character area;
First candidate information display module 703, for showing the corresponding candidate information of the character string in candidate regions;
Candidate information determining module 704, for determining the corresponding candidate information of first substring;
Error detection module 705, for detecting whether second substring malfunctions;If so, character string is called to move Except module 706;
Character string remove module 706, for removing second substring in character string area.
In a preferred example of an embodiment of the present invention, error detection module 705 may include following submodule:
First judging submodule, for judging whether to detect including but not limited to specified key triggering information and specifying At least one of gesture operation information;If so, calling the first decision sub-module;
First decision sub-module, for determining whether second substring malfunctions.
In another preferable example of the embodiment of the present invention, error detection module 705 may include following submodule:
First judging submodule detects error characteristic information for judging whether;If so, calling second to determine submodule Block;
Second decision sub-module, for determining whether second substring malfunctions;
Wherein, the error property information can include but is not limited to second character string there are error character or words Accord with the information of input sequence mistake, second substring information different with preset input habit information, and, described the At least one of two substrings information similar with feature input information.
In one preferred embodiment of the invention, the character string can store in buffer queue, first son Character string can have length information;
The character string remove module 705 may include following submodule:
Length information extracting sub-module, the length for extracting first substring in the buffer queue are believed Breath;
Substring determines submodule, the sub- character of the third for being determined for compliance with the length information in character string area String;
Substring removes submodule, for removing the 4th substring in character string area;4th substring For the character string in the character string, in addition to the third substring.
In one preferred embodiment of the invention, the device can also include following module:
Shield processing module on first, for being carried out at upper screen to the candidate information when the candidate information is triggered Reason.
In one preferred embodiment of the invention, the candidate information is shown in character string area, and the device is also May include following module:
Rollback module, for being described by the candidate information rollback in character string area when receiving back-off instruction First substring.
In one preferred embodiment of the invention, the rollback module may include following submodule:
First candidate information removes submodule, for removing the candidate information in character string area;
Substring display sub-module, for showing the third substring in character string area.
In one preferred embodiment of the invention, the device can also include following module:
Second character string receiving module, when for receiving five substring of input, described in the character string display Five substrings;
Second candidate information display module shows that the 5th substring is corresponding for candidate information in candidate regions Candidate information.
In one preferred embodiment of the invention, the device can also include following module:
Second candidate information remove module, for removing the candidate information when detecting specified action event.
In one preferred embodiment of the invention, the device can also include following module:
Shield processing module on second, for carrying out upper screen processing to the candidate information.
In one preferred embodiment of the invention, the device can also include following module:
Area's mobile module is associated, for moving to the candidate information in area, association.
In one preferred embodiment of the invention, the device can also include following module:
Shield processing module in third, when being triggered for the candidate information in area, the association, in area, the association Candidate information carry out screen processing.
In one preferred embodiment of the invention, the device can also include following module:
Character string obtains module, for obtaining the 6th character string associated with second character string;
Second substring display sub-module, for showing the 6th character string in specified region.
In one preferred embodiment of the invention, the device can also include following module:
Third substring display sub-module, for showing institute in character area when the 6th character string is triggered State the 6th character string;
Third candidate information display module, for showing the corresponding candidate letter of the 6th substring in candidate regions Breath.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Above to it is provided by the present invention it is a kind of handle input error method and it is a kind of handle input error device, into It has gone and has been discussed in detail, used herein a specific example illustrates the principle and implementation of the invention, the above implementation The explanation of example is merely used to help understand method and its core concept of the invention;Meanwhile for the general technology people of this field Member, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion this explanation Book content should not be construed as limiting the invention.

Claims (28)

1. a kind of method for handling input error characterized by comprising
Receive the character string of input;The character string includes the first substring and the second substring;
The character string is shown in character area, and the corresponding candidate information of the character string is shown in candidate regions;
Determine the corresponding candidate information of first substring: where when the corresponding candidate information of the first substring of confirmation When, in addition to the candidate information of confirmation, other corresponding candidate informations of the first substring cancel display, the candidate letter of the confirmation Breath is shown in character string area;Second substring continues to be shown in character string area, and second substring is corresponding Candidate information continue to be shown in candidate regions;
Detect whether second substring malfunctions;If so, removing second substring in character string area;Its In, after removing second substring, continue to show the corresponding candidate information of first substring in character string area;
When the candidate information is triggered, upper screen processing is carried out to the candidate information.
2. the method according to claim 1, wherein the step whether detection second substring malfunctions Suddenly include:
Judge whether to detect in including but not limited to specified key triggering information and specified gesture operation information at least It is a kind of;If so, determining whether second substring malfunctions.
3. the method according to claim 1, wherein whether second substring includes: the step of error
Judge whether to detect error characteristic information;If so, determining whether second substring malfunctions;
Wherein, the error characteristic information includes but is not limited to that there are error character or character inputs for second substring The information of sequence error, second substring information different with preset input habit information, and, the second sub- word At least one of symbol string information similar with feature input information.
4. the method according to claim 1, wherein the character string is stored in buffer queue, described first Substring has length information;
Described the step of removing second substring in character string area includes:
The length information of first substring is extracted in the buffer queue;
The third substring of the length information is determined for compliance in character string area;
The 4th substring is removed in character string area;4th substring is to remove the third in the character string Character string except substring.
5. method according to claim 1 or 2 or 3 or 4, which is characterized in that further include:
When the candidate information is triggered, upper screen processing is carried out to the candidate information.
6. method according to claim 1 or 2 or 3 or 4, which is characterized in that the candidate information is shown in character string area In, the method further include:
When receiving back-off instruction, the candidate information in character string area is retracted as first substring.
7. described according to the method described in claim 4, it is characterized in that, the candidate information is shown in character string area Method further include:
When receiving back-off instruction, the candidate information in character string area is retracted as first substring;
The candidate information by character string area retracts includes: for the step of first substring
The candidate information is removed in character string area;
The third substring is shown in character string area.
8. method according to claim 1 or 2 or 3 or 4, which is characterized in that further include:
When receiving five substring of input, the 5th substring described in character string display is shown in candidate regions The corresponding candidate information of 5th substring.
9. method according to claim 1 or 2 or 3 or 4, which is characterized in that further include:
When detecting specified action event, the candidate information is removed.
10. method according to claim 1 or 2 or 3 or 4, which is characterized in that further include:
Upper screen processing is carried out to the candidate information.
11. method according to claim 1 or 2 or 3 or 4, which is characterized in that further include:
The candidate information is moved in area, association.
12. according to the method for claim 11, which is characterized in that further include:
When the candidate information in area, the association is triggered, upper screen processing is carried out to the candidate information in area, the association.
13. method according to claim 1 or 2 or 3 or 4, which is characterized in that further include:
Obtain the 6th substring associated with second substring;
The 6th substring is shown in specified region.
14. according to the method for claim 13, which is characterized in that further include:
When the 6th substring is triggered, the 6th substring is shown in character area;
The corresponding candidate information of the 6th substring is shown in candidate regions.
15. a kind of device for handling input error characterized by comprising
First character string receiving module, character string for receiving input;The character string includes the first substring and second Substring;
First character string display module, for showing the character string in character area;Wherein, when the first substring pair of confirmation When the candidate information answered, in addition to the candidate information of confirmation, other corresponding candidate informations of the first substring cancel display, described The candidate information of confirmation is shown in character string area;Second substring continues to be shown in character string area, and described second The corresponding candidate information of substring continues to be shown in candidate regions;
First candidate information display module, for showing the corresponding candidate information of the character string in candidate regions;
Candidate information determining module, for determining the corresponding candidate information of first substring;
Error detection module, for detecting whether second substring malfunctions;If so, calling character string remove module; Wherein, after removing second substring, continue to show the corresponding candidate letter of first substring in character string area Breath;
Character string remove module, for removing second substring in character string area;
When the candidate information is triggered, upper screen processing is carried out to the candidate information.
16. device according to claim 15, which is characterized in that the error detection module includes:
First judging submodule, for judging whether to detect including but not limited to specified key triggering information and specified hand At least one of gesture operation information;If so, calling the first decision sub-module;
First decision sub-module, for determining whether second substring malfunctions.
17. device according to claim 15, which is characterized in that the error detection module includes:
First judging submodule detects error characteristic information for judging whether;If so, calling the second decision sub-module;
Second decision sub-module, for determining whether second substring malfunctions;
Wherein, the error characteristic information includes but is not limited to that there are error character or character inputs for second substring The information of sequence error, second substring information different with preset input habit information, and, the second sub- word At least one of symbol string information similar with feature input information.
18. device according to claim 15, which is characterized in that the character string is stored in buffer queue, and described One substring has length information;
The character string remove module includes:
Length information extracting sub-module, for extracting the length information of first substring in the buffer queue;
Substring determines submodule, for being determined for compliance with the third substring of the length information in character string area;
Substring removes submodule, for removing the 4th substring in character string area;4th substring be Character string in the character string, in addition to the third substring.
19. device described in 5 or 16 or 17 or 18 according to claim 1, which is characterized in that further include:
Shield processing module on first, for carrying out upper screen processing to the candidate information when the candidate information is triggered.
20. device described in 5 or 16 or 17 or 18 according to claim 1, which is characterized in that the candidate information is shown in character In string area, the device further include:
Rollback module is described first for when receiving back-off instruction, the candidate information in character string area to be retracted Substring.
21. device according to claim 18, which is characterized in that the candidate information is shown in character string area, described Device further include:
Rollback module is described first for when receiving back-off instruction, the candidate information in character string area to be retracted Substring;
The rollback module includes:
First candidate information removes submodule, for removing the candidate information in character string area;
First substring display sub-module, for showing the third substring in character string area.
22. device described in 5 or 16 or 17 or 18 according to claim 1, which is characterized in that further include:
Second character string receiving module, when for receiving five substring of input, the 5th son described in character string display Character string;
Second candidate information display module shows the corresponding candidate of the 5th substring for candidate information in candidate regions Information.
23. device described in 5 or 16 or 17 or 18 according to claim 1, which is characterized in that further include:
Second candidate information remove module, for removing the candidate information when detecting specified action event.
24. device described in 5 or 16 or 17 or 18 according to claim 1, which is characterized in that further include:
Shield processing module on second, for carrying out upper screen processing to the candidate information.
25. device described in 5 or 16 or 17 or 18 according to claim 1, which is characterized in that further include:
Area's mobile module is associated, for moving to the candidate information in area, association.
26. device according to claim 25, which is characterized in that further include:
Shield processing module in third, when being triggered for the candidate information in area, the association, to the time in area, the association Information is selected to carry out screen processing.
27. device described in 5 or 16 or 17 or 18 according to claim 1, which is characterized in that further include:
Character string obtains module, for obtaining the 6th substring associated with second substring;
Second substring display sub-module, for showing the 6th substring in specified region.
28. device according to claim 27, which is characterized in that further include:
Third substring display sub-module, described in being shown in character area when the 6th substring is triggered 6th substring;
Third candidate information display module, for showing the corresponding candidate information of the 6th substring in candidate regions.
CN201410572770.3A 2014-10-23 2014-10-23 A kind of method and apparatus handling input error Active CN105589570B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410572770.3A CN105589570B (en) 2014-10-23 2014-10-23 A kind of method and apparatus handling input error

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410572770.3A CN105589570B (en) 2014-10-23 2014-10-23 A kind of method and apparatus handling input error

Publications (2)

Publication Number Publication Date
CN105589570A CN105589570A (en) 2016-05-18
CN105589570B true CN105589570B (en) 2019-04-09

Family

ID=55929210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410572770.3A Active CN105589570B (en) 2014-10-23 2014-10-23 A kind of method and apparatus handling input error

Country Status (1)

Country Link
CN (1) CN105589570B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109426357B (en) * 2017-09-01 2023-05-12 百度在线网络技术(北京)有限公司 Information input method and device
CN109460158A (en) * 2018-10-29 2019-03-12 维沃移动通信有限公司 Characters input method, character correction model training method and mobile terminal
PL3660716T3 (en) * 2018-11-30 2021-05-31 Ovh Service infrastructure and methods of predicting and detecting potential anomalies at the service infrastructure
CN109597500A (en) * 2018-12-06 2019-04-09 北京金山安全软件有限公司 Input error correction method and device for Chinese pinyin and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101178741A (en) * 2007-12-24 2008-05-14 腾讯科技(深圳)有限公司 Method and device for updating user's word stock
CN101276245A (en) * 2008-04-16 2008-10-01 北京搜狗科技发展有限公司 Reminding method and system for coding to correct error in input process
CN101630309A (en) * 2009-08-13 2010-01-20 广东国笔科技股份有限公司 Word processing system with fault tolerance function and method
CN101630310A (en) * 2009-08-13 2010-01-20 广东国笔科技股份有限公司 Word processing system with fault tolerance function and method
CN101710262A (en) * 2009-12-11 2010-05-19 北京搜狗科技发展有限公司 Error correction method and error correction device of characters
CN102156551A (en) * 2011-03-30 2011-08-17 北京搜狗科技发展有限公司 Method and system for correcting error of word input
CN103473003A (en) * 2013-09-12 2013-12-25 天津三星通信技术研究有限公司 Character input error correction method and device
CN103853437A (en) * 2012-11-28 2014-06-11 北京搜狗科技发展有限公司 Candidate item obtaining method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661331B (en) * 2008-08-28 2012-05-30 北京搜狗科技发展有限公司 Character and phrase input method and input method system
CN102023782A (en) * 2009-09-15 2011-04-20 北京搜狗科技发展有限公司 Method and device for determining modification point in input conversion process
CN103631385B (en) * 2012-08-23 2017-05-10 北京搜狗科技发展有限公司 Method and device for screening candidate items in character input

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101178741A (en) * 2007-12-24 2008-05-14 腾讯科技(深圳)有限公司 Method and device for updating user's word stock
CN101276245A (en) * 2008-04-16 2008-10-01 北京搜狗科技发展有限公司 Reminding method and system for coding to correct error in input process
CN101630309A (en) * 2009-08-13 2010-01-20 广东国笔科技股份有限公司 Word processing system with fault tolerance function and method
CN101630310A (en) * 2009-08-13 2010-01-20 广东国笔科技股份有限公司 Word processing system with fault tolerance function and method
CN101710262A (en) * 2009-12-11 2010-05-19 北京搜狗科技发展有限公司 Error correction method and error correction device of characters
CN102156551A (en) * 2011-03-30 2011-08-17 北京搜狗科技发展有限公司 Method and system for correcting error of word input
CN103853437A (en) * 2012-11-28 2014-06-11 北京搜狗科技发展有限公司 Candidate item obtaining method and device
CN103473003A (en) * 2013-09-12 2013-12-25 天津三星通信技术研究有限公司 Character input error correction method and device

Also Published As

Publication number Publication date
CN105589570A (en) 2016-05-18

Similar Documents

Publication Publication Date Title
US20130007606A1 (en) Text deletion
CN104199606B (en) A kind of method and apparatus sliding input
CN105824552B (en) A kind of recognition methods of text information and device
CN102830924B (en) A kind of method and device adjusting entering method keyboard
CN106874817A (en) Two-dimensional code identification method, equipment and mobile terminal
EP3358474B1 (en) Route search method, device and apparatus, and non-volatile computer storage medium
CN105589570B (en) A kind of method and apparatus handling input error
CN106843737A (en) Text entry method, device and terminal device
CN104199607A (en) Candidate selection method and device based on input method
EP2731018A2 (en) Method of providing predictive text
KR20150023151A (en) Electronic device and method for executing application thereof
WO2016041428A1 (en) Method and device for inputting english
CN105094603A (en) Method and device for related inputting
EP3267301A1 (en) High-efficiency touch screen text input system and method
US20160092104A1 (en) Methods, systems and devices for interacting with a computing device
CN107797676B (en) Single character input method and device
EP2909702B1 (en) Contextually-specific automatic separators
CN103941979B (en) A kind of method and apparatus for inputting word in a mobile device
EP3260955A1 (en) Slide input method and apparatus
CN104076945B (en) Apparatus and method for showing input keyboard in the terminal
CN105183310A (en) Information editing method and terminal
CN108073293B (en) Method and device for determining target phrase
CN108536653A (en) A kind of input method, device and the device for input
JP2014175689A (en) Information apparatus, display method and program
US20160292140A1 (en) Associative input method and terminal

Legal Events

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