An automatic review method for subjective questions in paperless examinations based on HanLP

Through the combination of HanLP and Word2Vec models, the paperless examination system solves the efficiency and consistency problems in automatically reviewing subjective questions, achieves efficient and accurate automatic review, and reduces scoring costs and human bias.

CN118378626BActive Publication Date: 2024-10-22SHANDONG QIANREN EXAMINATION SERVICE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410559108.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-08
Publication Date
2024-10-22
Estimated Expiration
2044-05-08

AI Technical Summary

Technical Problem

The existing paperless examination system has problems of low efficiency and difficulty in ensuring consistency of scoring when automatically reviewing subjective questions. Especially when dealing with complex subjective questions, text similarity algorithms and pattern recognition technology are difficult to effectively handle multi-statement matching and key issues. Word influence and other issues.

Method used

The method based on HanLP is used to preprocess the subjective questions, including paragraph splitting, sentence splitting, word splitting and keyword setting. The Word2Vec model is combined with the Word2Vec model to calculate the similarity of sentences and words, and the custom dictionary and multi-word segmentation strategy are used. Construct test grading rules to implement calculations of paragraphs, sentences, and word segments to ensure the accuracy and consistency of scoring.

Benefits of technology

It improves the efficiency of automatic marking and the consistency of scoring, reduces human bias, reduces scoring costs, enhances the objectivity and flexibility of scoring, can quickly process large amounts of data, and ensures that each candidate's answer is evaluated according to unified standards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118378626B_ABST
    Figure CN118378626B_ABST
Patent Text Reader

Abstract

The present invention provides a method for automatically marking subjective questions in a paperless test based on HanLP, and belongs to the technical field of test marking based on computer technology; the method comprises four functional modules of preprocessing reference answers to subjective questions, preprocessing answers to subjective questions by examinees, calculating similarity of examinees' answers, and calculating test score. The method realizes segmentation, sentence segmentation, word segmentation, calculation of sentence similarity and word similarity by combining Hanlp and Word2Vec; and obtains the test score based on the test score calculation rule. This method can quickly process a large amount of data, making automatic marking possible, especially in tests with a large number of examinees, which can significantly improve the scoring efficiency; it can maintain the consistency of scoring, and each examinee's answer is evaluated according to a unified standard, reducing the subjective deviation of manual scoring; reducing the dependence on human resources, which helps to reduce the cost of test scoring in the long run; avoiding human emotions and prejudices, and improving the objectivity of scoring.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of examination marking based on computer technology, and in particular relates to an automatic marking method for subjective questions in paperless examinations based on HanLP. Background Art

[0002] The rapid development of digital technology, especially the remarkable progress of artificial intelligence technology, has made a qualitative leap in paperless examination systems. These advanced systems can not only manage the entire examination process, but also save the tedious work of printing, grading, score statistics and examination paper archiving in traditional examinations. This change clearly shows that paperless examinations are forming an emerging trend in the field of education. The application scope of paperless examination systems is no longer limited to colleges and universities, but has gradually expanded to various examination scenarios such as corporate training and talent recruitment. These systems have successfully met the diverse needs of various examinations by providing stable and efficient full-process online examination services. With the continuous improvement of technology and the gradual adaptation of society, paperless examinations are expected to become the mainstream of future examination methods.

[0003] Although paperless examination systems can automatically score objective questions, the scoring of subjective questions still relies mainly on manual review, which leads to low efficiency in scoring and difficulty in ensuring scoring consistency. To solve this problem, the industry is trying to use text similarity algorithms and pattern recognition technologies to automatically score subjective questions. Text similarity algorithms calculate scores by evaluating the similarity between student answers and standard answers, while pattern recognition technologies try to introduce advanced methods such as syntactic analysis and proximity theory in fuzzy mathematics to more accurately judge the quality of answers. However, these technologies still have limitations when dealing with complex subjective questions. For some specific situations, such as multiple sentences in the candidate's answer are similar to one sentence in the reference answer, or one sentence in the reference answer is similar to multiple sentences in the candidate's answer, and the impact of keywords in the candidate's answer on the score, the current automatic scoring system has not been able to effectively handle these problems. Summary of the invention

[0004] In view of the above problems, the present invention proposes a method for automatically reviewing subjective questions in paperless examinations based on HanLP, which includes the following processes:

[0005] Step 1, pre-processing the reference answers to the subjective questions; the steps include paragraph splitting, sentence splitting, word splitting, keyword setting, sentence scoring point setting, keyword scoring point setting, scoring rule setting and generating a custom dictionary; wherein, word splitting is based on Hanlp setting the custom dictionary path, adopting the two-way longest match and opening the merging and part-of-speech tagging functions, and splitting the sentences in the sentence list of sentence splitting sentence by sentence, and the split words are stored separately according to the sentence as a unit to form a word list; through the above steps, the test marking rule structure is formed, including the test question ID, test question score, sentence number and sentence list; wherein the sentence list includes sentence score, sentence content, scoring method, keyword score and keyword list;

[0006] Step 2: Preprocess the answers of the examinees to the subjective questions; the steps include paragraph splitting, sentence splitting and word splitting, among which the word splitting adopts the HanLP word segmentation model and integrates the word segmentation strategy; finally, the structure of the test questions to be reviewed is formed, including the test question ID, score, number of sentences and sentence list; the sentence list includes sentence content, sentence score, similarity, scoring method, keyword score and keyword list, and the keyword list includes keywords and similarity;

[0007] Step 3, calculating the similarity of the candidates' answers; the steps include sentence similarity calculation, finding the most matching sentence and word similarity calculation;

[0008] Step 4, calculate the test score; the step includes calculating the score of the reference answer statement and calculating the total score of this question.

[0009] Preferably, the keyword setting in step 1 is specifically as follows: selecting keywords from the word list obtained after word splitting and placing them into the keyword list; in order to ensure the accuracy and relevance of the test question keywords, a checklist display method is adopted to form a selectable checklist in the obtained word list, and this list contains all possible words and their corresponding attribute information, including part of speech, word meaning and frequency of occurrence;

[0010] The question expert will access this checklist, select keywords, check each word, and complete the keyword setting. The question expert will set keywords for each sentence in the test question by cyclically selecting each sentence.

[0011] Preferably, the sentence scoring point setting in step 1 is the setting of the sentence score, score threshold and score calculation method; the sentence score is a fixed score assigned according to the importance of the sentence in the answer; the score threshold is a boundary for determining the similarity score, and the boundary values ​​are divided according to the importance of the sentence. Then, only when the similarity of the sentence reaches or exceeds the boundary value, the sentence can be scored; the score calculation method is divided into segmented and proportional types; the segmented type is to set multiple score intervals in advance, each interval consists of an upper limit and a lower limit, and the score is determined according to the interval in which the similarity falls; the proportional type is the total score of the scored sentence multiplied by the similarity.

[0012] Preferably, the keyword score point setting in step 1 includes two methods: matching score and missing word deduction, and the total score of the keyword of the sentence is set;

[0013] Among them, the matching score method is that the keyword score of this sentence is equal to the total score of the keyword divided by the number of keywords multiplied by the number of matches;

[0014] First, the system will analyze the keywords in the sentence of the reference answer and record their number and their total score; second, the system will analyze the candidates' answers one by one according to the preset threshold, and count the matching of the keywords in the candidate's answer with the keywords in the reference answer; if there are keywords in multiple candidates' answers corresponding to the keywords in the same reference answer, the system will use the keyword with the highest matching degree to ensure the accuracy of the score; finally, the system will combine the above information to calculate the candidate's score on the keywords in this sentence;

[0015] Among them, the missing word deduction method is that the keyword deduction score of this sentence is equal to the total key score divided by the number of keywords multiplied by the number of missing words;

[0016] First, the system will obtain the keywords of this sentence from the standard answer and record the number of these keywords and their scores; secondly, the system will conduct a detailed analysis of the candidates' answers based on the preset threshold to count the degree of match between the keywords in the candidates' answers and the keywords of this sentence in the standard answer; if there are keywords in multiple candidates' answers corresponding to the keywords in the same reference answer, the system will use the keywords with the highest matching degree; next, the system will conduct reverse statistics to identify and record those keywords in the candidates' answers that fail to match the keywords of this sentence in the standard answer; finally, the system will combine the above statistical information to calculate the points that the candidates should be deducted for omitting keywords. The deduction will be based on the importance of the keywords and the omission of keywords in the candidates' answers.

[0017] Preferably, the step 1 of generating a custom dictionary is as follows:

[0018] By collecting the keywords in the reference answers of each subjective question in this exam paper, a custom dictionary dataset is formed, and the custom Word2Vec model is trained using this dataset;

[0019] Data preparation: In the data preparation stage, we first conduct an in-depth analysis of the reference answers to each subjective question in the exam paper to collect keywords, which will be used to build a custom vocabulary that reflects the uniqueness of professional subject knowledge; next, we preprocess the text, including segmenting the text into words or vocabulary units, removing irrelevant punctuation, numbers and special characters, and converting all text to lowercase to ensure word consistency; finally, we deduplicate the collected keywords to form the final streamlined custom vocabulary;

[0020] Train a custom Word2Vec model: Select the Skip-Gram architecture to train a custom Word2Vec model. The Skip-Gram model predicts context words from the center word.

[0021] Model evaluation and adjustment: After the model training is completed, the custom Word2Vec model is evaluated using a set of test question answer data, and the model parameters are adjusted as necessary to optimize its performance.

[0022] Preferably, the word segmentation in step 2 adopts the HanLP word segmentation model and integrates three different word segmentation strategies, including the CTB word segmentation model, the PKU word segmentation model and the BERT word segmentation model. These three models are respectively targeted at different word segmentation requirements and scenarios, and perform multiple word segmentations and merge to remove duplicates, and include the following process:

[0023] First, the sentence is segmented for the first time using the CTB segmentation model provided by HanLP, which can identify and split complex grammatical structures and vocabulary; then, the sentence is segmented for the second time using HanLP's PKU segmentation model, which can identify and process daily vocabulary and sentence structures; finally, the sentence is segmented for the third time using HanLP's BERT segmentation model, which can capture subtle semantic differences in sentences; through these three segmentations, word lists from three different angles are obtained; in order to merge these lists and remove duplicate words, HanLP's deduplication function is used to ensure the accuracy and completeness of the final word list of the examinee's answer.

[0024] Preferably, the searching for the best matching statement in step 3 includes two methods: the highest score and the highest similarity;

[0025] Among them, the highest score method first summarizes the scores of each candidate's answer sentence matching different reference answer sentences to fill in the reference answer and candidate answer matrix table; secondly, select the highest-scoring sentences in the test answer corresponding to the reference answer sentences in turn; thirdly, determine whether the test answer sentences corresponding to each reference answer sentence conflict, if there is a conflict, give priority to the highest-scoring one, and replace the other candidate answer sentences with the lower score; finally, summarize the corresponding relationship between the reference answer and the candidate's sentence;

[0026] Suppose the sentence set of the reference answer is R = {r1, r2, ..., r m}, where m is the total number of reference answer sentences;

[0027] Suppose the sentence set of the examinee's answer is A = {a1, a2, ..., a n}, where n is the total number of test-taker answer sentences;

[0028] Define the score matrix S, where S ij Indicates the candidate's answer sentence a i With the reference answer sentence r j The matching score of

[0029] Define an indicator variable X ij If the candidate answers sentence a i With the reference answer sentence r j Match, then X ij =1, otherwise X ij =0;

[0030] Formation formula:

[0031]

[0032] The highest similarity method first summarizes the similarity of each candidate's answer sentence matching different reference answer sentences, then sorts the reference answer sentences in descending order of reference answer scores, and then matches the corresponding sentence with the highest score in the candidate's answer according to the sorting result, and finally excludes the unmatched test answer sentences;

[0033] Aggregate similarity score: For each candidate answer sentence a i And the reference answer sentence r j , calculate the similarity score D ij And fill the similarity matrix D;

[0034] Sort reference answer sentences: Sort reference answer sentences r in descending order according to the reference answer score V j , and get the sorted reference answer sentence set R'={r′1,r′2,...,r′ m};

[0035] Match the corresponding sentence with the highest score: For each reference answer sentence r' after sorting j , find the candidate's answer sentence a with the highest similarity score i :

[0036] argmax 1≤i≤n D ij

[0037] Exclude unmatched test answer sentences: Remove the matched sentences from the candidate answer set A to obtain the final matching result.

[0038] Preferably, the word similarity calculation in step 3 is to use a custom Word2Vec model to calculate the similarity between the keywords in each sentence of the reference answer and the words in the candidate's answer sentence, and fill in the keyword similarity matrix;

[0039] Suppose the keyword set in the reference answer sentence is K = {k1, k2, ..., k i}, where i is the total number of keywords;

[0040] Suppose the word set in the candidate's answer sentence is W = {w1,w2,...,w q}, where q is the total number of words;

[0041] Define the similarity function sim(k i ,w j ), indicating keyword k i With the word w j similarity; set similarity threshold θ;

[0042] First, obtain a keyword in the reference answer sentence, and perform a similarity comparison with each word in the candidate's answer matching sentence, and record the similarity;

[0043] Secondly, according to the set threshold, exclude words that are less than the threshold; for each keyword k i and the word w j , if the similarity sim(k i ,w j )<θ, then exclude the word w j ;

[0044] Again, the calculation of the similarity of all keywords in the reference answer sentence is completed in a loop to form a similarity matrix between the keywords of the reference answer sentence and the words of the candidate's answer sentence:

[0045] s ij =sim(k i ,w j )

[0046] Finally, the similarities of all keywords in the reference answer sentence are counted, and the number of keyword matches and the number of missing words in the sentence are calculated based on the keyword scoring point settings.

[0047] Preferably, the calculation of the reference answer sentence score in step 4 is to cyclically calculate the similarity score and keyword score of each sentence of the reference answer according to the keyword matching scoring method or the missing word deduction method to form a total sentence score;

[0048] The total score of this question in step 4 is calculated based on the score of the reference answer statement, and the score of this question is calculated by summarizing;

[0049] The score of this question is the sum of the scores of each reference answer statement. The local total score formula is:

[0050]

[0051] Where n is the number of sentences in the reference answer, and the reference answer sentence score is the score of the i-th sentence.

[0052] Preferably, the keyword matching score method is as follows: the total sentence score is composed of the sentence similarity score plus the keyword matching score, and the sum of the two scores is the final sentence score; the keyword matching score is the keyword score equal to the total keyword score multiplied by the number of keyword matches, divided by the number of keywords in the sentence in the answer; the keyword matching score can be calculated by the following formula:

[0053]

[0054] The total score formula for the statement is:

[0055] Sentence key score (key matching score method) = sentence similarity score + key matching score

[0056] The missing word deduction method is specifically cyclical as follows: the total sentence score is the sentence similarity score minus the keyword missing word deduction score, the difference between the two scores is the final score, and if the sentence score is less than 0 after the deduction, it is set to 0; the keyword missing word deduction score is the total keyword score multiplied by the unmatched keyword, divided by the number of keywords in the sentence in the answer;

[0057] The penalty for missing keywords can be calculated using the following formula:

[0058]

[0059] The total score formula for the statement is:

[0060] Sentence key score = max (sentence similarity score - key key missing key penalty, 0).

[0061] Compared with the prior art, the present invention has the following beneficial effects:

[0062] The present invention combines Hanlp and Word2Vec to achieve segmentation, sentence segmentation, word segmentation, sentence similarity and word similarity calculation; the test score is obtained based on the test score calculation rules. This method can quickly process a large amount of data, making automatic marking possible, especially in tests with a large number of candidates, it can significantly improve the scoring efficiency; it can maintain the consistency of scoring, and each candidate's answer is evaluated according to a unified standard, reducing the subjective bias of manual scoring; reducing dependence on human resources, in the long run, it helps to reduce the cost of test scoring; avoiding human emotions and prejudices, and improving the objectivity of scoring.

[0063] In the sentence splitting step, invalid characters such as punctuation, special symbols, control characters, diacritics, and non-text characters are processed to ensure the accuracy of post-processing. The customized test marking rules stipulate the scoring method, record sentence scores and keyword scores, and improve the flexibility of scoring and the speed of review. Find the most matching sentence to achieve the highest score and the highest similarity, avoid the candidate's repeated matching of the same sentence with the reference answer sentence, and more comprehensively evaluate the quality of the candidate's answer according to different scoring methods, and reduce the deviation in the scoring process. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] In order to more clearly illustrate the technical solutions of the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, what is described below is only one embodiment of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0065] Figure 1 It is an overall flow chart of the method for automatic review of subjective questions of the present invention.

[0066] Figure 2 This is a schematic flow chart of the highest scoring method in step 3 of the present invention.

[0067] Figure 3 This is a schematic diagram of the highest similarity method flow in step 3 of the present invention. DETAILED DESCRIPTION

[0068] The invention will be further described below in conjunction with specific embodiments.

[0069] In order to realize the automatic review of name explanation, short answer and discussion questions, the present invention proposes a method for automatic review of subjective questions in paperless examinations based on HanLP. The overall process is as follows: Figure 1 The method includes four functional modules: preprocessing of reference answers for subjective questions, preprocessing of answers for subjective questions by examinees, calculation of similarity of examinees' answers, and calculation of test score.

[0070] This embodiment takes the review of subjective questions of examinees as an example to further illustrate the review method of the present invention.

[0071] 1. Preprocessing of reference answers for subjective questions

[0072] This implementation is explained using the following test questions as an example.

[0073] How many pairs of cranial nerves are there? State their names.

[0074] Answer: There are 12 pairs of cranial nerves that are peripheral nerves connected to the brain.

[0075] The order and names are as follows: olfactory nerve, optic nerve, oculomotor nerve, trochlear nerve, trigeminal nerve, abducens nerve, facial nerve, auditory nerve, glossopharyngeal nerve, vagus nerve, accessory nerve, and hypoglossal nerve.

[0076] (1) Split paragraphs

[0077] The reference answers are split into paragraphs, with r'\n{1,}' as the basis for splitting, to form paragraph array information.

[0078] A preprocessing process was performed on each data segment to improve the data quality and reliability of the analysis. First, the length of each text paragraph was verified, and paragraphs with zero length were excluded to prevent empty paragraphs caused by double line breaks or format errors, thereby ensuring the integrity of the data and the validity of the analysis.

[0079] At the same time, additional character checks were implemented to exclude possible double line breaks or other abnormal characters. These checks involve character encoding analysis of paragraph text to identify and replace any incorrect character encodings to ensure the accuracy and readability of the text.

[0080] (2) Split statements

[0081] The reference answer is split according to the sentence, and r'[^! ? .. ]+[! ? .. ]' is used as the splitting basis to form the sentence list information.

[0082] In semantic analysis, invalid characters in a sentence usually refer to those characters that do not contribute to understanding the meaning of the sentence, which may include punctuation marks, special symbols, control characters, diacritics, and non-text characters. To ensure the accuracy of post-processing, each sentence is processed to exclude characters that do not contribute to understanding the meaning of the sentence.

[0083] Punctuation marks: period, comma, question mark, exclamation mark, colon, semicolon, brackets, quotation marks, etc.

[0084] Special symbols: @, #, $, %, ^, &, *, (,), _, +, -, =, {,}, [, ], |, \, / , <, >, ?, !, etc.

[0085] Whitespace characters: space, tab, newline, etc.

[0086] Control characters: ASCII codes 0 to 31 and 127. These characters are usually invisible and are used to control the operation of a printer or other device.

[0087] Diacritical marks: In non-English text, diacritical marks (such as accent marks) are sometimes treated as invalid characters.

[0088] Non-text characters: Any character that is not a standard letter, number, or punctuation may be considered an invalid character.

[0089] (3) Split words

[0090] Based on Hanlp, a custom dictionary path is set, bidirectional longest match is adopted, and the merging and part-of-speech tagging functions are enabled. The sentences in the sentence list split in the second step are split into words one by one. The split words are stored separately according to the sentence to form a word list.

[0091] For example: "The order and names are as follows: olfactory nerve, optic nerve, oculomotor nerve, trochlear nerve, trigeminal nerve, abducens nerve, facial nerve, auditory nerve, glossopharyngeal nerve, vagus nerve, accessory nerve, hypoglossal nerve."

[0092] Split results: ['olfactory nerve',',','optic nerve',',','oculomotor nerve',',','trochlear nerve',',','trigeminal nerve',',','abducens nerve',',','facial nerve',',','auditory nerve',',','glossopharyngeal nerve',',','vagus nerve',',','accessory nerve',',','hypoglossal nerve','. ']

[0093] (4) Keyword setting

[0094] Select keywords from the word list obtained by word splitting in the third step and place them in the keyword list.

[0095] In order to ensure the accuracy and relevance of the key words in the test questions, a checklist display method is adopted. In the word list obtained in the third step, a checklist is formed for selection. This list contains all possible words and their corresponding attribute information, such as part of speech, meaning, and frequency of occurrence.

[0096] The question experts will access this checklist to select keywords. Experts can check each word to complete the keyword setting.

[0097] The question setting experts will set keywords for each sentence in the test question by cyclically selecting them sentence by sentence.

[0098] (5) Sentence scoring points setting

[0099] Sentence scoring mainly sets the score, score threshold, and score calculation method for the sentence. The sentence score is a fixed score assigned according to the importance of the sentence in the answer. The score threshold is a boundary for determining the similarity score. The boundary values ​​are divided according to the importance of the sentence. Only when the similarity of the sentence reaches or exceeds the boundary value can the sentence score. The score calculation method is divided into segmented and proportional. The segmented method sets multiple score intervals in advance. Each interval consists of an upper limit and a lower limit. The score is determined according to the interval in which the similarity falls. The proportional method multiplies the total score of the score sentence by the similarity.

[0100] The sentence score is set according to the importance of the sentence in the answer, for example, it is set to 2 points; the score threshold is the score limit for determining the similarity, for example, the score threshold is set to 0.6, which means that scores below 0.6 will not be scored; the score calculation method is divided into segmented and proportional methods. The segmented method is 0.6-0.7 for 0.5 points, greater than 0.7-0.8 for 1 point, greater than 0.8-0.9 for 1.5 points, and greater than 0.9-1 for 2 points. The proportional method is the total sentence score multiplied by the similarity, that is, 2×0.8=1.6.

[0101] (6) Keyword scoring point setting

[0102] The keyword score is set in two ways: matching score and missing word deduction, and the total score of the keywords in this sentence is set.

[0103] The matching score method is that the keyword score of this sentence is equal to the total keyword score divided by the number of keywords multiplied by the number of matches.

[0104] First, the system will analyze the keywords in the sentence of the reference answer and record their number and their total score. This step is the basis for determining the scoring criteria.

[0105] Secondly, the system will analyze the candidates' answers one by one according to the preset threshold, and count the matches between the keywords in the candidate's answer and the reference answer. If the keywords in multiple candidates' answers correspond to the keywords in the same reference answer, the system will use the keyword with the highest match to ensure the accuracy of the score.

[0106] Finally, the system will combine the above information to calculate the candidate's score on the key words in this sentence. This score will be based on the importance of the key words and the candidate's matching degree to ensure fairness and rationality of the scoring.

[0107] The penalty for missing words is that the keyword penalty for this sentence is equal to the total key score divided by the number of keywords multiplied by the number of missing words.

[0108] First, the system will obtain the keywords of this sentence from the standard answer and record the number of these keywords and their scores. This step is to establish a basic framework for scoring.

[0109] Secondly, the system will conduct a detailed analysis of the candidates' answers based on the preset threshold to count the matching degree between the keywords in the candidates' answers and the keywords in the standard answers. If the keywords in multiple candidates' answers correspond to the keywords in the same reference answer, the system will use the keywords with the highest matching degree to ensure the accuracy of the scoring.

[0110] Next, the system will do a reverse statistics to identify and record those keywords in the candidate's answer that fail to match the keywords of the sentence in the standard answer. This step is to ensure a comprehensive evaluation of the candidate's answer, taking into account not only the matching keywords but also the missing keywords.

[0111] Finally, the system will combine the above statistical information to calculate the score that candidates should be deducted for missing keywords. This deduction will be based on the importance of keywords and the omission of keywords in the candidate's answer to ensure fairness and consistency in scoring.

[0112] (7) Scoring rules setting

[0113] The sentence scoring and keyword scoring rules are based on two methods: adding points for matching and subtracting points for missing words.

[0114] The matching score is added in the following way: the total sentence score is equal to the sentence score plus the keyword matching score.

[0115] The overall scoring mechanism for this sentence adopts a sub-score method to comprehensively evaluate the quality of the candidate's answer. This scoring method breaks down the candidate's score into two main parts: sentence similarity score and keyword score.

[0116] First, the sentence similarity score is based on the overall similarity between the candidate's answer and the reference answer. This score reflects how close the candidate's answer is to the reference answer in terms of expression and information transmission.

[0117] Secondly, the keyword score focuses on whether the candidate's answer contains the keywords specified in the reference answer. Each keyword has a predetermined score, which is determined based on the importance of the keyword and the accuracy of the answer. This method is particularly suitable for situations where the reference answer contains multiple keywords, ensuring that the accuracy and comprehensiveness of the candidate's use of keywords are properly evaluated.

[0118] This scoring method can more accurately evaluate candidates' answers and ensure that they not only understand the core concepts of the question, but also express these concepts in a clear and accurate way. This scoring mechanism can both encourage candidates to pay attention to the use of key words when answering questions and assess their overall understanding of the question.

[0119] The method of deducting points for missing words is that the total score of the sentence is equal to the sentence score minus the penalty points for missing keywords.

[0120] The scoring mechanism for this sentence adopts a total item deduction method, which aims to comprehensively evaluate the quality of the candidate's answer. In this scoring method, the candidate's final score is obtained by subtracting the deduction caused by missing words from the sentence similarity score.

[0121] First, the sentence similarity score is based on the overall similarity between the candidate's answer and the reference answer. This score reflects how close the candidate's answer is to the reference answer in terms of expression and information transmission.

[0122] Secondly, the missing word penalty focuses on whether the candidate's answer misses the keywords specified in the reference answer. Each keyword has its own predetermined penalty value, which is determined based on the importance of the keyword and the accuracy of the answer. This method is particularly suitable for situations where the reference answer contains fewer keywords but has strong logic, ensuring that the accuracy and comprehensiveness of the candidate's use of keywords are properly evaluated.

[0123] This overall scoring method can more accurately evaluate candidates' answers, ensuring that they not only understand the core concepts of the question, but also can express these concepts in a clear and accurate manner. This scoring mechanism can both encourage candidates to pay attention to the use of key words when answering questions and assess their overall understanding of the question.

[0124] (8) Generate a custom dictionary (to avoid incorrect word segmentation in candidates’ answers)

[0125] Store all the keywords in the reference answer to this question in a custom dictionary.

[0126] By collecting the keywords in the reference answers to each subjective question in this exam paper, a custom dictionary dataset is formed, which is used to train a custom Word2Vec model.

[0127] Data preparation: In the data preparation stage, we first conduct an in-depth analysis of the reference answers to each subjective question in the exam paper to collect keywords. These keywords will be used to build a custom vocabulary that will reflect the uniqueness of professional subject knowledge. Next, the text is carefully preprocessed, including segmenting the text into words or vocabulary units and removing irrelevant punctuation, numbers, and special characters. In addition, to ensure the consistency of words, all texts are converted to lowercase. After completing these steps, the collected keywords are deduplicated to form the final streamlined custom vocabulary.

[0128] Training a custom Word2Vec model: Given that the custom vocabulary focuses on subject matter knowledge and the relatively small amount of data, and considering the prevalence of low-frequency words, the Skip-Gram architecture was chosen to train the custom Word2Vec model. The Skip-Gram model predicts context words from the center word, which is particularly effective in generating accurate vector representations of low-frequency words. In addition, Skip-Gram performs quite well when processing small data sets because it can generate multiple context words from each training sample, thereby improving the learning efficiency of the model.

[0129] Model evaluation and tuning: After model training is complete, the custom Word2Vec model is evaluated using a set of test question answer data. This step is critical because it helps understand how the model performs in real-world applications. Based on the evaluation results, the model's parameters will be adjusted as necessary to optimize its performance.

[0130] Model preservation: After multiple rounds of evaluation and adjustment, the best performing model will be selected for preservation. This optimal model will be applied to the examination paper review to automatically evaluate the quality of the candidates' answers and provide objective and accurate scoring results. In this way, not only the efficiency of review is improved, but also the consistency and fairness of scoring are ensured.

[0131] (9) Examination marking rules

[0132] The above 8 steps form the structure of the test paper marking rules. It includes the test question ID, test question score, number of sentences, and sentence list. The sentence list includes sentence score, sentence content, scoring method, keyword score, and keyword list. The test question score represents the total score of this test question, the sentence score represents the score of this sentence, the scoring method represents the matching score or missing word deduction, and the keyword score represents the score of this group of keywords. Each candidate's test question score is reviewed according to the test paper marking rules.

[0133]

[0134]

[0135]

[0136] 2. Preprocessing of answers of subjective questions

[0137] (1) Split paragraphs

[0138] The examinee's answers are split into paragraphs, with paragraph separators as the basis for splitting, to form paragraph array information.

[0139] Since different candidates may have different editing habits, the following paragraph separators need to be processed.

[0140] Blank lines: In many text editors and document formats, one or more consecutive blank lines are used as separators between paragraphs.

[0141] Newline Character: In some text files, especially on Unix / Linux systems, a single newline character (\n) may be used as a paragraph separator.

[0142] Carriage return and line feed characters: In Windows systems, carriage return and line feed characters (\r\n) are standard paragraph separators.

[0143] Paragraph tag: In rich text formats (such as HTML), Tags are used to mark the beginning and end of paragraphs.

[0144] Title or section markers: In some document structures, title or section markers (such as ### or <h1>) may imply a paragraph break.

[0145] Tabs or Spaces: In some simple text formats, especially in programming or data files, tabs or spaces may be used as separators between columns or fields, but not between paragraphs.

[0146] Special characters or sequences: In some specific documents or text applications, special characters or sequences may be used as paragraph separators.

[0147] Process each paragraph of data. Check the length of the paragraph text, exclude paragraphs with a length of 0, and avoid the generation of empty paragraphs caused by double line breaks.

[0148] (2) Split statements

[0149] The candidates' answers are split into sentences, with r'[^! ? .. ]+[! ? .. ]' as the splitting basis to form sentence list information.

[0150] In semantic analysis, invalid characters in a sentence usually refer to those characters that do not contribute to understanding the meaning of the sentence, and they may include punctuation marks, special symbols, control characters, etc. In order to ensure the accuracy of post-processing, each sentence is processed to exclude characters that do not contribute to understanding the meaning of the sentence.

[0151] Punctuation marks: period, comma, question mark, exclamation mark, colon, semicolon, brackets, quotation marks, etc.

[0152] Special symbols: @, #, $, %, ^, &, *, (,), _, +, -, =, {,}, [, ], |, \, / , <, >, ?, !, etc.

[0153] Whitespace characters: space, tab, newline, etc.

[0154] Control characters: ASCII codes 0 to 31 and 127. These characters are usually invisible and are used to control the operation of a printer or other device.

[0155] Diacritical marks: In non-English text, diacritical marks (such as accent marks) are sometimes treated as invalid characters.

[0156] Non-text characters: Any character that is not a standard letter, number, or punctuation may be considered an invalid character.

[0157] (3) Split words

[0158] The reference answer word splitting rules are used to split the test answer sentences into words, and the split words are stored separately according to the sentence units to form a word list.

[0159] In order to achieve deep semantic understanding of Chinese academic sentence segmentation, the HanLP segmentation model was adopted, and three different segmentation strategies were integrated: CTB segmentation model, PKU segmentation model and BERT segmentation model. These three models are targeted at different segmentation needs and scenarios. Through multiple segmentations and merging to remove duplicates, a more comprehensive and accurate final candidate answer word list can be constructed.

[0160] First, the CTB word segmentation model provided by HanLP is used to perform the first word segmentation on the sentence. The CTB word segmentation model is trained based on the Chinese Treebank dataset, and it performs well in academic research and analyzing complex sentence structures. This model can recognize and split complex grammatical structures and vocabulary, providing a solid foundation for subsequent analysis.

[0161] Next, the sentence is segmented for the second time using the PKU segmentation model of HanLP. The PKU segmentation model is trained based on the Peking University dataset and is suitable for general Chinese segmentation tasks. The model can recognize and process daily vocabulary and sentence structures, providing more extensive support for segmentation work.

[0162] Finally, the sentence is segmented for the third time using HanLP's BERT segmentation model. The BERT segmentation model is based on the BERT architecture, which performs well in complex tasks that require deep semantic understanding. This model can capture subtle semantic differences in sentences and provide a deeper understanding of the segmentation work.

[0163] Through these three word segmentations, we obtained three word lists from different perspectives. In order to merge these lists and remove duplicate words, we used HanLP's deduplication function to ensure the accuracy and completeness of the final word list of the examinee's answer.

[0164] (4) Structure of the test questions to be reviewed

[0165] The above three steps form the structure of the test questions to be reviewed, including the test question ID, score, number of sentences, and sentence list. The sentence list includes sentence content, sentence score, similarity, scoring method, keyword score, and keyword list. The keyword list includes keywords and similarity. The structure is as follows.

[0166]

[0167]

[0168]

[0169]

[0170] 3. Calculation of similarity between candidates’ answers (1) Calculation of sentence similarity

[0171] Use Hanlp's hanlp.pretrained.sts.STS_ELECTRA_BASE_ZH model to compare the similarity between the reference answer sentences and the candidate's answer sentences. Use sentence-by-sentence comparison to record the score of each sentence in the candidate's answer. Focus on the test question reference answer sentences, loop to obtain sentences and compare them with all sentences in the candidate's answer, and record the similarity and sentence score.

[0172] (2) Find the best matching statement

[0173] The matrix table of reference answers and candidates' answers is filled in according to the similarity and scores.

[0174]

[0175] There are two ways to find the best matching sentence: the highest score and the highest similarity.

[0176] The highest scoring method is as follows: Figure 2 As shown. First, summarize the scores of each candidate's answer sentence matching different reference answer sentences to fill in the reference answer and candidate answer matrix table; second, select the highest-scoring sentences in the test answers corresponding to the reference answer sentences in turn; third, determine whether the test answer sentences corresponding to each reference answer sentence conflict, if there is a conflict, give priority to the highest-scoring one, and replace other candidate answer sentences with lower scores; finally, summarize the corresponding relationship between the reference answers and the candidate sentences.

[0177] Suppose the sentence set of the reference answer is R = {r1, r2, ..., r m }, where m is the total number of reference answer sentences.

[0178] Suppose the sentence set of the examinee's answer is A = {a1, a2, ..., a n }, where n is the total number of test-taker answer sentences.

[0179] Define the score matrix S, where S ij Indicates the candidate's answer sentence a i With the reference answer sentence r j The matching score.

[0180] Define an indicator variable X ij If the candidate answers sentence a i With the reference answer sentence r j Match, then X ij =1, otherwise X ij =0.

[0181] Formation formula:

[0182]

[0183] The highest similarity method, the process is as follows Figure 3 First, the similarity between each candidate's answer sentence and different reference answer sentences is summarized, and then the reference answer sentences are sorted in descending order according to the reference answer scores. Then, the corresponding sentence with the highest score in the candidate's answer is matched according to the sorting result, and finally the unmatched test answer sentences are excluded.

[0184] Aggregate similarity score: For each candidate answer sentence a i And the reference answer sentence r j , calculate the similarity score D ij And fill in the similarity matrix D.

[0185] Sorting reference answer statement:

[0186] Sort the reference answer sentences r in descending order according to the reference answer score V j , and get the sorted reference answer sentence set R'={r′1,r′2,...,r′ m }.

[0187] Match the corresponding sentence with the highest score: For each reference answer sentence r' after sorting j , find the candidate's answer sentence a with the highest similarity score i :

[0188] argmax 1≤i≤n D ij

[0189] Exclude unmatched test answer sentences: Remove the matched sentences from the candidate answer set A to obtain the final matching result.

[0190] (3) Word similarity calculation

[0191] Use gensim.models.Word2Vec and custom Word2Vec models to calculate the similarity between the keywords in each sentence of the reference answer and the words in the candidate's answer sentence, and fill in the keyword similarity matrix.

[0192]

[0193] Suppose the keyword set in the reference answer sentence is K = {k1, k2, ..., k i }, where i is the total number of keywords.

[0194] Suppose the word set in the candidate's answer sentence is W = {w1,w2,...,w q }, where q is the total number of words.

[0195] Define the similarity function sim(k i ,w j ), indicating keyword k i With the word w j The similarity.

[0196] Set the similarity threshold θ.

[0197] First, obtain a keyword in the reference answer sentence, and perform a similarity comparison on each word in the candidate's answer matching sentence, and record the similarity.

[0198] sim(k i ,w j )

[0199] Secondly, based on the set threshold, exclude words with values ​​less than the threshold. i and the word w j , if the similarity sim(k i ,w j )<θ, then exclude the word w j .

[0200] Again, the calculation of the similarity of all keywords in the reference answer sentence is completed in a loop to form a word similarity matrix between the keywords of the reference answer sentence and the candidate's answer sentence.

[0201] s ij =sim(k i ,w j )

[0202] Finally, the similarities of all keywords in the reference answer sentence are counted, and the number of keyword matches and the number of missing words in the sentence are calculated based on the keyword scoring point settings.

[0203] 4. Test score calculation

[0204] (1) Calculate the score of the reference answer statement

[0205] The similarity score and keyword score of each sentence in the reference answer are calculated cyclically based on the keyword matching scoring method or the missing word deduction method to form the total score of the sentence.

[0206] Keyword matching scoring method

[0207] The total score of a sentence is composed of the sentence similarity score plus the keyword matching score. The sum of the two scores is the final score of the sentence. The keyword matching score is the keyword score equal to the total keyword score multiplied by the number of keyword matches, divided by the number of keywords in the answer. The keyword matching score can be calculated using the following formula:

[0208]

[0209] The total score formula for the statement is:

[0210] Sentence key score (keyword matching score method) = sentence similarity score + keyword matching score Keyword missing word deduction method:

[0211] The total score of a sentence is the sentence similarity score minus the penalty for missing keywords. The difference between the two scores is the final score. If the sentence score is less than 0 after the deduction, it is set to 0. The penalty for missing keywords is the total score of the keywords multiplied by the number of keywords that failed to match, divided by the number of keywords in the answer.

[0212] The missing word penalty reflects the impact of the unmatched keywords on the total score. The missing word penalty can be calculated using the following formula:

[0213]

[0214] The total score formula for the statement is:

[0215] Sentence key score = max (sentence similarity score - key key missing key penalty, 0)

[0216] (2) Calculate the total score for this question

[0217] Based on the scores of the reference answer statements, the score of this question is calculated in summary.

[0218] The score of this question is the sum of the scores of each reference answer statement. The local total score formula is:

[0219]

[0220] Where n is the number of sentences in the reference answer, and the reference answer sentence score is the score of the ith sentence. This summation symbol means adding up the scores of all reference answer sentences to get the total score of the entire test question.

[0221] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

[0222] Although the above describes the specific implementation methods of the present invention, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.< / h1>

Claims

1. A method for automatically reviewing subjective questions in paperless examinations based on HanLP, characterized in that: The process includes: Step 1, pre-processing the reference answers to the subjective questions; the steps include paragraph splitting, sentence splitting, word splitting, keyword setting, sentence scoring point setting, keyword scoring point setting, scoring rule setting and generating a custom dictionary; wherein, word splitting is based on setting the custom dictionary path of Hanlp, using the two-way longest match and opening the merging and part-of-speech tagging functions, and splitting the sentences in the sentence list of sentence splitting sentence by sentence, and the split words are stored separately according to the sentence as a unit to form a word list; through the above steps, the test marking rule structure is formed, including the test question ID, test question score, sentence number and sentence list; wherein the sentence list includes sentence score, sentence content, scoring method, keyword score and keyword list; The keyword setting is specifically as follows: selecting keywords from the word list obtained after word splitting and placing them into the keyword list; in order to ensure the accuracy and relevance of the test question keywords, a checklist display method is adopted to form a selectable checklist in the obtained word list, and this list contains all possible words and their corresponding attribute information, including part of speech, word meaning and frequency of occurrence; The question setting expert will access this checklist, select keywords, check each word, and complete the keyword setting. The question setting expert will set keywords for each sentence in the test question by selecting them sentence by sentence; The keyword score setting includes two methods: matching score and missing word deduction, and sets the total score of the keyword in this sentence; Among them, the matching score method is that the keyword score of this sentence is equal to the total score of the keyword divided by the number of keywords multiplied by the number of matches; First, the system will analyze the keywords in the sentence of the reference answer and record their number and their total score; second, the system will analyze the candidates' answers one by one according to the preset threshold, and count the matching of the keywords in the candidate's answer with the keywords in the reference answer; if there are keywords in multiple candidates' answers corresponding to the keywords in the same reference answer, the system will use the keyword with the highest matching degree to ensure the accuracy of the score; finally, the system will combine the above information to calculate the candidate's score on the keywords in this sentence; Among them, the missing word deduction method is that the keyword deduction score of this sentence is equal to the total key score divided by the number of keywords multiplied by the number of missing words; First, the system will obtain the keywords of the sentence from the standard answer and record the number of these keywords and their scores; second, the system will conduct a detailed analysis of the candidates' answers based on the preset threshold to count the matching degree between the keywords in the candidates' answers and the keywords of the sentence in the standard answer; if there are keywords in multiple candidates' answers that correspond to the keywords in the same reference answer, the system will use the keywords with the highest matching degree; then the system will conduct reverse statistics to identify and record those keywords in the candidates' answers that fail to match the keywords of the sentence in the standard answer; finally, the system will combine the above statistical information to calculate the points that the candidates should be deducted for omitting keywords. The deduction will be based on the importance of the keywords and the omission of keywords in the candidates' answers; Step 2: Preprocess the answers of the examinees to the subjective questions; the steps include paragraph splitting, sentence splitting and word splitting, among which the word splitting adopts the HanLP word segmentation model and integrates the word segmentation strategy; finally, the structure of the test questions to be reviewed is formed, including the test question ID, score, number of sentences and sentence list; the sentence list includes sentence content, sentence score, similarity, scoring method, keyword score and keyword list, and the keyword list includes keywords and similarity; The word segmentation adopts the HanLP word segmentation model and integrates three different word segmentation strategies, including the CTB word segmentation model, the PKU word segmentation model and the BERT word segmentation model. These three models are targeted at different word segmentation requirements and scenarios, and perform multiple word segmentations and merging to remove duplicates, and include the following process: First, the CTB word segmentation model provided by HanLP is used to perform the first word segmentation on the sentence, which can identify and split complex grammatical structures and vocabulary; then, the sentence is segmented for the second time, using HanLP's PKU word segmentation model, which can identify and process daily vocabulary and sentence structures; finally, the sentence is segmented for the third time, using HanLP's BERT word segmentation model, which can capture subtle semantic differences in sentences; through these three word segmentations, three word lists from different angles are obtained; in order to merge these lists and remove duplicate words, HanLP's deduplication function is used to ensure the accuracy and completeness of the final word list of the examinee's answer; Step 3, calculating the similarity of the candidates' answers; the steps include sentence similarity calculation, finding the most matching sentence and word similarity calculation; Step 4, calculate the test score; the step includes calculating the score of the reference answer statement and calculating the total score of this question.

2. The method for automatically reviewing subjective questions in a paperless examination based on HanLP as claimed in claim 1, characterized in that: The sentence score setting in step 1 is to set the sentence score, score threshold and score calculation method; the sentence score is to assign a fixed score according to the importance of the sentence in the answer; The score threshold is a limit for determining the similarity score. The threshold value is divided according to the importance of the sentence. Then, only when the similarity of the sentence reaches or exceeds the threshold value, the sentence can be scored. The score calculation method is divided into segmented and proportional methods; the segmented method is to set multiple score intervals in advance, each interval consists of an upper limit and a lower limit, and the score is determined according to the interval in which the similarity falls; the proportional method is to multiply the total score of the scoring sentence by the similarity.

3. The method for automatically reviewing subjective questions in a paperless examination based on HanLP as claimed in claim 1, characterized in that: The step 1 of generating a custom dictionary is as follows: By collecting the keywords in the reference answers of each subjective question in this exam paper, a custom dictionary dataset is formed, and the custom Word2Vec model is trained using this dataset; Data preparation: In the data preparation stage, we first conduct an in-depth analysis of the reference answers to each subjective question in the exam paper to collect keywords, which will be used to build a custom vocabulary that reflects the uniqueness of professional subject knowledge; next, we preprocess the text, including segmenting the text into words or vocabulary units, removing irrelevant punctuation, numbers and special characters, and converting all text to lowercase to ensure word consistency; finally, we deduplicate the collected keywords to form the final streamlined custom vocabulary; Train a custom Word2Vec model: Select the Skip-Gram architecture to train a custom Word2Vec model. The Skip-Gram model predicts context words from the center word. Model evaluation and adjustment: After the model training is completed, the custom Word2Vec model is evaluated using a set of test question answer data and the model parameters are adjusted to optimize its performance.

4. The method for automatically reviewing subjective questions in a paperless examination based on HanLP as claimed in claim 1, characterized in that: The searching for the best matching statement in step 3 includes two methods: the highest score and the highest similarity; The highest scoring method is to first summarize the scores of each candidate's answer sentence when matching different reference answer sentences to fill in the reference answer and candidate answer matrix table; Secondly, the sentences with the highest scores in the test answers corresponding to the reference answer sentences are screened out in turn; thirdly, it is determined whether the test answer sentences corresponding to each reference answer sentence conflict. If there is a conflict, the highest score is given priority, and the lower score is replaced by other candidate answer sentences; finally, the correspondence between the reference answer and the candidate's sentence is summarized; Suppose the sentence set of the reference answer is R={r1, r2, ..., r m }, where m is the total number of reference answer sentences; Suppose the sentence set of the examinee's answer is A= {a1, a2, ..., a n }, where n is the total number of test-taker answer sentences; Define the score matrix S, where S ij Indicates the candidate's answer sentence a i With the reference answer sentence r j The matching score of Define an indicator variable X ij If the candidate answers sentence a i With the reference answer sentence r j Match, then X ij =1, otherwise X ij =0; Formation formula: The highest similarity method first summarizes the similarity of each candidate's answer sentence matching different reference answer sentences, then sorts the reference answer sentences in descending order of reference answer scores, and then matches the corresponding sentence with the highest score in the candidate's answer according to the sorting result, and finally excludes the unmatched test answer sentences; Aggregate similarity score: For each candidate answer sentence a i And the reference answer sentence r j , calculate the similarity score D ij And fill the similarity matrix D; Sort reference answer sentences: Sort reference answer sentences r in descending order according to the reference answer score V j , and get the sorted reference answer sentence set R'={r′1,r′2,...,r′ m }; Match the corresponding sentence with the highest score: For each reference answer sentence r' after sorting j , find the candidate's answer sentence a with the highest similarity score i : Exclude unmatched test answer sentences: Remove the matched sentences from the candidate answer set A to obtain the final matching result.

5. The method for automatically reviewing subjective questions in a paperless examination based on HanLP as claimed in claim 3, characterized in that: The word similarity calculation in step 3 is to use a custom Word2Vec model to calculate the similarity between the keywords in each sentence of the reference answer and the words in the candidate's answer sentence, and fill in the keyword similarity matrix; Suppose the keyword set in the reference answer sentence is K = {k1, k2, ..., k p }, where p is the total number of keywords; Suppose the word set in the candidate's answer sentence is W = {w1, w2, ..., w q }, where q is the total number of words; Define the similarity function sim(k i , w j ), indicating keyword k i With the word w j similarity; set the similarity threshold θ; First, obtain a keyword in the reference answer sentence, and perform a similarity comparison with each word in the candidate's answer matching sentence, and record the similarity; Secondly, according to the set threshold, exclude words that are less than the threshold; for each keyword k i and the word w j , if the similarity sim(k i , w j ) <θ, then exclude the word w j ; Again, the calculation of the similarity of all keywords in the reference answer sentence is completed in a loop to form a similarity matrix between the keywords of the reference answer sentence and the words of the candidate's answer sentence: Finally, the similarities of all keywords in the reference answer sentence are counted, and the number of keyword matches and the number of missing words in the sentence are calculated based on the keyword scoring point settings.

6. The method for automatically reviewing subjective questions in a paperless examination based on HanLP as claimed in claim 1, characterized in that: The calculation of the reference answer sentence score in step 4 is to cyclically calculate the similarity score and keyword score of each sentence of the reference answer according to the keyword matching scoring method or the missing word deduction method to form a total sentence score; The total score of this question in step 4 is calculated based on the score of the reference answer statement, and the score of this question is calculated by summarizing; The score of this question is the sum of the scores of each reference answer statement. The scoring formula for this question is: Where n is the number of sentences in the reference answer, and the reference answer sentence score is the score of the i-th sentence.

7. The method for automatically reviewing subjective questions in a paperless examination based on HanLP as claimed in claim 6, characterized in that: The keyword matching score method is specifically as follows: the total sentence score is composed of the sentence similarity score plus the keyword matching score, and the sum of the two scores is the final sentence score; the keyword matching score is the keyword score equal to the total keyword score multiplied by the number of keyword matches, divided by the number of keywords in the sentence in the answer; the keyword matching score is calculated by the following formula: The total score formula for a statement is: The missing word deduction method is specifically cyclical as follows: the total sentence score is the sentence similarity score minus the keyword missing word deduction score, the difference between the two scores is the final score, and if the sentence score is less than 0 after the deduction, it is set to 0; the keyword missing word deduction score is the total keyword score multiplied by the unmatched keyword, divided by the number of keywords in the sentence in the answer; The penalty for missing keywords is calculated using the following formula: The total score formula for the statement is: 。

Citation Information

Patent Citations

  • Device and method for judging subjective questions in test paper based on natural language

    CN108959261A

  • HanLP-based registered electrical engineer examination subjective question automatic scoring method

    CN111243364A

  • Automatic scoring method for subjective questions of test paper

    CN114462389A

  • Examination reading understanding answer sentence summarization method fusing CPT and optimization model

    CN115329960A

  • Intelligent customer service information generation system and method based on keyword extraction

    CN116628173A