CN112905023A - Input error correction method and device for input error correction - Google Patents

Input error correction method and device for input error correction Download PDF

Info

Publication number
CN112905023A
CN112905023A CN201911222518.9A CN201911222518A CN112905023A CN 112905023 A CN112905023 A CN 112905023A CN 201911222518 A CN201911222518 A CN 201911222518A CN 112905023 A CN112905023 A CN 112905023A
Authority
CN
China
Prior art keywords
input
string
error correction
user
pairing
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
CN201911222518.9A
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.)
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 CN201911222518.9A priority Critical patent/CN112905023A/en
Publication of CN112905023A publication Critical patent/CN112905023A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses an input error correction method and device and a device for input error correction. An embodiment of the method comprises: detecting error correction operation of a user on an input string to obtain an error correction string corresponding to the input string; if the error correction operation meets the preset condition, establishing the pairing of the input string and the error correction string, and storing the pairing; when it is detected that the user has input the input string again, the input string input again by the user is replaced with the error correction string based on the pairing. This embodiment improves the input efficiency.

Description

Input error correction method and device for input error correction
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to an input error correction method and device and a device for input error correction.
Background
With the development of computer technology, the functions of input method application are more and more abundant. The input method application can generally correct the wrong content input by the user to obtain the correct candidate and provide the correct candidate for the user, so that the input efficiency is improved.
However, when input scenes are different, users often have different input habits. The error correction function applied by the existing input method can only be suitable for universal input errors, and generally cannot meet the personalized requirements of users. For example, when writing related content about "static variables" in the field of computers in word, the user needs to display more words such as "static", "variable", and the like. When the user wants to screen the word "static", the word "jingtia" is input by mistake, and the existing input method application can only show that the user is supposed to have the input intention of the word "jingtian", so that the word selection is awaited. At this time, the user is required to backspace to delete a partial character string and re-input the character string, and to modify "jingtia" to "jingtai" so as to display the candidate word "static". When the user inputs the input string with the same error next time, the manual correction needs to be repeated, which results in low input efficiency.
Disclosure of Invention
The embodiment of the application provides an input error correction method and device and a device for input error correction, so as to solve the technical problem of low input efficiency in the prior art.
In a first aspect, an embodiment of the present application provides an input error correction method, where the method includes: detecting error correction operation of a user on an input string to obtain an error correction string corresponding to the input string; if the error correction operation meets the preset condition, establishing the pairing of the input string and the error correction string, and storing the pairing; when it is detected that the user has input the input string again, the input string input again by the user is replaced with the error correction string based on the pairing.
In a second aspect, an embodiment of the present application provides an input error correction apparatus, including: the detection unit is configured to detect error correction operation of a user on the input string, and obtain an error correction string corresponding to the input string; a storage unit configured to establish a pairing of the input string and the error correction string if the error correction operation satisfies a preset condition, and store the pairing; a replacement unit configured to replace the input string input again by the user with the error correction string based on the pairing when it is detected that the input string is input again by the user.
In a third aspect, an embodiment of the present application provides an apparatus for input error correction, including a memory, and one or more programs, where the one or more programs are stored in the memory, and configured to be executed by the one or more processors, the one or more programs including instructions for: detecting error correction operation of a user on an input string to obtain an error correction string corresponding to the input string; if the error correction operation meets the preset condition, establishing the pairing of the input string and the error correction string, and storing the pairing; when it is detected that the user has input the input string again, the input string input again by the user is replaced with the error correction string based on the pairing.
In a fourth aspect, embodiments of the present application provide a computer-readable medium on which a computer program is stored, which when executed by a processor, implements the method as described in the first aspect above.
According to the input error correction method, the input error correction device and the input error correction device, error correction operation of a user on an input string is detected, and an error correction string corresponding to the input string is obtained; if the error correction operation meets the preset condition, establishing the pairing of the input string and the error correction string, and storing the pairing; when it is detected that the user has input the input string again, the input string input again by the user is replaced with the error correction string based on the pairing. Therefore, when the input error cannot be automatically corrected or is not automatically detected to cause manual correction by a user, the pairing of the input string manually corrected by the user and the error correction string can be stored, so that the error input string can be automatically replaced by the error correction string according to the pairing when the input string is input next time, repeated manual correction by the user is not needed, and the input efficiency is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is a flow diagram of one embodiment of an input error correction method according to the present application;
FIG. 2 is a flow diagram of yet another embodiment of an input error correction method according to the present application;
FIG. 3 is a schematic diagram of an embodiment of an input error correction apparatus according to the present application;
FIG. 4 is a schematic diagram of an apparatus for input error correction according to the present application;
FIG. 5 is a schematic diagram of a server in accordance with some embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Referring to FIG. 1, a flow 100 of one embodiment of an input error correction method according to the present application is shown. The input error correction method can be operated in various electronic devices including but not limited to: a server, a smart phone, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a laptop, a car computer, a desktop computer, a set-top box, an intelligent tv, a wearable device, and so on.
The electronic device may be equipped with an input method application. The input method application mentioned in the embodiment of the application can support various input methods. The input method may be an encoding method used for inputting various symbols to electronic devices such as computers and mobile phones, and a user may conveniently input a desired character or character string to the electronic devices using the input method application. It should be noted that, in the embodiment of the present application, in addition to the common chinese input method (such as pinyin input method, wubi input method, zhuyin input method, phonetic input method, handwriting input method, etc.), the input method may also support other language input methods (such as japanese hiragana input method, korean input method, etc.), and the input method and the language category of the input method are not limited at all.
The input error correction method in this embodiment may include the following steps:
step 101, detecting an error correction operation of a user on an input string to obtain an error correction string corresponding to the input string.
In this embodiment, an execution subject (such as the electronic device) of the input error correction method may detect, after receiving an input string input by a user, an error correction operation performed by the user on the input string, thereby obtaining an error correction string corresponding to the input string. The input string may be various character strings input by the user using the input method application, such as a pinyin character string. The error correction operation may be a modification operation on the input string, such as a backspace delete operation, an input operation, and the like. The new input string obtained after the user performs the error correction operation is the error correction string.
As an example, when the user wants to screen on the word "static", the word "jingtia" is input by mistake, and the existing input method application can usually presume that the user has an input intention for "jingtian", so that "surprise" is presented to wait for word selection, and the word "static" cannot be used as a candidate word. At this time, the user may backspace to delete a partial character string "ia" and re-input "ai", thereby modifying "jingtia" to "jingtai", and then present and screen the candidate word "static". Thus, it is considered that the user performs an error correction operation for correcting the input string "jingtia" to "jingtai", and the new input string after the error correction operation is made an error correction string corresponding to the original input string.
In some optional implementations of this embodiment, the execution body may detect an error correction operation on the input string by the user by: first, an input string in an input process is acquired. And then, when detecting at least one of character deletion of the input string, character re-input after character deletion, character insertion in the input string and character sequence exchange in the input string by the user, determining that the user performs error correction operation on the input string.
And 102, if the error correction operation meets the preset condition, establishing a pair of the input string and the error correction string, and storing the pair.
In this embodiment, the execution body may determine whether the error correction operation satisfies a preset condition. If a preset condition is met, a pairing of the input string and the error correction string can be established, and the pairing is stored. Wherein, the preset condition may be a condition for triggering a pairing operation. The preset conditions may be preset as needed. For example, it may be set that the number of times of performing the error correction operation on the input string reaches a preset threshold (e.g., 2 times, 3 times, etc.).
In practice, the pairing of the input string with the error correction string may be established in a key-value peer-to-peer fashion. For example, if the input string is "jingtia" and the error correction string is "jingtai", a pair in the form of a key-value pair may be created using "jingtia" as a key and "jingtai" as a value, and the pair may be stored.
It should be noted that the pairing of the input string and the error correction string may be established in other forms. For example, the pairing of "jingtia" and "jingtai" may be characterized by the string "jingtia- > jingtai". The embodiment of the present application does not limit the manner of representation of the pairing.
In some optional implementations of this embodiment, after detecting an error correction operation performed on the input string by the user and obtaining an error correction string corresponding to the input string, the executing entity may store the pairing according to the following steps:
the method comprises the following steps of firstly, obtaining the execution times of error correction operation of a user on an input string under a current input scene.
Here, the current input scenario may be an application currently used, such as an instant messenger tool, a text editing tool (e.g., word), and the like.
As an example, if a user is currently writing related content in a word regarding "static variables" in the computer domain, the current input environment is the word document that the user is editing. In the current input environment, the execution subject may obtain the execution times of the error correction operation (i.e., the operation of correcting the input string "jingtia" to "jingtai") on the input string "jingtia" by the user in the current input scene (i.e., the word document currently being edited) after detecting the error correction operation of correcting the input string "jingtia" to "jingtai" by the user.
And secondly, if the execution times are equal to a preset threshold (for example, 2 times), establishing a pairing (for example, "jingtia- > jingtai") between the input string and the error correction string, and storing the pairing to a local cache (cache).
Here, since the cache memory can increase the data access speed, storing the pair of the input string and the error correction string in the cache memory can increase the search speed when searching for the pair, thereby increasing the input efficiency.
In the foregoing implementation manner, optionally, if the execution number (that is, the execution number is less than the preset threshold value), the execution main body may update the execution number (that is, add 1 to the execution number), and continue to detect the error correction operation performed on the input string by the user, until the execution number reaches the preset threshold value, establish a pairing between the input string and the error correction string, and store the pairing.
In the implementation manner, optionally, after the pair is stored in a local cache, the executing body may further delete the pair from the cache after detecting that the user exits from the current input scenario (for example, the user closes a word document currently being edited). Thus, it is possible to prevent the error correction string in the pair from affecting the content input in other input scenarios.
And 103, when the input string input again by the user is detected, replacing the input string input again by the user with the error correction string based on the pairing.
In this embodiment, when it is detected that the user has input the input string again, the execution main body may replace the input string input again by the user with the error correction string based on the pairing. Specifically, the input string may be used as a keyword to search for a stored pair including the keyword. Then, the error correction string in the pair is extracted, thereby replacing the input string input again with the error correction string.
In some optional implementations of this embodiment, the following steps may be performed: first, when it is detected that the user inputs the input string (e.g., "jingtia") again in the current input scene (e.g., a word document currently being edited), the pair is searched for from the cache. And if the pairing is found, replacing the input string input again by the user with the error correction string in the pairing. Therefore, when the input string in the stored pairing is input again in the current scene, the input string can be automatically replaced by the error correction string, the user does not need to repeat manual error correction, and the input efficiency is improved.
It should be noted that, if the searched pair includes at least two pairs, the execution main body may first obtain context information of the input string input again by the user. The context information may include, among other things, a word (e.g., a previous word) preceding the input focus (e.g., a cursor position in a word document) and/or a word (e.g., a next word) following the input focus in the current input scenario. As an example, the user enters text in a word document, the text includes a word of "variable", at this time, the user moves the input focus to the front of the word of "variable", and inputs "jingtia" in the input method application, and the "variable" is context information belonging to the input string.
Then, based on the context information, a target pair of the pair may be determined, and the input string input again by the user may be replaced with the error correction string of the target pair. In practice, the pair associated with the context information may be chosen as the target pair. The degree of association between the context information and the pair can be determined by the word frequency of the word group formed by the context information and the error correction string in the pair. The higher the word frequency, the higher the degree of association.
As an example, if the input string is "jingtia" with two pairs, the error correction strings in the two pairs are "jingtai" and "jingtou", respectively. If the context information includes the "variable", it is known that the word frequency of the word group constituted by the word "static" and the "variable" is the highest in correspondence with the "jigntai" through the word frequency analysis, and in this case, the pair including the input string "jingtai" may be set as the target pair, and the input string input again by the user may be replaced with the error correction string "jingtai" in the target pair.
In the method provided by the above embodiment of the present application, an error correction string corresponding to an input string is obtained by detecting an error correction operation performed on the input string by a user; if the error correction operation meets the preset condition, establishing the pairing of the input string and the error correction string, and storing the pairing; when it is detected that the user has input the input string again, the input string input again by the user is replaced with the error correction string based on the pairing. Therefore, when the input error cannot be automatically corrected or is not automatically detected to cause manual correction by a user, the pairing of the input string manually corrected by the user and the error correction string can be stored, so that the error input string can be automatically replaced by the error correction string according to the pairing when the input string is input next time, repeated manual correction by the user is not needed, and the input efficiency is improved.
With further reference to fig. 2, a flow 200 of yet another embodiment of an input error correction method is shown. The process 200 of the input error correction method includes the following steps:
step 201, detecting the error correction operation of the user on the input string to obtain the error correction string corresponding to the input string.
Step 201 in this embodiment can refer to step 101 in fig. 1, and is not described herein again.
Step 202, presenting candidates corresponding to the error correction string.
In this embodiment, after the error correction string is obtained, the candidate corresponding to the error correction string can be presented. For example, when the input string is "jingtia" and the error is corrected to "jingtai", candidates "static", "cloisonne", "jingtai", and the like of the "jingtai" can be obtained.
Step 203, detecting a trigger operation of the user on the presented candidate item, and taking the candidate item indicated by the trigger operation as a target candidate item.
In this embodiment, the execution subject may detect a trigger operation (such as a click operation) performed by a user on a presented candidate item, and use the candidate item indicated by the trigger operation as a target candidate item. Continuing with the above example, if the user clicks "static," the "static" may be taken as the target candidate.
Step 204, acquiring the execution times of the error correction operation of the input string by the user in the current input scene.
In this embodiment, the execution main body may obtain the number of times of performing the error correction operation on the input string by the user in the current input scene. Here, the current input scenario may be an application currently used, such as an instant messenger tool, a text editing tool (e.g., word), and the like.
As an example, if a user is currently writing related content in a word regarding "static variables" in the computer domain, the current input environment is the word document that the user is editing. In the current input environment, the execution subject may obtain the execution times of the error correction operation (i.e., the operation of correcting the input string "jingtia" to "jingtai") on the input string "jingtia" by the user in the current input scene (i.e., the word document currently being edited) after detecting the error correction operation of correcting the input string "jingtia" to "jingtai" by the user.
In step 205, if the execution times is equal to the preset threshold, a pairing between the input string and the error correction string is established, and the pairing is stored in a local cache.
In this embodiment, if the execution number is equal to a preset threshold (for example, 2 times), a pair of the input string and the error correction string is established (for example, "jingtia- > jingtai"), and the pair is stored in a local cache (cache).
Here, since the cache memory can increase the data access speed, storing the pair of the input string and the error correction string in the cache memory can increase the search speed when searching for the pair, thereby increasing the input efficiency.
In this embodiment, if the execution count (i.e. the execution count is less than the preset threshold), the execution main body may update the execution count (i.e. adding 1 to the execution count), and continue to detect the error correction operation performed on the input string by the user, until the execution count reaches the preset threshold, establish a pairing between the input string and the error correction string, and store the pairing.
In this embodiment, after storing the pair in a local cache, the executing entity may further delete the pair from the cache after detecting that the user exits from the current input scenario (for example, the user closes a word document currently being edited). Thus, it is possible to prevent the error correction string in the pair from affecting the content input in other input scenarios.
And step 206, when the user is detected to input the input string again in the current input scene, searching the pair from the cache.
In this embodiment, when it is detected that the user inputs the input string (e.g., "jingtia") again in the current input scenario (e.g., a word document currently being edited), the execution subject may search the pair from the cache.
And step 207, replacing the input string input again by the user with the error correction string in the pairing under the condition that the pairing is found.
At step 208, at least one candidate item containing the target candidate item is presented.
In this embodiment, the execution subject may present at least one candidate including the target candidate (the candidate "static" in the example described in step 203) after replacing the input string input again by the user with the error correction string in the pair.
It will be appreciated that the user has previously manually corrected the input string and selected the target candidate item on-screen, and thus the user's intent to enter the input string is to screen the target candidate item. Therefore, when the user inputs the input string again and automatically corrects the error, the candidate item containing the target candidate item is presented, the user can conveniently select the candidate item, and the input efficiency is improved.
As can be seen from fig. 2, compared with the corresponding embodiment of fig. 1, in one aspect, the present embodiment relates to the step of presenting the target candidate word after detecting that the user inputs the paired stored input strings again in the current input scenario and performs automatic error correction. Therefore, the presented candidate words are more in line with the user intention, the user can select the candidate words conveniently, and the input efficiency is improved. On the other hand, the embodiment also relates to the operation of storing the pairing in the cache, and since the cache can improve the data access speed, the pairing of the input string and the error correction string is stored in the cache, so that the searching speed can be improved when the pairing is searched, and the input efficiency is further improved. In another aspect, the present embodiment also relates to an operation that, after detecting that the user exits from the current input scenario (for example, the user closes a word document currently being edited), the corresponding pair may be deleted from the cache. Thus, it is possible to prevent the error correction string in the pair from affecting the content input in other input scenarios.
With further reference to fig. 3, as an implementation of the methods shown in the above-mentioned figures, the present application provides an embodiment of an input error correction apparatus, which corresponds to the embodiment of the method shown in fig. 1, and which is particularly applicable to various electronic devices.
As shown in fig. 3, the input error correction apparatus 300 according to the present embodiment includes: a detection unit 301 configured to detect an error correction operation performed on an input string by a user, and obtain an error correction string corresponding to the input string; a storage unit 302 configured to establish a pairing of the input string and the error correction string and store the pairing if the error correction operation satisfies a preset condition; a replacing unit 303 configured to replace the input string input again by the user with the error correction string based on the pairing when it is detected that the user inputs the input string again.
In some optional implementations of the present embodiment, the detection unit 301 is further configured to: acquiring an input string in an input process; and determining that the user performs an error correction operation on the input string when detecting at least one of character deletion of the input string by the user, character re-input after character deletion, character insertion into the input string, and character order exchange in the input string.
In some optional implementations of the present embodiment, the storage unit 302 is further configured to: acquiring the execution times of the error correction operation of the input string by a user in the current input scene; and if the execution times are equal to a preset threshold value, establishing a pairing of the input string and the error correction string, and storing the pairing into a local cache.
In some optional implementations of this embodiment, the apparatus further includes: and the updating unit is configured to update the execution times and continue to detect the error correction operation of the input string by the user if the execution times is smaller than the preset threshold.
In some optional implementations of this embodiment, the replacing unit 303 is further configured to: when the user is detected to input the input string again in the current input scene, searching the pair from the cache; if the pairing is found, replacing the input string input again by the user with the error correction string in the pairing; wherein, in the case that the pair is found, replacing the input string input again by the user with the error correction string in the pair includes: if the searched pairs comprise at least two pairs, acquiring the context information of the input string input again by the user; and determining a target pair of the pairs based on the context information, and replacing the input string input again by the user with an error correction string in the target pair.
In some optional implementations of this embodiment, the apparatus further includes: a deleting unit configured to delete the pair from the cache after detecting that the user exits the current input scenario.
In some optional implementations of this embodiment, the apparatus further includes: a first presentation unit configured to present candidates corresponding to the error correction string; a trigger operation detection unit configured to detect a trigger operation of a user on a presented candidate item and take the candidate item indicated by the trigger operation as a target candidate item; and a second presenting unit configured to present at least one candidate including the target candidate after the replacement of the input string input again by the user with the error correction string.
The device provided by the above embodiment of the present application obtains an error correction string corresponding to an input string by detecting an error correction operation performed on the input string by a user; if the error correction operation meets the preset condition, establishing the pairing of the input string and the error correction string, and storing the pairing; when it is detected that the user has input the input string again, the input string input again by the user is replaced with the error correction string based on the pairing. Therefore, when the input error cannot be automatically corrected or is not automatically detected to cause manual correction by a user, the pairing of the input string manually corrected by the user and the error correction string can be stored, so that the error input string can be automatically replaced by the error correction string according to the pairing when the input string is input next time, repeated manual correction by the user is not needed, and the input efficiency is improved.
Fig. 4 is a block diagram illustrating an apparatus 400 for input according to an example embodiment, where the apparatus 400 may be an intelligent terminal or a server. For example, the apparatus 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 4, the apparatus 400 may include one or more of the following components: processing components 402, memory 404, power components 406, multimedia components 408, audio components 410, input/output (I/O) interfaces 412, sensor components 414, and communication components 416.
The processing component 402 generally controls overall operation of the apparatus 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing element 402 may include one or more processors 420 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store various types of data to support operations at the apparatus 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 404 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power supply components 406 provide power to the various components of device 400. The power components 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 400.
The multimedia component 408 includes a screen that provides an output interface between the device 400 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of the touch or slide action but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 400 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 410 is configured to output and/or input audio signals. For example, audio component 410 includes a Microphone (MIC) configured to receive external audio signals when apparatus 400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 414 includes one or more sensors for providing various aspects of status assessment for the apparatus 400. For example, the sensor assembly 414 may detect an open/closed state of the device 400, the relative positioning of the components, such as a display and keypad of the apparatus 400, the sensor assembly 414 may also detect a change in the position of the apparatus 400 or a component of the apparatus 400, the presence or absence of user contact with the apparatus 400, orientation or acceleration/deceleration of the apparatus 400, and a change in the temperature of the apparatus 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate wired or wireless communication between the apparatus 400 and other devices. The apparatus 400 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 404 comprising instructions, executable by the processor 420 of the apparatus 400 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 5 is a schematic diagram of a server in some embodiments of the present application. The server 500 may vary widely in configuration or performance and may include one or more Central Processing Units (CPUs) 522 (e.g., one or more processors) and memory 532, one or more storage media 530 (e.g., one or more mass storage devices) storing applications 542 or data 544. Memory 532 and storage media 530 may be, among other things, transient storage or persistent storage. The program stored on the storage medium 530 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, the central processor 522 may be configured to communicate with the storage medium 530, and execute a series of instruction operations in the storage medium 530 on the server 500.
The server 500 may also include one or more power supplies 526, one or more wired or wireless network interfaces 550, one or more input-output interfaces 558, one or more keyboards 556, and/or one or more operating systems 541, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
A non-transitory computer readable storage medium, wherein instructions of the storage medium, when executed by a processor of an apparatus (smart terminal or server), enable the apparatus to perform an input error correction method, the method comprising: detecting error correction operation of a user on an input string to obtain an error correction string corresponding to the input string; if the error correction operation meets a preset condition, establishing a pairing of the input string and the error correction string, and storing the pairing; and replacing the input string input again by the user with the error correction string based on the pairing when it is detected that the user inputs the input string again.
Optionally, the detecting an error correction operation of the user on the input string includes: acquiring an input string in an input process; and determining that the user performs an error correction operation on the input string when detecting at least one of character deletion of the input string by the user, character re-input after character deletion, character insertion into the input string, and character order exchange in the input string.
Optionally, the establishing a pair of the input string and the error correction string if the error correction operation satisfies a preset condition, and storing the pair includes: acquiring the execution times of the error correction operation of the input string by a user in the current input scene; and if the execution times are equal to a preset threshold value, establishing a pairing of the input string and the error correction string, and storing the pairing into a local cache.
Optionally, the apparatus is configured to execute the one or more programs by the one or more processors including instructions for: and if the execution times are smaller than the preset threshold, updating the execution times and continuously detecting the error correction operation of the user on the input string.
Optionally, the replacing, when it is detected that the user has input the input string again, the input string input again by the user with the error correction string based on the pairing, includes: when the user is detected to input the input string again in the current input scene, searching the pair from the cache; if the pairing is found, replacing the input string input again by the user with the error correction string in the pairing; wherein, in the case that the pair is found, replacing the input string input again by the user with the error correction string in the pair includes: if the searched pairs comprise at least two pairs, acquiring the context information of the input string input again by the user; and determining a target pair of the pairs based on the context information, and replacing the input string input again by the user with an error correction string in the target pair.
Optionally, the apparatus is configured to execute the one or more programs by the one or more processors including instructions for: and deleting the pairing from the cache after detecting that the user exits the current input scene.
Optionally, the apparatus is configured to execute the one or more programs by the one or more processors including instructions for: presenting candidate items corresponding to the error correction strings; detecting a trigger operation of a user on the presented candidate item, and taking the candidate item indicated by the trigger operation as a target candidate item; and presenting at least one candidate item containing the target candidate item after replacing the input string input again by the user with the error correction string.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice in the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.
The input error correction method, the input error correction device and the input error correction device provided by the present application are described in detail above, and specific examples are applied herein to illustrate the principles and embodiments of the present application, and the descriptions of the above embodiments are only used to help understand the method and the core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. An input error correction method, the method comprising:
detecting error correction operation of a user on an input string to obtain an error correction string corresponding to the input string;
if the error correction operation meets a preset condition, establishing pairing of the input string and the error correction string, and storing the pairing;
replacing the input string re-entered by the user with the error correction string based on the pairing when it is detected that the input string is re-entered by the user.
2. The method of claim 1, wherein detecting an error correction operation of the input string by the user comprises:
acquiring an input string in an input process;
and when detecting that the user deletes the character from the input string, re-inputs the character after deleting the character, inserts the character into the input string and exchanges the character sequence in the input string, determining that the user performs error correction operation on the input string.
3. The method of claim 1, wherein establishing a pairing of the input string and the error correction string if the error correction operation satisfies a preset condition, and storing the pairing comprises:
acquiring the execution times of the error correction operation of the input string by a user in the current input scene;
and if the execution times is equal to a preset threshold value, establishing a pairing of the input string and the error correction string, and storing the pairing to a local cache.
4. The method of claim 3, further comprising:
and if the execution times are smaller than the preset threshold value, updating the execution times, and continuously detecting the error correction operation of the user on the input string.
5. The method according to claim 3, wherein the replacing the input string input again by the user with the error correction string based on the pairing upon detecting that the input string input again by the user comprises:
when the user is detected to input the input string again in the current input scene, searching the pair from the cache;
replacing the input string input again by the user with the error correction string in the pairing under the condition that the pairing is found;
wherein, in the case that the pairing is found, replacing the input string input again by the user with the error correction string in the pairing comprises:
if the searched pairs comprise at least two pairs, acquiring the context information of the input string input again by the user;
and determining a target pair in the pair based on the context information, and replacing the input string input again by the user with an error correction string in the target pair.
6. The method of claim 3, wherein after storing the pairing to a local cache, the method further comprises:
deleting the pairing from the cache upon detecting that the user exits the current input scenario.
7. The method of claim 1, wherein after the obtaining the error correction string corresponding to the input string, the method further comprises:
presenting candidate items corresponding to the error correction strings;
detecting a trigger operation of a user on the presented candidate item, and taking the candidate item indicated by the trigger operation as a target candidate item; and
after the replacing the input string input again by the user with the error correction string, the method further includes:
presenting at least one candidate item containing the target candidate item.
8. An input error correction apparatus, characterized in that the apparatus comprises:
the device comprises a detection unit, a processing unit and a control unit, wherein the detection unit is configured to detect error correction operation of a user on an input string to obtain an error correction string corresponding to the input string;
a storage unit configured to establish a pairing of the input string and the error correction string and store the pairing if the error correction operation satisfies a preset condition;
a replacement unit configured to replace the input string re-input by the user with the error correction string based on the pairing when it is detected that the input string is re-input by the user.
9. An apparatus for input error correction comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors the one or more programs including instructions for:
detecting error correction operation of a user on an input string to obtain an error correction string corresponding to the input string;
if the error correction operation meets a preset condition, establishing pairing of the input string and the error correction string, and storing the pairing;
replacing the input string re-entered by the user with the error correction string based on the pairing when it is detected that the input string is re-entered by the user.
10. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN201911222518.9A 2019-12-03 2019-12-03 Input error correction method and device for input error correction Pending CN112905023A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911222518.9A CN112905023A (en) 2019-12-03 2019-12-03 Input error correction method and device for input error correction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911222518.9A CN112905023A (en) 2019-12-03 2019-12-03 Input error correction method and device for input error correction

Publications (1)

Publication Number Publication Date
CN112905023A true CN112905023A (en) 2021-06-04

Family

ID=76104146

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911222518.9A Pending CN112905023A (en) 2019-12-03 2019-12-03 Input error correction method and device for input error correction

Country Status (1)

Country Link
CN (1) CN112905023A (en)

Similar Documents

Publication Publication Date Title
US10296201B2 (en) Method and apparatus for text selection
CN107688399B (en) Input method and device and input device
CN107564526B (en) Processing method, apparatus and machine-readable medium
CN110795014B (en) Data processing method and device and data processing device
CN108073291B (en) Input method and device and input device
CN111324214B (en) Statement error correction method and device
CN109144286B (en) Input method and device
CN109308126B (en) Candidate word display method and device
CN108108356B (en) Character translation method, device and equipment
CN110780749B (en) Character string error correction method and device
CN107977089B (en) Input method and device and input device
CN108983992B (en) Candidate item display method and device with punctuation marks
CN112905023A (en) Input error correction method and device for input error correction
CN110147426B (en) Method for determining classification label of query text and related device
CN108241438B (en) Input method, input device and input device
CN109388328B (en) Input method, device and medium
CN111221710A (en) Method, device and equipment for identifying user type
CN110716653B (en) Method and device for determining association source
CN111880696B (en) Encyclopedic-based data processing method and device
CN107688400B (en) Input error correction method and device for input error correction
CN110020244B (en) Method and device for correcting website information
CN112925423A (en) Dynamic error correction method and device for dynamic error correction
CN113534972A (en) Entry prompting method and device and entry prompting device
CN113342180A (en) Input method and device and electronic equipment
CN115480653A (en) Input method, device and device for input

Legal Events

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