CN110347996B - Text modification method and device, electronic equipment and storage medium - Google Patents

Text modification method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110347996B
CN110347996B CN201910635524.0A CN201910635524A CN110347996B CN 110347996 B CN110347996 B CN 110347996B CN 201910635524 A CN201910635524 A CN 201910635524A CN 110347996 B CN110347996 B CN 110347996B
Authority
CN
China
Prior art keywords
modification
information
word
user
word segmentation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910635524.0A
Other languages
Chinese (zh)
Other versions
CN110347996A (en
Inventor
范敏虎
吴婷婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910635524.0A priority Critical patent/CN110347996B/en
Publication of CN110347996A publication Critical patent/CN110347996A/en
Application granted granted Critical
Publication of CN110347996B publication Critical patent/CN110347996B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/26Speech to text systems

Abstract

According to the character modification method, the device, the electronic equipment and the storage medium, word segmentation processing is carried out on the character information by responding to a modification request initiated by a user on the character information, word segmentation results of the character information are displayed on a word segmentation interface, historical modification information corresponding to first word segmentation selected by the user is called and displayed on a modification candidate interface in response to a selection request of the user on the word segmentation results, the first word segmentation in the character information is replaced according to second word segmentation selected by the user from the historical modification information, and the replaced character information is displayed on a main interface. The word segmentation processing and word segmentation selection are sequentially carried out on the word information input by the voice, so that a user can quickly select the word to be modified, and the user can conveniently select the modified word based on the history modification information provided for the user, thereby realizing quick modification on the word information input by the voice and improving the modification efficiency.

Description

Text modification method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to computer technologies, and in particular, to a method and apparatus for modifying text, an electronic device, and a storage medium.
Background
The word input based on the voice is an important function of the input method, and can greatly improve the input efficiency of a user. However, due to the accuracy of speech recognition and the abundance of Chinese vocabulary, users often need to modify the input text after text input based on speech.
In the prior art, the process of modifying the text input by voice is complicated, the user needs to switch from the voice input interface to the keyboard input interface first, move the cursor to select the text to be modified, delete the text and input a new text by utilizing the keyboard, and return to the voice input interface to continue voice input.
On the one hand, the method needs to switch among the input interfaces of a plurality of input modes by a user, and particularly needs to select the characters to be modified by moving a cursor, and the method easily causes misoperation such as misselection, mismodification, misdeletion and the like in the character modification process, so that the character modification efficiency is low, and the use of the user is also not facilitated.
Disclosure of Invention
In view of the above problems, the present disclosure provides a method, an apparatus, an electronic device, and a storage medium for modifying text.
In a first aspect, the present disclosure provides a method for modifying text, including:
acquiring voice information of a user, and displaying text information obtained by performing text conversion processing on the voice information on a main interface;
responding to a modification request initiated by a user on the text information, performing word segmentation on the text information, and displaying a word segmentation result of the text information on a word segmentation interface;
responding to a selection request of a user on the word segmentation result, and calling and displaying history modification information corresponding to the first word segmentation selected by the user on a modification candidate interface;
and replacing the first word in the text information according to the second word selected by the user from the history modification information, and displaying the replaced text information on the main interface.
In an optional example of the disclosure, the responding to the selection request of the user on the word segmentation result invokes and displays the history modification information corresponding to the first word segmentation selected by the user after modifying the candidate interface, and further includes:
responding to an input instruction triggered by a user on a keyboard input interface of a main interface, and determining a third word segmentation input by the user;
and replacing the first word segmentation in the text information by using the third word segmentation, and displaying the replaced text information on the main interface.
In an optional example of the disclosure, further comprising:
counting each history text information for replacing the first word;
and generating corresponding history modification information of the first word according to all the history text information used for replacing the first word.
In an optional example of the disclosure, the statistics are used to replace each historical text information of the first word segment, including:
counting the replacement times of each historical text message corresponding to the first word segmentation;
and generating history modification information according to the history text information with the replacement times being greater than or equal to the threshold times.
In an optional example of the disclosure, the word segmentation interface is displayed at a first preset position of the main interface;
and the modification candidate interface is displayed at a second preset position of the main interface.
In a second aspect, an example of the present disclosure provides a text modification apparatus, including:
the acquisition unit is used for acquiring voice information of a user;
the processing unit is used for performing word conversion processing on the voice information to obtain word information;
the interface interaction unit is used for displaying text information obtained by performing text conversion processing on the voice information on a main interface; the processing unit is used for word segmentation processing of the text information and displaying word segmentation results of the text information on a word segmentation interface through the interface interaction unit;
the interface interaction unit is also used for responding to a selection request of the user on the word segmentation result, calling and displaying history modification information corresponding to the first word segmentation selected by the user on a modification candidate interface;
the processing unit is further configured to replace the first word segment in the text information according to the second word segment selected by the user from the history modification information, and display the replaced text information on the main interface through the interface interaction unit.
In an optional example of the disclosure, after responding to a selection request made by a user for the word segmentation result, the interface interaction unit displays history modification information corresponding to the first word segmentation selected by the user on a modification candidate interface, where the history modification information is further used for: responding to an input instruction triggered by a user on a keyboard input interface of a main interface, and determining a third word segmentation input by the user;
and the processing unit replaces the first word segmentation in the text information by the third word segmentation so that the interface interaction unit displays the replaced text information on the main interface.
In an alternative example of the present disclosure, the processing unit is further configured to:
counting each history text information for replacing the first word;
and generating corresponding history modification information of the first word according to all the history text information used for replacing the first word.
In an optional example of the disclosure, the processing unit is specifically configured to:
counting the replacement times of each historical text message corresponding to the first word segmentation;
and generating history modification information according to the history text information with the replacement times being greater than or equal to the threshold times.
In an optional example of the disclosure, the word segmentation interface is displayed at a first preset position of the main interface;
and the modification candidate interface is displayed at a second preset position of the main interface.
In a third aspect, examples of the present disclosure provide an electronic device comprising:
one or more processors;
a storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method as described in any of the preceding claims.
In a fourth aspect, the presently disclosed examples provide a storage medium containing computer-executable instructions for performing a method as described in any of the preceding, when executed by a computer processor.
According to the text modification method, device, electronic equipment and storage medium, firstly, voice information of a user is obtained, text information obtained by text conversion processing of the voice information is displayed on a main interface, word segmentation processing is conducted on the text information in response to a modification request initiated by the user on the text information, word segmentation results of the text information are displayed on a word segmentation interface, historical modification information corresponding to first word segmentation selected by the user is called and displayed on a modification candidate interface in response to a selection request conducted by the user on the word segmentation results, the first word segmentation in the text information is replaced according to second word segmentation selected by the user from the historical modification information, and the replaced text information is displayed on the main interface. The word segmentation processing and word segmentation selection are sequentially carried out on the word information input by the voice, so that a user can quickly select the word to be modified, and the user can conveniently select the modified word based on the history modification information provided for the user, thereby realizing quick modification on the word information input by the voice and improving the modification efficiency.
Drawings
FIG. 1 is a schematic diagram of a network architecture on which the present disclosure is based;
FIG. 2 is a schematic flow chart of a text modification method provided by the present disclosure;
FIG. 3 is an interface diagram of a text modification method provided in the present disclosure;
FIG. 4 is another interface diagram of a text modification method provided by the present disclosure;
FIG. 5 is a flow chart of another text modification method provided by the present disclosure;
fig. 6 is a schematic structural diagram of a text modification device provided in the present disclosure;
fig. 7 is a schematic hardware structure of an electronic device provided in the present disclosure.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the examples of the present disclosure more clear, the technical solutions in the examples of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the examples of the present disclosure.
The word input based on the voice is an important function of the input method, and can greatly improve the input efficiency of a user. However, due to the accuracy of speech recognition and the abundance of Chinese vocabulary, users often need to modify the input text after text input based on speech.
In the prior art, the process of modifying the text input by voice is complicated, the user needs to switch from the voice input interface to the keyboard input interface first, move the cursor to select the text to be modified, delete the text and input a new text by utilizing the keyboard, and return to the voice input interface to continue voice input.
On the one hand, the method needs to switch among the input interfaces of a plurality of input modes by a user, and particularly needs to select the characters to be modified by moving a cursor, and the method easily causes misoperation such as misselection, mismodification, misdeletion and the like in the character modification process, so that the character modification efficiency is low, and the use of the user is also not facilitated.
In view of the above problems, the present disclosure provides a method, an apparatus, an electronic device, and a storage medium for modifying text of a voice input, so as to implement rapid modification of text of a voice input.
Fig. 1 is a schematic diagram of a network architecture according to the present disclosure, as shown in fig. 1, where the network architecture according to the present disclosure may include a text modification device 1 and a terminal 2, where the text modification device 1 may be used to execute a text modification method described in the following embodiments.
The text modifying device 1 may be installed on the terminal 2, and the terminal 2 may be a hardware device or an electronic device with a logic processing function, such as a computer, a mobile tablet computer, etc., where the terminal 2 needs to have a voice input function.
In particular, when the text modification apparatus 1 is software, it may be installed in the corresponding electronic device listed above, that is, the text modification apparatus 1 may be in the form of software installed in an electronic device such as a computer or a mobile platform computer. Furthermore, the text modification device 1 may be implemented as a plurality of software or software modules (for example, to provide distributed services), or as a single software or software module, which is not particularly limited herein.
In a first aspect, an example of the present disclosure provides a text modification method, and fig. 2 is a schematic flow chart of the text modification method provided in the present disclosure.
As shown in fig. 2, the text modification method includes:
step 101, obtaining voice information of a user, and displaying text information obtained by performing text conversion processing on the voice information on a main interface.
Specifically, first, a user may open a main interface for inputting text information, where the main interface for inputting text information may specifically belong to multiple application scenarios. For example: literal software in the terminal, such as WORD software on a computer; chat software in the mobile terminal, such as a wechat chat application in the mobile phone; and voice input functions in game software on the terminal, such as voice input information in a certain fighter tour, and the like. Generally, in each application scenario described above, the terminal may obtain the voice information of the user through a preset sound collecting device, and convert the voice information into text information by using a voice analyzing module, a voice analyzing module or a voice converting module, so as to display the text information on a main interface of text information input of the terminal.
The processing method used for performing text conversion processing on the voice information may be a prior art, which is not limited by the embodiments of the present disclosure.
Step 102, responding to a modification request initiated by a user to the text information, performing word segmentation on the text information, and displaying a word segmentation result of the text information on a word segmentation interface.
And step 103, responding to a selection request of the user for the word segmentation result, and calling and displaying history modification information corresponding to the first word segmentation selected by the user on a modification candidate interface.
In the prior art, when a user needs to modify text information input by voice, the user needs to move a cursor on a main interface, click a delete key or a rollback key on a keyboard to delete text information on the left side of the cursor, and input the modified text information through the keyboard to replace text information with wrong conversion processing. As described above, such modification is inefficient, and the user needs to operate a plurality of steps to complete the modification of the text information, which is not the same as the original purpose of inputting the text information by using the voice input method in order to facilitate the user to input the text information quickly and accurately.
To solve this problem, in the example of the present disclosure, by performing word segmentation processing on the text information and providing corresponding candidate history modification information based on each word segment, a user can quickly select the text information to be modified and confirm the modified text information.
Specifically, in the example of the present disclosure, fig. 3 is an interface schematic diagram of a text modification method provided in the present disclosure, taking a main interface as a voice input interface of a memo as an example, as shown in fig. 3, an upper screen is a text information display area 200, which displays text information subjected to voice conversion processing, and a lower screen is an input area, which can be switched between a keyboard input interface and a voice input interface. It should be noted that, the display interface of the terminal is a continuous interface, the upper screen related in the disclosure refers to the display area of the upper half of the display interface, and the lower screen refers to the display area of the lower half of the display interface, and the sizes and the proportions of the two are not limited.
Generally, similar to the prior art, when a user employs voice input, his or her off screen will switch to the voice input interface 201 for presentation. The voice input interface 201 includes a voice input button 2011 and a switch key 2012.
Unlike the prior art, in the example provided by the present disclosure, the voice input interface 201 includes a modification key 2013. The user activates the modification button 2013 to invoke the modification method provided by the disclosed example, so that the modification device responds to the modification request initiated by the user on the text information, presents a word segmentation interface 202 in the lower screen, performs word segmentation processing on the text information, and displays the word segmentation result of the text information on the word segmentation interface 203.
The word segmentation interface 203 may be presented in the lower screen 200 together with the voice input interface 201, or may be presented in the lower screen 200 together with the keyboard input interface 203 as shown in fig. 3.
Fig. 4 is another interface schematic diagram of a text modification method provided in the present disclosure, as shown in fig. 4, a user may select a first word to be modified on the word segmentation interface 202, where corresponding history modification information of the first word is displayed on the modification candidate interface 204. The history modification information comprises all text information with the first word being modified or replaced.
And 104, replacing the first word in the text information according to the second word selected by the user from the history modification information, and displaying the replaced text information on the main interface.
Specifically, the user may select the text information from the history modification information as the second word segment, so that the first word segment corresponding to the text information in the text information display area 200 is replaced with the second word segment for display.
Thus, optionally, in the example of the present disclosure, each historical text information used to replace the first word segment may also be counted after each modification is completed; and generating or updating the corresponding history modification information of the first word according to all the history text information used for replacing the first word. Particularly, in order to facilitate the use of the user, statistics can be performed on the common historical text information of the user, namely, the replacement times of each historical text information corresponding to the first word segmentation are counted, and the historical modification information is generated according to the historical text information with the replacement times being greater than or equal to the threshold times. That is, by counting the historical text information and generating or updating the scheme of the historical modification information displayed on the modification candidate interface, the user-defined words can be brought into the range of modification post-selection, and the flexibility of text modification and text input is further improved.
Optionally, the word segmentation interface is displayed at a first preset position of the main interface, and the modification candidate interface is displayed at a second preset position of the main interface, where specific positions of the first preset position and the second preset position are not limited.
According to the text modification method provided by the disclosure, firstly, voice information of a user is obtained, text information obtained by text conversion processing of the voice information is displayed on a main interface, word segmentation processing is carried out on the text information in response to a modification request initiated by the user on the text information, word segmentation results of the text information are displayed on a word segmentation interface, historical modification information corresponding to a first word selected by the user is called and displayed on a modification candidate interface in response to a selection request of the user on the word segmentation results, the first word in the text information is replaced according to a second word selected by the user from the historical modification information, and the replaced text information is displayed on the main interface. The word segmentation processing and word segmentation selection are sequentially carried out on the word information input by the voice, so that a user can quickly select the word to be modified, and the user can conveniently select the modified word based on the history modification information provided for the user, thereby realizing quick modification on the word information input by the voice and improving the modification efficiency.
In connection with the foregoing implementations, fig. 5 is a flow chart of another text modification method provided in the present disclosure, where, as shown in fig. 5, the text modification method includes:
step 201, obtaining voice information of a user, and displaying text information obtained by performing text conversion processing on the voice information on a main interface;
step 202, responding to a modification request initiated by a user to the text information, performing word segmentation on the text information, and displaying a word segmentation result of the text information on a word segmentation interface;
step 203, responding to a selection request of the user on the word segmentation result, and calling and displaying history modification information corresponding to the first word segmentation selected by the user on a modification candidate interface;
step 204, responding to an input instruction triggered by a user on a keyboard input interface of a main interface, and determining a third word segmentation input by the user;
and 205, replacing the first word segment in the text information by using the third word segment, and displaying the replaced text information on the main interface.
Step 201, step 202, and step 203 in this embodiment are similar to the implementation manners of step 101, step 102, and step 103 in the foregoing embodiments, respectively, and are not described here again.
Unlike the foregoing examples, with the rapid development of language words, the use of new words and the use of custom words are becoming more common, and in order to facilitate the modification of words in such a scenario, in this example, if a user cannot select a second word that is required by the user in the history modification information, the input of words may be directly performed in the keyboard input interface 203 of the main interface. At this time, the modifying means will respond to the instruction input by the user, and obtain the third word segment input by the user, and replace and display the first word segment in the text information display area 200 with the third word segment.
Of course, after the replacement and display are completed, the third word may be recorded and displayed as history modification information of the first word at the next time of modification of the first word.
On the basis of the above example, the third word is input by means of keyboard input, so that the modification requirement of the user on the first word is better met, the user can conveniently customize and create the text information, and the modification efficiency of the text information, particularly the custom text information, is improved.
In a second aspect, fig. 6 is a schematic structural diagram of a text modification device provided in the present disclosure, where, as shown in fig. 6, the text modification device includes:
the acquisition unit 10 is used for acquiring voice information of a user;
a processing unit 20, configured to perform text conversion processing on the voice information to obtain text information;
an interface interaction unit 30, configured to display text information obtained by performing text conversion processing on the voice information on a main interface; the processing unit 20 is further configured to respond to a modification request initiated by a user to the text information, so that the processing unit is used for performing word segmentation on the text information, and display a word segmentation result of the text information on a word segmentation interface through the interface interaction unit 30;
the interface interaction unit 30 is further configured to invoke and display, on a modification candidate interface, history modification information corresponding to the first word selected by the user in response to a selection request made by the user on the word segmentation result;
the processing unit 20 is further configured to replace the first word segment in the text information according to the second word segment selected by the user from the history modification information, and provide the interface interaction unit 30 to display the replaced text information on the main interface. And displaying the replaced text information on the main interface.
In an optional example of the disclosure, after responding to a selection request made by a user for the word segmentation result, the interface interaction unit 30 is further configured to, after displaying, on a modification candidate interface, history modification information corresponding to a first word selected by the user: responding to an input instruction triggered by a user on a keyboard input interface of a main interface, and determining a third word segmentation input by the user;
the processing unit 20 replaces the first word segment in the text information with the third word segment, so that the interface interaction unit 30 displays the replaced text information on the main interface.
In an optional example of the disclosure, the processing unit 20 is further configured to: counting each history text information for replacing the first word; and generating corresponding history modification information of the first word according to all the history text information used for replacing the first word.
In an optional example of the disclosure, the processing unit 20 is specifically configured to: counting the replacement times of each historical text message corresponding to the first word segmentation; and generating history modification information according to the history text information with the replacement times being greater than or equal to the threshold times.
In an optional example of the disclosure, the word segmentation interface is displayed at a first preset position of the main interface; and the modification candidate interface is displayed at a second preset position of the main interface.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process and corresponding beneficial effects of the control device described above may refer to the corresponding process in the foregoing method example, which is not described herein again.
The text modification device provided by the disclosure firstly obtains the voice information of a user, displays text information obtained by text conversion processing of the voice information on a main interface, responds to a modification request initiated by the user on the text information, performs word segmentation processing on the text information, displays a word segmentation result of the text information on a word segmentation interface, responds to a selection request of the user on the word segmentation result, invokes and displays history modification information corresponding to a first word selected by the user on a modification candidate interface, replaces the first word in the text information according to a second word selected by the user from the history modification information, and displays the replaced text information on the main interface. The word segmentation processing and word segmentation selection are sequentially carried out on the word information input by the voice, so that a user can quickly select the word to be modified, and the user can conveniently select the modified word based on the history modification information provided for the user, thereby realizing quick modification on the word information input by the voice and improving the modification efficiency.
In a third aspect, an example of the present disclosure provides an electronic device, and fig. 7 is a schematic hardware structure of the electronic device provided by the present disclosure, as shown in fig. 7, where the present disclosure provides an electronic device, including:
one or more processors 42;
a storage device 41 for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method as described in any of the preceding claims.
The functions may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.
In one possible design, the structure of the electronic device includes a processor and a memory, where the memory is configured to store a program for supporting the electronic device to execute the method of the device in the first aspect, and the processor is configured to execute the program stored in the memory. The electronic device may also include a communication interface for the electronic device to communicate with other devices or communication networks.
It may be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process and corresponding beneficial effects of the above-described electronic device may refer to the corresponding process in the foregoing method example, which is not described herein again.
In a fourth aspect, the present disclosure provides a storage medium storing computer software instructions for use with an electronic device, comprising a program for executing the method of the device of the first aspect described above for the electronic device.
Those of ordinary skill in the art will appreciate that: all or a portion of the steps for implementing the method examples described above may be performed by hardware associated with the program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including examples of the methods described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above examples are only for illustrating the technical solution of the present disclosure, and are not limiting thereof; although the present disclosure has been described in detail with reference to the foregoing examples, those of ordinary skill in the art will appreciate that: the technical scheme recorded in each example can be modified or some or all technical features in the technical scheme can be replaced equivalently; such modifications and substitutions do not depart from the essence of the corresponding technical solutions from the scope of the various example technical solutions of the present disclosure.

Claims (12)

1. A method for modifying text, comprising:
acquiring voice information of a user, performing word conversion processing on the voice information to obtain word information, and displaying the word information at a first preset position of a main interface;
responding to a modification request initiated by a user to the text information, performing word segmentation processing on the text information displayed on the main interface, and displaying a word segmentation result of the text information on a word segmentation interface, wherein the word segmentation interface is displayed at a second preset position of the main interface;
responding to a selection request of a user on the word segmentation result, and calling and displaying history modification information corresponding to the first word segmentation selected by the user on a modification candidate interface; the history modification information is history text information with the number of times of replacing the first word segmentation being greater than or equal to a threshold number of times;
and replacing the first word segmentation in the text information according to the second word segmentation selected by the user from the history modification information, and displaying the replaced text information at the first preset position.
2. The text modification method according to claim 1, wherein the step of calling and displaying the history modification information corresponding to the first word selected by the user after the modification candidate interface in response to the selection request made by the user for the word segmentation result, further comprises:
responding to an input instruction triggered by a user on a keyboard input interface of a main interface, and determining a third word segmentation input by the user;
and replacing the first word segmentation in the text information by using the third word segmentation, and displaying the replaced text information at the first preset position.
3. The text modification method of claim 1, further comprising:
counting each history text information for replacing the first word;
and generating corresponding history modification information of the first word according to all the history text information used for replacing the first word.
4. A method of modifying text according to claim 3, wherein the statistics for replacing each historical text information of the first word segment include:
counting the replacement times of each historical text message corresponding to the first word segmentation;
and generating history modification information according to the history text information with the replacement times being greater than or equal to the threshold times.
5. A method for modifying text according to any one of claims 1 to 4,
and displaying the modification candidate interface at a third preset position of the main interface.
6. A character modifying device, comprising:
the acquisition unit is used for acquiring voice information of a user;
the processing unit is used for performing word conversion processing on the voice information to obtain word information;
the interface interaction unit is used for displaying the text information at a first preset position of the main interface; the processing unit is further used for performing word segmentation on the text information displayed on the main interface in response to a modification request initiated by a user on the text information, displaying a word segmentation result of the text information on a word segmentation interface through the interface interaction unit, and displaying the word segmentation interface at a second preset position of the main interface;
the interface interaction unit is also used for responding to a selection request of the user on the word segmentation result, calling and displaying history modification information corresponding to the first word segmentation selected by the user on a modification candidate interface; the history modification information is history text information with the number of times of replacing the first word segmentation being greater than or equal to a threshold number of times;
the processing unit is further configured to replace a first word in the text information according to a second word selected by the user from the history modification information, and display the replaced text information at the first preset position through the interface interaction unit.
7. The text modification apparatus according to claim 6, wherein the interface interaction unit, after displaying the history modification information corresponding to the first word selected by the user on the modification candidate interface in response to the selection request made by the user for the word segmentation result, is further configured to: responding to an input instruction triggered by a user on a keyboard input interface of a main interface, and determining a third word segmentation input by the user;
and the processing unit replaces the first word segmentation in the text information by the third word segmentation so that the interface interaction unit displays the replaced text information at the first preset position.
8. The text modification device of claim 6, wherein the processing unit is further configured to:
counting each history text information for replacing the first word;
and generating corresponding history modification information of the first word according to all the history text information used for replacing the first word.
9. The text modification device of claim 8, wherein the processing unit is specifically configured to:
counting the replacement times of each historical text message corresponding to the first word segmentation;
and generating history modification information according to the history text information with the replacement times being greater than or equal to the threshold times.
10. The text modification device of any one of claims 6-9, wherein the modification candidate interface is displayed at a third preset location of the main interface.
11. An electronic device, the electronic device comprising:
one or more processors;
a storage means for storing one or more programs;
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-5.
12. A storage medium containing computer executable instructions which, when executed by a computer processor, are for performing the method of any of claims 1-5.
CN201910635524.0A 2019-07-15 2019-07-15 Text modification method and device, electronic equipment and storage medium Active CN110347996B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910635524.0A CN110347996B (en) 2019-07-15 2019-07-15 Text modification method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910635524.0A CN110347996B (en) 2019-07-15 2019-07-15 Text modification method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110347996A CN110347996A (en) 2019-10-18
CN110347996B true CN110347996B (en) 2023-06-20

Family

ID=68176238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910635524.0A Active CN110347996B (en) 2019-07-15 2019-07-15 Text modification method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110347996B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111104418B (en) * 2019-12-23 2023-08-29 北京百度网讯科技有限公司 Text description processing method and device and electronic equipment
CN112684913B (en) * 2020-12-30 2023-07-14 维沃移动通信有限公司 Information correction method and device and electronic equipment
CN117850605A (en) * 2022-09-30 2024-04-09 华为终端有限公司 Input method, electronic equipment and storage medium
CN117221450A (en) * 2023-09-25 2023-12-12 深圳我买家网络科技有限公司 AI wisdom customer service system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008128423A1 (en) * 2007-04-19 2008-10-30 Shenzhen Institute Of Advanced Technology An intelligent dialog system and a method for realization thereof
CN101609673A (en) * 2009-07-09 2009-12-23 交通银行股份有限公司 A kind of user voice processing method and server based on telephone bank
CN103369122A (en) * 2012-03-31 2013-10-23 盛乐信息技术(上海)有限公司 Voice input method and system
CN107506454A (en) * 2017-08-29 2017-12-22 央视国际网络无锡有限公司 A kind of computer version and multi-media information security automatic early-warning system
CN109119079A (en) * 2018-07-25 2019-01-01 天津字节跳动科技有限公司 voice input processing method and device
CN109215661A (en) * 2018-08-30 2019-01-15 上海与德通讯技术有限公司 Speech-to-text method, apparatus equipment and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100668297B1 (en) * 2002-12-31 2007-01-12 삼성전자주식회사 Method and apparatus for speech recognition
KR101462932B1 (en) * 2008-05-28 2014-12-04 엘지전자 주식회사 Mobile terminal and text correction method
CN103366742B (en) * 2012-03-31 2018-07-31 上海果壳电子有限公司 Pronunciation inputting method and system
CN103699530A (en) * 2012-09-27 2014-04-02 百度在线网络技术(北京)有限公司 Method and equipment for inputting texts in target application according to voice input information
CN105718239B (en) * 2016-01-27 2019-03-08 百度在线网络技术(北京)有限公司 A kind of method and apparatus of voice input
CN107731229B (en) * 2017-09-29 2021-06-08 百度在线网络技术(北京)有限公司 Method and apparatus for recognizing speech
CN108009136B (en) * 2017-10-31 2021-09-21 努比亚技术有限公司 Message correction method, mobile terminal and computer readable storage medium
CN109582768B (en) * 2018-11-23 2021-08-24 北京搜狗科技发展有限公司 Text input method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008128423A1 (en) * 2007-04-19 2008-10-30 Shenzhen Institute Of Advanced Technology An intelligent dialog system and a method for realization thereof
CN101609673A (en) * 2009-07-09 2009-12-23 交通银行股份有限公司 A kind of user voice processing method and server based on telephone bank
CN103369122A (en) * 2012-03-31 2013-10-23 盛乐信息技术(上海)有限公司 Voice input method and system
CN107506454A (en) * 2017-08-29 2017-12-22 央视国际网络无锡有限公司 A kind of computer version and multi-media information security automatic early-warning system
CN109119079A (en) * 2018-07-25 2019-01-01 天津字节跳动科技有限公司 voice input processing method and device
CN109215661A (en) * 2018-08-30 2019-01-15 上海与德通讯技术有限公司 Speech-to-text method, apparatus equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于实例语境的语音识别后文本检错与纠错研究;龙丽霞;《中国优秀硕士学位论文全文数据库 (信息科技辑)》(第03期);I136-164 *

Also Published As

Publication number Publication date
CN110347996A (en) 2019-10-18

Similar Documents

Publication Publication Date Title
CN110347996B (en) Text modification method and device, electronic equipment and storage medium
CN108470566B (en) Application operation method and device
CN101867636B (en) Method for executing user command and terminal equipment
KR101586890B1 (en) Input processing method and apparatus
US20110173172A1 (en) Input method editor integration
JP5616463B2 (en) Method and device for facilitating text editing and associated computer program and computer-readable medium
US20170242832A1 (en) Character editing method and device for screen display device
US20190012077A1 (en) Chinese character input apparatus and controlling method thereof
CN107564526B (en) Processing method, apparatus and machine-readable medium
CN109542878B (en) List creation method and device
CN106601256B (en) The method and mobile terminal of speech recognition
CN107678658A (en) Data inputting method and device for terminal device
JP2016531352A (en) Method, device, program and device for updating input system
CN102158585A (en) Mobile phone language and input method switching device and switching method
CN106775349A (en) A kind of speech modification method and device of word content
CN110349577B (en) Man-machine interaction method and device, storage medium and electronic equipment
CN110427138A (en) Translation information processing method, device, electronic equipment and storage medium
CN105589570B (en) A kind of method and apparatus handling input error
CN103941979B (en) A kind of method and apparatus for inputting word in a mobile device
CN110795014B (en) Data processing method and device and data processing device
CN104348940A (en) Method and equipment for searching contacts on dial plate
CN107219996A (en) Method, storage device and the mobile terminal of automatic switchover keyboard
US11966562B2 (en) Generating natural languages interface from graphic user interfaces
EP2827232A1 (en) Character input device and character input method
CN114676673A (en) Form input method, device and equipment of text data based on voice recognition

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
GR01 Patent grant
GR01 Patent grant