Input error correction method, device and device for input error correction

By detecting the user's error correction operation and establishing the pairing of the input string and the error correction string, the problem of low input efficiency in the prior art is solved, and automatic error correction is realized when the user inputs again, and input efficiency is improved.

CN112905023BActive Publication Date: 2024-12-27BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
View PDF 16 Cites 0 Cited by

Patent Information

Application Number
CN201911222518.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-03
Publication Date
2024-12-27
Estimated Expiration
2040-06-26

AI Technical Summary

Technical Problem

The existing input method application cannot meet the user's personalized needs, resulting in users needing to repeatedly manually correct the wrong input string in different input scenarios, resulting in low input efficiency.

Method used

By detecting the user's error correction operation, if the preset conditions are met, a pairing between the input string and the error correction string is established, and when the user inputs the input string again, it is automatically replaced with the error correction string to improve input efficiency.

Benefits of technology

There is no need for users to repeatedly correct errors, which improves input efficiency and reduces user manual correction operations in different input scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112905023B_ABST
    Figure CN112905023B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses an input error correction method, device and device for input error correction. The embodiment of the method includes: detecting the error correction operation of the user on the input string, obtaining the error correction string corresponding to the input string; if the error correction operation meets the preset conditions, establishing a pairing of the input string and the error correction string, and storing the pairing; when it is detected that the user re-enters the input string, based on the pairing, the input string re-entered by the user is replaced with the error correction string. This implementation improves input efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and specifically to an input error correction method, device, and a device for input error correction. Background Art

[0002] With the development of computer technology, the functions of input method applications are becoming more and more abundant. Input method applications can usually correct the wrong content input by users to obtain correct candidates and provide them to users, thereby improving input efficiency.

[0003] However, when the input scenarios are different, users usually have different input habits. The error correction function of existing input method applications can only be applied to common input errors, and usually cannot meet the personalized needs of users. For example, when a user writes related content about "static variables" in the computer field in Word, more words such as "static" and "variables" need to be displayed on the screen. When the user wants to display the word "static", he mistakenly inputs "jingtia". The existing input method application can only display and infer that the user has the input intention of "jingtian", thereby displaying candidate words such as "jingtian". At this time, the user needs to backspace to delete part of the character string and re-enter it, and change "jingtia" to "jingtai" before the candidate word "static" can be displayed. When the user enters the same wrong input string next time, manual corrections need to be repeated, resulting in low input efficiency. Summary of the invention

[0004] The embodiments of the present application provide an input error correction method, a device and a device for input error correction to solve the technical problem of low input efficiency in the prior art.

[0005] In a first aspect, an embodiment of the present application provides an input error correction method, the method comprising: detecting a user's error correction operation on an input string, and obtaining an error correction string corresponding to the input string; if the error correction operation satisfies a preset condition, establishing a pairing of the input string and the error correction string, and storing the pairing; when it is detected that the user enters the input string again, based on the pairing, replacing the input string entered again by the user with the error correction string.

[0006] In a second aspect, an embodiment of the present application provides an input error correction device, which includes: a detection unit, configured to detect a user's error correction operation on an 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 meets a preset condition, and store the pairing; a replacement unit, configured to replace the input string re-entered by the user with the error correction string based on the pairing when detecting that the user re-enters the input string.

[0007] In a third aspect, an embodiment of the present application provides a device for input error correction, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations: detecting a user's error correction operation on an input string, and obtaining an error correction string corresponding to the input string; if the error correction operation satisfies a preset condition, establishing a pairing of the input string and the error correction string, and storing the pairing; when it is detected that the user re-enters the input string, based on the pairing, replacing the input string re-entered by the user with the error correction string.

[0008] In a fourth aspect, an embodiment of the present application provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect above.

[0009] The input error correction method, device and device for input error correction provided by the embodiments of the present application obtain an error correction string corresponding to the input string by detecting the error correction operation of the user on the input string; if the error correction operation meets the preset conditions, a pairing of the input string and the error correction string is established and stored; when it is detected that the user inputs the input string again, based on the pairing, the input string input again by the user is replaced with the error correction string. Thus, when the error correction cannot be performed automatically or the input error is not automatically detected and the user manually corrects the error, the pairing of the input string manually corrected by the user and the error correction string can be stored, so that when the input string is input next time, the wrong input string can be automatically replaced with the error correction string based on the pairing, without the need for the user to repeat the manual correction, thereby improving the input efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0011] Figure 1 is a flow chart of an embodiment of an input error correction method according to the present application;

[0012] Figure 2 is a flow chart of another embodiment of the input error correction method according to the present application;

[0013] Figure 3 is a structural schematic diagram of an embodiment of an input error correction device according to the present application;

[0014] Figure 4 is a structural schematic diagram of a device for input error correction according to the present application;

[0015] Figure 5 It is a schematic diagram of the structure of the server in some embodiments of the present application. DETAILED DESCRIPTION

[0016] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0017] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0018] Please refer to Figure 1 , which shows a process 100 of an embodiment of the input error correction method according to the present application. The above-mentioned input error correction method can be run on various electronic devices, including but not limited to: servers, smart phones, tablet computers, e-book readers, MP3 (Moving Picture Experts Group Audio Layer III) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, car computers, desktop computers, set-top boxes, smart TVs, wearable devices, etc.

[0019] The above-mentioned electronic device may be installed with an input method application. The input method application mentioned in the embodiment of the present application can support multiple input methods. Among them, the input method can be a coding method used to input various symbols into electronic devices such as computers and mobile phones, and the user can use the input method application to conveniently input the required characters or strings into the electronic device. It should be noted that in the embodiment of the present application, in addition to supporting common Chinese input methods (such as pinyin input method, Wubi input method, Zhuyin input method, voice input method, handwriting input method, etc.), the input method can also support input methods of other languages ​​(such as Japanese Hiragana input method, Korean input method, etc.), and no limitation is made on the input method and the language type of the input method.

[0020] The input error correction method in this embodiment may include the following steps:

[0021] Step 101 , detecting the user's error correction operation on the input string, and obtaining an error correction string corresponding to the input string.

[0022] In this embodiment, the execution subject of the input error correction method (such as the above-mentioned electronic device) can detect the user's error correction operation on the input string after receiving the input string input by the user, so as to obtain an error correction string corresponding to the input string. Among them, the above-mentioned input string can be various character strings input by the user using the input method application, such as a pinyin character string. The above-mentioned error correction operation can be an operation to modify the input string, such as a backspace deletion operation, an input operation, etc. The new input string obtained after the user performs the error correction operation is the error correction string.

[0023] As an example, when the user wants to display the word "static" on the screen, he mistakenly inputs "jingtia". Existing input method applications can usually infer that the user intends to input "jingtian", and thus display candidate words such as "jingtian", and cannot use "static" as a candidate word. At this time, the user can backspace to delete part of the character string "ia" and re-enter "ai", thereby changing "jingtia" to "jingtai", and then presenting the candidate word "static" and making it appear on the screen. Therefore, it can be considered that the user has performed an error correction operation to correct the input string "jingtia" to "jingtai", and the new input string after the error correction operation is used as the error correction string corresponding to the original input string.

[0024] In some optional implementations of this embodiment, the execution subject may detect the user's error correction operation on the input string through the following steps: first, obtain the input string during the input process. Then, when it is detected that the user has performed at least one of deleting characters, re-entering characters after deleting characters, inserting characters into the input string, and changing the order of characters in the input string, it is determined that the user has performed an error correction operation on the input string.

[0025] Step 102: If the error correction operation meets the preset conditions, a pairing of the input string and the error correction string is established and the pairing is stored.

[0026] In this embodiment, the execution subject may determine whether the error correction operation satisfies a preset condition. If the preset condition is met, a pairing of the input string and the error correction string may be established and the pairing may be stored. The preset condition may be a condition for triggering the pairing operation. The preset condition may be pre-set as needed. For example, it may be set that the number of executions of the error correction operation of the input string by the user reaches a preset threshold (such as 2 times, 3 times, etc.).

[0027] In practice, the pairing of the input string and the error correction string can be established in the form of key-value pairs. For example, if the input string is "jingtia" and the error correction string is "jingtai", then "jingtia" can be used as the key and "jingtai" as the value to establish a pairing in the form of a key-value pair and store the pairing.

[0028] It should be noted that the pairing of the input string and the error correction string can be established in other forms. For example, the string "jingtia->jingtai" can be used to represent the pairing of "jingtia" and "jingtai". The embodiment of the present application does not limit the representation method of the pairing.

[0029] In some optional implementations of this embodiment, after detecting the user's error correction operation on the input string and obtaining the error correction string corresponding to the input string, the execution subject may store the pairing according to the following steps:

[0030] The first step is to obtain the number of times the user performs error correction operations on the input string in the current input scenario.

[0031] Here, the current input scenario may be an application currently being used, such as an instant messaging tool, a text editing tool (such as Word), and the like.

[0032] As an example, if the user is currently writing content about "static variables" in the computer field in Word, the current input environment is the Word document that the user is editing. In the current input environment, after detecting that the user has corrected the input string "jingtia" to "jingtai", the above-mentioned execution subject can obtain the number of times the user has performed the error correction operation on the input string "jingtia" (i.e., the operation of correcting the input string "jingtia" to "jingtai") in the current input scenario (i.e., the Word document currently being edited).

[0033] In the second step, if the execution times are equal to a preset threshold (such as 2 times), a pairing of the input string and the error correction string is established (such as "jingtia->jingtai"), and the pairing is stored in a local cache.

[0034] Here, since the cache can improve the data access speed, storing the pairing of the input string and the error correction string in the cache can improve the search speed when searching for the pairing, thereby improving the input efficiency.

[0035] In the above implementation, optionally, if the above execution times (ie) are less than the above preset threshold, the above execution subject may update the execution times (ie increase the execution times by 1) and continue to detect the user's error correction operation on the input string until the execution times reaches the preset threshold, establish a pairing between the input string and the error correction string, and store the pairing.

[0036] In the above implementation, optionally, after storing the pairing in the local cache, the execution subject can also delete the pairing from the cache after detecting that the user exits the current input scenario (such as the user closes the word document currently being edited). In this way, the error correction string in the pairing can be prevented from affecting the content input in other input scenarios.

[0037] Step 103 : when it is detected that the user inputs the input string again, based on the pairing, the input string input again by the user is replaced with the error correction string.

[0038] In this embodiment, when it is detected that the user re-enters the input string, the execution subject may replace the input string re-entered 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 pairing containing the keyword. Then, the error correction string in the pairing is extracted, so that the input string re-entered is replaced with the error correction string.

[0039] In some optional implementations of this embodiment, the following steps may be performed: First, when it is detected that the user re-enters the input string (such as "jingtia") in the current input scenario (such as the word document currently being edited), the pairing is searched from the cache. If the pairing is found, the input string re-entered by the user is replaced with the error correction string in the pairing. Thus, when the input string in the stored pairing is re-entered in the current scenario, the input string can be automatically replaced with the error correction string, without the need for the user to repeat manual error correction, thereby improving input efficiency.

[0040] It should be noted that if the found pairing includes at least two, the above-mentioned execution entity can first obtain the context information of the input string input again by the above-mentioned user. Among them, the context information may include the word before (such as the previous word) and / or the word after (such as the next word) the input focus (such as the cursor position in the word document) in the current input scenario. As an example, the user enters text in a word document, and the text includes the word "variable". At this time, the user moves the input focus to the front of the word "variable" and enters "jingtia" in the input method application. Then the "variable" belongs to the context information of the input string.

[0041] Then, based on the context information, the target pairing in the pairing can be determined, so that the input string re-entered by the user is replaced with the error correction string in the target pairing. In practice, the pairing associated with the context information can be selected as the target pairing. The degree of association between the context information and the pairing can be determined by the word frequency of the phrase consisting of the context information and the error correction string in the pairing. The higher the word frequency, the higher the degree of association.

[0042] As an example, if the input string "jingtia" has two pairs, the error correction strings in these two pairs are "jingtai" and "jingtou" respectively. If the context information contains "variable", through word frequency analysis, it can be known that the word frequency of the phrase consisting of the words "static" and "variable" corresponding to "jigntai" is the highest. At this time, the pair containing the input string "jingtai" can be used as the target pair, so that the input string re-entered by the above user is replaced with the error correction string "jingtai" in the target pair.

[0043] The method provided by the above-mentioned embodiment of the present application obtains an error correction string corresponding to the input string by detecting the error correction operation of the user on the input string; if the error correction operation meets the preset conditions, a pairing of the input string and the error correction string is established and stored; when it is detected that the user inputs the input string again, based on the pairing, the input string input again by the user is replaced with the error correction string. Thus, when the error correction cannot be performed automatically or the input error is not automatically detected and the user manually corrects the error, the pairing of the input string manually corrected by the user and the error correction string can be stored, so that when the input string is input next time, the wrong input string can be automatically replaced with the error correction string based on the pairing, without the need for the user to repeat the manual correction, thereby improving the input efficiency.

[0044] Further references Figure 2 , which shows a process 200 of another embodiment of an input error correction method. The process 200 of the input error correction method includes the following steps:

[0045] Step 201 , detecting the user's error correction operation on the input string, and obtaining an error correction string corresponding to the input string.

[0046] Step 201 in this embodiment can be found in Figure 1 Step 101 in the embodiment will not be described in detail here.

[0047] Step 202: presenting candidate items corresponding to the error correction string.

[0048] In this embodiment, after the error correction string is obtained, candidate items corresponding to the error correction string can be presented. For example, if the input string is "jingtia", after it is corrected to "jingtai", the candidate items of "jingtai" such as "static", "Jingtai", "Jingtai" and so on can be obtained.

[0049] Step 203: Detect the user's triggering operation on the presented candidate items, and use the candidate item indicated by the triggering operation as the target candidate item.

[0050] In this embodiment, the execution subject can detect the user's trigger operation (such as a click operation, etc.) on the presented candidate items, and use the candidate items indicated by the trigger operation as the target candidate items. Continuing with the above example, if the user clicks "static", "static" can be used as the target candidate item.

[0051] Step 204: Obtain the number of executions of the error correction operation performed by the user on the input string in the current input scenario.

[0052] In this embodiment, the execution subject may obtain the number of executions of the error correction operation of the input string by the user in the current input scenario. Here, the current input scenario may be the currently used application, such as an instant messaging tool, a text editing tool (such as Word), etc.

[0053] As an example, if the user is currently writing content about "static variables" in the computer field in Word, the current input environment is the Word document that the user is editing. In the current input environment, after detecting that the user has corrected the input string "jingtia" to "jingtai", the above-mentioned execution subject can obtain the number of times the user has performed the error correction operation on the input string "jingtia" (i.e., the operation of correcting the input string "jingtia" to "jingtai") in the current input scenario (i.e., the Word document currently being edited).

[0054] Step 205: if the number of executions is equal to the preset threshold, a pairing of the input string and the error correction string is established, and the pairing is stored in a local cache.

[0055] In this embodiment, if the execution times are equal to a preset threshold (eg, 2 times), a pairing of the input string and the error correction string (eg, "jingtia->jingtai") is established, and the pairing is stored in a local cache.

[0056] Here, since the cache can improve the data access speed, storing the pairing of the input string and the error correction string in the cache can improve the search speed when searching for the pairing, thereby improving the input efficiency.

[0057] In this embodiment, if the above-mentioned execution times (ie) are less than the above-mentioned preset threshold, the above-mentioned execution subject can update the execution times (ie, increase the execution times by 1) and continue to detect the user's error correction operation on the input string until the execution times reaches the preset threshold, establish a pairing of the input string and the error correction string, and store the pairing.

[0058] In this embodiment, after storing the pairing in the local cache, the execution subject can also delete the pairing from the cache after detecting that the user exits the current input scenario (such as the user closes the word document currently being edited). In this way, the error correction string in the pairing can be prevented from affecting the content input in other input scenarios.

[0059] Step 206: When it is detected that the user inputs the input string again in the current input scenario, searching for a pair from the cache.

[0060] In this embodiment, when it is detected that the user re-enters the input string (such as "jingtia") in the current input scenario (such as the word document currently being edited), the execution entity may search for the pairing from the cache.

[0061] Step 207: When a pair is found, the input string re-entered by the user is replaced with the error correction string in the pair.

[0062] Step 208: present at least one candidate item including the target candidate item.

[0063] In this embodiment, after replacing the input string re-entered by the user with the error correction string in the pairing, the execution entity can present at least one candidate item including the target candidate item (such as the candidate item "static" in the example described in step 203).

[0064] It is understandable that the user has previously manually corrected the input string and selected the target candidate item to be displayed on the screen, so the user's intention in entering the input string is to display the target candidate item on the screen. Therefore, when the user enters the input string again and automatically corrects the error, the candidate items including the target candidate item are presented, which is convenient for the user to select, thereby improving input efficiency.

[0065] from Figure 2 It can be seen that Figure 1Compared with the corresponding embodiment, on the one hand, this embodiment involves the step of presenting the target candidate word after detecting that the user re-enters the paired stored input string in the current input scenario and automatically corrects the error. As a result, the presented candidate words are more in line with the user's intention, which can be convenient for the user to select, thereby improving the input efficiency. On the other hand, this embodiment also involves the operation of storing the pairing in the cache. Since the cache can improve the data access speed, the pairing of the input string and the above-mentioned error correction string is stored in the cache, which can improve the search speed when searching for the pairing, thereby further improving the input efficiency. On the other hand, this embodiment also involves the operation of deleting the corresponding pairing from the above-mentioned cache after detecting that the user exits the above-mentioned current input scenario (such as the user closes the word document currently being edited). As a result, it can be avoided that the error correction string in the pairing affects the content input in other input scenarios.

[0066] Further references Figure 3 As an implementation of the methods shown in the above figures, the present application provides an embodiment of an input error correction device, which is similar to Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0067] like Figure 3 As shown, the input error correction device 300 described in this embodiment includes: a detection unit 301, configured to detect the user's error correction operation on the input string, and obtain an error correction string corresponding to the above input string; a storage unit 302, configured to establish a pairing between the above input string and the above error correction string if the above error correction operation meets the preset conditions, and store the above pairing; a replacement unit 303, configured to replace the above input string re-entered by the above user with the above error correction string based on the above pairing when it is detected that the above user re-enters the above input string.

[0068] In some optional implementations of the present embodiment, the detection unit 301 is further configured to: obtain an input string during the input process; and determine that the user has performed an error correction operation on the input string when it is detected that the user has deleted characters, re-entered characters after deleting characters, inserted characters into the input string, or changed the order of characters in the input string.

[0069] In some optional implementations of the present embodiment, the storage unit 302 is further configured to: obtain the number of executions of the error correction operation on the input string by the user in the current input scenario; if the number of executions is equal to a preset threshold, establish a pairing of the input string and the error correction string, and store the pairing in a local cache.

[0070] In some optional implementations of this embodiment, the apparatus further includes: an updating unit configured to update the execution times if the execution times are less than the preset threshold, and continue to detect the user's error correction operation on the input string.

[0071] In some optional implementations of the present embodiment, the replacement unit 303 is further configured to: when it is detected that the user re-enters the input string in the current input scenario, search for the pairing in the cache; if the pairing is found, replace the input string re-entered by the user with the error correction string in the pairing; wherein, when the pairing is found, replace the input string re-entered by the user with the error correction string in the pairing, including: if the found pairing includes at least two, obtain context information of the input string re-entered by the user; based on the context information, determine the target pairing in the pairing, and replace the input string re-entered by the user with the error correction string in the target pairing.

[0072] In some optional implementations of this embodiment, the apparatus further includes: a deleting unit configured to delete the pairing from the cache after detecting that the user exits the current input scenario.

[0073] In some optional implementations of the present embodiment, the above-mentioned device also includes: a first presentation unit, configured to present candidate items corresponding to the above-mentioned error correction string; a trigger operation detection unit, configured to detect the user's trigger operation on the presented candidate items, and use the candidate items indicated by the above-mentioned trigger operation as the target candidate items; and a second presentation unit, configured to present at least one candidate item including the above-mentioned target candidate items after replacing the above-mentioned input string re-entered by the user with the above-mentioned error correction string.

[0074] The device provided by the above-mentioned embodiment of the present application obtains an error correction string corresponding to the input string by detecting the error correction operation of the user on the input string; if the error correction operation meets the preset conditions, a pairing of the input string and the error correction string is established and stored; when it is detected that the user inputs the input string again, based on the pairing, the input string input again by the user is replaced with the error correction string. Thus, when the error correction cannot be performed automatically or the input error is not automatically detected and the user manually corrects the error, the pairing of the input string manually corrected by the user and the error correction string can be stored, so that when the input string is input next time, the wrong input string can be automatically replaced with the error correction string based on the pairing, without the need for the user to repeat the manual correction, thereby improving the input efficiency.

[0075] Figure 44 is a block diagram of an input device 400 according to an exemplary embodiment, and the device 400 may be a smart terminal or a server. For example, the device 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0076] Reference Figure 4 , the device 400 may include one or more of the following components: a processing component 402 , a memory 404 , a power component 406 , a multimedia component 408 , an audio component 410 , an input / output (I / O) interface 412 , a sensor component 414 , and a communication component 416 .

[0077] The processing component 402 generally controls the overall operation of the device 400, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the above-described method. In addition, the processing component 402 may include one or more modules to facilitate interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.

[0078] The memory 404 is configured to store various types of data to support operations on the device 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phone book data, messages, pictures, videos, etc. The memory 404 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, 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 disk or optical disk.

[0079] The power supply component 406 provides power to the various components of the device 400. The power supply component 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 400.

[0080] The multimedia component 408 includes a screen that provides an output interface between the above-mentioned device 400 and the 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 can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The above-mentioned touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the above-mentioned touch or slide operation. In some embodiments, the multimedia component 408 includes a front camera and / or a rear camera. When the device 400 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.

[0081] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC), and when the device 400 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 404 or sent via the communication component 416. In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.

[0082] I / O interface 412 provides an interface between processing component 402 and peripheral interface modules, such as 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.

[0083] The sensor assembly 414 includes one or more sensors for providing various aspects of status assessment for the device 400. For example, the sensor assembly 414 can detect the open / closed state of the device 400, the relative positioning of the components, such as the display and keypad of the device 400, the sensor assembly 414 can also detect the position change of the device 400 or a component of the device 400, the presence or absence of user contact with the device 400, the orientation or acceleration / deceleration of the device 400 and the temperature change of the device 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 an optical 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 accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

[0084] The communication component 416 is configured to facilitate wired or wireless communication between the device 400 and other devices. The device 400 can 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 a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0085] 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, microcontrollers, microprocessors, or other electronic components to perform the above method.

[0086] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 404 including instructions, and the instructions can be executed by a processor 420 of the device 400 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0087] Figure 5 5 is a schematic diagram of the structure of the server in some embodiments of the present application. The server 500 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 522 (for example, one or more processors) and a memory 532, and one or more storage media 530 (for example, one or more mass storage devices) storing application programs 542 or data 544. Among them, the memory 532 and the storage medium 530 can be short-term storage or permanent storage. The program stored in the storage medium 530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 522 can 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.

[0088] 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 and output interfaces 558, one or more keyboards 556, and / or one or more operating systems 541, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0089] A non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by a processor of a device (smart terminal or server), the device is able to perform an input error correction method. The method includes: detecting a user's error correction operation 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 between the input string and the error correction string, and storing the pairing; when it is detected that the user re-enters the input string, based on the pairing, replacing the input string re-entered by the user with the error correction string.

[0090] Optionally, the above-mentioned detection of the user's error correction operation on the input string includes: obtaining the input string during the input process; when it is detected that the user has performed at least one of the following operations on the input string: deleting characters, re-entering characters after deleting characters, inserting characters into the input string, and changing the order of characters in the input string, it is determined that the above-mentioned user has performed an error correction operation on the above-mentioned input string.

[0091] Optionally, if the error correction operation meets preset conditions, a pairing of the input string and the error correction string is established, and the pairing is stored, including: obtaining the number of executions of the error correction operation on the input string by the user in the current input scenario; if the number of executions is equal to a preset threshold, a pairing of the input string and the error correction string is established, and the pairing is stored in a local cache.

[0092] Optionally, the apparatus is configured to execute the one or more programs by one or more processors including instructions for performing the following operations: if the execution times are less than the preset threshold, updating the execution times and continuing to detect the user's error correction operation on the input string.

[0093] Optionally, when it is detected that the user re-enters the input string, based on the pairing, the input string re-entered by the user is replaced with the error correction string, including: when it is detected that the user re-enters the input string in the current input scenario, searching the cache for the pairing; if the pairing is found, replacing the input string re-entered by the user with the error correction string in the pairing; wherein, when the pairing is found, replacing the input string re-entered by the user with the error correction string in the pairing includes: if the found pairing includes at least two, obtaining context information of the input string re-entered by the user; based on the context information, determining a target pairing in the pairing, and replacing the input string re-entered by the user with the error correction string in the target pairing.

[0094] Optionally, the apparatus is configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations: after detecting that the user exits the current input scene, deleting the pairing from the cache.

[0095] Optionally, the above-mentioned device is configured to execute the above-mentioned one or more programs including instructions for performing the following operations by one or more processors: presenting candidate items corresponding to the above-mentioned error correction string; detecting a trigger operation of the user on the presented candidate items, and taking the candidate items indicated by the above-mentioned trigger operation as the target candidate items; and after replacing the above-mentioned input string re-entered by the user with the above-mentioned error correction string, presenting at least one candidate item including the above-mentioned target candidate items.

[0096] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the application disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0097] It should be understood that the present application is not limited to the precise structures that have been 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 present application is limited only by the appended claims.

[0098] The above is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

[0099] The above is a detailed introduction to an input error correction method, device and a device for input error correction provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. An input error correction method, characterized in that: The method comprises: Detecting a user's error correction operation on an input string, and obtaining an error correction string corresponding to the input string; Obtaining the number of executions of the error correction operation performed by the user on the input string in the current input scenario; If the execution number is equal to a preset threshold, a pairing of the input string and the error correction string is established, and the pairing is stored in a local cache; When it is detected that the user inputs the input string again in the current input scenario, based on the pairing, the input string input again by the user is replaced with the error correction string; The method further comprises: After detecting that the user exits the current input scene, the pairing is deleted from the cache.

2. The method according to claim 1, characterized in that The detecting the error correction operation of the user on the input string includes: Get the input string during the input process; When it is detected that the user has performed at least one of deleting characters, re-entering characters after deleting characters, inserting characters into the input string, and changing the order of characters in the input string, it is determined that the user has performed an error correction operation on the input string.

3. The method according to claim 1, characterized in that The method further comprises: If the execution times are less than the preset threshold, the execution times are updated, and the user's error correction operation on the input string is continuously detected.

4. The method according to claim 1, characterized in that: The step of, when detecting that the user inputs the input string again, replacing the input string input again by the user with the error correction string based on the pairing, comprises: When detecting that the user inputs the input string again in the current input scenario, searching for the pairing from the cache; When the pair is found, replacing the input string re-entered by the user with the error correction string in the pair; Wherein, when the pair is found, replacing the input string input again by the user with the error correction string in the pair includes: If the found pairings include at least two, obtaining context information of the input string input again by the user; Based on the context information, a target pairing in the pairing is determined, and the input string re-entered by the user is replaced with the error correction string in the target pairing.

5. The method according to claim 1, characterized in that After obtaining the error correction string corresponding to the input string, the method further includes: presenting candidate items corresponding to the error correction string; Detecting a trigger operation of a user on the presented candidate items, and taking the candidate items indicated by the trigger operation as target candidate items; and After replacing the input string re-entered by the user with the error correction string, the method further includes: At least one candidate item including the target candidate item is presented.

6. An input error correction device, characterized in that: The device comprises: a detection unit configured to detect a user's error correction operation on an input string and obtain an error correction string corresponding to the input string; A storage unit is configured to obtain the number of executions of the error correction operation of the user on the input string in the current input scenario; if the execution number is equal to a preset threshold, establish a pairing of the input string and the error correction string, and store the pairing in a local cache; a replacement unit, configured to, when detecting that the user re-enters the input string in the current input scenario, replace the input string re-entered by the user with the error correction string based on the pairing; The device also includes: The deleting unit is configured to delete the pairing from the cache after detecting that the user exits the current input scene.

7. The device according to claim 6, characterized in that The detection unit is further configured to: Get the input string during the input process; When it is detected that the user has performed at least one of deleting characters, re-entering characters after deleting characters, inserting characters into the input string, and changing the order of characters in the input string, it is determined that the user has performed an error correction operation on the input string.

8. The device according to claim 6, characterized in that The device also includes: The updating unit is configured to update the execution times if the execution times are less than the preset threshold value, and continue to detect the error correction operation of the user on the input string.

9. The device according to claim 6, characterized in that The replacement unit is further configured to: When detecting that the user inputs the input string again in the current input scenario, searching for the pairing from the cache; When the pair is found, replacing the input string re-entered by the user with the error correction string in the pair; Wherein, when the pair is found, replacing the input string input again by the user with the error correction string in the pair includes: If the found pairings include at least two, obtaining context information of the input string input again by the user; Based on the context information, a target pairing in the pairing is determined, and the input string re-entered by the user is replaced with the error correction string in the target pairing.

10. A device for input error correction, characterized in that: The device comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors to perform the method according to any one of claims 1 to 5.

11. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Error correcting method for touch screen input, apparatus and communication terminal

    CN101382857A

  • Word input method and system

    CN102135814A

  • User-specified phrase input learning

    CN102246158A

  • Character input method and device

    CN102866826A

  • Chinese search engine mixed speech-oriented query error corrosion method and system

    CN102867040A