Rich text error correction method and device, computer equipment and storage medium

By extracting plain text in rich text for error correction and highlighting the pending words in the error correction subpage, the problem of poor error correction in rich text in the prior art is solved, efficient and accurate error correction of rich text is achieved, and user experience is improved.

CN119761350APending Publication Date: 2025-04-04INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411917723.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-24
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

The prior art is difficult to effectively correct rich text errors, resulting in poorer error correction effects.

Method used

By extracting plain text from the rich text editing page, performing error correction processing, and displaying plain text and correcting text in the error correction subpage, highlighting pending words, realizing error correction for rich text.

Benefits of technology

While retaining the original format of rich text, the efficiency and effectiveness of rich text error correction are improved, clear modification suggestions are provided, and the situation of incorrect modification is avoided and the user experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119761350A_ABST
    Figure CN119761350A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a rich text error correction method and device, computer equipment and a storage medium. The method relates to the field of artificial intelligence, and comprises the following steps: in response to an error correction request triggered on a rich text editing page, extracting a plain text from a rich text displayed on the rich text editing page; performing error correction processing on the plain text to obtain a corrected text after error correction; displaying the plain text and the corrected text in the error correction sub-page, and highlighting different words to be processed in the plain text and the corrected text; in response to a correction instruction for the to-be-processed word, modifying the rich text based on the to-be-processed word to obtain a target rich text; and replacing the rich text displayed in the rich text editing page with the target rich text. According to the method, through simple interaction, rich text error correction is achieved under the condition that the original format of the rich text is reserved, and the error correction effect of the rich text is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence, and in particular to a rich text error correction method, apparatus, computer equipment and storage medium. Background Art

[0002] Rich text is text with embedded formatting information. Since rich text can express rich information, it is widely used in many scenarios.

[0003] In the related art, since rich text embeds format information, it is difficult to perform error correction on the rich text through a common text error correction method, resulting in poor error correction effect on the rich text. Summary of the invention

[0004] The embodiments of the present application provide a rich text error correction method, apparatus, computer device and storage medium, which implement rich text error correction while retaining the original format of the rich text through simple interaction, thereby improving the error correction effect of the rich text.

[0005] In a first aspect, an embodiment of the present application provides a rich text error correction method, comprising:

[0006] In response to a correction request triggered on a rich text editing page, plain text is extracted from the rich text displayed on the rich text editing page; error correction is performed on the plain text to obtain a corrected text; the plain text and the corrected text are displayed on a correction subpage, and the words to be processed that differ between the plain text and the corrected text are highlighted; in response to correction instructions for the words to be processed, the rich text is modified based on the words to be processed to obtain a target rich text; and the rich text displayed on the rich text editing page is replaced with the target rich text.

[0007] In a second aspect, an embodiment of the present application provides a rich text error correction device, including:

[0008] A text extraction module, configured to extract plain text from the rich text displayed on the rich text editing page in response to an error correction request triggered on the rich text editing page;

[0009] A text error correction module is used to perform error correction on the plain text to obtain a corrected text after error correction;

[0010] A first display module is used to display the plain text and the corrected text in the error correction subpage, and highlight the words to be processed that are different between the plain text and the corrected text;

[0011] A rich text modification module, for responding to a correction instruction for a word to be processed, modifying the rich text based on the word to be processed to obtain a target rich text;

[0012] The second display module is used to replace the rich text displayed in the rich text editing page with the target rich text.

[0013] In a third aspect, an embodiment of the present application provides a computer device, comprising: a memory, a processor; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory, so that the processor executes the first aspect above and / or various possible implementations of the first aspect.

[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementations of the first aspect.

[0015] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.

[0016] The rich text error correction method, apparatus, computer device and storage medium provided in the embodiments of the present application, when a correction request is initiated for the rich text in the rich text editing page, extracts plain text from the rich text, corrects the plain text to obtain a corrected text, displays the plain text and the corrected text through a correction subpage, and highlights the words to be processed that are different in the plain text and the corrected text, so that the words that need to be modified in the plain text and the words suggested for modification given in the corrected text can be intuitively determined; when it is confirmed that modification is required, a correction instruction is initiated for the words to be processed to modify the rich text into a target rich text, and the rich text displayed in the rich text editing page is replaced with the target rich text; in the rich text editing process, through simple user interaction, rich text error correction is achieved while retaining the original format of the rich text, thereby improving the efficiency of rich text error correction; in addition, the plain text and the corrected text are displayed on the correction subpage, and the words to be processed are highlighted to facilitate comparison of the plain text and the corrected text, providing users with clear modification suggestions, allowing targeted modification of words, avoiding erroneous modifications, and improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0018] Figure 1 A schematic diagram of a scenario of the rich text error correction method provided in this application;

[0019] Figure 2 Schematic diagram of the rich text error correction method provided for this application Figure 1 ;

[0020] Figure 3 Schematic diagram of the rich text error correction method provided for this application Figure 2 ;

[0021] Figure 4 A specific example of the rich text error correction method provided in this application Figure 1 ;

[0022] Figure 5 A specific example of the rich text error correction method provided in this application Figure 2 ;

[0023] Figure 6 A specific example of the rich text error correction method provided in this application Figure 3 ;

[0024] Figure 7 A specific example of the rich text error correction method provided in this application Figure 4 ;

[0025] Figure 8 A schematic diagram of the structure of the rich text error correction device provided by this application;

[0026] Fig. 9 A schematic diagram of the structure of the computer device provided for this application.

[0027] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0028] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0029] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with the relevant laws, regulations and standards of the relevant regions, take necessary confidentiality measures, do not violate public order and good customs, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0030] In addition, this application involves big data analysis of user information (including but not limited to personal biometrics, identity data, consumption data, asset data, electronic terminal operation data, etc.), and the use of artificial intelligence technology for automated decision-making, and a technical solution for making decisions that have a significant impact on personal rights and interests based on the results of automated decision-making. The application provides users with corresponding operation entrances for them to choose to agree or reject the results of automated decision-making; if the user chooses to reject, the expert decision-making process will be entered.

[0031] It should be noted that the rich text error correction method, apparatus, computer equipment, storage medium and computer program product provided in this application can be used in the field of artificial intelligence, and can also be used in any field other than artificial intelligence. The application field of the rich text error correction method, apparatus, equipment, storage medium and product in this application is not limited.

[0032] The rich text error correction method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, the terminal 102 communicates with the server 104 through a network. The data storage system can store data that the server 104 needs to process. The data storage system can be integrated on the server 104, or placed on the cloud or other network servers.

[0033] The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. The IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. The portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.

[0034] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0035] Figure 2 Schematic diagram of the rich text error correction method provided for this application Figure 1 , the rich text error correction method can be applied to a computer device, which can be Figure 1 A terminal in a system, or a system where a terminal and a server collaborate; Figure 2 As shown, the rich text error correction method includes:

[0036] S201. In response to an error correction request triggered on a rich text editing page, extract plain text from the rich text displayed on the rich text editing page.

[0037] Among them, rich text refers to a text format that embeds format information (such as font, color, size, image, link, etc.) in the text.

[0038] The rich text editing page is used to edit rich text. In actual applications, the rich text editing page can be an editing page of a content creation platform, a document editing page, an email editing page, or a dynamic information editing page of a social media.

[0039] Specifically, the user edits rich text in the rich text editing page, that is, the rich text editing page displays rich text; the rich text editing page also includes an error correction control, and an error correction request is made through the error correction control, such as when the user clicks the error correction control to trigger the error correction request.

[0040] In response to the error correction request triggered on the rich text editing page, the computer device obtains the rich text displayed in the rich text editing page through the rich text acquisition method, parses the rich text into a Document object (document object) through the HTML parser, and the Document object includes a DOM tree, traverses the nodes in the DOM tree to determine the text type nodes, obtains the text from the text type nodes, and merges the obtained text to obtain the plain text. In actual applications, the rich text can be obtained by calling the method editor.document.getBody().getHtml(); this method is used to obtain the HTML representation of the body of the current document from the rich text editor.

[0041] S202: Perform error correction processing on the plain text to obtain a corrected text after error correction.

[0042] Specifically, the computer device can input the plain text into the large model, perform error correction on the plain text through the large model, and obtain a corrected text after error correction; the corrected text is the text obtained after modifying the plain text.

[0043] It should be noted that what is obtained in this embodiment is a corrected text, that is, a text obtained by modifying a plain text, and it is not a suggestion for modifying the plain text. In the related art, text error correction usually outputs words that may be erroneous in the text and suggested words for modifying the words, and the number of suggested words is large. In actual applications, this method has redundant information and cannot intuitively determine the modified text, resulting in low error correction efficiency and poor user experience.

[0044] In a possible implementation, error correction processing is performed on a plain text to obtain a corrected text after error correction, including: obtaining a prompt sentence; and performing error correction processing on the plain text according to the prompt sentence through a large error correction model to obtain a corrected text after error correction.

[0045] Among them, the prompt statement is used to guide the error correction model to apply knowledge fields, output formats, etc. to correct plain text.

[0046] Specifically, the computer device obtains a prompt sentence, the prompt sentence includes a text field, embeds a plain text into the text field of the prompt sentence, obtains a question, outputs the question to the error correction model, and obtains a corrected text after error correction.

[0047] Among them, the prompt sentence also includes role prompts, task prompts and task examples, so that the error correction model outputs the corrected text according to the format of the task example.

[0048] For example: Prompt statements include:

[0049] If you are a staff member of a financial institution, please read the following text carefully and find all wrong words and phrases and correct them. Requirements:

[0050] 1. If there is no error, reply "No error". If there is an error, please return the corrected complete sentence. Note that you do not need to output the original sentence, only the corrected complete sentence. Do not output only part of the original text, but all of it.

[0051] 2. Please note that you only need to find typos, no need to pay attention to grammar or polish;

[0052] 3. No explanation is needed;

[0053] 4. Do not modify the URL;

[0054] 5. No need to convert Chinese punctuation into English punctuation;

[0055] 6. Do not modify the English numbering vocabulary;

[0056] 7. Do not modify the IP address;

[0057] The following is an example:

[0058] Example 1: Input: "Maybe we will achieve extraordinary success in the face of setbacks!"; Output: "No error";

[0059] Example 2: Input: "But something unexpected happened, it is possible that his whole life was very hard, but one day he lived a blessed life."; Output: "But something unexpected happened, it is possible that his whole life was very hard, but one day he lived a wealthy life."

[0060] The following is the main text: (plain text).

[0061] In the above embodiment, the error correction model is enabled to output the corrected text in the expected format through the prompt statement, and the efficiency of error correction on the plain text can be improved through the error correction model.

[0062] S203: Display the plain text and the corrected text in the error correction subpage, and highlight the words to be processed that are different between the plain text and the corrected text.

[0063] Among them, the error correction sub-page is displayed in the rich text editing page. Specifically, in response to the error correction request triggered on the rich text editing page, the error correction sub-page is displayed in the rich text editing page, and the plain text and corrected text are displayed in the error correction sub-page; the error correction sub-page can occupy a part of the rich text editing page, such as the error correction sub-page occupies the right part or the lower part of the rich text editing page; the error correction page can also be displayed in the upper layer of the rich text editing page in the form of a floating window.

[0064] Among them, the words to be processed are words that are different between the plain text and the revised text. For example, there is an error in a word in the plain text, and the revised text includes the corrected word. Therefore, the words to be processed include the erroneous words in the plain text and the corrected words in the revised text.

[0065] Optionally, the computer device determines the words to be processed that are different from the plain text and the corrected text, and divides the rich text editing page into two parts, one part of which displays the edited rich text, and the other part, a correction sub-page, displays the plain text and the corrected text in the correction sub-page, and highlights the words to be processed; the correction sub-page does not block the rich text in the rich text editing page, so that the user can view the plain text and the corrected text, and can also edit the rich text at the same time without waiting for the execution of the plain text correction; in addition, by highlighting the words to be processed, it is possible to intuitively determine which words of the plain text have been modified by the corrected text.

[0066] Optionally, the computer device determines the words to be processed that are different based on the plain text and the corrected text, and displays a correction subpage in the form of a floating window on the upper layer of the rich text editing page, displays the plain text and the corrected text in the correction subpage, and highlights the words to be processed.

[0067] S204 . In response to the correction instruction for the word to be processed, modify the rich text based on the word to be processed to obtain a target rich text.

[0068] Specifically, for the pending words displayed in the correction subpage (the pending words in the plain text, or the pending words in the corrected text), the user can perform confirmation and modification operations on the pending words, such as performing confirmation and modification operations through controls to initiate correction instructions for the pending words. The computer device responds to the correction instructions, modifies the rich text according to the pending words, and obtains the target rich text.

[0069] Specifically, the computer device determines the text node corresponding to the to-be-processed word in the tree structure corresponding to the rich text, modifies the text in the text node based on the to-be-processed word, and then restores the modified tree structure to obtain the target rich text.

[0070] S205. Replace the rich text displayed in the rich text editing page with the target rich text.

[0071] Specifically, after obtaining the target rich text, the rich text in the rich text editing page is replaced with the target rich text.

[0072] It should be noted that, in the present embodiment, for the user, when editing rich text on the rich text editing page and performing error correction operations, the plain text and the corresponding corrected text can be viewed in the error correction sub-page, and the pending words that need to be modified can be determined based on the corrected text. After performing the confirmation modification operation, the edited rich text is replaced with the target rich text. That is, from the user's perspective, only the "error correction operation" and the "confirmation modification operation" need to be performed to modify the edited rich text, thereby improving the effect of rich text error correction and the user experience.

[0073] The rich text error correction method provided in the embodiment of the present application, when a correction request is initiated for the rich text in the rich text editing page, extracts plain text from the rich text, corrects the plain text, obtains the corrected text, displays the plain text and the corrected text through the error correction subpage, and highlights the pending words that are different in the plain text and the corrected text, so that the words that need to be modified in the plain text and the words that are suggested to be modified given in the corrected text can be intuitively determined; when it is confirmed that modification is required, a correction instruction is initiated for the pending words to modify the rich text to the target rich text, and the rich text displayed in the rich text editing page is replaced with the target rich text; in the rich text editing process, through simple user interaction, rich text error correction is achieved while retaining the original format of the rich text, thereby improving the rich text error correction efficiency; in addition, the plain text and the corrected text are displayed on the error correction subpage, and the pending words are highlighted to facilitate the comparison of the plain text and the corrected text, thereby providing users with clear modification suggestions, allowing for targeted modification of words, avoiding erroneous modifications, and improving user experience.

[0074] In one possible implementation, the plain text and the corrected text are displayed in a correction subpage, and the words to be processed that are different in the plain text and the corrected text are highlighted, including: comparing the plain text and the corrected text to obtain the erroneous words in the plain text and the corrected words in the corrected text; the words to be processed include the erroneous words and the corrected words; the plain text and the corrected text are displayed in the correction subpage, and the erroneous words and the corrected words are highlighted.

[0075] The words to be processed include erroneous words in the plain text and corrected words in the corrected text, and the erroneous words correspond to the corrected words; the number of erroneous words can be multiple, and correspondingly, the number of corrected words is also multiple.

[0076] In actual applications, the wrong word can be a mistyped word, a superfluous word, or a space corresponding to a missing word; the corrected word can be the correct word corresponding to the wrong word, a space corresponding to a superfluous word, or a word to be added corresponding to a missing word. It should be noted that the space corresponding to the missing word indicates that there is no content at the space in the plain text; the space corresponding to the superfluous word indicates that the superfluous content at the space in the plain text is deleted in the corrected text.

[0077] Specifically, the plain text and the revised text are compared to determine the words that are different between the plain text and the revised text, which may include the following situations:

[0078] 1. There are wrong words in the plain text, and there are correct words corresponding to the wrong words in the revised text. The wrong words are the words to be processed in the plain text, and the correct words are the words to be processed in the revised text;

[0079] 2. The plain text is missing words, and the revised text supplements the missing words with words to be added, and the words to be added in the revised text are used as the words to be processed in the revised text. Spaces are added at the positions where the words are missing in the plain text, and the spaces are used as the words to be processed in the plain text;

[0080] 3. There are redundant words in the plain text, and the redundant words are deleted in the revised text. The redundant words are used as the pending words in the plain text. Spaces are added to the positions where the redundant words were deleted in the revised text, and the spaces are used as the pending words in the revised text.

[0081] In a specific example, the plain text is:

[0082] Leader A expressed encouragement and recognition for the opinions and suggestions actively raised by employee representatives. He also pointed out that after more than four years of development, the R&D department has achieved rapid development in terms of personnel scale, R&D organization, external value presentation, etc. At present, it has entered a critical stage of high-quality development, and the primary task is to unify thoughts and align goals. Although there may be differences in thinking angles and focus points due to different job roles, all employees must insist on seeking common ground while reserving differences, always adhere to the goal of accounting production safety and continuous value creation, and continue to promote management improvement, process optimization, quality improvement, and efficiency improvement. We must deeply understand the connotation of "management is a means rather than an end", further understand the background and management goals of management requirements, and constantly strive for excellence through various types of refined management requirements such as boundary division of labor, standardization transformation, and service-oriented construction, and continuously improve efficient organizational capabilities, coordination capabilities, and execution capabilities, and inherit the experience and magic weapons accumulated by our institution in financial technology construction over the past decades.

[0083] The above plain text is corrected by the error correction model to obtain the corrected text:

[0084] Leader A expressed encouragement and recognition for the suggestions and opinions actively put forward by the employee representatives. He also pointed out that after more than four years of development, the R&D department has achieved rapid development in terms of personnel scale, R&D organization, external value presentation and other aspects. At present, it has entered a critical stage of high-quality development, and the primary task is to unify thoughts and align goals. Although there may be differences in thinking angles and focus points due to different job roles, all employees must insist on seeking common ground while reserving differences, always adhere to the goal of safe report production and continuous value creation, and continue to promote management improvement, process optimization, quality improvement, and efficiency improvement. We must deeply understand the connotation of "management is a means rather than an end", further understand the background and management goals of management requirements, and constantly strive for excellence through various refined management requirements such as boundary division of labor, standardization transformation, and service-oriented construction, and continuously improve efficient organizational capabilities, coordination capabilities and execution capabilities, and inherit the experience and magic weapons accumulated by our bank in financial technology construction over the past decades.

[0085] After comparison and determination, the erroneous words in the plain text include: "question", and correspondingly, the corrected words in the revised text include: "propose"; the erroneous words in the plain text include: "personnel", and correspondingly, the corrected words in the revised text are spaces; the erroneous words in the plain text include: "account reporting", and correspondingly, the corrected words in the revised text include: "report"; the erroneous words in the plain text include: "push closer", and correspondingly, the corrected words in the revised text include: "promote".

[0086] After determining the erroneous words in the plain text and the corrected words in the corrected text, the plain text and the corrected text are displayed in the error correction subpage, and the erroneous words and the corrected words are highlighted.

[0087] In the above embodiment, the erroneous words and the corrected words are highlighted, so that errors in the plain text can be intuitively determined, and the modifications made to the corrected text can be determined, thereby improving the user experience.

[0088] In one possible implementation, the error correction subpage includes a first subpage and a second subpage in parallel; the plain text and the corrected text are displayed in the error correction subpage, and the incorrect words and the corrected words are highlighted; the words that are identical in the plain text and the corrected text are taken as correct words; in the first subpage, the correct words are displayed according to the default style, and the incorrect words are displayed according to the highlighted style; in the second subpage, the correct words are displayed according to the default style, and the corrected words are displayed according to the highlighted style.

[0089] The default style is different from the highlighted style. For example, the default style and the highlighted style may be different in at least one of color, font or color.

[0090] Specifically, a preset default style and a highlight style are obtained; the plain text and the revised text are compared, and the same words are taken as correct words. In the first subpage, the correct words are displayed according to the default style, and the incorrect words are displayed according to the highlight style; in the second subpage, the correct words are displayed according to the default style, and the revised words are displayed according to the highlight style.

[0091] Optionally, after the erroneous word is modified using the correction word (the rich text is modified based on the word to be processed), the font color of the correction word and the erroneous word in the error correction subpage is modified.

[0092] For example, before modification, the font colors of the corrected words and incorrect words displayed in a highlighting style are both red. After modification, the font colors of the corrected words and incorrect words are changed to green. Through the font color, users can intuitively identify the unmodified incorrect words and the modified incorrect words.

[0093] In the above embodiment, the plain text and the corrected text are displayed on the error correction subpage, and the words that are different between the plain text and the corrected text are highlighted. This allows the user to intuitively determine the words that need to be modified in the plain text and the words that are suggested to be modified in the corrected text, thereby improving the user experience.

[0094] In a possible implementation, after the words that are identical in the plain text and the corrected text are taken as the correct words, the method further includes: determining the display identifier of the correct words as the first identifier; determining the display identifiers of the incorrect words and the corrected words as the second identifier; based on the first identifier, obtaining the default style corresponding to the correct words; based on the second identifier, obtaining the highlight style corresponding to the incorrect words and the corrected words.

[0095] Specifically, after determining the correct words and incorrect words in the plain text, the display identifier of the correct words is set to the first identifier, and the display identifier of the incorrect words is set to the second identifier. When displaying, for each word in the plain text, the display identifier of the word is obtained. If the display identifier is the first identifier, the correct word is displayed in the first sub-page according to the default style corresponding to the first identifier. If the display identifier is the second identifier, the incorrect word is displayed in the first sub-page according to the highlight style corresponding to the second identifier.

[0096] After determining the correct words and corrected words in the revised text, set the display identifier of the correct words to the first identifier, and set the display identifier of the corrected words to the second identifier. When displaying, for each word in the revised text, obtain the display identifier of the word. If the display identifier is the first identifier, then in the second sub-page, the correct word is displayed according to the default style corresponding to the first identifier. If the display identifier is the second identifier, then in the second sub-page, the corrected word is displayed according to the highlight style corresponding to the second identifier.

[0097] For example, for the above example, the plain text and the revised text can be compared by using the Diff-match-patch plug-in to obtain a comparison result. The Diff-match-patch plug-in is used to perform a difference comparison to obtain the addition, deletion, and modification information between the two texts. The comparison result is as follows:

[0098] [0, Leader A is positive towards employee representatives];

[0099] [1,problem][-1,proposed];

[0100] [0, expressed encouragement and recognition for the suggestions and opinions. And pointed out that after more than 4 years of development, the R&D department has made great progress in];

[0101] [1,person][-1,];

[0102] [0, the scale of personnel, R&D organization, external value presentation and other aspects have been rapidly developed. At present, we have entered a critical stage of high-quality development. The primary task is to unify thoughts and align goals. Although there may be differences in thinking angles and focus points due to different job roles, all employees must insist on seeking common ground while reserving differences and always adhere to];

[0103] [1, report][-1, report];

[0104] [0, production safety and continuous value creation as the goal orientation, continuous];

[0105] [1, push closer] [-1, push forward];

[0106] [0, management improvement, process optimization, quality improvement, and efficiency improvement. We must deeply understand the meaning of "management is a means rather than an end", further understand the background and management goals of management requirements, and constantly strive for excellence through various types of refined management requirements such as boundary division of labor, standardization transformation, and service-oriented construction, and continuously improve efficient organizational capabilities, coordination capabilities, and execution capabilities, and pass on the experience and magic weapons accumulated by our institution in the construction of financial technology over the past decades. ]

[0107] Among them, 0 is the first identifier of the correct word, 1 and -1 are the second identifiers, 1 is the second identifier of the wrong word, and -1 is the second identifier of the corrected word; it should be noted that for "[1, personnel][-1,];", the wrong word is personnel, and the space is the corrected word corresponding to personnel; it means that personnel is a redundant word and needs to be deleted.

[0108] In the above embodiment, the corresponding display style is obtained by displaying the identifier, so that the correct words, incorrect words and corrected words can be distinguished by the display style, and the incorrect words and corrected words are highlighted. Errors in the plain text can be intuitively determined, and the modifications made to the corrected text can be determined, thereby improving the user experience.

[0109] In one possible implementation, in response to a correction instruction for a word to be processed, the rich text is modified based on the word to be processed to obtain a target rich text, including: in response to a correction instruction for the word to be processed, the operation information carried by the correction instruction is obtained; the word to be processed includes an erroneous word in the plain text and a corrected word in the corrected text; in the syntax tree structure corresponding to the rich text, a node to be processed including the erroneous word is selected; based on the operation information, the erroneous word included in the node to be processed is modified using the corrected word to obtain a target node; and based on the syntax tree structure including the target node, the target rich text is determined.

[0110] The operation information carried by the correction instruction is used to reflect the modification type, which includes replacement, deletion and addition.

[0111] Specifically, the user can perform confirmation and modification operations on the erroneous words or corrected words, initiate a correction instruction for modifying the erroneous words, or initiate a correction instruction for modifying all erroneous words through a one-click replacement control; that is, the correction instruction includes the erroneous words to be modified and the corresponding corrected words.

[0112] The computer device responds to the correction instruction and obtains the operation information carried by the correction instruction; when the correction instruction is used to modify a certain erroneous word, the operation information includes the method of modifying the erroneous word; when the correction instruction is used to modify multiple erroneous words, the operation information includes the method of modifying each erroneous information.

[0113] Obtain a syntax tree structure corresponding to the rich text, and for each erroneous word included in the correction instruction, obtain the to-be-processed node to which the erroneous word belongs in the syntax tree structure, and correct the to-be-processed node including the erroneous word through the correction word according to the operation information; for example, if the erroneous word is a wrong word, then the wrong word in the to-be-processed node is replaced with the correction word; for another example, if the erroneous word is a redundant word and the correction word is a space, then the redundant word in the to-be-processed node is deleted; for another example, if the erroneous word is a space and the correction word is a to-be-added word, then the to-be-added word is added to the to-be-processed node.

[0114] After modifying the erroneous words included in the node to be processed, a target node is obtained, and a target rich text is determined according to the syntax tree structure including the target node.

[0115] It should be noted that in response to the error correction request triggered on the rich text editing page, the syntax tree structure corresponding to the rich text is determined, and the plain text is extracted through the syntax tree structure; therefore, when the erroneous words need to be modified, the rich text can be modified through the syntax tree structure.

[0116] Specifically, DOMParser parses the rich text into an operable Document object, and assembles node information based on the Document object. The node contains attributes: node type (label, special symbol and text), label name, label attribute and child node element set; recursively obtain text type nodes, inject the parent node ID into each node, and obtain a syntax tree structure that can fully represent the rich text content.

[0117] In the above embodiment, when the user performs a modification confirmation operation, the erroneous words that need to be modified are located through the syntax tree structure corresponding to the rich text, and the target rich text is restored through the modified syntax tree structure, thereby realizing the modification of the rich text and improving the efficiency of modifying the rich text.

[0118] In a possible implementation, in the syntax tree structure corresponding to the rich text, a node to be processed that includes an erroneous word is selected, including: obtaining the index of the correction word in the correction text; and selecting the node to be processed that includes the erroneous word in the syntax tree structure corresponding to the rich text according to the index.

[0119] Specifically, the correction word is written into the first array (such as AiTextArr), the index of the correction word in the correction text is determined through the first array, and the correction word, the operation information corresponding to the correction word (replacement, deletion or addition), the replacement word corresponding to the correction word, and the index of the correction word are written into the second array (such as CorrectArr).

[0120] The syntax tree structure corresponding to the rich text is flattened to filter text nodes of text type, and the text nodes are matched through the first array. The text nodes with the same index are used as nodes to be processed. The nodes to be processed include erroneous words corresponding to the correction words. According to the second array, the erroneous words in the nodes to be processed are modified.

[0121] In the above embodiment, the to-be-processed nodes corresponding to the modified words are determined according to the nodes in the syntax tree structure corresponding to the rich text, so that the candidate can modify the erroneous words in the candidate nodes.

[0122] In one possible implementation, the words to be processed include erroneous words and corrected words; in response to the correction instruction for the words to be processed, the rich text is modified based on the words to be processed, and before the target rich text is obtained, it also includes: in response to the selection operation for the erroneous words or the corrected words, a menu control is displayed; the menu control includes a correction sub-control; in response to the trigger operation for the correction sub-control, a correction instruction for the words to be processed is initiated.

[0123] The word corresponding to the selection operation may be an incorrect word or a corrected word, that is, the selection operation may be performed on the corrected word or on the incorrect word.

[0124] It should be noted that there may be multiple words to be processed, and this embodiment is an embodiment of modifying a single erroneous word.

[0125] Specifically, when the user determines that a certain incorrect word needs to be modified, the user can select the incorrect word, or the correction word corresponding to the incorrect word. Taking the selection of the correction word as an example, the user can select the correction word through a preset selection operation (such as long press, double click, focus hover, right click), and the computer device responds to the selection operation on the correction word by displaying a menu control. The computer device responds to the trigger operation of the correction sub-control included in the menu control and initiates a correction instruction for the correction word, so that the corresponding content in the rich text is modified through the incorrect word corresponding to the correction word.

[0126] The menu control also includes an ignore sub-control. In response to a trigger operation on the ignore sub-control, the computer device cancels the operation of changing the correction word to the wrong word and highlights the correction word and the wrong word. The ignore sub-control is used to cancel the aforementioned modification. For example, for a wrong word, after confirming that the wrong word is changed to the correction word through the correction sub-control, the wrong word can be cancelled through the ignore sub-control, which provides more operating space for users and makes rich text error correction more flexible.

[0127] In the above embodiment, the selected erroneous word is modified by selecting the operation and the menu control including the correction sub-control, so that the rich text error correction is performed under the user operation, avoiding erroneous modification, and making the rich text error correction meet the user's intention.

[0128] In one possible implementation, in response to a correction instruction for the word to be processed, the rich text is modified based on the word to be processed, and before the target rich text is obtained, it also includes: in response to a trigger operation for a one-key replacement control in the error correction sub-page, initiating a correction instruction for the word to be processed.

[0129] Specifically, when a correction instruction is initiated by a one-key replacement control, the words to be processed may be all wrong words or all corrected words. It should be noted that there may be multiple words to be processed, and this embodiment is an embodiment of modifying all words to be processed with one key.

[0130] In actual application, the user views the correction text and plain text displayed in the error correction subpage. If the user believes that the errors reflected in the correction text need to be modified, the user can trigger the one-key replacement control in the error correction subpage to initiate correction instructions for all erroneous words or all correction words.

[0131] For the correction instruction initiated by the one-key replacement control, the corresponding correction word can be used to modify each incorrect word later.

[0132] Optionally, the error correction sub-page also includes a one-key ignore control, and the error correction sub-page is closed in response to a trigger operation on the one-key ignore control.

[0133] In the above embodiment, when the user needs to modify all erroneous words, all erroneous words can be modified through a one-key replacement control, without the user having to modify them one by one, thereby improving the efficiency of rich text error correction.

[0134] Next, a specific example is used to illustrate the rich text error correction method; in this example, the rich text editing page is an email editing page; Figure 3 As shown, the rich text error correction method includes:

[0135] like Figure 4 As shown; the user edits the rich text 4011 through the rich text editing page 401, the user triggers the error correction control 4012 in the rich text editing page 401 to initiate an error correction request, the computer device obtains the rich text displayed in the rich text editing page, extracts the plain text from the rich text, and performs error correction processing on the plain text through the error correction model to obtain the corrected text; the computer device compares the plain text and the corrected text to determine the erroneous words in the plain text and the corrected words in the corrected text, and the erroneous words and the corrected words correspond one to one.

[0136] like Figure 5 As shown; the computer device divides the rich text editing page into an editing sub-page 501 and an error correction sub-page 502. The rich text can be displayed and edited on the editing sub-page 501. The error correction sub-page 502 includes a first sub-page 5021 and a second sub-page 5022. Plain text is displayed in the first sub-page 5021, and erroneous words are highlighted. Corrected text is displayed in the second sub-page 5022, and the corrected words are highlighted.

[0137] The user performs a selection operation on the modification word, and the computer device displays a menu control in response to the selection operation; Figure 6 As shown, the menu control 60 includes an error word 601 , a correction word 602 , a correction sub-control 603 and an ignore sub-control 604 .

[0138] The user performs a trigger operation on the correction sub-control, and the computer device responds to the trigger operation and initiates a correction instruction, which includes operation information, erroneous words, and correction words; the computer device determines the syntax tree structure corresponding to the rich text, obtains the to-be-processed node (including the erroneous word) corresponding to the correction word in the syntax tree structure, and uses the correction word to modify the erroneous word included in the to-be-processed node according to the operation information to obtain the target node, and obtains the target rich text according to the syntax tree structure including the target node.

[0139] like Figure 7As shown in the figure, the computer device displays the target rich text 7011 on the rich text editing page 701. At the same time, after modifying the incorrect words, the color of the incorrect words displayed on the first sub-page is changed, and the color of the corrected words displayed on the second sub-page is changed to distinguish the unmodified incorrect words from the modified incorrect words. For example, by confirming the modification of "满满" through the menu control, "满满" in the target rich text has been modified to "满足", and the color of "满满" on the first sub-page has been modified, and the color of "满足" on the second sub-page has been modified.

[0140] In the rich text error correction method provided by the embodiments of the present application, when an error correction request is initiated for the rich text on the rich text editing page, the plain text is extracted from the rich text, the plain text is error-corrected to obtain the corrected text, the plain text and the corrected text are displayed through the error correction sub-page, and the words to be processed with differences in the plain text and the corrected text are highlighted, so that the words that need to be modified in the plain text and the words recommended for modification in the corrected text can be intuitively determined; when it is confirmed that modification is required, a correction instruction is initiated for the words to be processed, so as to modify the rich text into the target rich text, and the rich text displayed on the rich text editing page is replaced with the target rich text; during the editing process of the rich text, through simple user interaction, while retaining the original format of the rich text, rich text error correction is realized, and the efficiency of rich text error correction is improved; in addition, the plain text and the corrected text are displayed on the error correction sub-page, and the words to be processed are highlighted, so as to facilitate the comparison of the plain text and the corrected text, provide clear modification suggestions for users, and enable targeted modification of words, avoiding the situation of incorrect modification and improving the user experience.

[0141] It should be understood that although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least a part of other steps or steps or stages in other steps.

[0142] Figure 8 It is a schematic structural diagram of the rich text error correction device provided by the present application. As Figure 8 shown, the rich text error correction device 80 provided in this embodiment includes:

[0143] The text extraction module 801 is used to extract the plain text from the rich text displayed on the rich text editing page in response to the error correction request triggered on the rich text editing page;

[0144] The text error correction module 802 is used to perform error correction processing on the plain text to obtain a corrected text after error correction;

[0145] The first display module 803 is used to display the plain text and the corrected text in the error correction subpage, and highlight the words to be processed that are different between the plain text and the corrected text;

[0146] A rich text modification module 804 is used to modify the rich text based on the to-be-processed words in response to the modification instruction for the to-be-processed words to obtain a target rich text;

[0147] The second display module 805 is used to replace the rich text displayed in the rich text editing page with the target rich text.

[0148] In a possible implementation, the text error correction module 802 is also used to obtain a prompt sentence; through the error correction large model, the plain text is corrected according to the prompt sentence to obtain a corrected text after error correction.

[0149] In one possible implementation, the words to be processed include erroneous words and corrected words; the first display module 803 is also used to compare the plain text and the corrected text to obtain the erroneous words in the plain text and the corrected words in the corrected text; the plain text and the corrected text are displayed in the error correction subpage, and the erroneous words and the corrected words are highlighted.

[0150] In one possible implementation, the error correction subpage includes a first subpage and a second subpage in parallel; the first display module 803 is also used to take the same words in the plain text and the corrected text as correct words; in the first subpage, the correct words are displayed according to the default style, and the incorrect words are displayed according to the highlight style; in the second subpage, the correct words are displayed according to the default style, and the corrected words are displayed according to the highlight style.

[0151] In a possible implementation, the first display module 803 is also used to determine the display identifier of the correct word as the first identifier; determine the display identifier of the incorrect word and the corrected word as the second identifier; obtain the default style corresponding to the correct word based on the first identifier; and obtain the highlight style corresponding to the incorrect word and the corrected word based on the second identifier.

[0152] In one possible implementation, the rich text modification module 804 is also used to respond to correction instructions for words to be processed and obtain operation information carried by the correction instructions; the words to be processed include erroneous words in the plain text and corrected words in the corrected text; in the syntax tree structure corresponding to the rich text, select the nodes to be processed that include the erroneous words; based on the operation information, use the corrected words to modify the erroneous words included in the nodes to be processed to obtain the target nodes; and determine the target rich text based on the syntax tree structure containing the target node.

[0153] In a possible implementation, the rich text modification module 804 is further configured to obtain an index of the modified word in the modified text; and select a node to be processed that includes the incorrect word in the syntax tree structure corresponding to the rich text according to the index.

[0154] In one possible implementation, the words to be processed include erroneous words and corrected words; the rich text error correction device includes: a correction instruction initiation module, which is used to display a menu control in response to a selection operation on an erroneous word or a corrected word; the menu control includes a correction sub-control; in response to a trigger operation on the correction sub-control, a correction instruction for the words to be processed is initiated.

[0155] In a possible implementation, the correction instruction initiating module is used to initiate a correction instruction for the to-be-processed word in response to a triggering operation on a one-key replacement control in the error correction subpage.

[0156] The rich text error correction device provided in this embodiment can execute the rich text error correction method provided in the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0157] Fig. 9 This is a schematic diagram of the structure of the computer device provided in this application. Fig. 9 As shown, the computer device 90 provided in this embodiment includes: at least one processor 901 and a memory 902. Optionally, the device 90 further includes a communication component 903. The processor 901, the memory 902 and the communication component 903 are connected via a bus.

[0158] In a specific implementation process, at least one processor 901 executes the computer execution instructions stored in the memory 902, so that at least one processor 901 executes the above method.

[0159] The specific implementation process of the processor 901 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0160] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0161] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk storage.

[0162] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0163] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.

[0164] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.

[0165] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0166] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0167] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

[0168] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0169] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0170] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0171] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0172] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A rich text error correction method, characterized in that: include: In response to an error correction request triggered on a rich text editing page, extracting plain text from the rich text displayed on the rich text editing page; Performing error correction processing on the plain text to obtain a corrected text after error correction; Displaying the plain text and the corrected text in an error correction subpage, and highlighting the words to be processed that are different between the plain text and the corrected text; In response to a correction instruction for the word to be processed, modify the rich text based on the word to be processed to obtain a target rich text; The rich text displayed in the rich text editing page is replaced with the target rich text.

2. The method according to claim 1, characterized in that The step of performing error correction on the plain text to obtain a corrected text after error correction includes: Get the prompt statement; The error correction model is used to correct the plain text according to the prompt sentence to obtain a corrected text after error correction.

3. The method according to claim 1, characterized in that: The words to be processed include erroneous words and corrected words; The step of displaying the plain text and the corrected text in the error correction subpage and highlighting the words to be processed that are different between the plain text and the corrected text includes: Comparing the plain text with the corrected text to obtain the erroneous words in the plain text and the corrected words in the corrected text; The plain text and the corrected text are displayed in an error correction subpage, and the erroneous words and the corrected words are highlighted.

4. The method according to claim 3, characterized in that The error correction subpage includes a first subpage and a second subpage in parallel; The step of displaying the plain text and the corrected text in the error correction subpage and highlighting the erroneous words and the corrected words includes: The same words in the plain text and the corrected text are regarded as correct words; In the first sub-page, the correct words are displayed according to a default style, and the incorrect words are displayed according to a highlighted style; In the second subpage, the correct word is displayed according to the default style, and the revised word is displayed according to the highlighted style.

5. The method according to claim 4, characterized in that After taking the same words in the plain text and the revised text as correct words, the method further includes: Determine that the display mark of the correct word is the first mark; Determining that the display marks of the erroneous word and the corrected word are second marks; According to the first identifier, obtaining a default style corresponding to the correct word; According to the second identifier, the highlight styles corresponding to the erroneous word and the corrected word are obtained.

6. The method according to claim 1, characterized in that The step of modifying the rich text based on the words to be processed in response to the correction instruction for the words to be processed to obtain a target rich text includes: In response to a correction instruction for the word to be processed, obtaining operation information carried by the correction instruction; the word to be processed includes an erroneous word in the plain text and a corrected word in the corrected text; In the syntax tree structure corresponding to the rich text, selecting a node to be processed that includes the erroneous word; According to the operation information, the erroneous words included in the node to be processed are modified using the correction words to obtain a target node; The target rich text is determined according to the syntax tree structure including the target node.

7. The method according to claim 6, characterized in that The step of selecting a node to be processed that includes the erroneous word in the syntax tree structure corresponding to the rich text includes: Obtaining the index of the revised word in the revised text; According to the index, in the syntax tree structure corresponding to the rich text, a node to be processed that includes the erroneous word is selected.

8. The method according to any one of claims 1 to 7, characterized in that The words to be processed include erroneous words and corrected words; Before the method responds to the correction instruction for the word to be processed and modifies the rich text based on the word to be processed to obtain the target rich text, the method further includes: In response to a selection operation on the erroneous word or the corrected word, a menu control is displayed; the menu control includes a correction sub-control; In response to a trigger operation on the correction sub-control, a correction instruction for the word to be processed is initiated.

9. The method according to any one of claims 1 to 7, characterized in that Before the method responds to the correction instruction for the word to be processed and modifies the rich text based on the word to be processed to obtain the target rich text, the method further includes: In response to a triggering operation on a one-key replacement control in the error correction subpage, a correction instruction for the to-be-processed word is initiated.

10. A rich text error correction device, characterized in that: The device comprises: A text extraction module, configured to extract plain text from the rich text displayed on the rich text editing page in response to an error correction request triggered on the rich text editing page; A text error correction module, used to perform error correction processing on the plain text to obtain a corrected text after error correction; A first display module, used for displaying the plain text and the corrected text in the error correction subpage, and highlighting the words to be processed that are different between the plain text and the corrected text; A rich text modification module, configured to modify the rich text based on the to-be-processed words in response to a correction instruction for the to-be-processed words to obtain a target rich text; The second display module is used to replace the rich text displayed in the rich text editing page with the target rich text.

11. A computer device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 9 when executed by a processor.

13. A computer program product, characterized in that The method comprises computer-executable instructions, which implement the method according to any one of claims 1 to 9 when executed by a processor.

Citation Information

Patent Citations

  • Method and device for displaying error correction information on front-end page

    CN110968989A

  • Rich text spelling error correction method and system under multi-model collaborative adaptive strategy

    CN117592465A

  • Text error correction method and device, equipment and storage medium

    CN117708272A

  • Editing information error correction method and device based on rich text editor

    CN117875301A

  • Text checking front-end interaction method and system

    CN118798141A