CN113190125A - Input correction method and device - Google Patents

Input correction method and device Download PDF

Info

Publication number
CN113190125A
CN113190125A CN202110491536.8A CN202110491536A CN113190125A CN 113190125 A CN113190125 A CN 113190125A CN 202110491536 A CN202110491536 A CN 202110491536A CN 113190125 A CN113190125 A CN 113190125A
Authority
CN
China
Prior art keywords
character string
input
corrected
user
string
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
CN202110491536.8A
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.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou 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 Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202110491536.8A priority Critical patent/CN113190125A/en
Publication of CN113190125A publication Critical patent/CN113190125A/en
Priority to PCT/CN2022/090305 priority patent/WO2022233275A1/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/232Orthographic correction, e.g. spell checking or vowelisation

Abstract

The application discloses an input correction method and device, and belongs to the technical field of communication. The method comprises the following steps: receiving a second character string input by a user under the condition that the first character string is input in the current input method interface; under the condition that the first character string comprises the second character string, if a third character string input by a user is received, marking at least one character string to be corrected in the first character string and associated with the second character string; and replacing the target character string to be corrected in the at least one character string to be corrected with the third character string.

Description

Input correction method and device
Technical Field
The application belongs to the technical field of communication, and particularly relates to an input correction method and device.
Background
With the continuous popularization of intelligent electronic devices, it has become a common practice to use electronic devices for communication, and the system provides users with various communication modes, such as text, voice, video, etc., wherein the most common communication modes are text communication, and various input methods are developed in order to better meet the user demands.
However, a problem commonly existing in the input schemes of various existing input methods is that a user inevitably has an error input condition during input, when a complete character string is input, due to reasons such as too fast typing, a keyboard is touched by mistake, so that an error character appears in the character string, if the user needs to modify the error character, the user needs to click a cursor to a position behind the error character, then input a correct character again after deleting the error character, and then click the cursor again to a position behind the last character of the character string, namely the tail of the character string, so that the operation is complicated, the time consumption is too long in the input correction process, and the user experience is poor.
Disclosure of Invention
The embodiment of the application aims to provide an input correction method and device, which can solve the problem that the character correction takes long time in the input process.
In a first aspect, an embodiment of the present application provides an input rectification method, where the method includes:
receiving a second character string input by a user under the condition that the first character string is input in the current input method interface;
under the condition that the first character string comprises the second character string, if a third character string input by a user is received, marking at least one character string to be corrected in the first character string and associated with the second character string;
and replacing the target character string to be corrected in the at least one character string to be corrected with the third character string.
In a second aspect, embodiments of the present application provide an input orthotic device, the device comprising:
the first receiving module is used for receiving a second character string input by a user under the condition that the first character string is input in the current input method interface;
the first marking module is used for marking at least one character string to be corrected in the first character string and associated with the second character string if a third character string input by a user is received under the condition that the second character string is included in the first character string;
and the replacing module is used for replacing the target character string to be corrected in the at least one character string to be corrected with the third character string.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the input correction method of the embodiment of the application, when a first character string is input in a current input method interface, a second character string input by a user can be received, and when the first character string includes the second character string, if a third character string input by the user is received, at least one character string to be corrected in the first character string and associated with the second character string can be marked for correction, and then a target character string to be corrected in the at least one character string to be corrected can be replaced by the third character string. That is, under the condition that the first character string includes the second character string, the user can continue to input the corrected third character string, subsequently mark at least one character string to be corrected, replace the target character string to be corrected in the at least one character string to be corrected with the third character string, realize input correction, do not need to move the cursor to the position of the character string to be corrected to delete one by one, and input the correct character string again, can reduce the time consumed by character correction in the input process, and improve the user experience.
Drawings
FIG. 1 is a flow chart of an input rectification method provided by an embodiment of the present application;
FIG. 2 is a second flowchart of an input rectification method according to an embodiment of the present application;
FIG. 3 is one of the display interfaces of the electronic device provided by the embodiments of the present application;
fig. 4 is a second display interface of the electronic device according to the embodiment of the present application;
fig. 5 is a third display interface of an electronic device according to an embodiment of the present application;
FIG. 6 is a fourth illustration showing a display interface of an electronic device according to an embodiment of the disclosure;
FIG. 7 is a schematic view of an input orthotic device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application
Fig. 9 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The input correction method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings by specific embodiments and application scenarios thereof.
As shown in fig. 1, the present application provides an input rectification method of an embodiment, including:
step 101: and receiving a second character string input by a user under the condition that the first character string is input by the current input method interface.
In a chat scene or other scenes where a user needs to input content, the user may input content through an input method, such as a pinyin input method, and as an example, in the process of inputting content through the pinyin input method, not only the input pinyin but also texts matched according to the pinyin are displayed, so that the user can select a required text from the matched texts to realize text input and the like. In this embodiment, in the current input method interface, the user has input the first character string, but there may be an erroneous character in the first character string due to the erroneous input in the input first character string, and then the erroneous character in the input first character string needs to be corrected. As an example, if the pinyin input method is used for inputting, the character strings in the embodiment of the application are pinyin character strings.
Step 102: under the condition that the first character string comprises the second character string, if a third character string input by a user is received, marking at least one character string to be corrected in the first character string, which is associated with the second character string.
After receiving the second character string input by the user, the second character string may be compared with the input first character string to determine whether the first character string includes the second character string, where it should be noted that in the process of determining whether the first character string includes the second character string, the second character string is detected as a whole in the first character string.
In the case that the first character string includes the second character string, it means that the second character string has been input, at this time, the correction mode may be entered, and if a third character string (including at least one character) input by the user is subsequently accepted, the third character string may be regarded as a replacement character string, which may be used to replace the character string requiring correction. In order to facilitate the user to view the correctable character string for correction and improve the correction efficiency, at least one character string to be corrected in the first character string associated with the second character string may be marked under the condition that a third character string input by the user is received, the first character string may include at least one second character string, and then more than one character string to be corrected in the first character string associated with the second character string may be included, so that at least one character string to be corrected in the first character string associated with the second character string may be marked. It is understood that the character string of the first character string that can be corrected is associated with the second character string of the first character string, that is, at least one character string to be corrected in the first character string can be determined through the second character string, and any character string to be corrected comprises at least one character.
Step 103: and replacing the target character string to be corrected in the at least one character string to be corrected with a third character string.
After the at least one character string to be corrected is marked, correction can be performed, a target character string to be corrected in the at least one character string to be corrected is replaced by a third character string, the target character string to be corrected in the first character string is corrected into the third character string, and input correction is achieved.
In the input correction method of the embodiment of the application, when a first character string is input in a current input method interface, a second character string input by a user can be received, and when the first character string includes the second character string, if a third character string input by the user is received, at least one character string to be corrected in the first character string and associated with the second character string can be marked for correction, and then a target character string to be corrected in the at least one character string to be corrected can be replaced by the third character string. That is, under the condition that the first character string includes the second character string, the user can continue to input the corrected third character string, subsequently mark at least one character string to be corrected, replace the target character string to be corrected in the at least one character string to be corrected with the third character string, realize input correction, do not need to move the cursor to the position of the character string to be corrected to delete one by one, and input the correct character string again, can reduce the time consumed by character correction in the input process, and improve the user experience.
In one embodiment, after receiving the second character string input by the user, the method further comprises:
displaying first character information corresponding to the first character string and the second character string on an input method interface;
after receiving the third character string input by the user or replacing the target character string to be corrected in the at least one character string to be corrected with the third character string, the method further comprises the following steps:
and deleting the text information corresponding to the second character string in the first text information.
The first character information comprises character information corresponding to the first character string and character information corresponding to the second character string, the character information corresponding to the first character string can be displayed after the first character string is input, the character information corresponding to the second character string can also be displayed after the second character string is input, and therefore after the second character string is received, the first character information corresponding to the first character string and the first character information corresponding to the second character string can be displayed in the current input method interface. Therefore, the user can conveniently check the text information corresponding to the character string and find input errors and the like.
As an example, after receiving the third character string, the text information corresponding to the third character string may be displayed on the input method interface, and after replacing the target character string to be corrected in the at least one character string to be corrected with the third character string, the text information corresponding to the third character string in the input method interface may be deleted, that is, the text information corresponding to the third character string is not displayed, so as to avoid occupying the display space of the input method interface.
If the first character string comprises the second character string and the subsequent user continues to input characters, receiving a third character string input by the user or replacing a target character string to be corrected in at least one character string to be corrected with the third character string, it will be appreciated that the second string of characters entered is used to correct the prompt or trigger, and that entry is not normal, and thus, after receiving the third character string input by the user or replacing the target character string to be corrected in the at least one character string to be corrected with the third character string, the text information corresponding to the second character string in the first text information can be deleted, so that misleading of the text information to a user is reduced, the user is prevented from determining whether input is wrong or not by checking the text information of the second character string, the input accuracy is improved, and meanwhile, the input method interface has more display space to display other contents.
In one embodiment, the first character string and the second character string are characters input in an input box of the input method interface, and after receiving the second character string input by the user, the method further comprises:
and under the condition that the second character string input by the user meets the preset condition, displaying the text information corresponding to the first character string on the input method interface, wherein the text information corresponding to the second character string is not displayed.
That is, in this embodiment, after receiving the first character string, if the second character string satisfies the preset condition, it can be understood that the second character string satisfies the condition serving as a correction prompt or a correction trigger, and the text information corresponding to the first character string is displayed in the input method interface without the text information of the second character string, so that the display space of the input method interface is prevented from being occupied, and the user can conveniently view other input contents.
As an example, the preset condition may include, but is not limited to, at least one of the following:
receiving no character input within a second preset time after the input end time of the second character string;
the input time interval between the characters in the second character string is longer than a third preset time length.
In one embodiment, replacing a target character string to be corrected in at least one character string to be corrected with a third character string includes:
and under the condition that a first input of a mark of a target character string to be corrected by a user is received within a first preset time after the target time, replacing the target character string to be corrected in at least one character string to be corrected with a third character string, wherein the target time is the input end time of the third character string.
In this embodiment, a character string to be corrected may be selected from at least one character string to be corrected, in order to reduce correction time and improve correction efficiency, a first input may be performed on a mark of a target character string to be corrected within a first preset time period after the input of a third character string is completed, and the target character string to be corrected in the at least one character string to be corrected is replaced with the third character string, so as to achieve input correction.
In one embodiment, in a case where the second character string is included in the first character string, the method further includes:
a second string of the first string is marked.
That is, not only the character string to be corrected needs to be marked, but also the second character string in the first character string needs to be marked, which is beneficial to prompting the second character string so as to position the second character string, and thus, is also beneficial to prompting the characters around the second character string. It should be noted that, after replacing the target character string to be corrected in the at least one character string to be corrected with the third character string, the mark of the character string to be corrected may be deleted, and in addition, the mark of the second character string may also be deleted.
In one embodiment, the at least one string to be rectified includes:
and at least one character string in the first character string, which is associated with the position of the second character string and is matched with the similarity of the third character string.
The positional association may include positional adjacency, may be after the second string position or before the second string position, and so on. The smaller the number of the difference characters between the two character strings is, the more similar the character strings are, the greater the similarity is, otherwise, the greater the difference is, the more dissimilar the similarity is, the smaller the similarity is, the similarity between the two character strings can be matched with the similarity of the third character string by dividing the number of the same characters between the two character strings by the number of characters of any one character string of the two character strings, and it can be understood that the number of the characters of the third character string is the same and the number of the difference characters between the third character string is less than a first preset number. For example, the first preset number may be selected to be 2, etc. It should be noted that, according to the order of the positions of the characters, the third string is "guai", the string to be compared is "huai", the first position is g and h, the comparison results are different, the second position is u and u, the comparison results are the same, the third position is a and a, the comparison results are the same, the fourth position is i and i, the comparison results are the same, that is, the number of the characters with difference is 1.
It should be noted that the number of the first character strings may be at least one, and for a target second character string (any second character string) in at least one second character string, if a character string associated with the target second character string position does not match the third character string, the mark of the target second character string may be deleted.
In one embodiment, marking at least one string to be corrected in the first string associated with the second string comprises at least one of:
carrying out color highlighting marking on at least one character string to be corrected;
marking at least one character string to be corrected through the first marking graph, wherein the character string to be corrected is positioned in the first marking graph;
and marking at least one character string to be corrected through a marking button, wherein the marking button is positioned in a display area of the character string to be corrected in an input frame of the input method interface.
It should be noted that the number of the first mark patterns may be the same as the number of the character strings to be corrected, each character string to be corrected corresponds to one first mark pattern, and one character string to be corrected is located in one corresponding first mark pattern. For example, the first marker pattern may be a marker frame, and may be, for example, an oval frame, a rectangular frame, a circular frame, a polygonal frame, or the like. In addition, the color of the color highlighting mark of at least one character string to be corrected may be the same or different. Besides the mode of comparing the color highlighting mark with the first mark graph, a mark button can be displayed in a display area of the character string to be corrected in an input frame of the input method interface, and the mark of at least one character string to be corrected is realized through the mark button. The first input may be an input to a mark button, for example, a click input or the like.
The process of the above input rectification method is described in detail below with an embodiment. The embodiment of the application provides a text input scheme for rapidly correcting misspellings without interruption based on intelligent matching. In the input process, the previous character string with the misspelled character string and the correct character string are input again, corresponding input is matched and marked intelligently, and the corresponding mark is clicked to realize quick replacement and correction, for example, in the case of a pinyin input method, the character string is a pinyin character string, as shown in fig. 2, the input correction method comprises the following processes:
step 201, a user inputs a first character string on a current input method interface by using a pinyin input method in a chat scene or other scenes, and text information corresponding to the first character string is displayed.
Step 202, the user autonomously judges whether a part of wrong pinyin spelling input exists in the first character string, and then the step 203 is executed, otherwise, the step 209 is directly executed.
Step 203, the user judges that the wrong pinyin input position is input without clicking a moving cursor, and only needs to input a previous pinyin character string with the wrong pinyin spelling, for example, if the user plans to input "tashinagangsisheshiguairen" in the input interface 210, and the result is input as "tashinagangsiyeshihuairen", as shown in fig. 3, the user inputs "huai" in error, and only needs to continuously input the previous character string "shi" (corresponding to the second character string) without moving the cursor, as shown in fig. 4.
In step 204, the system automatically matches all the character strings in the currently input first character string which are the same as the re-input pinyin spelling, i.e. the second character string, and color highlights the character strings, and the system can enter a correction mode, wherein the color highlights "shi" of "shihuaaine" and "shi" of "shinajia" in step 203 as an example, as shown in fig. 4.
Step 205, continue inputting the correct spelling, for example, step 204, continue inputting "guairen", i.e. corresponding to the third string, as shown in fig. 5.
And 206, the system continuously checks the similarity according to the third character string input by the pinyin spelling again and the character string associated with the original marked spelling, namely the position of the second character string, determines at least one character string to be corrected and marks the character string, for example, if the similarity is greater than a certain threshold value, the highlight mark is expanded, otherwise, the original highlight mark is cancelled. Continuing to take step 205 as an example, re-inputting "guairen", and performing similarity matching between the "guairen" and "huairen" by the system, finding that the similarity of "huairen" reaches 85.7% (6 characters are the same among 7 characters, and 85.7% is taken from the result of dividing 6 by 7), and the similarity of "najiago" is only 14.3%, so that "huairen" can be marked, the extension highlight is marked as "shihuairen", the original "shi" highlight of "shinajia" is cancelled, and "huairen" is the target character string to be corrected. The preset threshold of the similarity can be 50%, namely the similarity between the character string to be corrected and the third character string is greater than the preset threshold, and subsequently, along with the increase of the use frequency, the system is continuously matched and learned, and a more reasonable threshold is generated through training.
And step 207, judging whether the highlight mark of the target character string to be corrected is clicked within a first preset time, such as whether the user clicks the highlight mark within 5s, if so, entering step 208, and if not, directly entering step 209.
Step 208, the system replaces the highlighted target string to be corrected with the third string of the re-spelled input, and may delete the second and third strings, i.e., delete the "shiguairen" of the subsequent re-input, as shown in fig. 6.
Step 209. the user continues the current input without interruption.
Through the input correction method provided by the embodiment of the application, a user can quickly replace and correct error input by clicking the intelligently matched mark without interrupting the current input, the input continuity of the user input is not influenced, and the input speed and the input experience of the user are well improved.
As shown in fig. 7, an example input orthotic device 700 is provided, the device 700 comprising:
a first receiving module 701, configured to receive a second character string input by a user when a first character string is already input in a current input method interface;
a first marking module 702, configured to, if a third character string input by a user is received under the condition that the first character string includes the second character string, mark at least one to-be-corrected character string in the first character string, which is associated with the second character string;
a replacing module 703, configured to replace a target character string to be corrected in the at least one character string to be corrected with a third character string.
In one embodiment, the apparatus further comprises:
the first display module is used for displaying first character information corresponding to the first character string and the second character string on an input method interface after receiving the second character string input by a user;
and the deleting module is used for deleting the character information corresponding to the second character string in the first character information after receiving the third character string input by the user or replacing the target character string to be corrected in at least one character string to be corrected with the third character string.
In one embodiment, the first character string and the second character string are characters input in an input box of the input method interface;
the device still includes:
and the second display module is used for displaying the text information corresponding to the first character string on the input method interface after receiving the second character string input by the user and under the condition that the second character string input by the user meets the preset condition, wherein the text information corresponding to the second character string is not displayed.
In one embodiment, replacing a target character string to be corrected in at least one character string to be corrected with a third character string includes:
and under the condition that a first input of a mark of a target character string to be corrected by a user is received within a first preset time after the target time, replacing the target character string to be corrected in at least one character string to be corrected with a third character string, wherein the target time is the input end time of the third character string.
In one embodiment, the apparatus further comprises:
and the second marking module is used for marking the second character string in the first character string under the condition that the second character string is included in the first character string.
In one embodiment, the at least one string to be rectified includes:
and at least one character string in the first character string, which is associated with the position of the second character string and is matched with the similarity of the third character string.
In one embodiment, marking at least one string to be corrected in the first string associated with the second string comprises at least one of:
carrying out color highlighting marking on at least one character string to be corrected;
marking at least one character string to be corrected through the first marking graph, wherein the character string to be corrected is positioned in the first marking graph;
and marking at least one character string to be corrected through a marking button, wherein the marking button is positioned in a display area of the character string to be corrected in an input frame of the input method interface.
The input rectification device in the embodiment of the present application may be a device, and may also be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a Network Attached Storage (NAS), a personal computer (personal computer, PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not limited in particular.
The input orthotic device in the embodiments of the present application may be a device having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The input correction device provided in the embodiment of the present application can implement each process implemented by the above-mentioned input correction method embodiment, for example, can implement each process implemented by the method embodiments of fig. 1 and fig. 5, and is not described here again to avoid repetition.
Optionally, as shown in fig. 8, an electronic device 800 is further provided in this embodiment of the present application, and includes a processor 801, a memory 802, and a program or an instruction stored in the memory 802 and executable on the processor 801, where the program or the instruction is executed by the processor 801 to implement each process of the above-mentioned embodiment of the input correction method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 900 includes, but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910.
Those skilled in the art will appreciate that the electronic device 900 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 910 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system. The electronic device structure shown in fig. 9 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The user input unit 907 is configured to receive a second character string input by a user when the first character string is input in the current input method interface;
a processor 910, configured to, if a third character string input by a user is received in a case that a second character string is included in a first character string, mark at least one to-be-corrected character string in the first character string that is associated with the second character string;
and a processor 910, configured to replace a target character string to be corrected in the at least one character string to be corrected with a third character string.
In one embodiment, the display unit 906 is configured to display, on the input method interface, first text information corresponding to the first character string and the second character string after receiving the second character string input by the user;
the processor 910 is configured to delete the text information corresponding to the second character string in the first text information after receiving the third character string input by the user or replacing the target character string to be corrected in the at least one character string to be corrected with the third character string.
In one embodiment, the first character string and the second character string are characters input in an input box of the input method interface;
the display unit 906 is configured to display, on the input method interface, the text information corresponding to the first character string after receiving the second character string input by the user and when the second character string input by the user meets a preset condition, where the text information corresponding to the second character string is not displayed.
In one embodiment, replacing a target character string to be corrected in at least one character string to be corrected with a third character string includes:
and under the condition that a first input of a mark of a target character string to be corrected by a user is received within a first preset time after the target time, replacing the target character string to be corrected in at least one character string to be corrected with a third character string, wherein the target time is the input end time of the third character string.
In one embodiment, the processor 910 is configured to mark the second string in the first string if the second string is included in the first string.
In one embodiment, the at least one string to be rectified includes:
and at least one character string in the first character string, which is associated with the position of the second character string and is matched with the similarity of the third character string.
In one embodiment, marking at least one string to be corrected in the first string associated with the second string comprises at least one of:
carrying out color highlighting marking on at least one character string to be corrected;
marking at least one character string to be corrected through the first marking graph, wherein the character string to be corrected is positioned in the first marking graph;
and marking at least one character string to be corrected through a marking button, wherein the marking button is positioned in a display area of the character string to be corrected in an input frame of the input method interface.
It should be understood that, in the embodiment of the present application, the input Unit 904 may include a Graphics Processing Unit (GPU) 9041 and a microphone 9042, and the Graphics Processing Unit 9041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 907 includes a touch panel 9071 and other input devices 9072. A touch panel 9071 also referred to as a touch screen. The touch panel 9071 may include two parts, a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. Memory 909 can be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 910 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 910.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned embodiment of the input correction method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above input correction method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. A method of input rectification, the method comprising:
receiving a second character string input by a user under the condition that the first character string is input in the current input method interface;
under the condition that the first character string comprises the second character string, if a third character string input by a user is received, marking at least one character string to be corrected in the first character string and associated with the second character string;
and replacing the target character string to be corrected in the at least one character string to be corrected with the third character string.
2. The method of claim 1, wherein after receiving the second string of user inputs, the method further comprises:
displaying first text information corresponding to the first character string and the second character string on the input method interface;
after the receiving of the third character string input by the user or replacing the target character string to be corrected in the at least one character string to be corrected with the third character string, the method further includes:
and deleting the text information corresponding to the second character string in the first text information.
3. The method of claim 1, wherein the first character string and the second character string are characters entered in an input box of an input method interface, and wherein after receiving the second character string entered by the user, the method further comprises:
and under the condition that the second character string input by the user meets a preset condition, displaying the text information corresponding to the first character string on an input method interface, wherein the text information corresponding to the second character string is not displayed.
4. The method according to claim 1, wherein the replacing the target character string to be corrected in the at least one character string to be corrected with the third character string comprises:
and replacing the target character string to be corrected in the at least one character string to be corrected with the third character string under the condition that a first input of the mark of the target character string to be corrected by the user is received within a first preset time period after the target time, wherein the target time is the input end time of the third character string.
5. The method of claim 1, wherein if the second string is included in the first string, the method further comprises:
marking the second character string in the first character string.
6. The method of claim 1, wherein the at least one string to be rectified comprises:
and at least one character string in the first character string, which is associated with the second character string position and is matched with the third character string similarity.
7. An input orthotic device, the device comprising:
the first receiving module is used for receiving a second character string input by a user under the condition that the first character string is input in the current input method interface;
the first marking module is used for marking at least one character string to be corrected in the first character string and associated with the second character string if a third character string input by a user is received under the condition that the second character string is included in the first character string;
and the replacing module is used for replacing the target character string to be corrected in the at least one character string to be corrected with the third character string.
8. The apparatus of claim 7, further comprising:
the first display module is used for displaying first character information corresponding to the first character string and the second character string on the input method interface after receiving the second character string input by the user;
and the deleting module is used for deleting the text information corresponding to the second character string in the first text information after the third character string input by the user is received or the target character string to be corrected in the at least one character string to be corrected is replaced by the third character string.
9. The apparatus of claim 7, wherein the first character string and the second character string are characters entered in an input box of an input method interface;
the device further comprises:
and the second display module is used for displaying the text information corresponding to the first character string on an input method interface after the second character string input by the user is received and under the condition that the second character string input by the user meets a preset condition, wherein the text information corresponding to the second character string is not displayed.
10. The apparatus according to claim 7, wherein the replacing the target string to be corrected in the at least one string to be corrected with the third string comprises:
and replacing the target character string to be corrected in the at least one character string to be corrected with the third character string under the condition that a first input of the mark of the target character string to be corrected by the user is received within a first preset time period after the target time, wherein the target time is the input end time of the third character string.
11. The apparatus of claim 7, further comprising:
a second marking module, configured to mark the second character string in the first character string if the second character string is included in the first character string.
12. The apparatus of claim 7, wherein the at least one string to be corrected comprises:
and at least one character string in the first character string, which is associated with the second character string position and is matched with the third character string similarity.
CN202110491536.8A 2021-05-06 2021-05-06 Input correction method and device Pending CN113190125A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110491536.8A CN113190125A (en) 2021-05-06 2021-05-06 Input correction method and device
PCT/CN2022/090305 WO2022233275A1 (en) 2021-05-06 2022-04-29 Input correction method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110491536.8A CN113190125A (en) 2021-05-06 2021-05-06 Input correction method and device

Publications (1)

Publication Number Publication Date
CN113190125A true CN113190125A (en) 2021-07-30

Family

ID=76983954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110491536.8A Pending CN113190125A (en) 2021-05-06 2021-05-06 Input correction method and device

Country Status (2)

Country Link
CN (1) CN113190125A (en)
WO (1) WO2022233275A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022233275A1 (en) * 2021-05-06 2022-11-10 维沃移动通信(杭州)有限公司 Input correction method and apparatus

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101710262B (en) * 2009-12-11 2015-09-30 北京搜狗科技发展有限公司 The character error correction method of coded string and device in input method
KR101332757B1 (en) * 2013-05-16 2013-11-25 주식회사 큐키 Type correction method for word or letters without deletion input and device for implementing the method
US11112965B2 (en) * 2014-10-28 2021-09-07 Idelan, Inc. Advanced methods and systems for text input error correction
CN107688399B (en) * 2016-08-05 2022-04-12 北京搜狗科技发展有限公司 Input method and device and input device
CN109948122B (en) * 2017-12-21 2023-06-20 北京金山安全软件有限公司 Error correction method and device for input text and electronic equipment
CN113190125A (en) * 2021-05-06 2021-07-30 维沃移动通信(杭州)有限公司 Input correction method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022233275A1 (en) * 2021-05-06 2022-11-10 维沃移动通信(杭州)有限公司 Input correction method and apparatus

Also Published As

Publication number Publication date
WO2022233275A1 (en) 2022-11-10

Similar Documents

Publication Publication Date Title
US9152323B2 (en) Virtual keyboard providing an indication of received input
CN113518026B (en) Message processing method and device and electronic equipment
CN107918496B (en) Input error correction method and device for input error correction
EP2909702B1 (en) Contextually-specific automatic separators
WO2021254251A1 (en) Input display method and apparatus, and electronic device
CN112269475A (en) Character display method and device and electronic equipment
CN107688399B (en) Input method and device and input device
WO2022247789A1 (en) Candidate word update method and apparatus, and electronic device
CN112181253A (en) Information display method and device and electronic equipment
WO2022105754A1 (en) Character input method and apparatus, and electronic device
CN113190125A (en) Input correction method and device
US20240004541A1 (en) Content Extraction Method, Electronic Device and Medium
CN112764734A (en) Code editing assisting method and device and electronic equipment
CN112148135A (en) Input method processing method and device and electronic equipment
WO2023072265A1 (en) Message correcting method and apparatus, and electronic device
CN112732100A (en) Information processing method and device and electronic equipment
CN113342241A (en) Target character selection method and device, electronic equipment and storage medium
CN113885743A (en) Text content selection method and device
CN113126780A (en) Input method, input device, electronic equipment and readable storage medium
CN113407073A (en) Information display method and electronic equipment
CN112328096A (en) Candidate word display method and device and electronic equipment
CN111966267A (en) Application comment method and device and electronic equipment
CN112698734A (en) Candidate word display method and device and electronic equipment
CN112685126B (en) Document content display method and device
CN111782060A (en) Object display method and device and electronic equipment

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