Text processing method and device, equipment and storage medium

By correcting and processing the first text, a second text with a higher writing level is generated based on the writer's historical writing level, which solves the problem that the existing technology cannot provide personalized auxiliary information and realizes the provision of personalized information for the writer. Auxiliary effect.

CN118690749APending Publication Date: 2024-09-24IFLYTEK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310493104.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-24
Filing Date
2023-04-28
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing artificial intelligence-assisted writing solutions cannot provide writers with personalized auxiliary information, and cannot provide personalized assistance based on the writer's historical writing level.

Method used

By correcting errors in the first text and processing the corrected text based on the writer's historical writing level, a second text with the same or similar semantics as the original text is generated. The writing level of the second text is better than that of the first text, providing Personalized ancillary information.

Benefits of technology

The generated second text is more in line with the writer's writing ideas, provides the writer with personalized auxiliary information, and helps improve the writing level.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690749A
    Figure CN118690749A
Patent Text Reader

Abstract

The embodiment of the invention discloses a text processing method and device, equipment and a storage medium, and the method comprises the steps: carrying out the error correction of a first text, and obtaining an error-corrected text; based on the historical writing level of the author of the first text, processing the text after error correction to obtain a second text; outputting the second text; wherein the semantics of the second text is the same as or similar to that of the text after error correction; and under the condition that the error-corrected text and the second text are evaluated in the same evaluation mode to obtain the first writing level corresponding to the error-corrected text and the second writing level corresponding to the second text, the second writing level is superior to the first writing level. The second text generated on the basis of the method is more suitable for the writing thought of the author of the first text, personalized auxiliary information is provided for the author of the first text, and the author of the first text can be better assisted to improve the writing level.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to a domestic application filed with the China Patent Office on March 24, 2023, with application number 202310305548.6 and invention name “Text processing method, device, equipment and storage medium”, all contents of which are incorporated by reference in this application. Technical Field

[0002] The present application relates to the field of artificial intelligence technology, and more specifically, to a text processing method, apparatus, device and storage medium. Background Art

[0003] Writing is an indispensable practical skill in people's daily life and study, and it is also an essential ability that students are required to master in school education.

[0004] In order to assist writers to improve their writing skills, artificial intelligence solutions for assisting writers to improve their writing skills have emerged. For example, articles are generated for writers to refer to based on information such as the writing topic. However, this method is the same for all writers and cannot provide writers with personalized auxiliary information. Summary of the invention

[0005] In view of this, the present application provides a text processing method, apparatus, device and storage medium to provide personalized auxiliary information for writers.

[0006] In order to achieve the above objectives, the proposed solution is as follows:

[0007] A text processing method, comprising:

[0008] Correcting the first text to obtain a corrected text;

[0009] Based on the historical writing level of the author of the first text, the corrected text is processed to obtain a second text;

[0010] outputting the second text;

[0011] The semantics of the second text and the corrected text are the same or similar; when the corrected text and the second text are evaluated respectively using the same evaluation method to obtain a first writing level corresponding to the corrected text and a second writing level corresponding to the second text, the second writing level is better than the first writing level.

[0012] In the above method, optionally, the step of processing the corrected text based on the historical writing level of the author of the first text to obtain the second text comprises:

[0013] determining the second writing level according to the first writing level and the history writing level;

[0014] With the evaluation result of the second text being the second writing level as a goal, the error-corrected text is processed to obtain the second text.

[0015] The above method may optionally further include:

[0016] If a switching instruction for the second text is obtained, determining a third writing level; the third writing level is better than the second writing level;

[0017] Taking the evaluation result of the third text as the third writing level as the target, processing the error-corrected text to obtain the third text;

[0018] The second text is hidden, and the third text is output.

[0019] In the above method, optionally, the step of processing the corrected text based on the historical writing level of the author of the first text to obtain the second text comprises:

[0020] Determine at least two target writing levels according to the first writing level and the history writing level; any target writing level is better than the first writing level and the history writing level; different target writing levels have different gaps with the first writing level;

[0021] Taking the evaluation result of the generated text as the target writing level, processing the corrected text to obtain a generated text corresponding to the target writing level;

[0022] The generated text corresponding to the target writing level that has the smallest difference from the first writing level is determined as the second text.

[0023] The above method may optionally further include:

[0024] If a switching instruction for the second text is obtained, a target generated text is determined from the generated texts corresponding to the at least two target levels; the difference between the target writing level corresponding to the target generated text and the first writing level is greater than the difference between the target writing level corresponding to the second text and the first writing level;

[0025] The second text is hidden, and the target generated text is output.

[0026] The above method may optionally include processing the corrected text based on the historical writing level of the author of the first text to obtain the second text, including:

[0027] Based on the historical writing level of the author of the first text, the corrected text is processed to obtain a plurality of candidate texts; the writing level of each candidate text is better than the first writing level;

[0028] Selecting a candidate text from the multiple candidate texts as the second text;

[0029] After the second text is output, if a switching instruction for the second text is obtained, the second text is hidden, and a candidate text different from the second text is selected from the plurality of candidate texts for output.

[0030] In the above method, optionally, the first text is corrected to obtain a corrected text; based on the historical writing level of the author of the first text, the corrected text is processed to obtain the second text through a text processing model, and the text processing model is a generative model;

[0031] The text processing model is trained using sample text and the historical writing level of the author of the sample text as training data, and using the error correction text and optimized text corresponding to the sample text as labels.

[0032] The above method may optionally further include:

[0033] Perform sentence alignment on the first text and the second text;

[0034] Determining a modification position and modification content of the second text relative to the first text according to the sentence alignment result;

[0035] The modified content is processed in the second text to highlight the modified content in the second text.

[0036] The above method may optionally further include:

[0037] Corresponding to any modification position, obtaining relevant knowledge points of the modification content at any modification position according to the modification position and the modification content at the modification position;

[0038] The relevant knowledge point is displayed in the second text in association with the modified content.

[0039] The above method may optionally further include:

[0040] Generate an explanatory comment corresponding to any modification position according to any modification position, the modification content at any modification position and related knowledge points; the explanatory comment represents the modification reason at any modification position;

[0041] An explanatory comment corresponding to any modification position is displayed in the second text in association with the modification content at the modification position.

[0042] The above method may optionally further include:

[0043] Generate a guiding question corresponding to any modification position according to the historical writing level, any modification position, the modification content and related knowledge points at any modification position, and the explanatory comments corresponding to any modification position; the guiding question is used to guide the author to think about the relevant information of the related knowledge points of the modification content at any modification position;

[0044] The guiding question corresponding to any modification position is displayed in the second text in association with the modification content at any modification position.

[0045] The above method may optionally further include:

[0046] Obtaining feedback information inputted in response to the guiding questions;

[0047] Determining a guiding question corresponding to the feedback information according to the feedback information, the historical guiding questions and the historical feedback information of the author;

[0048] Output guiding questions corresponding to the feedback information.

[0049] Optionally, in the above method, the process of displaying the explanatory comments and the guiding questions in the second text includes:

[0050] Determine the target output content corresponding to any modification position according to the author's historical writing level and the modification content at any modification position; the target output content includes at least one of the following three items: an explanatory comment corresponding to any modification position, a guiding question corresponding to any modification position, a sentence where the modification content at any modification position is located, at least one of a recommended exercise and an example sentence;

[0051] The target output content is displayed in the second text in association with the modification content at any modification position.

[0052] A text processing device, comprising:

[0053] A processing module, configured to correct the first text to obtain a corrected text; and based on the historical writing level of the author of the first text, process the corrected text to obtain a second text;

[0054] An output module, used for outputting the second text;

[0055] The semantics of the second text and the corrected text are the same or similar; when the corrected text and the second text are evaluated respectively using the same evaluation method to obtain a first writing level corresponding to the corrected text and a second writing level corresponding to the second text, the second writing level is better than the first writing level.

[0056] A text processing device, comprising a memory and a processor;

[0057] The memory is used to store programs;

[0058] The processor is used to execute the program to implement each step of the text processing method as described in any one of the above items.

[0059] A computer-readable storage medium having a computer program stored thereon, characterized in that when the computer program is executed by a processor, each step of the text processing method as described in any one of the above items is implemented.

[0060] It can be seen from the above technical solutions that the text processing method, device, equipment and storage medium provided in the embodiment of the present application correct the first text to obtain the corrected text; based on the historical writing level of the author of the first text, the corrected text is processed to obtain the second text; the second text is output; wherein the second text has the same or similar semantics as the corrected text; when the corrected text and the second text are evaluated respectively using the same evaluation method to obtain the first writing level corresponding to the corrected text and the second writing level corresponding to the second text, the second writing level is better than the first writing level. The text processing method provided in the present application corrects the first text, processes the corrected text based on the historical writing level of the author of the first text, generates a second text with the same or similar semantics as the corrected text and a higher writing level for reference by the author of the first text, and since the second text is an optimized text generated on the basis of the historical writing level of the first text and its author, the generated second text is more in line with the writing ideas of the author of the first text, provides personalized auxiliary information for the author of the first text, and can better assist the author of the first text to improve his writing level. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0062] Figure 1A flowchart of an implementation of the text processing method disclosed in the embodiment of the present application;

[0063] Figure 2 A flowchart for implementing the process of processing the corrected text to obtain the second text based on the historical writing level of the author of the first text disclosed in the embodiment of the present application;

[0064] Figure 3 Another implementation flow chart of processing the corrected text based on the historical writing level of the author of the first text disclosed in the embodiment of the present application to obtain the second text;

[0065] Figure 4 An example diagram of the first text and the second text disclosed in the embodiments of the present application;

[0066] Figure 5 A schematic diagram of the structure of a text processing device disclosed in an embodiment of the present application;

[0067] Figure 6 This is a hardware structure block diagram of the text processing device disclosed in the embodiment of the present application. DETAILED DESCRIPTION

[0068] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0069] This application is proposed in order to provide writers with personalized information to assist in writing.

[0070] like Figure 1 As shown, a flowchart of an implementation of the text processing method provided in an embodiment of the present application may include:

[0071] Step S101: correcting errors in a first text to obtain a corrected text.

[0072] Optionally, the first text may be an English text or a text in another language, for example, a Russian text, a French text, etc.

[0073] As an example, the first text may be an article written by a writer (e.g., a student or other person who has a writing need), such as a composition written by a student.

[0074] Correcting the first text may include, but is not limited to, correcting the following errors: redundant words, missing words, misspelled words, incorrect word order, incorrect phrases, incorrect punctuation, etc.

[0075] The first text may be corrected by an error correction device, or may be corrected by the text processing model of the present application.

[0076] Step S102: Based on the historical writing level of the author of the first text, the corrected text is processed to obtain a second text. The semantics of the second text and the corrected text are the same or similar; when the corrected text and the second text are evaluated using the same evaluation method to obtain a first writing level corresponding to the corrected text and a second writing level corresponding to the second text, the second writing level is better than the first writing level.

[0077] Optionally, different writing levels can be represented by different score intervals. The higher the score in the score interval, the higher the writing level corresponding to the score interval, and the lower the score in the score interval, the lower the writing level corresponding to the score interval. Based on this, the writing level of the author can be represented by the score interval to which the score of the text written by the author belongs. As an example, the historical writing level of the author of the first text can be the score interval to which the average score of each text previously written by the author of the first text (recorded as each historical writing text) belongs, for example, it can be the score interval to which the average score of each historical writing text written by the author in the past three months belongs.

[0078] Optionally, different writing levels can also be represented by different codes. As an example, 1 represents the lowest writing level, 2 represents a higher writing level, 3 represents a medium writing level, 4 represents a higher writing level, 5 represents a high writing level, etc. As an example, 1 represents the junior high school level, 2 represents the senior high school level, 3 represents the college level 4, 4 represents the college level 6, etc. As an example, the historical writing level of the author of the first text can be the writing level that appears most frequently among the writing levels of various historical writing texts of the author of the first text, such as the writing level that appears most frequently among the writing levels of various historical writing texts of the author in the past three months. If the writing levels of various historical writing texts of the author in the past three months appear the same number of times, the writing level of the most recently written text of the author can be used as the author's historical writing level.

[0079] Step S102: outputting a second text.

[0080] Optionally, only the second text may be displayed. Or,

[0081] The first text and the second text can be displayed simultaneously, so that the author of the first text can compare the first text with the second text to determine where the second text has been modified relative to the first text, thereby discovering deficiencies in the first text and conducting relevant learning on the deficiencies.

[0082] The text processing method provided in the present application processes the corrected text based on the historical writing level of the author of the first text after correcting errors in a first text, and generates a second text with the same or similar semantics as the corrected text and a higher writing level for reference by the author of the first text. Since the second text is an optimized text generated based on the first text and the historical writing level of its author, the generated second text is more in line with the writing ideas of the author of the first text, provides personalized auxiliary information for the author of the first text, and can better assist the author of the first text in improving his writing level.

[0083] In an optional embodiment, the above-mentioned process of processing the corrected text based on the historical writing level of the author of the first text to obtain a second text is as follows: Figure 2 As shown, it may include:

[0084] Step S201: Determine the second writing level according to the first writing level and the history writing level.

[0085] Optionally, the first text may be processed by an evaluation device to determine a first writing level corresponding to the first text, or the first text may be processed by a text processing model of the present application to obtain the first writing level corresponding to the first text.

[0086] For example, for an essay, assuming that the first writing level is in the score range [50, 60) and the history writing level is in the score range [60, 70), then the second writing level can be in the score range [70, 80).

[0087] Step S202: With the evaluation result of the second text being the second writing level as the target, the corrected text is processed to obtain a second text.

[0088] With the evaluation result of the second text as the second writing level as the goal, the process of processing the corrected text can be achieved through an optimization device or through the text processing model of the present application.

[0089] After the second text is output, the author of the first text may not approve or like the second text. Based on this, the author of the first text can perform a preset operation to trigger the generation of a switching instruction for the second text. Based on this, if a switching instruction for the second text is obtained, a third writing level is determined, and the third writing level is better than the first target writing level.

[0090] With the evaluation result of the third text being the third writing level as the goal, the corrected text is processed to obtain the third text. The writing level obtained by evaluating the third text is the third writing level.

[0091] Hide the second text and display the third text, that is, switch the displayed second text to the third text.

[0092] In an optional embodiment, another implementation flowchart of processing the corrected text based on the historical writing level of the author of the first text to obtain the second text is as follows: Figure 3 As shown, it may include:

[0093] Step S301: Determine at least two target writing levels according to the first writing level and the history writing level. Any target writing level is better than the first writing level and the history writing level; different target writing levels have different gaps with the first writing level.

[0094] and Figure 2 Different from the embodiment shown, in this embodiment, multiple target writing levels are determined according to the first writing level and the history writing level. For example, the first writing level is a score interval [50, 60), and the history writing level is a score interval [60, 70), then the multiple target writing levels can be a score interval [70, 80), a score interval [80, 85), a score interval [85, 90), etc.

[0095] Step S302: Taking the evaluation result of the generated text as the target writing level, the corrected text is processed to obtain the generated text corresponding to the target writing level.

[0096] The process of taking the evaluation result of the generated text as the target writing level and processing the corrected text to obtain the generated text corresponding to the target writing level can be achieved through an optimization device or through the text processing model of the present application.

[0097] Step S303: Determine the generated text corresponding to the target writing level that has the smallest difference from the first writing level as the second text.

[0098] Continuing with the above example, the difference between the score interval [70, 80) and the score interval [50, 60) is the smallest, so the generated text corresponding to the score interval [70, 80) is output as the second text.

[0099] Furthermore, after outputting the second text, if a switching instruction for the second text is obtained, a target generated text is determined among the generated texts corresponding to the at least two target levels; the difference between the target writing level corresponding to the target generated text and the first writing level is greater than the difference between the target writing level corresponding to the second text and the first writing level.

[0100] Continuing with the above example, if a switching instruction for the second text is obtained, the generated text corresponding to the score interval [80, 85) is output as the target generated text.

[0101] Hide the second text and output the target generated text.

[0102] In an optional embodiment, one implementation method of processing the corrected text based on the historical writing level of the author of the first text to obtain the second text may be:

[0103] Based on the historical writing level of the author of the first text, the corrected text is processed to obtain multiple candidate texts; the writing level of each candidate text is the above-mentioned second writing level.

[0104] A candidate text is selected from the plurality of candidate texts as the second text.

[0105] As an example, a candidate text with the highest sample confidence may be selected from a plurality of candidate texts as the second text.

[0106] After the second text is output, if a switching instruction for the second text is obtained, the second text is hidden, and a candidate text different from the second text is selected from the plurality of candidate texts for output.

[0107] As an example, the candidate text with the second highest sample confidence among the multiple candidate texts may be output to replace the second text.

[0108] Further, if a switching instruction for the currently displayed text is obtained again, a third writing level is determined, and the third writing level is better than the second writing level.

[0109] With the evaluation result of the third text being the third writing level as the goal, the corrected text is processed to obtain the third text. The writing level obtained by evaluating the third text is the third writing level.

[0110] The candidate text with the second highest confidence is hidden, and the third text is displayed, that is, the displayed candidate text with the second highest confidence is switched to the third text.

[0111] In an optional embodiment, the above-mentioned process of correcting the first text to obtain a corrected text and processing the corrected text based on the historical writing level of the author of the first text to obtain the second text is carried out through a text processing model, and the text processing model is a generative model.

[0112] As an example, the generative model can be a generative model of the Transformer architecture, such as GPT (Generative Pre-Training)-3, GPT-4, etc., or other generative models, such as PaLM (Pathways Language Model), SOTA (State-Of-The-Art), etc.

[0113] Optionally, the text processing model can be trained using the sample text and the historical writing level of the author of the sample text as training data, and the corrected text corresponding to the sample text (for example, the text obtained by the teacher correcting the sample text) and the optimized text (for example, the text obtained by the teacher optimizing the corrected text corresponding to the sample text) as labels. Specifically, the sample text and the historical writing level of the author of the sample text can be input into the text processing model, the text processing model corrects the sample text to obtain the corrected text, and based on the historical writing level of the author of the sample text, the corrected text of the sample text is processed to obtain the optimized text;

[0114] The parameters of the text processing model are updated with the goal that the corrected text obtained by the text processing model is close to the corrected text used as the label, and the optimized text obtained by the text processing model is close to the optimized text used as the label.

[0115] In an optional embodiment, the text processing method may further include:

[0116] Align the sentences of the first text and the second text, that is, determine the corresponding relationship between the sentences in the first text and the second text.

[0117] The first text and the second text may be sentence aligned by an alignment model. Alternatively, the first text and the second text may be sentence aligned by a text processing model of the present application.

[0118] In this embodiment, the text processing model can be trained using the sample text and the historical writing level of the author of the sample text as training data, and the corrected text, optimized text and alignment information (including alignment annotations of sentences of the optimized text and the sample text, and changes in the aligned sentences) corresponding to the sample text as labels. Specifically, the sample text and the historical writing level of the author of the sample text can be input into the text processing model, the text processing model corrects the sample text to obtain the corrected text, the corrected text of the sample text is processed based on the historical writing level of the author of the sample text to obtain the optimized text, the sample text and the optimized text are aligned to obtain the alignment result;

[0119] The parameters of the text processing model are updated with the goal that the corrected text obtained by the text processing model is close to the corrected text used as the label, the optimized text obtained by the text processing model is close to the optimized text used as the label, and the alignment result obtained by the text processing model is close to the alignment information used as the label.

[0120] The modified position and modified content of the second text relative to the first text are determined according to the sentence alignment result.

[0121] The sentence alignment result represents the correspondence between the sentences in the first text and the second text. Based on this, the corresponding sentences can be compared to determine what content in the sentence in the second text is modified relative to the sentence in the first text, and where the modification is made.

[0122] The modified content is processed in the second text to highlight the modified content in the second text.

[0123] After determining the modification position and modification content in the sentence, the modification content may be marked in the second text, for example, by changing the color of the modification content in the second text, or highlighting the modification content, or underlining the modification content.

[0124] By highlighting the modified content, it is easier for the author to compare the first text with the second text, thereby improving the convenience of the author's review.

[0125] In an optional embodiment, after the modification position is determined, corresponding to any modification position, relevant knowledge points of the modification content at any modification position can be obtained based on the modification position and the modification content at the modification position.

[0126] The prediction device can obtain the knowledge points related to the modification content at any modification position according to the modification position and the modification content at the modification position. Or,

[0127] The text processing model of the present application can be used to obtain relevant knowledge points of the modified content at any modification position based on the modification position and the modified content at the modification position.

[0128] In this embodiment, the text processing model can be trained with the sample text and the historical writing level of the author of the sample text as training data, and with the corrected text, optimized text, alignment information (including alignment annotations of sentences of the optimized text and the sample text, and changes in the aligned sentences) corresponding to the sample text and knowledge points corresponding to the modified content at each modification position as labels. Specifically, the sample text and the historical writing level of the author of the sample text can be input into the text processing model, the text processing model corrects the sample text to obtain the corrected text, processes the corrected text of the sample text based on the historical writing level of the author of the sample text to obtain the optimized text, aligns the sample text and the optimized text to obtain an alignment result; for any modification position, generates relevant knowledge points of the modified content at any modification position based on the modification position and the modified content at the modification position;

[0129] The parameters of the text processing model are updated with the goal that the corrected text obtained by the text processing model is close to the corrected text used as the label, the optimized text obtained by the text processing model is close to the optimized text used as the label, the alignment result obtained by the text processing model is close to the alignment information used as the label, and the relevant knowledge points of the modified content at any modified position obtained by the text processing model are close to the knowledge points corresponding to the modified content at any modified position used as the label.

[0130] The above-mentioned related knowledge points are displayed in the second text in association with the modified content at any modification position.

[0131] Optionally, the above-mentioned related knowledge points and the modified content may be displayed with the same display effect, so as to display the above-mentioned related knowledge points and the modified content in association with each other. For example, the above-mentioned related knowledge points and the modified content may be displayed with the same color, or with the same highlight color. Or,

[0132] The above-mentioned related knowledge points and the modified content may be connected by a connecting line, so that the above-mentioned related knowledge points and the modified content are displayed in association with each other.

[0133] Optionally, the above-mentioned related knowledge points may be directly displayed in association with the modified content when the second text is displayed.

[0134] After obtaining the relevant knowledge point, the relevant knowledge point can be stored in association with the modified content. When displaying the second text, the relevant knowledge point is not displayed first, but the first interactive control is displayed in association with the modified content on the second text. If a display instruction is obtained based on the first interactive control (triggered by a user, such as the author of the first text, operating the first interactive control), the relevant knowledge point is displayed. In this way, the interface of the second text can be relatively simple and convenient for the author to view.

[0135] In an optional embodiment, in order to facilitate the author of the first text to understand the reason for the modification, the text processing method provided by the present application may further include:

[0136] According to any modification position, the modification content at the modification position and the relevant knowledge points, an explanatory comment corresponding to the modification position is generated. The explanatory comment represents the modification reason at the modification position.

[0137] The interpretation device can generate an explanatory comment corresponding to any modification position according to any modification position, the modification content at the modification position and the relevant knowledge points. Or,

[0138] The text processing model of the present application can generate an explanatory comment corresponding to any modification position according to any modification position, the modification content at the modification position and related knowledge points.

[0139] In this embodiment, the text processing model can be trained with the sample text and the historical writing level of the author of the sample text as training data, and with the corrected text, optimized text, alignment information (including alignment annotations of sentences of the optimized text and the sample text, and changes in the aligned sentences) corresponding to the sample text, knowledge points corresponding to the modified content at each modification position, and explanatory comments corresponding to each modification position as labels. Specifically, the sample text and the historical writing level of the author of the sample text can be input into the text processing model, and the text processing model corrects the sample text to obtain the corrected text, processes the corrected text of the sample text based on the historical writing level of the author of the sample text to obtain the optimized text, and aligns the sample text and the optimized text to obtain the alignment result; for any modification position, based on the modification position and the modified content at the modification position, generate the relevant knowledge points of the modified content at the modification position, and based on the modification position, the modified content at the modification position and the relevant knowledge points, generate the explanatory comments corresponding to the modification position;

[0140] The parameters of the text processing model are updated with the goal that the corrected text obtained by the text processing model is close to the corrected text used as a label, the optimized text obtained by the text processing model is close to the optimized text used as a label, the alignment result obtained by the text processing model is close to the alignment information used as a label, the relevant knowledge points of the modified content at any modified position obtained by the text processing model are close to the knowledge points corresponding to the modified content at any modified position used as a label, and the explanatory comments corresponding to any modified position obtained by the text processing model are close to the explanatory comments corresponding to any modified position used as a label.

[0141] The explanatory comment corresponding to any modification position is displayed in the second text in association with the modification content at the modification position.

[0142] Optionally, the explanatory comments and the modified content at any modified position may be displayed with the same display effect, so that the explanatory comments and the modified content are displayed in association. For example, the explanatory comments and the modified content are displayed with the same color, or with the same highlight color. Or,

[0143] The explanatory comments and the modified contents may be connected via a connecting line, so that the explanatory comments and the modified contents are displayed in association with each other.

[0144] Optionally, the above explanatory comments may be directly displayed in association with the modified content when the second text is displayed.

[0145] After obtaining the explanatory comments, the explanatory comments can be stored in association with the modified content. When displaying the second text, the explanatory comments are not displayed first, but the second interactive control is displayed in association with the modified content on the second text. If a display instruction is obtained based on the second interactive control (triggered by a user, such as the author of the first text, operating the second interactive control), the explanatory comments are displayed. In this way, the interface of the second text can be relatively simple and convenient for the author to view.

[0146] In an optional embodiment, in order to enable the author of the first text to participate in the modification process, so as to better understand the reasons for the modification and master the optimization-related knowledge points, the text processing method provided by the present application may also include:

[0147] For any modification position, a guiding question corresponding to the modification position is generated based on the historical writing level of the author of the first text, the modification position, the modification content and related knowledge points at the modification position, and the explanatory comments corresponding to the modification position; the guiding question is used to guide the author to think about the relevant information of the related knowledge points of the modification content at the modification position.

[0148] The guiding device may generate a guiding question corresponding to any modification position according to the historical writing level of the author of the first text, the modification position, the modification content and related knowledge points at the modification position, and the explanatory comments corresponding to the modification position. Or,

[0149] The text processing model of the present application can generate guided questions corresponding to any modification position based on the historical writing level of the author of the first text, the modification position, the modification content and related knowledge points at the modification position, and the explanatory comments corresponding to the modification position.

[0150] In this embodiment, the text processing model can be trained with sample text and the historical writing level of the author of the sample text as training data, and with the corrected text, optimized text, alignment information (including alignment annotations of sentences between the optimized text and the sample text, and changes in the aligned sentences) corresponding to the sample text, knowledge points corresponding to the modified content at each modification position, and explanatory comments and guiding questions corresponding to each modification position as labels. Specifically, the sample text and the historical writing level of the author of the sample text can be input into the text processing model, the text processing model corrects the sample text to obtain a corrected text, the corrected text of the sample text is processed based on the historical writing level of the author of the sample text to obtain an optimized text, and the sample text and the optimized text are sentence-aligned to obtain an alignment result; for any modification position, according to the any modification position and the modification content at the any modification position, the relevant knowledge points of the modification content at the any modification position are generated, according to the any modification position, the modification content at the any modification position and the relevant knowledge points, an explanatory comment corresponding to the any modification position is generated, and according to the historical writing level of the author of the sample text, the any modification position, the modification content at the any modification position and the relevant knowledge points, and the explanatory comment corresponding to the any modification position, a guiding question corresponding to the any modification position is generated;

[0151] The parameters of the text processing model are updated with the goal that the corrected text obtained by the text processing model is close to the corrected text as the label, the optimized text obtained by the text processing model is close to the optimized text as the label, the alignment result obtained by the text processing model is close to the alignment information as the label, the relevant knowledge points of the modified content at any modified position obtained by the text processing model are close to the knowledge points corresponding to the modified content at any modified position as the label, the explanatory comments corresponding to any modified position obtained by the text processing model are close to the explanatory comments corresponding to any modified position as the label, and the guided questions corresponding to any modified position obtained by the text processing model are close to the guided questions corresponding to any modified position as the label.

[0152] The guiding question corresponding to any modification position is displayed in the second text in association with the modification content at any modification position.

[0153] Optionally, the guiding question and the modified content at any modification position may be displayed with the same display effect, so that the guiding question and the modified content are displayed in association. For example, the guiding question and the modified content may be displayed with the same color, or with the same highlight color. Or,

[0154] The guiding question and the modified content may be connected via a connecting line, so that the guiding question and the modified content are displayed in association with each other.

[0155] Optionally, the guiding question may be directly displayed in association with the modified content when the second text is displayed.

[0156] After obtaining the guiding question, the guiding question can be stored in association with the modified content. When displaying the second text, the guiding question is not displayed first, but the third interactive control is displayed in association with the modified content on the second text. If a display instruction is obtained based on the third interactive control (triggered by a user, such as the author of the first text, operating the third interactive control), the guiding question is displayed. In this way, the interface of the second text can be relatively simple and convenient for the author to view.

[0157] like Figure 4 As shown, it is an example diagram of the first text and the second text provided in the embodiment of the present application. Among them, the first text is the original composition, and the second text is the optimized composition, which is a composition at the college entrance examination level. In this example diagram, the modified part of the second text relative to the first text is highlighted in red font. For the modified content "such as", an explanatory comment is displayed here, namely "multiple sentences are combined into a long sentence, using such as as an example", and for the modified content "says that", a guiding question is displayed, namely "how to modify it to an object clause?".

[0158] Furthermore, when the guiding question is displayed, a fourth interactive control may be displayed in association with the guiding question to trigger an interactive process with the author of the first text. Based on this, the text processing method provided by the present application may also include:

[0159] Get feedback on input to guided questions.

[0160] Optionally, the author of the first text can perform a preset operation on the fourth interactive control to trigger the text processing device to generate interactive instructions. The text processing device displays an input box in response to the interactive instructions, and the input box is used to obtain feedback information input by the author of the first text in response to the guided questions.

[0161] According to the feedback information, the historical guiding questions and the historical feedback information of the author of the first text, a guiding question corresponding to the currently input feedback information is determined.

[0162] Based on the present application, multiple rounds of guidance can be provided to the author of the first text, so as to guide the author of the first text to more systematically sort out and modify the knowledge points related to the content.

[0163] The above-mentioned multi-round guiding process can also be implemented through the text processing model of this application.

[0164] In this embodiment, the text processing model can use the sample text and the historical writing level of the author of the sample text, as well as the teacher's multiple rounds of guided conversations with students as training data, and the corrected text corresponding to the sample text, the optimized text, the alignment information (including the alignment annotations of the sentences of the optimized text and the sample text, and the changes in the aligned sentences), the knowledge points corresponding to the modified content at each modification position, the explanatory comments and guiding questions corresponding to each modification position, and the guiding questions given by the teacher based on the students' feedback information as label training. Specifically, the sample text and the historical writing level of the author of the sample text, the feedback information given by the students to the teacher's guiding questions, and the historical interaction information between the teacher and the students can be input into the text processing model, the text processing model corrects the sample text to obtain a corrected text, and based on the historical writing level of the author of the sample text, the corrected text of the sample text is processed to obtain an optimized text, and the sample text and the optimized text are sentence-aligned to obtain an alignment result; for any modification position, according to the any modification position and the modified content at the any modification position, the relevant knowledge points of the modified content at the any modification position are generated, according to the any modification position, the modified content at the any modification position and the relevant knowledge points, an explanatory comment corresponding to the any modification position is generated, according to the historical writing level of the author of the sample text, the any modification position, the modified content at the any modification position and the relevant knowledge points, and the explanatory comment corresponding to the any modification position, a guiding question corresponding to the any modification position is generated, and the guiding question is generated according to the feedback information given by the students to the teacher's guiding questions and the historical interaction information between the teacher and the students;

[0165] The parameters of the text processing model are updated with the goal that the corrected text obtained by the text processing model is close to the corrected text as the label, the optimized text obtained by the text processing model is close to the optimized text as the label, the alignment result obtained by the text processing model is close to the alignment information as the label, the relevant knowledge points of the modified content at any modified position obtained by the text processing model are close to the knowledge points corresponding to the modified content at any modified position as the label, the explanatory comments corresponding to any modified position obtained by the text processing model are close to the explanatory comments corresponding to any modified position as the label, the guided questions corresponding to any modified position obtained by the text processing model are close to the guided questions corresponding to any modified position as the label, and the guided questions generated by the text processing model are close to the teacher's guided questions after the students as the label give feedback on the teacher's guided questions.

[0166] The following example illustrates the process of multiple rounds of bootstrapping:

[0167] For a certain modification content, the guiding question given by the text processing model (referred to as the first guiding question for the sake of description and distinction) is "First, do you know anything about object clauses?"

[0168] Assume that the feedback information input by the student in response to the above guiding question (recorded as the first feedback information for the sake of description and distinction) is "I am not quite sure, should I use that?"

[0169] The text processing model generates a second guiding question based on the first guiding question (i.e., “First, do you know anything about object clauses?”) and the first feedback information (i.e., “I’m not sure, should I use that?”), for example:

[0170] "Great, you now know some basic information about object clauses. Object clauses are often introduced by the word "that". Can you give an example of an object clause that uses the word "that"?"

[0171] Students enter the second feedback in response to the second guiding question, such as “He always says that a man should have spirit, honor, and be helpful to others.”

[0172] The text processing model generates a third guiding question based on the first guiding question, the first feedback information, the second guiding question, and the second feedback information, such as:

[0173] "Great! This example shows the use of an object clause. In this sentence, "that a man should have spirit, honor, and be helpful to others" is an object clause. So, what role do you think the object clause plays in this sentence?"

[0174] Students enter third feedback information in response to third guiding questions, such as “Is it what was said?”

[0175] The text processing model generates a fourth guiding question based on the first guiding question, the first feedback information, the second guiding question, the second feedback information, the third guiding question and the third feedback information, for example:

[0176] "Yes, you are right! In this example, the object clause "that a man should have spirit, honor, and be helpful to others" is the object of the verb "says," and it indicates what is being said. Object clauses are often used to elaborate on the action or state of the verb. Now, can you think of other similar verbs that can also be used with object clauses?"

[0177] The student inputs the fourth feedback information for the fourth guiding question, such as "see, look, watch? I basically understand. Give me a question."

[0178] The text processing model generates exercises based on the first guiding question, the first feedback information, the second guiding question, the second feedback information, the third guiding question, the third feedback information, the fourth guiding question and the fourth feedback information, for example:

[0179] "Okay, it looks like you're starting to understand object clauses. However, I want to correct a verb you mentioned. "See," "look," and "watch" are often used with object clauses using specific structures, such as "see that" or "see if / whether." Now, try to complete the following sentence using an object clause: She told me____."

[0180] In an optional embodiment, if explanatory comments and guiding questions are displayed at all modification positions, the display interface will be cluttered, which is not conducive to personalized guidance for the author of the first text. Based on this, the process of displaying the explanatory comments and guiding questions in the second text of the present application includes:

[0181] The target output content corresponding to any modification position is determined according to the historical writing level of the author of the first text and the modification content at any modification position. The target output content includes at least one of the following three items: an explanatory comment corresponding to any modification position, a guiding question corresponding to any modification position, a sentence where the modification content at any modification position is located, a recommended exercise, and an example sentence.

[0182] That is to say, corresponding to different levels of historical writing, the target output content corresponding to the same modification content may be different; corresponding to the same level of historical writing, the target output content corresponding to different modification contents may be different.

[0183] For example, if the student's writing level is low (for example, the score is below the first threshold), the target output content can be determined from the following aspects:

[0184] If the modified content at the first modification position (which can be any modification position) belongs to the optimization of the basic word spelling and common phrases, the target output content can be determined as the explanatory comment corresponding to the first modification position.

[0185] If the modified content at the first modification position is an optimization of a simple sentence, for example, rewriting it into an object clause, etc., it can be determined that the target output content includes the guiding questions corresponding to the first modification position, as well as simple exercises and examples.

[0186] If the modified content at the first modification position belongs to a low-level vocabulary that appears repeatedly for a preset number of times (for example, 3 times), the target output content may be determined to be simple exercises and example sentences.

[0187] If the student's writing level is medium (for example, the score is greater than or equal to the first threshold, and the score is less than or equal to the second threshold; the second threshold is greater than the first threshold), the target output content can be determined from the following aspects:

[0188] If the modification content at the first modification position belongs to the optimization of basic word spelling and common phrases, or simple sentence optimization, for example, rewriting into an object clause, etc., the target output content can be determined as the explanatory comment corresponding to the first modification position.

[0189] If the modified content at the first modification position belongs to the construction and use of a complex sentence, the target output content can be determined as the sentence where the modified content at the first modification position is located, so that the author of the first text can enrich his language expression ability by learning complex sentence patterns and sentence structures.

[0190] If the modified content at the first modification position belongs to advanced vocabulary and phrase optimization, the target output content may be determined to be guided comments, simple exercises and example sentences.

[0191] If the modified content at the first modification position belongs to a low-level vocabulary that appears repeatedly for a preset number of times (for example, 3 times), the target output content may be determined to be simple exercises and example sentences.

[0192] If the student's writing level is high (for example, the score is greater than the second threshold), the target output content can be determined from the following aspects:

[0193] If the modified content at the first modification position belongs to the basic word spelling and the use of common phrases, or simple sentence construction and basic grammatical rule errors, the target output content can be determined to be the explanatory comment corresponding to the first modification position.

[0194] If the modified content at the first modification position belongs to the optimization of advanced grammar and complex sentence patterns, the target output content can be determined as the sentence where the modified content at the first modification position is located, so that the author of the first text can enrich his language expression ability by learning complex sentence patterns and sentence structures.

[0195] If the modification content at the first modification position belongs to advanced vocabulary and phrase optimization, such as tense optimization, preposition optimization, etc., the target output content can be determined as guided comments, simple exercises and example sentences.

[0196] If the modified content at the first modification position belongs to a low-level vocabulary that appears repeatedly for a preset number of times (for example, 3 times), the target output content may be determined to be high-level exercises and example sentences.

[0197] The target output content is displayed in the second text in association with the modification content at any modification position.

[0198] After obtaining the second text, as well as explanatory comments and guiding questions for each modification position, the present application may determine different target output contents at different modification positions according to the historical writing level of the author of the first text, thereby realizing a personalized guided learning program for the author of the first text and providing more personalized information for the author of the first text.

[0199] Corresponding to the method embodiment, the present application also provides a text processing device. A structural schematic diagram of the text processing device provided in the embodiment of the present application is as follows: Figure 5 As shown, it may include:

[0200] Processing module 501 and output module 502; wherein,

[0201] The processing module 501 is used to correct the first text to obtain a corrected text; based on the historical writing level of the author of the first text, the corrected text is processed to obtain a second text;

[0202] The output module 502 is used to output the second text;

[0203] The semantics of the second text and the corrected text are the same or similar; when the corrected text and the second text are evaluated respectively using the same evaluation method to obtain a first writing level corresponding to the corrected text and a second writing level corresponding to the second text, the second writing level is better than the first writing level.

[0204] The text processing device provided in the embodiment of the present application corrects a first text, and then processes the corrected text based on the historical writing level of the author of the first text, to generate a second text with the same or similar semantics as the corrected text and a higher writing level for reference by the author of the first text. Since the second text is an optimized text generated based on the first text and the historical writing level of its author, the generated second text is more in line with the writing ideas of the author of the first text, provides personalized auxiliary information for the author of the first text, and can better assist the author of the first text to improve his writing level.

[0205] The processing module 501 may be the aforementioned text processing model.

[0206] In an optional embodiment, the processing module 501 processes the corrected text based on the historical writing level of the author of the first text to obtain the second text, and is used to:

[0207] determining the second writing level according to the first writing level and the history writing level;

[0208] With the evaluation result of the second text being the second writing level as a goal, the error-corrected text is processed to obtain the second text.

[0209] In an optional embodiment, the text processing device further includes:

[0210] A first determination module is configured to determine a third writing level if a switching instruction for the second text is obtained; the third writing level is better than the second writing level;

[0211] The processing module 501 is further configured to process the corrected text with the evaluation result of the third text as the third writing level as the target, to obtain the third text;

[0212] The output module 502 is further configured to hide the second text and output the third text.

[0213] In an optional embodiment, the text processing device further includes:

[0214] A second determination module is used to determine at least two target writing levels according to the first writing level and the history writing level; any target writing level is better than the first writing level and the history writing level; different target writing levels have different gaps with the first writing level;

[0215] The processing module 501 processes the corrected text based on the historical writing level of the author of the first text to obtain a second text, and is used to:

[0216] Taking the evaluation result of the generated text as the target writing level, processing the corrected text to obtain a generated text corresponding to the target writing level;

[0217] The second determination module is further configured to determine the generated text corresponding to the target writing level that has the smallest gap with the first writing level as the second text.

[0218] In an optional embodiment, the output module 502 is further used for:

[0219] If a switching instruction for the second text is obtained, a target generated text is determined among the generated texts corresponding to the at least two target levels; the difference between the target writing level corresponding to the target generated text and the first writing level is greater than the difference between the target writing level corresponding to the second text and the first writing level; the second text is hidden, and the target generated text is output.

[0220] In an optional embodiment, the processing module 501 processes the corrected text based on the historical writing level of the author of the first text to obtain the second text, and is used to:

[0221] Based on the historical writing level of the author of the first text, the corrected text is processed to obtain a plurality of candidate texts; the writing level of each candidate text is better than the first writing level;

[0222] The output module 501 is further used to: select a candidate text from the multiple candidate texts as the second text; after outputting the second text, if a switching instruction for the second text is obtained, hide the second text, and select a candidate text different from the second text from the multiple candidate texts for output.

[0223] In an optional embodiment, the process of correcting the first text to obtain a corrected text; and processing the corrected text based on the historical writing level of the author of the first text to obtain the second text is implemented by a text processing model, and the text processing model is a generative model;

[0224] The text processing model is trained using sample text and the historical writing level of the author of the sample text as training data, and using the error correction text and optimized text corresponding to the sample text as labels.

[0225] In an optional embodiment, the processing module 501 is further used for:

[0226] Perform sentence alignment on the first text and the second text;

[0227] The text processing device also includes:

[0228] A third determination module, configured to determine a modification position and a modification content of the second text relative to the first text according to the sentence alignment result;

[0229] The output module 502 is further configured to: process the modified content in the second text to highlight the modified content in the second text.

[0230] In an optional embodiment, the processing module 501 is further used for:

[0231] Corresponding to any modification position, obtaining relevant knowledge points of the modification content at any modification position according to the modification position and the modification content at the modification position;

[0232] The output module 502 is further used to display the relevant knowledge points in association with the modified content in the second text.

[0233] In an optional embodiment, the processing module 501 is further used for:

[0234] Generate an explanatory comment corresponding to any modification position according to any modification position, the modification content at any modification position and related knowledge points; the explanatory comment represents the modification reason at any modification position;

[0235] The output module 502 is further used for: displaying the explanatory comments corresponding to any modification position in the second text in association with the modification content at any modification position.

[0236] In an optional embodiment, the processing module 501 is further used for:

[0237] Generate a guiding question corresponding to any modification position according to the historical writing level, any modification position, the modification content and related knowledge points at any modification position, and the explanatory comments corresponding to any modification position; the guiding question is used to guide the author to think about the relevant information of the related knowledge points of the modification content at any modification position;

[0238] The output module 502 is further configured to: display the guiding question corresponding to any modification position in the second text in association with the modification content at any modification position.

[0239] In an optional embodiment, the processing module 501 is further used for:

[0240] Obtaining feedback information inputted in response to the guiding questions;

[0241] Determining a guiding question corresponding to the feedback information according to the feedback information, the historical guiding questions and the historical feedback information of the author;

[0242] The output module 502 is further used to output guiding questions corresponding to the feedback information.

[0243] In an optional embodiment, when the output module 502 displays the explanatory comments and the guiding questions in the second text, it is used to:

[0244] Determine the target output content corresponding to any modification position according to the author's historical writing level and the modification content at any modification position; the target output content includes at least one of the following three items: an explanatory comment corresponding to any modification position, a guiding question corresponding to any modification position, a sentence where the modification content at any modification position is located, at least one of a recommended exercise and an example sentence;

[0245] The target output content is displayed in the second text in association with the modification content at any modification position.

[0246] The text processing device provided in the embodiment of the present application can be applied to text processing devices, such as PC terminals, cloud platforms, servers and server clusters. Figure 6 The hardware structure diagram of the text processing device is shown in FIG. Figure 6 ,The hardware structure of the text processing device may include: at least one processor 1, at least one communication interface 2, at least one memory 3 and at least one communication bus 4;

[0247] In the embodiment of the present application, the number of the processor 1, the communication interface 2, the memory 3, and the communication bus 4 is at least one, and the processor 1, the communication interface 2, and the memory 3 communicate with each other through the communication bus 4;

[0248] The processor 1 may be a central processing unit CPU, or an application-specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present invention, etc.;

[0249] The memory 3 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory;

[0250] The memory stores a program, and the processor can call the program stored in the memory, wherein the program is used to:

[0251] Correcting the first text to obtain a corrected text;

[0252] Based on the historical writing level of the author of the first text, the corrected text is processed to obtain a second text;

[0253] outputting the second text;

[0254] The semantics of the second text and the corrected text are the same or similar; when the corrected text and the second text are evaluated respectively using the same evaluation method to obtain a first writing level corresponding to the corrected text and a second writing level corresponding to the second text, the second writing level is better than the first writing level.

[0255] Optionally, the detailed functions and extended functions of the program may refer to the above description.

[0256] The embodiment of the present application further provides a storage medium, which may store a program suitable for execution by a processor, wherein the program is used to:

[0257] Correcting the first text to obtain a corrected text;

[0258] Based on the historical writing level of the author of the first text, the corrected text is processed to obtain a second text;

[0259] outputting the second text;

[0260] The semantics of the second text and the corrected text are the same or similar; when the corrected text and the second text are evaluated respectively using the same evaluation method to obtain a first writing level corresponding to the corrected text and a second writing level corresponding to the second text, the second writing level is better than the first writing level.

[0261] Optionally, the detailed functions and extended functions of the program may refer to the above description.

[0262] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0263] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. In addition, 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.

[0264] 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.

[0265] In addition, each functional unit in each embodiment of the present application 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.

[0266] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, 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, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0267] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0268] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0269] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A text processing method, It is characterized in that include: Correcting the first text to obtain a corrected text; Based on the historical writing level of the author of the first text, the corrected text is processed to obtain a second text; outputting the second text; The semantics of the second text and the corrected text are the same or similar; when the corrected text and the second text are evaluated respectively using the same evaluation method to obtain a first writing level corresponding to the corrected text and a second writing level corresponding to the second text, the second writing level is better than the first writing level.

2. The method according to claim 1, It is characterized in that The step of processing the corrected text based on the historical writing level of the author of the first text to obtain the second text comprises: determining the second writing level according to the first writing level and the history writing level; With the evaluation result of the second text being the second writing level as a goal, the error-corrected text is processed to obtain the second text.

3. The method according to claim 2, It is characterized in that Also includes: If a switching instruction for the second text is obtained, determining a third writing level; the third writing level is better than the second writing level; Taking the evaluation result of the third text as the third writing level as the target, processing the error-corrected text to obtain the third text; The second text is hidden, and the third text is output.

4. The method according to claim 1, It is characterized in that The step of processing the corrected text based on the historical writing level of the author of the first text to obtain the second text comprises: Determine at least two target writing levels according to the first writing level and the history writing level; any target writing level is better than the first writing level and the history writing level; different target writing levels have different gaps with the first writing level; Taking the evaluation result of the generated text as the target writing level, processing the corrected text to obtain a generated text corresponding to the target writing level; The generated text corresponding to the target writing level that has the smallest difference from the first writing level is determined as the second text.

5. The method according to claim 4, It is characterized in that Also includes: If a switching instruction for the second text is obtained, determining a target generated text among the generated texts corresponding to the at least two target levels; The difference between the target writing level corresponding to the target generated text and the first writing level is greater than the difference between the target writing level corresponding to the second text and the first writing level; The second text is hidden, and the target generated text is output.

6. The method according to claim 1, It is characterized in that Based on the historical writing level of the author of the first text, the corrected text is processed to obtain a second text, including: Based on the historical writing level of the author of the first text, the corrected text is processed to obtain a plurality of candidate texts; the writing level of each candidate text is better than the first writing level; Selecting a candidate text from the multiple candidate texts as the second text; After the second text is output, if a switching instruction for the second text is obtained, the second text is hidden, and a candidate text different from the second text is selected from the plurality of candidate texts for output.

7. The method according to any one of claims 1 to 6, It is characterized in that The process of correcting the first text to obtain a corrected text; and processing the corrected text based on the historical writing level of the author of the first text to obtain a second text is implemented by a text processing model, and the text processing model is a generative model; The text processing model is trained using sample text and the historical writing level of the author of the sample text as training data, and using the error correction text and optimized text corresponding to the sample text as labels.

8. The method according to claim 1, It is characterized in that Also includes: Perform sentence alignment on the first text and the second text; Determining a modification position and modification content of the second text relative to the first text according to the sentence alignment result; The modified content is processed in the second text to highlight the modified content in the second text.

9. The method according to claim 8, It is characterized in that Also includes: Corresponding to any modification position, obtaining relevant knowledge points of the modification content at any modification position according to the modification position and the modification content at the modification position; The relevant knowledge points are displayed in the second text in association with the modified content.

10. The method according to claim 9, It is characterized in that Also includes: Generate an explanatory comment corresponding to any modification position according to any modification position, the modification content at any modification position and related knowledge points; The explanatory comment indicates the reason for modification at any modification position; An explanatory comment corresponding to any modification position is displayed in the second text in association with the modification content at the modification position.

11. The method according to claim 10, It is characterized in that Also includes: Generate a guiding question corresponding to any modification position according to the historical writing level, any modification position, the modification content and related knowledge points at any modification position, and the explanatory comments corresponding to any modification position; The guiding question is used to guide the author to think about the relevant information of the relevant knowledge points of the modified content at any modified position; The guiding question corresponding to any modification position is displayed in the second text in association with the modification content at any modification position.

12. The method according to claim 11, It is characterized in that Also includes: Obtaining feedback information inputted in response to the guiding questions; Determining a guiding question corresponding to the feedback information according to the feedback information, the historical guiding questions and the historical feedback information of the author; Output guiding questions corresponding to the feedback information.

13. The method according to claim 11, It is characterized in that The process of displaying the explanatory comments and the guiding questions in the second text comprises: Determine the target output content corresponding to any modification position according to the author's historical writing level and the modification content at any modification position; the target output content includes at least one of the following three items: an explanatory comment corresponding to any modification position, a guiding question corresponding to any modification position, a sentence where the modification content at any modification position is located, at least one of a recommended exercise and an example sentence; The target output content is displayed in the second text in association with the modification content at any modification position.

14. A text processing device, It is characterized in that The device comprises: A processing module, configured to correct the first text to obtain a corrected text; and based on the historical writing level of the author of the first text, process the corrected text to obtain a second text; An output module, used for outputting the second text; The semantics of the second text and the corrected text are the same or similar; when the corrected text and the second text are evaluated respectively using the same evaluation method to obtain a first writing level corresponding to the corrected text and a second writing level corresponding to the second text, the second writing level is better than the first writing level.

15. A text processing device, It is characterized in that including memory and processor; The memory is used to store programs; The processor is used to execute the program to implement each step of the text processing method according to any one of claims 1 to 13.

16. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, each step of the text processing method according to any one of claims 1 to 13 is implemented.