Composition correction method, apparatus and device, and readable storage medium
By using explanatory and guided comments in the composition correction method, it helps users understand the composition modification content, solves the problem of limited improvement of users' writing ability in the existing technology, and achieves effective improvement of users' writing ability.
Patent Information
- Application Number
- CN202310492976.4
- 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
Existing technology that automatically corrects essays through artificial intelligence can only generate simple comments and cannot help users deeply understand the reasons for modifications, resulting in limited improvements in users' writing abilities.
This paper proposes a composition correction method. By obtaining the user's composition to be corrected, the final comments of each modification position are determined, and explanatory comments or guided comments are used to explain the error reasons and modification methods of the modification positions to help users deeply understand the modification content.
Effectively improve users' writing skills. Through explanatory and guided comments, users can deeply understand the modification methods and reasons, and promote the improvement of writing skills.
Smart Images

Figure CN118690744A
Abstract
Description
[0001] This application claims the priority of a domestic patent application filed with the China Patent Office on March 24, 2023, with application number "202310305651.0", and invention name "Composition Marking Method, Device, Equipment and Readable 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 composition marking method, device, equipment and readable storage medium. Background Art
[0003] Writing is an indispensable practical skill in people's daily life and study. It is also a basic and important ability that students should possess in school education. Therefore, essay correction (such as English essay correction, etc.) is particularly important for improving people's writing ability.
[0004] With the development of artificial intelligence technology, artificial intelligence has gradually penetrated into the field of education and applied in educational scenarios such as teaching and assessment, promoting the education industry to achieve a leapfrog transformation from traditional education mode to intelligent education. Intelligent education products (such as learning machines, applications, etc.) have also sprung up like mushrooms after rain, increasing year by year, and the effect has improved year by year. The technology of automatically correcting essays through artificial intelligence technology has also emerged. However, the current technology of automatically correcting essays through artificial intelligence technology can only generate simple annotations and can only present the modification method to the user, but cannot help the user deeply understand the reason for the modification, which limits the improvement of the user's writing ability.
[0005] Therefore, how to provide a composition correction method to help users deeply understand the reasons for the revisions and effectively improve their writing skills has become a technical problem that needs to be urgently solved by technical personnel in this field. Summary of the invention
[0006] In view of the above problems, this application proposes a composition correction method, device, equipment and readable storage medium. The specific scheme is as follows:
[0007] A composition correction method, the method comprising:
[0008] Get the user's essay to be corrected;
[0009] Correct the composition to be corrected, and determine the final comments for each modification position, wherein the final comments for each modification position are explanatory comments or guiding comments. The explanatory comments are comments that point out at least one of the causes of errors, modification methods, and corresponding knowledge points at the modification position in the form of explanations; the guiding comments are comments that point out at least one of the causes of errors, modification methods, and corresponding knowledge points at the modification position in the form of guiding questions.
[0010] Optionally, the step of correcting the composition to be corrected and determining the final comments for each modification position includes:
[0011] Correcting the composition to be corrected and generating a correction result, wherein the correction result includes a correction method for each correction position and a comment for each correction position, wherein the comment for each correction position includes an explanatory comment and / or a guiding comment;
[0012] The final comments of each modified position are determined based on the correction results.
[0013] Optionally, the step of marking the composition to be marked and generating a marking result includes:
[0014] Correcting the composition to be corrected to obtain a corrected composition;
[0015] Aligning the corrected composition with the composition to be corrected, determining each modification position and the modification method for each modification position;
[0016] Determine the error cause and corresponding knowledge point of each modification position based on the modification mode of each modification position;
[0017] Based on at least one of the modification method, error cause and corresponding knowledge point of each modification position, generating an explanatory comment of the modification position;
[0018] Based on at least one of the modification method, error cause, corresponding knowledge point and explanatory comments of each modification position, a guided comment of the target modification position is generated.
[0019] Optionally, the step of marking the composition to be marked and generating a marking result includes:
[0020] Inputting the composition to be corrected into a composition correction model, and having the composition correction model output the correction result;
[0021] Among them, the composition correction model is trained with the original text of the training composition and the correction results annotated with the original text of the training composition as training data, and is trained with the correction results output by the composition correction model being close to the correction results annotated with the original text of the training composition as the training goal. The correction results annotated with the original text of the training composition include the modification method of each modification position and the comments of each modification position. The comments of each modification position include explanatory comments and / or guiding comments.
[0022] Optionally, determining the final comments for each modification position based on the correction result includes:
[0023] Determine the error type of each modified position in the correction result, wherein the error type includes at least one of a simple error, a complex error, and a personalized stubborn error;
[0024] If the error type is determined to be a simple error, the final comment of the error type modification position is determined to be the explanatory comment;
[0025] If the error type is determined to be a complex error or a personalized stubborn error, the final comment of the modification position of the error type is determined to be the guided comment.
[0026] Optionally, after determining the final comments of each modification position based on the correction result, the method further includes:
[0027] receiving a trigger operation at the user's final comment on the modification location where the error type is a simple error;
[0028] Displays the modification method corresponding to the modification location of a simple error.
[0029] Optionally, after determining the final comments of each modification position based on the correction result, the method further includes:
[0030] receiving a trigger operation at a final comment of the user on a modification location where the error type is a complex error;
[0031] Display the user feedback sub-interface;
[0032] receiving feedback information on the guided comment input by the user in the user feedback sub-interface;
[0033] Based on the feedback information, at least one round of guided learning is performed on the user.
[0034] Optionally, after determining the final comments of each modification position based on the correction result, the method further includes:
[0035] receiving a trigger operation at a final comment of the user on a modification position where the error type is a personalized stubborn error;
[0036] Display the corresponding knowledge points and error correction sub-interface;
[0037] receiving the modification content of the modification position by the user in the error correction sub-interface;
[0038] Based on the modification content of the modification position made by the user in the error correction sub-interface, the user is guided in a targeted manner.
[0039] Optionally, after determining the final comments of each modification position based on the correction result, the method further includes:
[0040] receiving a trigger operation of the user on the target final comment, wherein the target final comment is a final comment corresponding to a preset knowledge point;
[0041] Display the corresponding personalized learning interface.
[0042] Optionally, determining the error type of each modified position in the correction result includes:
[0043] Obtaining historical learning data of the user;
[0044] Based on the historical learning data of the user, the error type of each modification position in the correction result is determined.
[0045] Optionally, determining the error type of each modification position in the correction result based on the historical learning data of the user includes:
[0046] Determining the writing level of the user based on the historical learning data of the user;
[0047] Acquire an error type determination rule corresponding to the writing level of the user;
[0048] Based on an error type determination rule corresponding to the writing level of the user, the error type of each modified position in the correction result is determined.
[0049] A composition correction device, comprising:
[0050] An acquisition unit, used to acquire the user's composition to be corrected;
[0051] The marking unit is used to mark the composition to be marked and determine the final comments of each modification position. The final comments of each modification position are explanatory comments or guiding comments. The explanatory comments are comments that point out the cause of the error, the modification method and at least one of the corresponding knowledge points of the modification position in the form of explanation; the guiding comments are comments that point out the cause of the error, the modification method and at least one of the corresponding knowledge points of the modification position in the form of guiding questions.
[0052] Optionally, the correction unit includes:
[0053] A correction result generating unit, used for correcting the composition to be corrected and generating a correction result, wherein the correction result includes a correction method for each correction position and a comment for each correction position, wherein the comment for each correction position includes an explanatory comment and / or a guiding comment;
[0054] The final comment determination unit is used to determine the final comment of each modification position based on the correction result.
[0055] Optionally, the correction result generating unit includes:
[0056] An error correction unit, used for correcting the composition to be corrected to obtain a corrected composition;
[0057] An alignment unit, used to align the corrected composition with the composition to be corrected, determine each modification position, and the modification method of each modification position;
[0058] An error cause and knowledge point determination unit, configured to determine an error cause and a corresponding knowledge point of each modification position based on a modification method of each modification position;
[0059] An explanatory comment generating unit, configured to generate an explanatory comment for each modification position based on at least one of a modification method, an error cause, and a corresponding knowledge point of each modification position;
[0060] The guided comment generation unit is used to generate a guided comment for the target modification position based on at least one of the modification method, error cause, corresponding knowledge point and explanatory comment of each modification position.
[0061] Optionally, the correction result generating unit is specifically used to:
[0062] Inputting the composition to be corrected into a composition correction model, and having the composition correction model output the correction result;
[0063] Among them, the composition correction model is trained with the original text of the training composition and the correction results annotated with the original text of the training composition as training data, and is trained with the correction results output by the composition correction model being close to the correction results annotated with the original text of the training composition as the training goal. The correction results annotated with the original text of the training composition include the modification method of each modification position and the comments of each modification position. The comments of each modification position include explanatory comments and / or guiding comments.
[0064] Optionally, the final comment determination unit includes:
[0065] An error type determination unit, used to determine the error type of each modified position in the correction result, wherein the error type includes at least one of a simple error, a complex error, and a personalized stubborn error;
[0066] The final comment determination subunit is used to determine that if the error type is determined to be a simple error, the final comment of the modification position of the error type is the explanatory comment; if the error type is determined to be a complex error or a personalized stubborn error, the final comment of the modification position of the error type is the guided comment.
[0067] Optionally, the device further comprises:
[0068] The modification method display unit is used to receive the user's trigger operation at the final comment of the modification position with the error type of simple error after determining the final comment of each modification position based on the correction result; and display the modification method corresponding to the modification position with the error type of simple error.
[0069] Optionally, the device further comprises:
[0070] A multi-round guidance unit is used to receive a trigger operation at the final comment of the modification position where the error type is a complex error after determining the final comment of each modification position based on the correction result; display a user feedback sub-interface; receive feedback information on the guided comment input by the user in the user feedback sub-interface; and perform at least one round of guided learning on the user based on the feedback information.
[0071] Optionally, the device further comprises:
[0072] A targeted guidance unit is used to receive a trigger operation of the user's final comment on the modification position where the error type is a personalized stubborn error after determining the final comment on each modification position based on the correction result; display the corresponding knowledge point and the error correction sub-interface; receive the modification content of the modification position by the user in the error correction sub-interface; and provide targeted guidance to the user based on the modification content of the modification position by the user in the error correction sub-interface.
[0073] Optionally, the device further comprises:
[0074] The personalized learning unit is used to receive the user's trigger operation on the target final comment after determining the final comment of each modification position based on the correction result, and the target final comment is the final comment of the corresponding preset knowledge point; and display the corresponding personalized learning interface.
[0075] Optionally, the error type determination unit includes:
[0076] A historical learning data acquisition unit, used to acquire the historical learning data of the user;
[0077] The error type determination subunit is used to determine the error type of each modification position in the correction result based on the historical learning data of the user.
[0078] Optionally, the error type determination subunit is specifically configured to:
[0079] Determining the writing level of the user based on the historical learning data of the user;
[0080] Acquire an error type determination rule corresponding to the writing level of the user;
[0081] Based on an error type determination rule corresponding to the writing level of the user, the error type of each modified position in the correction result is determined.
[0082] A composition correction device, comprising a memory and a processor;
[0083] The memory is used to store programs;
[0084] The processor is used to execute the program to implement the various steps of the composition correction method described above.
[0085] A readable storage medium stores a computer program, which, when executed by a processor, implements the various steps of the composition correction method described above.
[0086] By means of the above technical scheme, the present application discloses a composition correction method, device, equipment and readable storage medium. In the scheme, after obtaining the composition to be corrected by the user, the composition to be corrected is corrected, and the final comments of each modification position are determined, wherein the final comments of each modification position are explanatory comments, or guiding comments. Since the explanatory comments can point out the error cause, modification method and corresponding knowledge point of the modification position in the form of explanation and explanation; the guiding comments can point out the error cause, modification method and corresponding knowledge point of the modification position in the form of guiding questions, therefore, after seeing the final comments of each modification position, the user can deeply understand the modification method and the reason for the modification, which helps to effectively improve the user's writing ability. BRIEF DESCRIPTION OF THE DRAWINGS
[0087] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0088] Figure 1 A schematic diagram of a process of a composition correction method disclosed in an embodiment of the present application;
[0089] Figure 2 A schematic diagram of the final display of essay correction disclosed in an embodiment of the present application;
[0090] Figure 3 A schematic diagram of a targeted guidance disclosed in an embodiment of the present application;
[0091] Figure 4This is a schematic diagram of the structure of a composition correction device disclosed in an embodiment of the present application;
[0092] Figure 5 This is a hardware structure block diagram of a composition correction device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0093] 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.
[0094] Next, the composition correction method provided by this application is introduced through the following embodiments.
[0095] Reference Figure 1 , Figure 1 This is a flow chart of a composition correction method disclosed in an embodiment of the present application. The method may include:
[0096] Step S101: Obtain the user's composition to be corrected.
[0097] In the present application, the composition to be corrected can be a composition in any language. As one possible implementation method, the composition to be corrected can be an English composition. As other possible implementation methods, the composition to be corrected can be a composition in French, Russian, Spanish and other languages. This application does not impose any limitations on this.
[0098] In the present application, the composition to be corrected can be obtained by directly inputting it into a terminal device (such as a computer, a smart phone, a learning machine, etc.), or it can be obtained by photographing, scanning, etc. the user's paper composition using a terminal device (such as a computer, a smart phone, a learning machine, etc.). The present application does not impose any restrictions on this.
[0099] Step S102: Mark the composition to be corrected, and determine the final comments for each modification position. The final comments for each modification position are explanatory comments, or guiding comments. The explanatory comments are comments that point out the cause of the error, the modification method, and at least one of the corresponding knowledge points at the modification position in the form of explanations; the guiding comments are comments that point out the cause of the error, the modification method, and at least one of the corresponding knowledge points at the modification position in the form of guided questions.
[0100] In this application, after the composition to be corrected is corrected, there are generally multiple modification positions, and the modification position is the modified position in the composition to be corrected. The error reasons of the modification position include but are not limited to spelling errors and grammatical errors, the modification methods include but are not limited to word level modification, phrase level modification and sentence level modification, and the knowledge points include but are not limited to word usage, phrase usage, grammar usage, etc.
[0101] Generally speaking, explanatory comments are declarative sentences, and guiding comments are interrogative sentences. For ease of understanding, assume that the essay to be corrected is an English essay, and its original text includes the following sentences:
[0102] 1. After [feeling] the tea, we will watch the performance about teaculture by native people, which s meaningful for us.
[0103] 2. Maybe he[wo]n't hate the camping next time
[0104] 3. I look [book] on sutday pm
[0105] The content in brackets is incorrect.
[0106] After correcting the composition, the revised sentences are as follows:
[0107] 1. After [tasting] the tea, we will watch a performance about tea culture by the local people, which is meaningful for us.
[0108] 2. He[might]not hate camping next time.
[0109] 3. I looked at [books] on Sunday afternoon.
[0110] The content in brackets is the modified content.
[0111] Based on the above modifications, the following comments can be generated:
[0112] Comment 1: The word “feeling” in the original sentence is incorrectly used. “tasting” should be used to indicate tasting tea.
[0113] Comment 2: "wo" is a shortened form of "won't", which means "will not". However, based on the context, "might not" is more appropriate because it indicates a possibility or speculation.
[0114] Comment 3: What form should the noun that matches the verb "looked" in the sentence use?
[0115] Among them, comment one and comment two are explanatory comments, and comment three is a guiding comment.
[0116] It should be noted that in this application, after correcting the composition to be corrected and determining the final comments for each modification position, the final comments for each modification position can be displayed. For ease of understanding, refer to Figure 2 , Figure 2 This is a schematic diagram of the final display of essay correction disclosed in the embodiment of the present application, such as Figure 2 As shown, the final comments of each modification position are displayed, and the final comments of each modification position are explanatory comments (such as Figure 2 Comments marked with ②) or guiding comments (such as Figure 2 (Comments with number ①).
[0117] This embodiment discloses a composition correction method. In the method, after obtaining the composition to be corrected of the user, the composition to be corrected is corrected, and the final comments of each modification position are determined, wherein the final comments of each modification position are explanatory comments or guiding comments. Since the explanatory comments can point out at least one of the error cause, modification method and corresponding knowledge point of the modification position in the form of explanation and explanation; the guiding comments can point out at least one of the error cause, modification method and corresponding knowledge point of the modification position in the form of guiding questions, therefore, after seeing the final comments of each modification position, the user can deeply understand the modification method and the reason for the modification, which helps to effectively improve the user's writing ability.
[0118] In another embodiment of the present application, the specific implementation method of step S102 of correcting the composition to be corrected and determining the final comments of each modification position is described. The method may include the following steps:
[0119] Step S201: marking the composition to be marked and generating a marking result, wherein the marking result includes a modification method for each modification position and a comment for each modification position, wherein the comment for each modification position includes an explanatory comment and / or a guiding comment.
[0120] As an implementable method, in the present application, a composition correction model can be pre-built and trained, and the composition to be corrected is input into the composition correction model, and the composition correction model outputs the correction result.
[0121] It should be noted that in the present application, there is no limitation on the structure of the composition correction model. As an implementable method, the structure of the composition correction model can be the structure of a currently commonly used large-scale generation model, such as the structure of the ChatGPT model released by OpenAI, the structure of the PaLM (Pathways Language Model) model released by Google, the structure of the Pangu model released by Huawei, and the encoder-decoder structure of the Transformer model.
[0122] After determining the structure of the composition correction model, it is necessary to re-determine the training data and train it. It should be noted that in the present application, the data used to train the composition correction model includes the original text of the training composition and the correction results annotated by the original text of the training composition, wherein the correction results annotated by the original text of the training composition include the modification methods of each modification position and the comments of each modification position, and the comments of each modification position include explanatory comments and / or guiding comments. The composition correction model can be trained with the correction results output by the composition correction model approaching the correction results annotated by the original text of the training composition as the training goal, and its loss function can adopt the cross-entropy loss function.
[0123] As another possible implementation method, in this application, the composition to be corrected can be sequentially processed for error correction, alignment, error cause and knowledge point prediction, explanatory comment generation, and guiding comment generation to obtain the correction result. Each processing process can be implemented in the form of a neural network model. The implementation method will be described in detail through the following examples and will not be described here.
[0124] Step S202: Determine the final comments for each modification position based on the correction result.
[0125] In this application, in order to achieve personalized improvement of the user's writing ability, the final comments of each modification position can be determined based on the user's historical learning data. The specific implementation method will be described in detail through the following embodiments and will not be described in detail here.
[0126] In another embodiment of the present application, the specific implementation method of step S201 of correcting the composition to be corrected and generating the correction result is described, and the implementation method may include the following steps:
[0127] Step S301: correcting the composition to be corrected to obtain a corrected composition.
[0128] As an implementable method, in the present application, a composition correction model can be pre-constructed and trained, and the composition to be corrected is input into the composition correction model, and the composition correction model outputs the corrected composition.
[0129] It should be noted that in the present application, there is no limitation on the structure of the composition correction model. As an implementable embodiment, the structure of the composition correction model can be the structure of a currently commonly used large-scale generation model, such as the structure of the ChatGPT model released by OpenAI, the structure of the PaLM (Pathways Language Model) model released by Google, the structure of the Pangu model released by Huawei, and the encoder-decoder structure of the Transformer model.
[0130] After determining the structure of the composition error correction model, it is necessary to re-determine the training data and train it. It should be noted that in the present application, the data used to train the composition error correction model includes the original text of the training composition and the error correction text corresponding to the original text of the training composition, wherein the error correction text corresponding to the original text of the training composition can be obtained by experts modifying simple errors (such as spelling errors, phrase structure errors, etc.) in the original text of the training composition, modifying sentences with serious errors in the original text of the training composition, and adding, deleting and adjusting the positions of unreasonable sentences and positional confusions in the original text of the training composition. The composition error correction model can be trained with the error correction output of the composition error correction model approaching the error correction text corresponding to the original text of the training composition as the training target, and its loss function can adopt the cross-entropy loss function.
[0131] Step S302: aligning the corrected composition with the composition to be corrected, determining each modification position and the modification method for each modification position;
[0132] In this step, the corrected composition may be obtained after the error correction model processes the composition to be corrected.
[0133] As an implementable method, in the present application, an alignment model can be pre-built and trained, and the corrected composition and the composition to be corrected are input into the alignment model, and the alignment model outputs each modification position and the modification method of each modification position.
[0134] It should be noted that in the present application, there is no limitation on the structure of the alignment model. As an implementable embodiment, the structure of the alignment model can be the structure of a currently commonly used large-scale generation model, such as the structure of the ChatGPT model released by OpenAI, the structure of the PaLM (Pathways Language Model) model released by Google, the structure of the Pangu model released by Huawei, and the encoder-decoder structure of the Transformer model.
[0135] After determining the structure of the alignment model, it is necessary to re-determine the training data and train it. It should be noted that in the present application, the data used to train the alignment model includes the original text of the training article and the error-corrected text corresponding to the original text of the training article. The sample labels are the marked modification positions and the modification method of each modification position. The alignment model can be the modification positions output by the alignment model, and the modification method of each modification position is close to the marked modification positions, and the modification method of each modification position is obtained by training as the training target. The loss function can adopt the cross-entropy loss function.
[0136] Exemplarily, the modification mode of modifying the position may be "insert a word a between position 4 and position 5", "change the word to at position 7 to on".
[0137] Step S303: Based on the modification method of each modification position, determine the error cause and corresponding knowledge point of each modification position.
[0138] In this step, the modification method of each modification position can be that the above-mentioned alignment model aligns the corrected composition with the output of the composition to be corrected.
[0139] As an implementable embodiment, in the present application, an error cause and knowledge point prediction model can be pre-constructed and trained, and the error cause and knowledge point prediction model can be used to output the error cause and corresponding knowledge point of each modification position by inputting the modification method of each modification position into the error cause and knowledge point prediction model.
[0140] It should be noted that in the present application, there is no limitation on the structure of the error cause and knowledge point prediction model. As an implementable embodiment, the structure of the error cause and knowledge point prediction model can be the structure of the currently commonly used large-scale generation model, such as the structure of the ChatGPT model released by OpenAI, the structure of the PaLM (PathwaysLanguage Model) model released by Google, the structure of the Pangu model released by Huawei, and the encoder-decoder structure of the Transformer model.
[0141] After determining the structure of the error cause and knowledge point prediction model, it is necessary to re-determine the training data and train it. It should be noted that in the present application, the data used to train the error cause and knowledge point prediction model include the training modification method and the error cause and knowledge point annotated with the training modification method, wherein the error cause and knowledge point annotated with the training modification method can be determined by an expert based on a knowledge base. The error cause and knowledge point prediction model can be obtained by training with the error cause and knowledge point output by the error cause and knowledge point prediction model, which is close to the error cause and knowledge point annotated with the training modification method as the training target, and its loss function can adopt a cross-entropy loss function.
[0142] Step S304: Generate an explanatory comment for each modification location based on the modification method, error cause, and at least one of the corresponding knowledge points of each modification location.
[0143] In this step, the modification mode of each modification position can be the output of the alignment model after aligning the corrected composition with the composition to be corrected. The error cause and corresponding knowledge point of each modification position can be obtained after the error cause and knowledge point prediction model processes the modification mode of each modification position.
[0144] As an implementable embodiment, in the present application, an explanatory comment generation model can be pre-constructed and trained, by inputting the modification method, error cause and at least one of the corresponding knowledge points of each modification location into the explanatory comment generation model, and the explanatory comment generation model outputs the explanatory comments of the modification location.
[0145] It should be noted that in the present application, there is no limitation on the structure of the explanatory comment generation model. As an implementable embodiment, the structure of the explanatory comment generation model can be the structure of a currently commonly used large-scale generation model, such as the structure of the ChatGPT model released by OpenAI, the structure of the PaLM (Pathways Language Model) model released by Google, the structure of the Pangu model released by Huawei, and the encoder-decoder structure of the Transformer model.
[0146] After determining the structure of the explanatory comment generation model, it is necessary to re-determine the training data and train it. It should be noted that in the present application, the data used to train the explanatory comment generation model includes the modification method of the training modification position, the error cause and at least one of the corresponding knowledge points, and the sample label includes the modification method of the training modification position, the error cause and the explanatory comment label corresponding to the corresponding knowledge point, wherein the modification method of the training modification position, the error cause and at least one of the corresponding knowledge points can be written by an expert based on the modification method of the training modification position, the error cause and at least one of the corresponding knowledge points. The explanatory comment generation model can be trained with the explanatory comment output by the explanatory comment generation model approaching the explanatory comment label as the training goal, and its loss function can adopt the cross-entropy loss function.
[0147] Step S305: Generate a guiding comment for the target modification position based on at least one of the modification method, error cause, corresponding knowledge point and explanatory comment of each modification position.
[0148] In this step, the modification mode of the modification position can be the output of the alignment model after aligning the corrected composition with the composition to be corrected. The error cause and corresponding knowledge point of the modification position can be obtained after the modification mode of the modification position is processed by the error cause and knowledge point prediction model. The explanatory comment of the modification position can be obtained after the modification mode of the modification position, the error cause and the corresponding knowledge point are processed by the explanatory comment generation model.
[0149] As an implementable embodiment, in the present application, a guided comment generation model can be pre-constructed and trained, by inputting the modification method, error cause, corresponding knowledge point and at least one of the explanatory comments of each modification position into the guided comment generation model, and the guided comment generation model outputs the guided comments of the target modification position.
[0150] It should be noted that in the present application, there is no limitation on the structure of the guided comment generation model. As an implementable embodiment, the structure of the guided comment generation model can be the structure of a currently commonly used large-scale generation model, such as the structure of the ChatGPT model released by OpenAI, the structure of the PaLM (Pathways Language Model) model released by Google, the structure of the Pangu model released by Huawei, and the encoder-decoder structure of the Transformer model.
[0151] After determining the structure of the guided comment generation model, it is necessary to re-determine the training data and train it. It should be noted that in the present application, the data used to train the guided comment generation model includes at least one of the modification method of the training modification position, the error cause, the corresponding knowledge point and the explanatory comment, and the sample label is the guided comment label corresponding to at least one of the modification method of the training modification position, the error cause, the corresponding knowledge point and the explanatory comment, wherein the modification method of the training modification position here is some important modification methods selected by experts from a large number of modification methods, and the guided comment label can be written by experts based on at least one of the modification method of the training modification position, the error cause, the corresponding knowledge point and the explanatory comment. The guided comment generation model can be trained with the guided comment output by the guided comment generation model approaching the guided comment label as the training goal, and its loss function can adopt the cross-entropy loss function.
[0152] In another embodiment of the present application, a specific implementation method of determining the final comments of each modification position based on the correction result in step S202 is described, and the method may include the following steps:
[0153] Step S401: determining the error type of each modified position in the correction result, wherein the error type includes at least one of a simple error, a complex error, and a personalized stubborn error;
[0154] As an implementable method, determining the error type of each modification position in the correction result includes: obtaining the historical learning data of the user; and determining the error type of each modification position in the correction result based on the historical learning data of the user.
[0155] Among them, determining the error type of each modification position in the correction result based on the historical academic data of the user includes: determining the writing level of the user based on the historical academic data of the user; obtaining the error type determination rule corresponding to the writing level of the user; determining the error type of each modification position in the correction result based on the error type determination rule corresponding to the writing level of the user.
[0156] For ease of understanding, assume that the user's writing level is divided into a first writing level, a second writing level and a third writing level, wherein the first writing level is used to indicate that the user's writing level is low, the second writing level is used to indicate that the user's writing level is medium, and the third writing level is used to indicate that the writing level is high. Then in this application:
[0157] The error type determination rule corresponding to the first writing level may be to determine the error type of the modification position involving the spelling of basic words and the use of common phrases as a simple error, to determine the error type of the modification position involving simple sentence construction and basic grammatical rules as a complex error, and to determine the error type of the modification position involving errors repeatedly made by the user more than a preset number of times (e.g., 3 times) as a personalized stubborn error.
[0158] The error type determination rule corresponding to the second writing level may be to determine the error type of the modification position involving basic word spelling, use of common phrases, simple sentence construction and basic grammatical rules (such as subject-verb agreement, singular and plural, etc.) as a simple error, determine the error type of the modification position involving the construction and use of complex sentences, advanced vocabulary and phrase errors as a complex error, and determine the error type of the modification position involving errors repeatedly made by the user more than a preset number of times (such as 3 times) as a personalized stubborn error.
[0159] The error type determination rule corresponding to the third writing level may be to determine the error type of the modification position involving basic word spelling, usage of common phrases, simple sentence construction and basic grammatical rules as a simple error, to determine the error type of the modification position involving errors in advanced grammar and complex sentence patterns, advanced vocabulary and phrase errors (such as tense errors, preposition errors, etc.) as a complex error, and to determine the error type of the modification position involving errors repeatedly made by the user more than a preset number of times (such as 3 times) as a personalized stubborn error.
[0160] Step S402: If the error type is determined to be a simple error, the final comment of the modification position of the error type is determined to be the explanatory comment.
[0161] Step S403: If the error type is determined to be a complex error or a personalized stubborn error, then the final comment of the modification position of the error type is determined to be the guided comment.
[0162] In this application, based on the modification positions of different error types, different methods can be used to help users understand the reasons for modification and learn corresponding knowledge to effectively improve their writing skills. This will be described in detail through the following embodiments.
[0163] In another embodiment of the present application, after determining the final comments of each modification position based on the correction results, the method also includes: receiving a trigger operation by the user at the final comments on the modification position where the error type is a simple error; and displaying the modification method corresponding to the modification position where the error type is a simple error.
[0164] In the present application, for the modification positions where the error type is a simple error, after the final comments of each modification position are determined based on the correction results, only the comments can be displayed, and the modification method is not directly displayed, so that the user can think about how to modify it based on the comments seen. After thinking, the final comments of the modification position where the error type is a simple error can be triggered to view the corresponding modification method, so as to deepen the impression and improve writing skills.
[0165] As an implementable method, a modification method viewing control can be set at the final comment of the modification position where the error type is a simple error. After the user triggers the modification method viewing control, the modification method corresponding to the modification position where the error type is a simple error can be displayed.
[0166] In another embodiment of the present application, after determining the final comments for each modification position based on the correction results, the method further includes: receiving a trigger operation from the user at the final comments for the modification position where the error type is a complex error; displaying a user feedback sub-interface; receiving feedback information on the guided comments input by the user in the user feedback sub-interface; and performing at least one round of guided learning for the user based on the feedback information.
[0167] As an implementable embodiment, a multi-round guidance control can be set at the final comment of the modification position where the error type is a complex error. After the user triggers the multi-round guidance control, a user feedback sub-interface can be displayed. After the user enters feedback information on the guided comments in the user feedback sub-interface, a multi-round interaction interface can be further displayed to provide the user with at least one round of guided learning.
[0168] In the present application, a multi-round guidance model can be pre-constructed and trained, and the multi-round guidance model can be used to perform at least one round of guidance learning on the user by inputting the guidance comments and the user's feedback information on the guidance comments into the multi-round guidance model.
[0169] It should be noted that in the present application, there is no limitation on the structure of the multi-round guidance model. As an implementable embodiment, the structure of the multi-round guidance model can be the structure of a currently commonly used large-scale generation model, such as the structure of the ChatGPT model released by OpenAI, the structure of the PaLM (Pathways Language Model) model released by Google, the structure of the Pangu model released by Huawei, and the encoder-decoder structure of the Transformer model.
[0170] The training data of the multi-round guidance model can be: the data of the teacher's multi-round guidance of the students. The model input in the training stage: the student's current input + the interaction data between the teacher and the student before the current input; the output: the guided questions after the student's current input; the model parameters are updated with the goal of making the guided questions output by the model close to the teacher's guiding questions after the student's current input.
[0171] In each round of guidance, the multi-round guidance model can output the current guiding questions based on the feedback information currently input by the user and the current and previous interaction data.
[0172] To facilitate understanding, the following example of multiple rounds of bootstrapping is given for illustration:
[0173] Machine: "First, do you know anything about object clauses?"
[0174] User: “I’m not sure, should I use that?”
[0175] Machine: “Great, you already know some basic information about object clauses. Object clauses are often introduced by the word “that”. Can you try to give an example of an object clause introduced by “that”?”
[0176] User: "He always says that a man should have spirit, honor, and behelpful to others."
[0177] Machine: "Very good, 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?"
[0178] User: “Is it the content of the conversation?”
[0179] Machine: “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”, which indicates the content of the speech. Object clauses are usually 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?”
[0180] User: "see, look, watch? I basically understand. Give me a question."
[0181] Machine: “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 in specific structures, such as “see that” or “see if / whether.” Now, try to complete the following sentence using an object clause: She told me_____.”
[0182] …
[0183] In another embodiment of the present application, after determining the final comments of each modification position based on the correction results, the method also includes: receiving a trigger operation of the user at the final comments of the modification position where the error type is a personalized stubborn error; displaying the corresponding knowledge points and the error correction sub-interface; receiving the modification content of the modification position by the user in the error correction sub-interface; and providing targeted guidance to the user based on the modification content of the modification position by the user in the error correction sub-interface.
[0184] As an implementable method, a targeted guidance control may be set at the final comment of the modification position for the error type being a personalized stubborn error, and after the user triggers the targeted guidance control, the corresponding knowledge point and error correction sub-interface may be displayed.
[0185] For ease of understanding, refer to Figure 3 , Figure 3 This is a schematic diagram of a targeted guidance disclosed in the embodiment of this application. Figure 3 As shown, the error type at the comment marked with ① is a user's personalized stubborn error. The corresponding knowledge point and the error correction sub-interface are displayed under the comment, so as to provide targeted guidance to the user based on the modification content of the modification position made by the user in the error correction sub-interface, so as to strengthen the user's learning of personalized stubborn errors, thereby effectively improving the user's writing ability.
[0186] In another embodiment of the present application, after determining the final comments of each modification position based on the correction results, the method further includes: receiving a trigger operation of the user on the target final comment, wherein the target final comment is the final comment corresponding to the preset knowledge point; and displaying the corresponding personalized learning interface.
[0187] It should be noted that a control can be set at the target final comment. After the user triggers the control, the corresponding personalized learning interface can be displayed. Some exercises and examples corresponding to preset knowledge points can be displayed on the personalized learning interface. Through practice, users can get targeted training on preset knowledge points, thereby effectively improving their writing skills.
[0188] The composition marking device disclosed in the embodiment of the present application is described below. The composition marking device described below and the composition marking method described above can be referred to in correspondence with each other.
[0189] Reference Figure 4 , Figure 4 This is a schematic diagram of the structure of a composition correction device disclosed in the embodiment of this application. Figure 4 As shown, the composition correction device may include:
[0190] An acquisition unit 11 is used to acquire the user's composition to be corrected;
[0191] The marking unit 12 is used to mark the composition to be marked and determine the final comments of each modification position. The final comments of each modification position are explanatory comments or guiding comments. The explanatory comments are comments that point out the cause of the error, the modification method and at least one of the corresponding knowledge points of the modification position in an explanatory manner; the guiding comments are comments that point out the cause of the error, the modification method and at least one of the corresponding knowledge points of the modification position in a guided questioning manner.
[0192] Optionally, the correction unit includes:
[0193] A correction result generating unit, used for correcting the composition to be corrected and generating a correction result, wherein the correction result includes a correction method for each correction position and a comment for each correction position, wherein the comment for each correction position includes an explanatory comment and / or a guiding comment;
[0194] The final comment determination unit is used to determine the final comment of each modification position based on the correction result.
[0195] Optionally, the correction result generating unit includes:
[0196] An error correction unit, used for correcting the composition to be corrected to obtain a corrected composition;
[0197] An alignment unit, used to align the corrected composition with the composition to be corrected, determine each modification position, and the modification method of each modification position;
[0198] An error cause and knowledge point determination unit, configured to determine an error cause and a corresponding knowledge point of each modification position based on a modification method of each modification position;
[0199] An explanatory comment generating unit, configured to generate an explanatory comment for each modification position based on at least one of a modification method, an error cause, and a corresponding knowledge point of each modification position;
[0200] The guided comment generation unit is used to generate a guided comment for the target modification position based on at least one of the modification method, error cause, corresponding knowledge point and explanatory comment of each modification position.
[0201] Optionally, the correction result generating unit is specifically used to:
[0202] Inputting the composition to be corrected into a composition correction model, and having the composition correction model output the correction result;
[0203] Among them, the composition correction model is trained with the original text of the training composition and the correction results annotated with the original text of the training composition as training data, and is trained with the correction results output by the composition correction model being close to the correction results annotated with the original text of the training composition as the training goal. The correction results annotated with the original text of the training composition include the modification method of each modification position and the comments of each modification position. The comments of each modification position include explanatory comments and / or guiding comments.
[0204] Optionally, the final comment determination unit includes:
[0205] An error type determination unit, used to determine the error type of each modified position in the correction result, wherein the error type includes at least one of a simple error, a complex error, and a personalized stubborn error;
[0206] The final comment determination subunit is used to determine that if the error type is determined to be a simple error, the final comment of the modification position of the error type is the explanatory comment; if the error type is determined to be a complex error or a personalized stubborn error, the final comment of the modification position of the error type is the guided comment.
[0207] Optionally, the device further comprises:
[0208] The modification method display unit is used to receive the user's trigger operation at the final comment of the modification position with the error type of simple error after determining the final comment of each modification position based on the correction result; and display the modification method corresponding to the modification position with the error type of simple error.
[0209] Optionally, the device further comprises:
[0210] A multi-round guidance unit is used to receive a trigger operation at the final comment of the modification position where the error type is a complex error after determining the final comment of each modification position based on the correction result; display a user feedback sub-interface; receive feedback information on the guided comment input by the user in the user feedback sub-interface; and perform at least one round of guided learning on the user based on the feedback information.
[0211] Optionally, the device further comprises:
[0212] A targeted guidance unit is used to receive a trigger operation of the user's final comment on the modification position where the error type is a personalized stubborn error after determining the final comment on each modification position based on the correction result; display the corresponding knowledge point and the error correction sub-interface; receive the modification content of the modification position by the user in the error correction sub-interface; and provide targeted guidance to the user based on the modification content of the modification position by the user in the error correction sub-interface.
[0213] Optionally, the device further comprises:
[0214] The personalized learning unit is used to receive the user's trigger operation on the target final comment after determining the final comment of each modification position based on the correction result, and the target final comment is the final comment of the corresponding preset knowledge point; and display the corresponding personalized learning interface.
[0215] Optionally, the error type determination unit includes:
[0216] A historical learning data acquisition unit, used to acquire the historical learning data of the user;
[0217] The error type determination subunit is used to determine the error type of each modification position in the correction result based on the historical learning data of the user.
[0218] Optionally, the error type determination subunit is specifically configured to:
[0219] Determining the writing level of the user based on the historical learning data of the user;
[0220] Acquire an error type determination rule corresponding to the writing level of the user;
[0221] Based on an error type determination rule corresponding to the writing level of the user, the error type of each modified position in the correction result is determined.
[0222] Reference Figure 5 , Figure 5 The hardware structure diagram of a composition correction device provided in the embodiment of the present application is shown in FIG. Figure 5 ,The hardware structure of the essay grading 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;
[0223] 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;
[0224] 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.;
[0225] 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;
[0226] The memory stores a program, and the processor can call the program stored in the memory, wherein the program is used to:
[0227] Get the user's essay to be corrected;
[0228] Correct the composition to be corrected, and determine the final comments for each modification position, wherein the final comments for each modification position are explanatory comments or guiding comments. The explanatory comments are comments that point out at least one of the causes of errors, modification methods, and corresponding knowledge points at the modification position in the form of explanations; the guiding comments are comments that point out at least one of the causes of errors, modification methods, and corresponding knowledge points at the modification position in the form of guiding questions.
[0229] Optionally, the detailed functions and extended functions of the program may refer to the above description.
[0230] The embodiment of the present application further provides a readable storage medium, which may store a program suitable for execution by a processor, wherein the program is used to:
[0231] Get the user's essay to be corrected;
[0232] Correct the composition to be corrected, and determine the final comments for each modification position, wherein the final comments for each modification position are explanatory comments or guiding comments. The explanatory comments are comments that point out at least one of the causes of errors, modification methods, and corresponding knowledge points at the modification position in the form of explanations; the guiding comments are comments that point out at least one of the causes of errors, modification methods, and corresponding knowledge points at the modification position in the form of guiding questions.
[0233] Optionally, the detailed functions and extended functions of the program may refer to the above description.
[0234] 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.
[0235] 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.
[0236] 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 composition correction method, characterized in that: The method comprises: Get the user's essay to be corrected; Correct the composition to be corrected, and determine the final comments for each modification position, wherein the final comments for each modification position are explanatory comments or guiding comments. The explanatory comments are comments that point out at least one of the causes of errors, modification methods, and corresponding knowledge points at the modification position in the form of explanations; the guiding comments are comments that point out at least one of the causes of errors, modification methods, and corresponding knowledge points at the modification position in the form of guiding questions.
2. The method according to claim 1, characterized in that The step of correcting the composition to be corrected and determining the final comments on each modification position includes: Correcting the composition to be corrected and generating a correction result, wherein the correction result includes a correction method for each correction position and a comment for each correction position, wherein the comment for each correction position includes an explanatory comment and / or a guiding comment; The final comments of each modified position are determined based on the correction results.
3. The method according to claim 2, characterized in that The step of correcting the composition to be corrected and generating a correction result includes: Correcting the composition to be corrected to obtain a corrected composition; Aligning the corrected composition with the composition to be corrected, determining each modification position and the modification method for each modification position; Determine the error cause and corresponding knowledge point of each modification position based on the modification mode of each modification position; Based on at least one of the modification method, error cause and corresponding knowledge point of each modification position, generating an explanatory comment of the modification position; Based on at least one of the modification method, error cause, corresponding knowledge point and explanatory comments of each modification position, a guided comment of the target modification position is generated.
4. The method according to claim 2, characterized in that: The step of correcting the composition to be corrected and generating a correction result includes: Inputting the composition to be corrected into a composition correction model, and having the composition correction model output the correction result; Among them, the composition correction model is trained with the original text of the training composition and the correction results annotated with the original text of the training composition as training data, and is trained with the correction results output by the composition correction model being close to the correction results annotated with the original text of the training composition as the training goal. The correction results annotated with the original text of the training composition include the modification method of each modification position and the comments of each modification position. The comments of each modification position include explanatory comments and / or guiding comments.
5. The method according to claim 2, characterized in that: Determining the final comments of each modification position based on the correction result includes: Determine the error type of each modified position in the correction result, wherein the error type includes at least one of a simple error, a complex error, and a personalized stubborn error; If the error type is determined to be a simple error, the final comment of the error type modification position is determined to be the explanatory comment; If the error type is determined to be a complex error or a personalized stubborn error, the final comment of the modification position of the error type is determined to be the guided comment.
6. The method according to claim 5, characterized in that After determining the final comments of each modification position based on the correction result, the method further includes: receiving a trigger operation at the user's final comment on the modification location where the error type is a simple error; Displays the modification method corresponding to the modification location of a simple error.
7. The method according to claim 5, characterized in that After determining the final comments of each modification position based on the correction result, the method further includes: receiving a trigger operation at a final comment of the user on a modification location where the error type is a complex error; Display the user feedback sub-interface; receiving feedback information on the guided comment input by the user in the user feedback sub-interface; Based on the feedback information, at least one round of guided learning is performed on the user.
8. The method according to claim 5, characterized in that After determining the final comments of each modification position based on the correction result, the method further includes: receiving a trigger operation at a final comment of the user on a modification position where the error type is a personalized stubborn error; Display the corresponding knowledge points and error correction sub-interface; receiving the modification content of the modification position by the user in the error correction sub-interface; Based on the modification content of the modification position made by the user in the error correction sub-interface, the user is guided in a targeted manner.
9. The method according to claim 2, characterized in that: After determining the final comments of each modification position based on the correction result, the method further includes: receiving a trigger operation of the user on the target final comment, wherein the target final comment is a final comment corresponding to a preset knowledge point; Display the corresponding personalized learning interface.
10. The method according to claim 5, characterized in that The determining of the error type of each modification position in the correction result includes: Obtaining historical learning data of the user; Based on the historical learning data of the user, the error type of each modification position in the correction result is determined.
11. The method according to claim 10, characterized in that The step of determining the error type of each modification position in the correction result based on the historical learning data of the user includes: Determining the writing level of the user based on the historical learning data of the user; Acquire an error type determination rule corresponding to the writing level of the user; Based on an error type determination rule corresponding to the writing level of the user, the error type of each modified position in the correction result is determined.
12. A composition correction device, characterized in that: The device comprises: An acquisition unit, used to acquire the user's composition to be corrected; The marking unit is used to mark the composition to be marked and determine the final comments of each modification position. The final comments of each modification position are explanatory comments or guiding comments. The explanatory comments are comments that point out the cause of the error, the modification method and at least one of the corresponding knowledge points of the modification position in the form of explanation; the guiding comments are comments that point out the cause of the error, the modification method and at least one of the corresponding knowledge points of the modification position in the form of guiding questions.
13. A composition correction device, characterized in that: including memory and processor; The memory is used to store programs; The processor is used to execute the program to implement the various steps of the composition correction method as described in any one of claims 1 to 11.
14. A 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 composition marking method according to any one of claims 1 to 11 is implemented.
