A method and system for intelligently correcting Chinese argumentative essays

By extracting and evaluating multi-layered features of argumentative essays, combined with rules and deep learning models, it solves the problem of failing to effectively evaluate arguments, arguments and argumentation logic in the existing technology, achieving more accurate and comprehensive scoring.

CN112784878BActive Publication Date: 2024-10-15BEIJING HUATU HONGYANG NETWORK TECH CO LTD
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN202011631779.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-31
Publication Date
2024-10-15
Estimated Expiration
2040-12-31

AI Technical Summary

Technical Problem

The existing automatic scoring system for essays fails to effectively evaluate the arguments, arguments and argumentation logic in argumentative essays, resulting in inaccurate scoring quality and inaccurate feedback.

Method used

The intelligent correction method for Chinese argumentative essays is adopted to extract shallow and deep features, including word count, paragraphs, plagiarism rate, literary talent, title, structure, arguments and arguments, and uses a fully connected network for scoring, combining rules and deep learning models to make arguments. and rating and evaluation of arguments.

Benefits of technology

It achieves more objective, targeted and comprehensive scoring of argumentative essays, and improves the accuracy and scientificity of scoring, especially in the evaluation of arguments and arguments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112784878B_ABST
    Figure CN112784878B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of automatic scoring, and specifically to a method and system for intelligent correction of Chinese argumentative papers. After obtaining a user composition picture, the present invention calls an OCR interface for text recognition and preprocesses the recognized text; extracts the word count feature, paragraph feature and plagiarism rate of the composition in sequence, and inputs them as shallow features; identifies the literary application of the composition, and uses a language model to count the number of typos in the composition as a middle-level feature input; sequentially performs title segmentation, structure segmentation, argument extraction and segmentation, and argument extraction and segmentation as a deep-level feature input; calculates shallow, middle and deep feature scores and inputs them into a two-layer fully connected network, and finally outputs the score of the total score model. The present invention automatically extracts the article's argument, rates the argument, automatically extracts the argument corresponding to the argument, and rates the argument's argumentative role. It can also automatically evaluate factors such as the article's literary talent, sentence fluency, title, and structure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automatic scoring, and in particular to a method and system for intelligently correcting Chinese argumentative essays. Background Art

[0002] The automatic essay scoring system is an important application of natural language processing technology. Traditional automatic essay scoring technology relies on artificially constructed shallow text features, such as the number of paragraphs and words. With the application of deep learning technology in natural language processing, neural networks can be used to automatically learn the deep semantic features of language. When used in automatic essay scoring, essays can be evaluated from a deeper semantic perspective, making the evaluation more reasonable and the feedback more scientific.

[0003] With the development of online education, the automatic essay scoring system has become an important part of supporting online simulation examinations and has received more and more attention and research.

[0004] In addition to general evaluation indicators such as typos and grammatical errors, essay scoring also includes evaluation indicators that combine stylistic features. Especially for argumentative essays, it is particularly important to evaluate the thesis, evidence, and logic of argumentation, which directly affects the quality of essay scoring and the accuracy of evaluation feedback. Existing essay automatic scoring systems have little research on this point, which is basically blank.

[0005] In the prior art, the patent document "A Chinese composition automatic scoring method and teaching system", application publication number: CN110851599A, proposes an automatic scoring method that combines shallow features and deep semantic features. The method includes: a step of obtaining the composition to be scored; a shallow feature extraction step for extracting shallow features of the composition to be scored; a deep semantic feature extraction step for extracting deep semantic features of the composition to be scored, including typos and grammatical errors; a scoring step for combining the extracted shallow features and deep semantic features and using random forest fitting to obtain the scoring result of the composition to be scored. The overall process is as follows: Figure 1 As shown above, it can be seen that the existing technical solutions do not take into account the stylistic characteristics of the composition. There is a lack of evaluation modules for the arguments, evidence, argumentation logic and structure in the argumentative essay. Summary of the invention

[0006] In view of the shortcomings of the prior art, the present invention discloses a method and system for intelligently correcting Chinese argumentative essays, which aims to automatically extract the article's arguments and rate them, automatically extract the arguments corresponding to the arguments and rate the argumentative effect of the arguments. In addition, the article's literary talent, sentence fluency, title, structure and other factors can also be automatically evaluated.

[0007] The present invention is achieved through the following technical solutions:

[0008] In a first aspect, the present invention discloses a method for intelligently correcting Chinese argumentative papers, comprising the following steps:

[0009] S1 specifies standard answers, summarizes the article theme, extracts central arguments and keywords, and prepares writing materials;

[0010] S2 obtains the user's composition image, calls the OCR interface for text recognition, and preprocesses the recognized text;

[0011] S3 extracts the word count feature, paragraph feature and plagiarism rate of the composition in turn and uses them as shallow feature input;

[0012] S4 identifies the literary style of the composition and uses the language model to count the number of typos in the composition as the middle-level feature input;

[0013] S5 sequentially performs title classification, structure classification, argument extraction and classification, and argument extraction and classification as deep feature input;

[0014] S6 calculates the shallow, middle and deep feature scores and inputs them into a two-layer fully connected network, and finally outputs the score of the total score model.

[0015] Furthermore, in the method, the recognized text is preprocessed including abnormal character removal, title sentence recognition and extraction, if the title is missing after detection, it is marked and used in title scoring, the composition body is split into multiple paragraphs according to the paragraph format, and each paragraph is split into corresponding sentences according to sentence identifiers.

[0016] Furthermore, in the method, when extracting shallow features, the ratio of the number of words in the composition to the number of words required for the composition is calculated as the word count feature; the number of paragraphs in the composition is counted as the paragraph feature; the plagiarism rate is counted, and the user's composition text is compared with the standard answer and related online materials respectively to determine the article plagiarism rate. The algorithm uses the longest common subsequence, divides the number of words in the longest common subsequence by the total number of words in the composition as the plagiarism rate, and takes the average of the plagiarism rates of the composition to the standard answer and online materials as the final plagiarism rate.

[0017] Furthermore, in the method, when extracting the middle-level features, the literary style of the composition, the use of famous quotes, parallelism, and parallelism rhetoric are identified. First, each sentence in the composition is compared with the collected famous quotes library, and the number of times it is used is counted. Then, each sentence is further split into short sentences according to punctuation marks, and compared according to the rules of parallelism and parallelism to identify the number of times parallelism and parallelism are used.

[0018] Use kenlm and the collected argumentative essay corpus to train your own language model, call the trained language model through the open source project pycorrector, identify typos in essay sentences, and count the number of errors.

[0019] Furthermore, in the method, the title classification is set to 4 levels, 1 represents good, indicating that it is relevant to the topic; 2 represents relatively good, indicating that it is relatively relevant to the topic; 3 represents basically good, indicating that it is basically relevant to the topic; 4 represents poor, indicating that it does not meet the requirements;

[0020] The input of the title file includes the article title inputA, the standard answer title and the subject concatenated inputB, separated by a period;

[0021] Then, input A and input B are mapped to a vocabulary number through the vocabulary. If a word not in the vocabulary appears, the word is further divided into single characters. If a single character not in the vocabulary appears, it is skipped.

[0022] In order to process variable-length sequences, the lengths of two sequences before padding are input at the same time. The network input is divided into two parts, inputs A of shape 1*50 and inputs B of shape 1*200. Corresponding to input A and input B, the input first passes through the embedding layer to convert each int sequence number into the corresponding word vector;

[0023] Inputs A passes through a layer of LSTM, num step is 50, and the output of the step corresponding to the length before padding is extracted, and the output shape is output A of 1*50;

[0024] Inputs B passes through two layers of BiLSTM, num step is 200, and the output shape is 1*200 output_fw and output_bw;

[0025] The three outputs are combined into a 1*450 matrix and passed through two fully connected layers with 400 and 4 units respectively, and the activation functions are relu and softmax respectively;

[0026] Finally, the title is classified according to the index corresponding to the largest softmax value.

[0027] Furthermore, in the method, the structure is divided into two levels, level 1 is reasonable structure, level 2 is unreasonable structure; the input includes the last paragraph of the article, which is used as input after using Jieba word segmentation. The input is mapped to a word list number through the word list;

[0028] If a word that is not in the vocabulary appears, the word is further divided into single characters. If a single character that is not in the vocabulary appears, it is skipped. The input is padded or trimmed to a length of 300, trimmed or padded from the end of the sequence, and the padding value is 0;

[0029] The length of the input sequence before padding, the network input is inputs of shape 1*300, corresponding to the input, the input first passes through the embedding layer to convert each int sequence number into the corresponding word vector. The inputs pass through a double-layer BiLSTM, num step is 300, and the output of the step corresponding to the length before padding is extracted, the output shape is 1*300 output_fw and output_bw, the output is merged into a 1*600 matrix through two fully connected layers, the number of units is 400 and 2 respectively, and the activation functions are relu and softmax respectively;

[0030] Finally, the completeness of the article structure is determined based on the index of the maximum value of softmax.

[0031] Furthermore, in the method, the argument extraction and filing includes an argument extraction part and an argument filing part;

[0032] The submodules of the argument extraction part include rule-based models, deep learning models, and a combination of rule and DL models;

[0033] The rule-based model extracts the argument keywords and topic keywords in the standard answer, performs word segmentation and part-of-speech tagging on each sentence in the article, and then scores each sentence in the article. The sentence score is the average of the scores of each word. The score of each word is equal to the part-of-speech score multiplied by the position score of the sentence in the article. After calculating the sentence score, the score of the sentence that does not contain any keyword is multiplied by 0.35 as a penalty. Finally, the score of each sentence is output;

[0034] The deep learning model uses a 2-layer, unidirectional LSTM to encode a single sentence, and then uses a single-layer, bidirectional LSTM to encode the article. The model process is as follows:

[0035] T1 inputs the standard answer and the list of segmented sentences in the article. Assume that the article has n sentences.

[0036] T2 converts n sentences with good word distribution into the subscript of the vocabulary according to the given vocabulary;

[0037] T3 extracts the topic sentence in the standard answer and converts it into subscript form;

[0038] T4 inputs the results of steps T2 and T3, a total of n+1 sentences, into the model, encodes them using a 2-layer, unidirectional LSTM, and takes the vector output by the last step as the encoding of each sentence.

[0039] T5 inputs the encoding of n sentences in the article obtained by T4 into a single-layer, bidirectional LSTM, and takes the n output vectors of n time steps. At this time, these n vectors are the encoding of the contextual relationship of the sentence;

[0040] T6 concatenates the n vectors obtained in T5 with the encoding of the sentence obtained in T3, inputs a fully connected layer for binary classification prediction, and predicts whether it is an argument;

[0041] T7 outputs the probability that the sentence is an argument, represented by the softmax probability output by the fully connected layer;

[0042] The combination of the model and the rule first standardizes the two types of scores to obtain a score with a mean of 0 and a variance of 1, then adds the two types of scores together as the total score, and sorts them from high to low according to the total score, ignoring sentences with a length of less than 7 words and excluding them from the results;

[0043] Among them, if there are no sentences that meet the requirements after excluding sentences that are too short, it is predicted that the article has no argument;

[0044] If the entire article has less than 3 sentences or there are less than 3 sentences left, predict the sentence with the highest score as the argument, and only predict one;

[0045] Consider the three sentences with the highest scores in turn. If a sentence has a DL model score less than 0.75, this sentence and the following sentences are temporarily not considered, and all the sentences before it are predicted as arguments. If the number of sentences in the article is greater than or equal to 15 and the rule-based score of the sentence is greater than 22, the sentence is predicted as the argument; if the number of sentences in the article is greater than or equal to 30 and the rule-based score of the sentence after the sentence is greater than 16, the sentence after the sentence is additionally predicted as the argument;

[0046] If the article does not have an argument, the sentence with the highest total score is predicted as the only argument, and finally a list consisting of 0 / 1 is output, representing whether each sentence is an argument.

[0047] The argument classification part is divided into 4 levels, 1 represents accurate, 2 represents relatively accurate, 3 represents basically accurate, and 4 represents inaccurate. The extracted argument and each marked answer argument and topic sentence are paired one by one, and the sentence pair matching is performed through BILSTM to calculate the score between 0 and 1. The average of all sentence pair scores of each argument is taken as the final matching score of the argument, and the arguments are divided into 4 levels according to the matching score;

[0048] And according to the classification of each argument, determine the overall classification of the essay. The rules are as follows:

[0049] If there is 1 argument, the total number of arguments is 1;

[0050] Otherwise, if there are 4 arguments, the total number of arguments is 4;

[0051] Otherwise, if the number of argument points is less than 3, the total number of files is 3;

[0052] Otherwise, the total score is the average of all the score points.

[0053] Furthermore, in the method, the argument extraction and filing takes the sentences between the extracted argument sentences as a list of argument candidate sentences, and forms a sentence pair (q, a) with the previous argument sentence. After q and a are segmented, they are converted into word vectors through Tencent word vectors, and then respectively passed through BiLSTM to obtain sentence vectors of q and a, and the two vectors are spliced. After passing through a two-layer fully connected neural network, and finally through a fully connected layer with units of 5 and an activation function of softmax, a 5-classification result is obtained, where 1 represents an argument and the argument is strong; 2 represents an argument and the argument is relatively strong; 3 represents an argument and the argument is basically strong; 4 represents an argument but lacks argument strength; 5 represents not an argument, and finally the average integer score of all argument sentences is taken as the total argument filing.

[0054] Furthermore, in the method, all the obtained features, including thesis, evidence, structure, title classification, word count, paragraph, literary talent, typos, and plagiarism rate scores, are input into a two-layer fully connected network, and then a predicted score of 0-40 is output, which adjusts the final score as follows through the rules:

[0055] The total score of the argument + the total score of the evidence <= 4 and the predicted total score <= 26. If the argument and evidence are high but the predicted score does not exceed 26, the score is +3;

[0056] Plagiarism rate>=0.77. When the plagiarism rate is relatively high, the predicted total score is 6.0 points;

[0057] The number of words is <0.6, which means the number of words is seriously insufficient, and the predicted total score is 6.0 points;

[0058] The number of paragraphs is level 3, which is seriously insufficient. The predicted total score is 6.0.

[0059] In a second aspect, the present invention discloses a Chinese argumentative essay intelligent correction system, comprising at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the Chinese argumentative essay intelligent correction method described in the first aspect.

[0060] The beneficial effects of the present invention are:

[0061] The present invention uses argument extraction and classification as scoring features. Existing essay scoring systems do not use arguments as features. For details, see the fifth part, argument extraction and classification. After using argument extraction and classification, the scoring of argumentative essays is more objective.

[0062] The present invention uses argument extraction and classification as scoring features. Existing essay scoring systems do not use arguments as features. For details, see the fifth part, argument extraction and classification. After using argument extraction and classification, the scoring of argumentative essays is more targeted, and essays can be scored from the deep semantic level of logical argumentation.

[0063] The present invention uses the article title classification as a scoring feature. The existing composition scoring system does not take this into account. For details, see the relevant content in Part 5. The title classification as a scoring feature makes the evaluation of the entire composition more comprehensive. The evaluation of the composition theme is more objective.

[0064] The present invention uses structural classification as a scoring feature. This is not considered in existing essay scoring systems. Using whether the structure is complete as a scoring feature is more suitable for exam scenarios, and at the same time, the scoring elements are more comprehensive. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] In order to more clearly illustrate the embodiments of the present invention 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 some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0066] Figure 1 is a flowchart of automatic correction of argumentative essays and compositions according to an embodiment of the present invention;

[0067] Figure 2 This is a diagram of standard answers to argumentative essays according to an embodiment of the present invention;

[0068] Figure 3 It is a diagram of the topic and central argument of the argumentative paper according to an embodiment of the present invention;

[0069] Figure 4 It is a diagram of relevant materials of argumentative papers on the Internet according to an embodiment of the present invention;

[0070] Figure 5 This is a flowchart of title filing in an embodiment of the present invention;

[0071] Figure 6 is a rule model argument sentence scoring diagram of an embodiment of the present invention;

[0072] Figure 7This is a scoring diagram of argument sentences of the DL model according to an embodiment of the present invention. DETAILED DESCRIPTION

[0073] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0074] Example 1

[0075] This embodiment discloses Figure 1 As shown, a method for intelligently correcting Chinese argumentative essays comprises the following steps:

[0076] S1 specifies standard answers, summarizes the article theme, extracts the central argument and keywords, and prepares writing materials; professional teachers determine the standard answers, summarize the article theme, extract the central argument and keywords, and collect writing materials from the Internet. The standard answers can be found in Figure 2 As shown, the essay topic and central argument can be found in Figure 3 For relevant materials on argumentative essays on the Internet, see Figure 4 shown.

[0077] S2 obtains the user's composition image, calls the OCR interface for text recognition, and pre-processes the recognized text; it obtains the composition image uploaded by the user from the APP, calls the Tencent Cloud OCR interface for text recognition.

[0078] S3 extracts the word count feature, paragraph feature and plagiarism rate of the composition in turn and uses them as shallow feature input;

[0079] S4 identifies the literary style of the composition and uses the language model to count the number of typos in the composition as the middle-level feature input;

[0080] S5 sequentially performs title classification, structure classification, argument extraction and classification, and argument extraction and classification as deep feature input;

[0081] S6 calculates the shallow, middle and deep feature scores and inputs them into a two-layer fully connected network, and finally outputs the score of the total score model.

[0082] In this embodiment, the recognized text is preprocessed, including abnormal character removal, title sentence recognition and extraction. If the title is missing after detection, it is marked and used in title scoring. The main body of the composition is split into multiple paragraphs according to the paragraph format, and each paragraph is split into corresponding sentences according to the sentence identifier.

[0083] In this embodiment, when extracting shallow features, the ratio of the number of words in the composition to the number of words required for the composition is calculated as the word count feature; the number of paragraphs in the composition is counted as the paragraph feature; the plagiarism rate is counted, and the user's composition text is compared with the standard answer and related online materials respectively to determine the article plagiarism rate. The algorithm uses the longest common subsequence, and divides the number of words in the longest common subsequence by the total number of words in the composition as the plagiarism rate. The plagiarism rates of the composition to the standard answer and online materials are averaged as the final plagiarism rate.

[0084] In this embodiment, when extracting the middle-level features, the literary style of the composition is to identify the use of famous quotes, parallelism, and rhetoric. First, each sentence in the composition is compared with the collected famous quotes library to count the number of times it is used. Then, each sentence is further split into short sentences according to punctuation marks, and compared according to the rules of parallelism and parallelism to identify the number of times parallelism and parallelism are used.

[0085] Use kenlm and the collected argumentative essay corpus to train your own language model, call the trained language model through the open source project pycorrector, identify typos in essay sentences, and count the number of errors.

[0086] Example 2

[0087] This embodiment discloses the classification of titles when extracting deep features, which is divided into 4 levels, 1 represents good, that is, relevant to the topic; 2 represents relatively good, that is, relatively relevant to the topic; 3 represents basically good, that is, basically relevant to the topic; 4 represents poor, that is, does not meet the requirements.

[0088] The input for the title file includes the article title inputA, and the standard answer title and subject concatenated into inputB, separated by a period.

[0089] Then input A and input B are mapped to a vocabulary number through the vocabulary. If a word not in the vocabulary appears, the word is further divided into single characters. If a single character not in the vocabulary appears, it is skipped.

[0090] Input A is padded or cropped to a length of 50, input B is padded or cropped to a length of 200, and is cropped or padded from the end of the sequence with a padding value of 0.

[0091] After the above processing, the input of each article includes an int array input A with a length of 50, and an int array input B with a length of 200. In order to process variable-length sequences, the lengths of the two sequences before padding (or after trimming) are input at the same time.

[0092] The network input is divided into two parts, inputs A of shape 1*50 and inputs B of shape 1*200, corresponding to inputA and inputB. The input first passes through the embedding layer to convert each int sequence number into the corresponding word vector.

[0093] Inputs A passes through a layer of LSTM, and num step is 50. However, because each row sequence is padded, the output of the step corresponding to the length before padding is further extracted (steps exceeding this length will output 0 according to the mechanism of dynamic rnn). The output shape is output A of 1*50.

[0094] Inputs B passes through two layers of BiLSTM, num step is 200, and the method of dynamically handling sequence length is the same as above. The output shape is 1*200 output_fw and output_bw.

[0095] The three outputs are merged into a 1*450 matrix and passed through two fully connected layers with 400 and 4 units respectively, and the activation functions are relu and softmax respectively.

[0096] According to the index corresponding to the largest softmax value, the title is classified into different folders. The process of classifying titles is as follows: Figure 5 shown.

[0097] This embodiment discloses the structural classification when extracting deep features, which is specifically divided into two levels, level 1 for reasonable structure and level 2 for unreasonable structure.

[0098] The input includes the last paragraph of the article. Use jieba to segment the words and use it as input. Map each word in the input to a word list number through the word list. If a word that is not in the word list appears, the word is further divided into single characters. If a single character that is not in the word list appears, it is skipped. The input is padded or trimmed to a length of 300, trimmed or padded from the end of the sequence, and the padding value is 0. After the above processing, the input of each article is an int array input with a length of 300. In order to handle variable-length sequences, the length of the input sequence before padding (or the length after trimming) is also input.

[0099] The network input is inputs of shape 1*300, corresponding to input. The input first passes through the embedding layer to convert each int serial number into the corresponding word vector. Inputs passes through a double-layer BiLSTM, num step is 300, but because each row sequence is padded, the output of the step corresponding to the length before padding is further extracted (the step exceeding this length will output 0 according to the mechanism of dynamic rnn). The output shape is output_fw and output_bw of 1*300. The output is merged into a 1*600 matrix and passed through two fully connected layers, with the number of units being 400 and 2 respectively, and the activation functions being relu and softmax respectively. The index at which the maximum value of softmax is located determines whether the article structure is complete.

[0100] This embodiment discloses the extraction and classification of arguments when extracting deep features. The sentences between the extracted argument sentences are used as the argument candidate sentence list, and form a sentence pair (q, a) with the previous argument sentence. After q and a are segmented, they are converted into word vectors through Tencent word vectors. Then, BiLSTM is used to obtain the sentence vectors of q and a respectively, and the two vectors are spliced ​​and passed through a two-layer fully connected neural network. Finally, a fully connected layer with units of 5 and activation function of softmax is used to obtain the result of 5 classifications.

[0101] 1 means it is an argument and the argument is strong; 2 means it is an argument and the argument is relatively strong; 3 means it is an argument and the argument is basically strong; 4 means it is an argument but lacks argument strength; 5 means it is not an argument. Then take the average score of all argument sentences and take the integer score as the total argument classification

[0102] Example 3

[0103] This embodiment discloses argument extraction and classification when extracting deep features. The argument extraction part is mainly divided into the following three sub-modules: a rule-based model, a deep learning (DL) model, and a combination of rule and DL models.

[0104] Submodule 1: Rule-based model

[0105] Extract the argument keywords and topic keywords from the standard answer, and perform word segmentation and part-of-speech tagging on each sentence in the article. Then score each sentence in the article, and the sentence score is the average of the scores of each word. The score of each word is equal to the part-of-speech score multiplied by the position score of the sentence in the article. Both scores are set manually. In addition, if a word is a topic word or a keyword, it will get a higher score.

[0106] After calculating the score of the sentence, the score of the sentence that does not contain any keyword is multiplied by 0.35 as a penalty. Finally, the score of each sentence is output.

[0107] Among them, the rule model argument sentence is scored as follows Figure 6 shown.

[0108] Submodule 2: DL model

[0109] The DL model uses a 2-layer, unidirectional LSTM to encode a sentence, and then uses a single-layer, bidirectional LSTM to encode the article. The model process is as follows:

[0110] (1) Input: standard answer and a list of segmented sentences in the article. Assume that the article has n sentences.

[0111] (2) According to the given vocabulary, convert the n sentences with good word distribution into the subscripts of the vocabulary.

[0112] (3) Extract the topic sentence from the standard answer and convert it into subscript form.

[0113] (4) Input the results of steps (2) and (3), a total of n+1 sentences, into the model and encode them using a 2-layer, unidirectional LSTM. The vector output from the last step is taken as the encoding of each sentence.

[0114] (5) Input the encodings of the n sentences in the article obtained in (4) into a single-layer, bidirectional LSTM, and take the n output vectors of n time steps. At this time, these n vectors are the encodings of the sentences including the contextual relationships.

[0115] (6) For the n vectors obtained in (5), they are all concatenated with the encoding of the sentence obtained in (3) and input into a fully connected layer for binary classification prediction to predict whether it is an argument.

[0116] (7) Output: The probability that a sentence is an argument is represented by the softmax probability at the final output of the fully connected layer. The DL model scores the argument sentence as follows: Figure 7 shown.

[0117] Submodule 3: Combination of DL models and rules

[0118] (1) Both of the above models give scores to each sentence. First, the two types of scores are standardized to obtain a score with a mean of 0 and a variance of 1. Then, the two types of scores are added together as the total score, and the sentences are sorted from high to low according to the total score.

[0119] (2) Sentences with a length of less than 7 words are not considered and are excluded from the results.

[0120] (3) There are three types of situations:

[0121] 1. If there are no sentences that meet the requirements after excluding sentences that are too short, it is predicted that the article has no argument.

[0122] 2. If the entire article has less than 3 sentences or there are less than 3 sentences left, predict the sentence with the highest score as the argument, and only predict one.

[0123] 3. For the rest of the cases, consider the top three sentences in turn. If a sentence has a DL model score less than 0.75 (here is the score before normalization), this sentence and the following sentences are temporarily not considered, and all the sentences before it are predicted as arguments. However, if the number of sentences in the article is greater than or equal to 15 and the rule-based score of the sentence is greater than 22, the sentence is additionally predicted as an argument; and if the number of sentences in the article is greater than or equal to 30 and the rule-based score of the sentence after the sentence is greater than 16, the sentence after the sentence is additionally predicted as an argument.

[0124] (4) If the result of the above steps is that the article has no argument, then the sentence with the highest total score is predicted as the only argument. Finally, a list consisting of 0 / 1 is output, representing whether each sentence is an argument.

[0125] The argument classification part is divided into 4 levels, 1 represents accurate, 2 represents relatively accurate, 3 represents basically accurate, and 4 represents inaccurate. The extracted argument and each marked answer argument and topic sentence are paired one by one, and the sentence pair matching is performed through BILSTM to calculate the score between 0 and 1. The average of all sentence pair scores of each argument is taken as the final matching score of the argument. The arguments are divided into 4 levels according to the matching score.

[0126] According to the classification of each argument, determine the overall classification of the essay. The rules are as follows:

[0127] 1. If there is 1 argument, the total number of arguments is 1

[0128] 2. Otherwise, if there are 4 arguments, the total number of arguments is 4

[0129] 3. Otherwise, if the number of points is less than 3, the total number of grades is 3.

[0130] 4. Otherwise, the total score is the average of all the score of the argument.

[0131] Example 4

[0132] This embodiment discloses the scoring of the total score model, which inputs all the features obtained above, including thesis, evidence, structure, title classification, word count, paragraph, literary talent, typos, and plagiarism rate scores, into a two-layer fully connected network, and then outputs a predicted score of 0-40. Finally, the final score is adjusted as follows through the rules:

[0133] (1) If the total score of the thesis + the total score of the evidence is less than or equal to 4 and the total predicted score is less than or equal to 26, and the thesis and evidence are of high quality but the predicted score does not exceed 26, the score will be increased by 3.

[0134] (2) The plagiarism rate is greater than or equal to 0.77. When the plagiarism rate is relatively high, the predicted total score is 6.0 points.

[0135] (III) The number of words is less than 0.6, which means the number of words is seriously insufficient and the predicted total score is 6.0.

[0136] (IV) The number of paragraphs is level 3, which is seriously insufficient. The predicted total score is 6.0.

[0137] Example 5

[0138] This embodiment discloses a Chinese argumentative paper intelligent correction system, including at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the Chinese argumentative paper intelligent correction method.

[0139] In summary, the present invention uses argument extraction and classification as scoring features. Existing essay scoring systems do not use arguments as features. For details, see the fifth part, argument extraction and classification. After using argument extraction and classification, the scoring of argumentative essays is more objective.

[0140] The present invention uses argument extraction and classification as scoring features. Existing essay scoring systems do not use arguments as features. For details, see the fifth part, argument extraction and classification. After using argument extraction and classification, the scoring of argumentative essays is more targeted, and essays can be scored from the deep semantic level of logical argumentation.

[0141] The present invention uses the article title classification as a scoring feature. The existing composition scoring system does not take this into account. For details, see the relevant content in Part 5. The title classification as a scoring feature makes the evaluation of the entire composition more comprehensive. The evaluation of the composition theme is more objective.

[0142] The present invention uses structural classification as a scoring feature. This is not considered in existing essay scoring systems. Using whether the structure is complete as a scoring feature is more suitable for exam scenarios, and at the same time, the scoring elements are more comprehensive.

[0143] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for intelligent correction of Chinese argumentative essays. It is characterized in that The method comprises the following steps: S1 specifies standard answers, summarizes the article theme, extracts central arguments and keywords, and prepares writing materials; S2 obtains the user's composition image, calls the OCR interface for text recognition, and preprocesses the recognized text; S3 extracts the word count feature, paragraph feature and plagiarism rate of the composition in turn and uses them as shallow feature input; S4 identifies the literary style of the composition and uses the language model to count the number of typos in the composition as the middle-level feature input; S5 sequentially performs title classification, structure classification, argument extraction and classification, and argument extraction and classification as deep feature input; S6 calculates the shallow, middle and deep feature scores and inputs them into the two-layer fully connected network, and finally outputs the score of the total score model; The argument extraction and filing includes an argument extraction part and an argument filing part; The submodules of the argument extraction part include rule-based models, deep learning models, and a combination of rule and DL models; The rule-based model extracts the argument keywords and topic keywords in the standard answer, performs word segmentation and part-of-speech tagging on each sentence in the article, and then scores each sentence in the article. The sentence score is the average of the scores of each word. The score of each word is equal to the part-of-speech score multiplied by the position score of the sentence in the article. After calculating the sentence score, the score of the sentence that does not contain any keyword is multiplied by 0.35 as a penalty. Finally, the score of each sentence is output; The deep learning model uses a 2-layer, unidirectional LSTM to encode a single sentence, and then uses a single-layer, bidirectional LSTM to encode the article. The model process is as follows: T1 inputs the standard answer and the list of segmented sentences in the article. Assume that the article has n sentences. T2 converts n sentences with good word distribution into the subscript of the vocabulary according to the given vocabulary; T3 extracts the topic sentence in the standard answer and converts it into subscript form; T4 inputs the results of steps T2 and T3, a total of n+1 sentences, into the model, encodes them using a 2-layer, unidirectional LSTM, and takes the vector output from the last step as the encoding of each sentence; T5 inputs the encoding of n sentences in the article obtained by T4 into a single-layer, bidirectional LSTM, and takes the n output vectors of n time steps. At this time, these n vectors are the encoding of the contextual relationship of the sentence; T6 concatenates the n vectors obtained in T5 with the encoding of the sentence obtained in T3, inputs a fully connected layer for binary classification prediction, and predicts whether it is an argument; T7 outputs the probability that the sentence is an argument, represented by the softmax probability output by the fully connected layer; The combination of the model and the rule first standardizes the two types of scores to obtain a score with a mean of 0 and a variance of 1, then adds the two types of scores together as the total score, and sorts them from high to low according to the total score, ignoring sentences with a length of less than 7 words and excluding them from the results; Among them, if there are no sentences that meet the requirements after excluding sentences that are too short, it is predicted that the entire article has no argument; If the entire article has less than 3 sentences or there are less than 3 sentences left, predict the sentence with the highest score as the argument, and only predict one; Consider the three sentences with the highest scores in turn. If a sentence has a DL model score less than 0.75, this sentence and the following sentences are temporarily not considered, and all the sentences before it are predicted as arguments. If the number of sentences in the article is greater than or equal to 15 and the rule-based score of the sentence is greater than 22, the sentence is predicted as the argument; if the number of sentences in the article is greater than or equal to 30 and the rule-based score of the sentence after the sentence is greater than 16, the sentence after the sentence is additionally predicted as the argument; If the article does not have an argument, the sentence with the highest total score is predicted as the only argument, and finally a list consisting of 0 / 1 is output, representing whether each sentence is an argument; The argument classification part is divided into 4 levels, 1 represents accurate, 2 represents relatively accurate, 3 represents basically accurate, and 4 represents inaccurate. The extracted argument and each marked answer argument and topic sentence are paired one by one, and the sentence pair matching is performed through BILSTM to calculate the score between 0 and 1. The average of all sentence pair scores of each argument is taken as the final matching score of the argument, and the arguments are divided into 4 levels according to the matching score; And according to the classification of each argument, determine the overall classification of the essay. The rules are as follows: If there is 1 argument, the total number of arguments is 1; Otherwise, if there are 4 arguments, the total number of arguments is 4; Otherwise, if the number of argument points is less than 3, the total number of files is 3; Otherwise, the total file is the average of all the argument files; The argument extraction and filing process uses the sentences between the extracted argument sentences as a list of argument candidate sentences, and forms a sentence pair (q, a) with the preceding argument sentence. After q and a are segmented, they are converted into word vectors through Tencent word vectors, and then respectively passed through BiLSTM to obtain sentence vectors of q and a, concatenated the two vectors, and passed through a two-layer fully connected neural network. Finally, a fully connected layer with units of 5 and an activation function of softmax is used to obtain a 5-category result, where 1 represents an argument and the argument is strong; 2 represents an argument and the argument is relatively strong; 3 represents an argument and the argument is basically strong; 4 represents an argument but lacks argument strength; 5 represents not an argument, and finally the average integer score of all argument sentences is taken as the total argument filing.

2. The intelligent correction method for Chinese argumentative essays according to claim 1, It is characterized in that In the method, the recognized text is preprocessed including abnormal character removal, title sentence recognition and extraction, if the title is missing after detection, it is marked and used in title scoring, the composition body is split into multiple paragraphs according to the paragraph format, and each paragraph is split into corresponding sentences according to the sentence identifier.

3. The intelligent correction method for Chinese argumentative essays according to claim 1, It is characterized in that In the method, when extracting shallow features, the ratio of the number of words in the composition to the number of words required for the composition is calculated as the number of words feature; Count the number of paragraphs in the composition as the paragraph feature; Calculate the plagiarism rate by comparing the user's composition text with the standard answer and relevant online materials to determine the article plagiarism rate. The algorithm uses the longest common subsequence and divides the number of words in the longest common subsequence by the total number of words in the composition as the plagiarism rate. The plagiarism rate of the composition to the standard answer and online materials is averaged as the final plagiarism rate.

4. The intelligent correction method for Chinese argumentative essays according to claim 1, It is characterized in that In the method, when extracting the middle-level features, the literary style of the composition is used to identify the use of famous quotes, parallelism, and parallelism. First, each sentence in the composition is compared with the collected famous quotes and sentences library to count the number of times it is used. Then, each sentence is further split into short sentences according to punctuation marks, and compared according to the rules of parallelism and parallelism to identify the number of times parallelism and parallelism are used. Use kenlm and the collected argumentative essay corpus to train your own language model, call the trained language model through the open source project pycorrector, identify typos in essay sentences, and count the number of errors.

5. The intelligent correction method for Chinese argumentative essays according to claim 1, It is characterized in that In the method, the title classification is set to 4 levels, 1 represents good, indicating that it is relevant to the topic; 2 represents relatively good, indicating that it is relatively relevant to the topic; 3 represents basically good, indicating that it is basically relevant to the topic; 4 represents poor, indicating that it does not meet the requirements; The input of the title file includes the article title inputA, the standard answer title and the subject concatenated inputB, separated by a period; Then, input A and input B are mapped to a vocabulary number through the vocabulary. If a word not in the vocabulary appears, the word is further divided into single characters. If a single character not in the vocabulary appears, it is skipped. In order to process variable-length sequences, the lengths of two sequences before padding are input at the same time. The network input is divided into two parts, inputs A of shape 1*50 and inputs B of shape 1*200. Corresponding to input A and input B, the input first passes through the embedding layer to convert each int sequence number into the corresponding word vector; Inputs A passes through a layer of LSTM, num step is 50, and the output of the step corresponding to the length before padding is extracted, and the output shape is output A of 1*50; Inputs B passes through two layers of BiLSTM, num step is 200, and the output shape is 1*200 output_fw and output_bw; The three outputs are combined into a 1*450 matrix and passed through two fully connected layers with 400 and 4 units respectively, and the activation functions are relu and softmax respectively; Finally, the title is classified according to the index corresponding to the largest softmax value.

6. The intelligent correction method for Chinese argumentative essays according to claim 1, It is characterized in that In the method, the structure is divided into two levels, level 1 is reasonable structure, level 2 is unreasonable structure; the input includes the last paragraph of the article, which is used as input after Jieba word segmentation, and each word of the input is mapped to a word list number through the word list; If a word that is not in the vocabulary appears, the word is further divided into single characters. If a single character that is not in the vocabulary appears, it is skipped. The input is padded or trimmed to a length of 300, trimmed or padded from the end of the sequence, and the padding value is 0; The length of the input sequence before padding, the network input is inputs of shape 1*300, corresponding to the input, the input first passes through the embedding layer to convert each int sequence number into the corresponding word vector, the inputs pass through a double-layer BiLSTM, num step is 300, and the output of the step corresponding to the length before padding is extracted, the output shape is 1*300 output_fw and output_bw, the output is merged into a 1*600 matrix through two fully connected layers, the number of units are 400 and 2 respectively, and the activation functions are relu and softmax respectively; Finally, the completeness of the article structure is determined based on the index of the maximum value of softmax.

7. The intelligent correction method for Chinese argumentative essays according to claim 1, It is characterized in that In the method, all the obtained features, including thesis, evidence, structure, title classification, word count, paragraph, literary talent, typos, and plagiarism rate scores, are input into a two-layer fully connected network, and then a predicted score of 0-40 is output, which adjusts the final score as follows through the rules: The total score of the argument + the total score of the evidence <= 4 and the predicted total score <= 26. If the argument and evidence are high but the predicted score does not exceed 26, the score is +3; Plagiarism rate>=0.

77. When the plagiarism rate is relatively high, the predicted total score is 6.0 points; The number of words is <0.6, which means the number of words is seriously insufficient, and the predicted total score is 6.0 points; The number of paragraphs is level 3, which is seriously insufficient. The predicted total score is 6.

0.

8. A Chinese argumentative essay intelligent correction system, comprising at least one processor and a memory in communication with the at least one processor; in, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the Chinese argumentative paper intelligent correction method described in any one of claims 1-7.

Citation Information

Patent Citations

  • Chinese composition automatic scoring method and teaching aid system

    CN110851599A

  • Chinese and English cross-language plagiarism recognition method based on characteristics and content of translations

    CN103544326A

  • Method and system for article grading

    CN107506360A

  • Evaluation method and device based on argumentation text structure

    CN108595407A

  • An unsupervised composition off-topic detection method and system based on topic clustering

    CN109508460A