Chapter key point detection method, device, equipment and storage medium

By obtaining the semantic representation of the chapter to be tested and the question stem, and calculating the semantic similarity based on the sample texts in the answer bank, the problem of difficulty in accurately detecting the key points of the chapter in the existing technology is solved, and the accurate detection of the key points of the chapter and improvement of scoring are achieved.

CN111881694BActive Publication Date: 2024-08-23IFLYTEK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010776952.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-05
Publication Date
2024-08-23
Estimated Expiration
2040-08-05

AI Technical Summary

Technical Problem

It is difficult to accurately detect the key points of a chapter with existing technology, especially in the correction of Chinese and English compositions, causing teachers to spend a lot of time and energy on manual review.

Method used

By obtaining the semantic representation of the chapter to be tested and the question stem, based on the sample essays in the answer bank that meet the requirements of the question stem, the semantic similarity between each text unit in the chapter to be tested and the sample essays is calculated, and the text units that belong to the key points of the chapter are determined.

Benefits of technology

It achieves accurate detection of the key points of the chapter, reduces the workload of manual review, improves the accuracy and objectivity of scoring, and improves teaching efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111881694B
    Figure CN111881694B
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and storage medium for detecting key points of a passage. When performing key point detection on a passage to be tested, the present application considers the stem information corresponding to the passage to be tested and the answer bank corresponding to the stem, wherein the stem clarifies the key points that the passage should express, and the answer bank can provide rich auxiliary information. Based on this, the present application obtains the semantic representation of the stem and the semantic representation of each text unit in the passage to be tested, and then based on the semantic representation of the stem, selects a model essay that meets the key points of the answer specified in the stem from the answer bank, obtains the semantic representation of the model essay, and determines the text unit belonging to the key points of the passage based on the similarity between each text unit in the passage to be tested and the semantic representation of the model essay. The present application considers not only the information of the passage to be tested itself, but also the stem information, selects the model essay based on the stem, and determines the text unit belonging to the key points of the passage with reference to the model essay, so that the key point detection result is more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of natural language processing, and more specifically, to a method, device, equipment and storage medium for detecting key points of a passage. Background Art

[0002] The main points of a text represent the main content and central idea of ​​the text. They are the focus and hot topic of current text linguistics and discourse analysis research and have a wide range of applications. For example, they can be used in question-answering, chatbots, Chinese-English composition evaluation and other fields.

[0003] With the development and maturity of artificial intelligence technology, a new generation of educational informatization upgrade exploration has gradually been carried out in the traditional field of education. At the current basic education stage in China, the main form of examining students' learning status is still various types of examinations. Under this circumstance, teachers are under great pressure to correct essays, especially the correction of Chinese and English essays, which takes up a lot of teachers' time and energy. Therefore, the use of computers to assist in evaluation can reduce the workload of manual review and improve the accuracy and objectivity of scoring, which is of great significance to the teaching process. Chapter key point detection can help teachers evaluate an essay more quickly and accurately, and can also be used for essay quality inspection. For example, if there are no key points that meet the meaning of the question, it is likely to be an off-topic essay. It can be seen that the existing technology urgently needs a solution that can accurately detect the key points of an essay. Summary of the invention

[0004] In view of the above problems, this application is proposed to provide a method, device, equipment and storage medium for detecting the key points of a passage, so as to achieve the purpose of accurately detecting the key points of a passage. The specific scheme is as follows:

[0005] A method for detecting key points of a passage, comprising:

[0006] Obtaining the semantic representation of the question stem corresponding to the passage to be tested, and the semantic representation of each text unit in the passage to be tested;

[0007] Based on the semantic representation of the question stem, selecting a model essay that meets the key points of answering the question stem from the answer bank corresponding to the question stem;

[0008] The semantic representation of the model article is obtained, and based on the similarity between each text unit in the article to be tested and the semantic representation of the model article, the text units belonging to the main points of the article in the article to be tested are determined.

[0009] Preferably, the step of obtaining the semantic representation of the question stem corresponding to the passage to be tested includes:

[0010] Determine a sentence feature vector for each sentence in the question stem;

[0011] Performing an attention operation on the sentence feature vectors between the sentences in the question stem to obtain an attention score for each sentence;

[0012] Based on the sentence feature vector of each sentence in the question stem and its attention score, a context representation vector of the question stem is determined as the semantic representation of the question stem.

[0013] Preferably, determining the sentence feature vector of each sentence in the question stem includes:

[0014] Segment each sentence in the question stem to obtain a segmentation result for each sentence;

[0015] Determine the word embedding vector of each word in each sentence, and determine the sentence feature vector of the corresponding sentence based on the word embedding vector of each word.

[0016] Preferably, the selecting, based on the semantic representation of the question stem, from the answer bank corresponding to the question stem, a model essay that meets the key points of answering the question stem includes:

[0017] For each answer passage in the answer library, determining a sentence feature vector of each sentence in the answer passage;

[0018] Based on the sentence feature vector of each sentence in the answer passage and the semantic representation of the question stem, determining the degree of relevance of each sentence to the answer key points specified in the question stem;

[0019] Select target sentences in the answering passage whose relevance meets the set relevance condition, and form a set of key sentences corresponding to the answering passage from the target sentences;

[0020] Based on the size of the key sentence set corresponding to each answer chapter in the answer bank and the set model essay selection strategy, the key sentence set corresponding to the target answer chapter is selected to form a model essay.

[0021] Preferably, the determining the relevance of each sentence to the key points of the answer specified in the question stem based on the sentence feature vector of each sentence in the answer passage and the semantic representation of the question stem comprises:

[0022] Attention operations are performed on the semantic representation of the question stem and the sentence feature vectors of each sentence in the answer passage to obtain an attention score of each sentence in the answer passage relative to the question stem, which serves as the degree of association between the sentence and the answer points specified in the question stem.

[0023] Preferably, the process of determining the degree of relevance of each sentence to the key points of answering the question specified in the question stem further includes:

[0024] Performing an attention operation on the sentence feature vectors between sentences in the answer passage to obtain an intra-passage attention score for each sentence;

[0025] The in-chapter attention score of each sentence in the answer passage is added to the attention score relative to the question stem to obtain the total attention score of each sentence, which serves as the degree of relevance between the sentence and the answer points specified in the question stem.

[0026] Preferably, the obtaining of the semantic representation of the model essay includes:

[0027] Based on the sentence feature vector of each target sentence in the model essay and the degree of association with the answer key points specified in the question stem, the context representation vector of the model essay is determined as the semantic representation of the model essay.

[0028] Preferably, there are multiple model essays;

[0029] The step of determining the text units in the passage to be tested that belong to the passage key points based on the similarity between each text unit in the passage to be tested and the semantic representation of the model passage comprises:

[0030] For each text unit, determine the number of similarities between its semantic representation and that of each model text that exceeds a set similarity threshold;

[0031] Based on the number of similarity units exceeding a set similarity threshold and the number of model articles, it is determined whether the text unit belongs to the main point of the article according to a set voting strategy.

[0032] Preferably, it also includes:

[0033] For a text unit determined to belong to the main point of the passage, the confidence level that the text unit belongs to the main point of the passage is determined based on the similarity between the semantic representation of the text unit and each model text.

[0034] A device for detecting key points of a passage, comprising:

[0035] A semantic representation acquisition unit, used to acquire the semantic representation of the question stem corresponding to the passage to be tested, and the semantic representation of each text unit in the passage to be tested;

[0036] A model essay selection unit, configured to select a model essay that meets the key points of answering the question specified in the question stem from the answer bank corresponding to the question stem based on the semantic representation of the question stem;

[0037] The chapter key point determination unit is used to obtain the semantic representation of the model article and determine the text units belonging to the chapter key points in the chapter to be tested based on the similarity between each text unit in the chapter to be tested and the semantic representation of the model article.

[0038] A device for detecting key points of a passage, comprising: a memory and a processor;

[0039] The memory is used to store programs;

[0040] The processor is used to execute the program to implement the various steps of the method for detecting key points of a passage as described above.

[0041] A storage medium stores a computer program, which, when executed by a processor, implements the various steps of the above-mentioned method for detecting key points of a passage.

[0042] By means of the above technical scheme, the chapter key point detection method of the present application considers the question stem information corresponding to the chapter to be tested and the answer bank corresponding to the question stem when detecting the key points of the chapter to be tested, wherein the question stem clarifies the key points that the chapter should express, and the answer bank can provide rich auxiliary information. On this basis, the present application obtains the semantic representation of the question stem and the semantic representation of each text unit in the chapter to be tested, and then based on the semantic representation of the question stem, selects a model essay that meets the answer key points specified in the question stem from the answer bank, obtains the semantic representation of the model essay, and determines the text unit belonging to the chapter key points based on the similarity between each text unit in the chapter to be tested and the semantic representation of the model essay. It can be seen that the present application not only considers the information of the chapter to be tested itself, but also further considers the question stem information, selects the model essay from the answer bank based on the semantic representation of the question stem, and then determines the text unit belonging to the chapter key points with reference to the model essay, so that the key point detection result is more accurate. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0044] Figure 1 A schematic diagram of a chapter key point detection process provided in an embodiment of the present application;

[0045] Figure 2a This is an example of a question stem diagram for an English composition;

[0046] Figure 2b An example of a schematic diagram of English composition is given;

[0047] Figure 3 A flow chart of a method for detecting the state of key points of a chapter provided in an embodiment of the present application;

[0048] Figure 4 A schematic diagram of a process for determining the semantic representation of a question stem provided in an embodiment of the present application;

[0049] Figure 5 A schematic diagram of a flow chart for determining the semantic representation of a question-answering passage provided in an embodiment of the present application;

[0050] Figure 6 A schematic diagram of the structure of a device for detecting key points of a passage provided in an embodiment of the present application;

[0051] Figure 7 A schematic diagram of the structure of a device for detecting key points of a passage provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0053] The present application provides a solution for detecting the main points of a passage, which can accurately detect text units, such as sentences or phrases, that belong to the main points of the passage in the passage to be tested.

[0054] The present application solution can be implemented based on a terminal with data processing capabilities, which can be a mobile phone, computer, server, cloud, etc.

[0055] First, combine Figure 1 The example passage key point detection process provides an overall description of the passage key point detection solution of this application.

[0056] This application scheme can be applied to scenarios where passage key points detection is required, such as passage key points detection of essays written by students.

[0057] The chapters that need to be tested for key points are defined as the chapters to be tested. It is understandable that the chapters to be tested can be completed based on the corresponding question stem, which specifies the information on the key points of answering the questions. At the same time, there can also be a corresponding answer bank based on the question stem, which contains several other answer chapters in addition to the chapter to be tested, and these answer chapters are also completed based on the question stem. Taking the exam scenario as an example, for a given question stem, different students can complete different answer chapters, and these answer chapters can be put into the answer bank.

[0058] like Figure 2a and 2b As shown, taking English composition as an example, Figure 2a An example of an English composition topic is provided, which specifies the key information of the composition. Figure 2b The corresponding English composition is given as an example, which can be used as a test passage or as an answer passage in the answer bank.

[0059] The article key point detection scheme of the present application obtains the semantic representation of the question stem corresponding to the article to be tested. Furthermore, based on the semantic representation of the question stem, a model essay that meets the answer key points specified in the question stem can be selected from the answer database. And the semantic representation of the model essay is further obtained.

[0060] For the passage to be tested, the semantic representation of each text unit in the passage to be tested can be obtained based on the text unit, wherein the text unit can be a sentence, a word, a phrase or other units.

[0061] Since the model essay meets the key points of answering the question specified in the question stem, the model essay can be used as a reference to calculate the similarity between the semantic representation of the model essay and the semantic representation of each text unit in the passage to be tested. Based on the similarity calculation results, text units with high similarity to the model essay can be screened out, and it is considered that these text units belong to the key points of the passage, that is, the key point detection result of the passage to be tested is obtained.

[0062] It can be seen that the passage key point detection scheme of the present application takes into account the question stem information corresponding to the passage to be tested and the answer bank corresponding to the question stem when detecting the key points of the passage to be tested. The question stem clarifies the key points that the passage should express, and the answer bank can provide rich auxiliary information, making the passage key point detection results more accurate.

[0063] Next, combine Figure 3 The method for detecting the status of the key points of the article of the present application may include the following steps:

[0064] Step S100, obtaining the semantic representation of the question stem corresponding to the passage to be tested, and the semantic representation of each text unit in the passage to be tested.

[0065] Specifically, the passage to be tested can be completed based on the corresponding question stem, which specifies the information of the key points of answering the question. In this step, the semantic representation of the question stem and the semantic representation of each text unit in the passage to be tested are obtained. Among them, the text unit can be a sentence, a word, or a phrase. The semantic representation can reflect the semantic representation characteristics of the corresponding question stem or text unit.

[0066] Further optionally, the semantic representation in this embodiment can also incorporate paragraph structure information, such as the semantic representation of the question stem can include the semantic representation features of the question stem and the position information of each sentence in the question stem. Correspondingly, the semantic representation of each text unit in the passage to be tested can include the semantic representation features of the text unit and the position information of the text unit in the passage to be tested.

[0067] There is a certain regularity in the distribution of the key points of a passage, such as being generally distributed at the beginning of each paragraph. Therefore, in this embodiment, by incorporating paragraph structure information into the semantic representation, the semantic representation information of the text units in the question stem and the passage to be tested is enriched, thereby facilitating a more accurate detection of the key points in the subsequent process.

[0068] Step S110: Based on the semantic representation of the question stem, select a model essay that meets the key points of answering the question stem from the answer bank corresponding to the question stem.

[0069] It is understandable that there may be a corresponding answer bank based on the question stem, and the answer bank may contain several other answer chapters besides the chapter to be tested, and these answer chapters are also completed based on the question stem.

[0070] There can be multiple answer passages in the answer bank, some of which contain all the answer points specified in the question stem, while some may not contain or only contain some of the answer points. Since the question stem specifies the information of the answer points, in this step, the semantic representation of the question stem can be referred to to select the model passages from the answer bank that meet the answer points specified in the question stem.

[0071] Step S120: Acquire the semantic representation of the model article, and determine the text units in the article to be tested that belong to the main points of the article based on the similarity between each text unit in the article to be tested and the semantic representation of the model article.

[0072] Specifically, for the obtained model essay, its semantic representation is further obtained in this step, and then the similarity between the semantic representation of the model essay and the semantic representation of each text unit in the test passage can be calculated. It can be understood that the higher the similarity of the text unit, the higher the similarity between it and the model essay, that is, the higher the probability that it belongs to the key points of the passage. Therefore, in this step, based on the similarity between each text unit and the semantic representation of the model essay, the text unit belonging to the key points of the test passage can be determined, that is, the key point detection result of the test passage can be obtained.

[0073] When the key point detection method provided by the embodiment of the present application performs key point detection on the to-be-detected passage, it considers the question information corresponding to the to-be-detected passage and the answer database corresponding to the question. Among them, the question clarifies the key points that the passage should express, and the answer database can provide rich auxiliary information. On this basis, the present application obtains the semantic representation of the question and the semantic representation of each text unit in the to-be-detected passage. Then, based on the semantic representation of the question, model essays that meet the requirements of the question are selected from the answer database, the semantic representation of the model essays is obtained, and based on the similarity between the semantic representation of each text unit in the to-be-detected passage and the semantic representation of the model essays, the text units belonging to the key points of the passage are determined. It can be seen that the present application not only considers the information of the to-be-detected passage itself, but also further considers the question information. Model essays are screened from the answer database based on the semantic representation of the question, and then the text units belonging to the key points of the passage are determined with reference to the model essays, making the key point detection result more accurate.

[0074] Further, the process of obtaining the semantic representation of the question corresponding to the to-be-detected passage in step S100 is introduced. An optional implementation manner is provided in this embodiment as follows:

[0075] S1. Determine the sentence feature vector of each sentence in the question.

[0076] It can be understood that the question can be composed of several sentences. In this step, for each sentence that makes up the question, its sentence feature vector is determined. The sentence feature vector can represent the semantic representation characteristics of the sentence.

[0077] Among them, the process of determining the sentence feature vector may include:

[0078] S11. Segment each sentence in the question to obtain the segmentation result of each sentence.

[0079] When segmenting the sentences in the question, a segmentation tool can be used for segmentation. For example, for a question in English form, the CoreNLP segmentation tool developed by Stanford University can be used to split the sentences in the question into words, and at the same time, the sentence and paragraph information to which the words belong can be retained. For a question in Chinese form, the Jieba segmentation tool in Chinese can be used to split the sentences in the question into words.

[0080] Optionally, after segmentation, data cleaning can be performed, including: filtering stop words; removing words without discrimination such as "de" (的), "le" (了), etc.; filtering out-of-vocabulary words, etc. After the segmentation result of each sentence undergoes data cleaning, the final segmentation result of the sentence is obtained.

[0081] Combined with Figure 4 The flow chart of an example for determining the semantic representation of the question. After the question is segmented, the segmentation result of each sentence can be obtained. Figure 4The example in the figure shows that the question stem contains three sentences S0-S2, and the participles contained in each sentence can be represented as W0-Wn.

[0082] S12. Determine the word embedding vector of each word in each sentence, and determine the sentence feature vector of the corresponding sentence based on the word embedding vector of each word.

[0083] Specifically, the word embedding vector determination module of the model can be used to obtain the word embedding vector word embedding of each word in the sentence.

[0084] like Figure 4 As shown in , for word segments W0-Wn, the corresponding word embedding vectors are represented as H0-Hn respectively.

[0085] After determining the word embedding vector of each word in each sentence, the sentence feature vector of the corresponding sentence can be determined based on the word embedding vector of each word. For example, the word embedding vector of each word in each sentence is sent to the BiLSTM network, and the BiLSTM network extracts the hidden layer feature H_forward corresponding to the last word in the forward calculation and the hidden layer feature H_backward corresponding to the first word in the reverse calculation, and then the feature vector obtained by concatenating H_forward and H_backward is the sentence feature vector corresponding to the sentence.

[0086] like Figure 4 As shown in the figure, after the word embedding vectors of the word segments contained in sentences S0-S1 are sent to the BiLSTM network, the sentence feature vectors corresponding to sentences S0-S1 are obtained: SV0-SV2.

[0087] S2. Perform an attention operation on the sentence feature vectors between the sentences in the question stem to obtain an attention score for each sentence.

[0088] like Figure 4 As shown in the figure, by performing BiAttention on the sentence feature vectors between the sentences in the question stem, that is, each sentence is subjected to an attention operation with the sentence feature vectors of all other sentences, the attention score of each sentence is obtained.

[0089] The attention score of each sentence can be understood as the importance of the sentence. If all the sentences in the question are closely related to the current sentence, the attention score of the current sentence will be very high.

[0090] By calculating the attention score of each sentence, we can pay attention to the degree of relevance of other sentences in the question stem to the current sentence, that is, the importance of the current sentence in the entire question stem.

[0091] like Figure 4As shown, SV0 performs attention operation with SV1 and SV2 to obtain the corresponding attention score C0. Similarly, SV1 obtains the corresponding attention score C1, and SV2 obtains the corresponding attention score C2.

[0092] S3. Based on the sentence feature vector and attention score of each sentence in the question stem, determine the context representation vector of the question stem as the semantic representation of the question stem.

[0093] Specifically, the attention score of the sentence can be used as the weight, and the sentence feature vectors of each sentence in the question stem can be weighted added, and the result can be used as the context representation vector of the question stem.

[0094] like Figure 4 As shown, the stem context vector is equal to:

[0095] SV0*C0+SV1*C1+SV2*C2

[0096] In the context representation vector of the question stem determined based on the method of this embodiment, the importance of each sentence in the question stem is taken into consideration. The more important the sentence, the greater the impact on the context representation vector of the question stem. Conversely, the less important the sentence, the smaller the impact on the context representation vector of the question stem.

[0097] Furthermore, in the above step S100, the process of obtaining the semantic representation of each text unit in the passage to be tested can refer to the process of determining the sentence feature vector of each sentence in the question stem in the above step S1. That is, each text unit in the passage to be tested can be segmented to determine the word embedding vector, and based on the word embedding vector of each segmented word in the text unit, the feature vector of the text unit can be determined as the semantic representation of the text unit.

[0098] In another embodiment of the present application, the process of selecting a model essay that meets the key points of answering the question specified in the question stem from the answer bank corresponding to the question stem in the above step S110 is introduced.

[0099] In an optional implementation manner, the step may include:

[0100] S1. For each answer passage in the answer library, determine the sentence feature vector of each sentence in the answer passage.

[0101] Among them, the process of determining the sentence feature vector of the sentence in the answer passage can refer to the process of determining the sentence feature vector of each sentence in the question stem in the previous article. The determination methods of the two are the same and will not be repeated here.

[0102] In order to distinguish the sentence feature vector SV of each sentence in the question stem, in this embodiment, the sentence feature vector of each sentence in the answer passage is represented as CV. Taking the answer passage containing 8 sentences as an example, the corresponding sentence feature vectors are represented as: CV1-CV8.

[0103] S2. Based on the sentence feature vector of each sentence in the answer passage and the semantic representation of the question stem, determine the degree of association between each sentence and the answer key points specified in the question stem.

[0104] Specifically, the sentence feature vector of each sentence in the answer passage and the semantic representation of the question stem have been determined in the previous article. Among them, the sentence feature vector represents the information contained in the corresponding sentence, and the semantic representation of the question stem contains the information of the answer points specified in the question stem. Therefore, based on the sentence feature vector of the sentence and the semantic representation of the question stem, the degree of relevance of each sentence to the answer points specified in the question stem can be determined.

[0105] In an optional implementation, the semantic representation of the question stem can be respectively subjected to attention operations with the sentence feature vectors of each sentence in the answer passage to obtain an attention score of each sentence in the answer passage relative to the question stem, as the degree of association between the sentence and the answer points specified in the question stem.

[0106] Specifically, by performing attention operations on the semantic representation of the question stem and the sentence feature vectors of each sentence in the answer passage, an attention score of each sentence relative to the question stem is obtained, which is used to measure the closeness of each sentence to the question stem. It can be understood that the higher the attention score, the closer it is to the question stem.

[0107] Furthermore, since the question stem specifies the information of the key points of the answer, the attention score can be used as the degree of relevance between the sentence and the key points of the answer specified in the question stem.

[0108] In another optional implementation, based on the above calculation of the attention score of each sentence relative to the question stem, the correlation information between sentences within the passage is further considered, and the sentence feature vectors between sentences in the answer passage are subjected to attention operation to obtain the intra-passage attention score of each sentence. The intra-passage attention score can focus on the degree of correlation between other sentences in the answer passage and the current sentence, that is, the importance of the current sentence in the entire answer passage.

[0109] On this basis, the in-chapter attention score of each sentence in the answer passage is added to the attention score relative to the question stem to obtain the total attention score of each sentence, which serves as the degree of relevance between the sentence and the answer points specified in the question stem.

[0110] S3. Select target sentences in the answering passage whose relevance meets the set relevance condition, and form a set of key sentences corresponding to the answering passage with the target sentences.

[0111] Specifically, taking the attention score of the sentence in the answer passage introduced above (which can be the attention score of the sentence relative to the question stem, or the total attention score of the sentence) as an example of the degree of correlation between the sentence and the answer points specified in the question stem, the attention score threshold can be set in advance. For the target sentences in the answer passage whose attention scores exceed the attention score threshold, the target sentences will constitute the key point sentence set corresponding to the answer passage.

[0112] It can be understood that for each answer chapter in the answer bank, a corresponding set of key sentences can be determined.

[0113] S4. Based on the size of the key sentence set corresponding to each answer chapter in the answer database and the set model essay selection strategy, a set of key sentence sets corresponding to the target answer chapter is selected to form a model essay.

[0114] It is understandable that the size of the key sentence sets corresponding to different answer passages may be different, that is, the number of target sentences contained in different key sentence sets may be different. The present application can pre-set a model essay selection strategy, such as selecting a key sentence set whose size exceeds a set value, or sorting the key sentence sets by size and selecting the topK key sentence sets, etc.

[0115] Based on this, for each set of key sentences selected, each set of key sentences constitutes a model essay.

[0116] According to the method of determining the model essay introduced in the above embodiment, it can be known that the model essay determined in this embodiment does not take a certain answer passage in the answer library as a whole as the model essay, but rather denoises the answer passage and retains only a set of key sentences therein. The set of key sentences that meet the conditions is used as the model essay, which makes the model essay more accurate. Furthermore, when the key points of the passage to be tested are determined based on the model essay, the key point detection will be more accurate.

[0117] Furthermore, the process of obtaining the semantic representation of the model article in the above step S120 is introduced.

[0118] According to the introduction of the above embodiments, the model essay determined by this application is composed of a set of key sentences, which contains several target sentences, and each target sentence has a corresponding sentence feature vector. In addition, the degree of association between each target sentence and the key points of the answer specified in the question stem is further determined, such as the attention score (which can be the attention score of the target sentence relative to the question stem, or the total attention score of the target sentence).

[0119] Based on this, in this embodiment, the context representation vector of the model essay can be determined according to the sentence feature vector of each target sentence in the model essay and the degree of association between each target sentence and the answer points specified in the question stem, as the semantic representation of the model essay.

[0120] Based on the sentence feature vector of each target sentence in the model essay and the degree of association with the answer key points specified in the question stem, the context representation vector of the model essay is determined as the semantic representation of the model essay.

[0121] Specifically, the relevance degree between each target sentence and the answer key points specified in the question stem may be used as a weight, and the sentence feature vectors of each target sentence in the model essay may be weightedly added, and the result may be used as the context representation vector of the model essay.

[0122] The following is an explanation using a specific example.

[0123] by Figure 2b The sample composition is explained as an answer passage, which contains a total of 9 sentences: S0-S8.

[0124] See also Figure 5 , which illustrates a flowchart for determining the semantic representation of an answer passage.

[0125] according to Figure 5 In the example, the words S0-S8 are segmented respectively, and the segmentation results are represented as W0-Wn. The word embedding vector H0-Hn of each segmentation is determined.

[0126] The word embedding vectors of each word in each sentence in S0-S8 are passed through the BiLSTM network to obtain the sentence feature vectors CV0-CV8 of each sentence.

[0127] An attention operation BiAttention is performed on the sentence feature vectors between sentences in the answer passage, that is, each sentence is subjected to an attention operation with the sentence feature vectors of all other sentences, and the in-passage attention scores A0-A8 of each sentence in S0-S8 are obtained.

[0128] At the same time, the context representation vector stem context vector of the question stem determined in the above embodiment, here the stem context vector is respectively subjected to attention operation with CV0-CV8 to obtain the attention score C0-C8 of each sentence relative to the question stem.

[0129] So far, we have obtained the in-text attention scores A0-A8 for each sentence in S0-S8, as well as the attention scores C0-C8 relative to the question stem.

[0130] Add the in-text attention score of each sentence in S0-S8 to the attention score relative to the question stem to obtain the total attention score F0-F8 for each sentence.

[0131] In this embodiment, an attention score threshold may be pre-set, and then the total attention score of each sentence is compared with the attention score threshold to determine whether each sentence is a key point sentence.

[0132] For the convenience of calculation, in this embodiment, the total attention score F0-F8 of each sentence can be normalized. Assume that the normalized result is as shown in Table 1 below:

[0133]

[0134] Table 1

[0135] As shown in Table 1, the total attention scores of the four sentences S1, S3, S5, and S7 exceed the threshold, so they can be used as key sentences. The answer passage contains a total of four key sentences. These four sentences constitute a model essay.

[0136] Furthermore, in order to determine the semantic representation of the model article, the total attention scores of the four key sentences mentioned above can be used as weights, and the sentence feature vectors CV of the four key sentences can be weighted added together, and the result is used as the semantic representation of the model article, Chapter context vector:

[0137] CV1*F1+CV3*F3+CV5*F5+CV7*F7.

[0138] In another embodiment of the present application, the process of determining the text units belonging to the main points of the test article in the above step S120 based on the similarity between each text unit in the test article and the semantic representation of the model article is introduced.

[0139] In the above embodiment, after obtaining the semantic representation of each text unit in the test chapter and the semantic representation of the model essay, the similarity between the semantic representations of each text unit and the model essay can be calculated to obtain a similarity calculation result.

[0140] It should be noted that there may be multiple model essays, and the similarity between each text unit and each model essay can be calculated separately to obtain the similarity between each text unit and each model essay.

[0141] Furthermore, based on the similarity calculation results, it is determined whether each text unit belongs to the main point of the article.

[0142] An optional method is to determine, for each text unit, whether the similarity between the text unit and the semantic representation of each model text exceeds a set similarity threshold. If so, the corresponding text unit is considered to belong to the main point of the article.

[0143] Considering the problem of error, in order to make the detection of the main points of the passage more accurate, in this embodiment, another method can be used to detect the main points of the passage, that is, a voting method, as follows:

[0144] For each text unit, the number of similarities between it and the semantic representation of each model text that exceeds a set similarity threshold is determined.

[0145] Based on the number of similarity units exceeding a set similarity threshold and the number of model articles, it is determined whether the text unit belongs to the main point of the article according to a set voting strategy.

[0146] If the voting strategy is set so that the number of texts exceeding the set similarity threshold accounts for more than half of the number of model texts, the voting is considered successful, that is, the corresponding text unit is considered to belong to the main point of the article. Otherwise, the voting is considered to have failed, and the corresponding text unit does not belong to the main point of the article.

[0147] Further optionally, for the text unit determined to be a key point of the passage, the text unit may be highlighted in the passage to be tested so as to be intuitively displayed to the user.

[0148] Further optionally, for a text unit determined to belong to a passage main point, the present embodiment may further determine the confidence that the text unit belongs to a passage main point based on the similarity between the semantic representation of the text unit and each model text.

[0149] For example, the average value of the similarity between the text unit and the semantic representation of each model article is taken as the confidence that the text unit belongs to the main point of the article.

[0150] The following is a description of a device for detecting key points of a passage provided in an embodiment of the present application. The device for detecting key points of a passage described below and the method for detecting key points of a passage described above can be referred to in correspondence with each other.

[0151] See also Figure 6 , Figure 6 This is a schematic diagram of the structure of a device for detecting key points of a passage disclosed in an embodiment of the present application.

[0152] like Figure 6 As shown, the device may include:

[0153] A semantic representation acquisition unit 11 is used to acquire the semantic representation of the question stem corresponding to the passage to be tested, and the semantic representation of each text unit in the passage to be tested;

[0154] A model essay selection unit 12, configured to select a model essay that meets the key points of answering the question specified in the question stem from the answer bank corresponding to the question stem based on the semantic representation of the question stem;

[0155] The chapter key point determination unit 13 is used to obtain the semantic representation of the model article, and determine the text units belonging to the chapter key points in the chapter to be tested based on the similarity between each text unit in the chapter to be tested and the semantic representation of the model article.

[0156] Optionally, the process of the semantic representation acquisition unit acquiring the semantic representation of the question stem corresponding to the passage to be tested may include:

[0157] Determine a sentence feature vector for each sentence in the question stem;

[0158] Performing an attention operation on the sentence feature vectors between the sentences in the question stem to obtain an attention score for each sentence;

[0159] Based on the sentence feature vector of each sentence in the question stem and its attention score, a context representation vector of the question stem is determined as the semantic representation of the question stem.

[0160] Optionally, the process of the semantic representation acquisition unit determining the sentence feature vector of each sentence in the question stem may include:

[0161] Segment each sentence in the question stem to obtain a segmentation result for each sentence;

[0162] Determine the word embedding vector of each word in each sentence, and determine the sentence feature vector of the corresponding sentence based on the word embedding vector of each word.

[0163] Optionally, the process of the model essay selection unit selecting a model essay that meets the key points of answering the question specified in the question stem from the answer bank corresponding to the question stem based on the semantic representation of the question stem may include:

[0164] For each answer passage in the answer library, determining a sentence feature vector of each sentence in the answer passage;

[0165] Based on the sentence feature vector of each sentence in the answer passage and the semantic representation of the question stem, determine the degree of relevance of each sentence to the answer key points specified in the question stem;

[0166] Select target sentences in the answering passage whose relevance meets the set relevance condition, and form a set of key sentences corresponding to the answering passage from the target sentences;

[0167] Based on the size of the key sentence set corresponding to each answer chapter in the answer bank and the set model essay selection strategy, the key sentence set corresponding to the target answer chapter is selected to form a model essay.

[0168] Optionally, the process of determining the degree of association between each sentence and the key points of the answer specified in the question stem based on the sentence feature vector of each sentence in the answer passage and the semantic representation of the question stem by the model essay selection unit may include:

[0169] Attention operations are performed on the semantic representation of the question stem and the sentence feature vectors of each sentence in the answer passage to obtain an attention score of each sentence in the answer passage relative to the question stem, which serves as the degree of association between the sentence and the answer points specified in the question stem.

[0170] Optionally, the process of determining the degree of association between each sentence and the key points of the answer specified in the question stem based on the sentence feature vector of each sentence in the answer passage and the semantic representation of the question stem by the model essay selection unit may further include:

[0171] Performing an attention operation on the sentence feature vectors between sentences in the answer passage to obtain an intra-passage attention score for each sentence;

[0172] The in-chapter attention score of each sentence in the answer passage is added to the attention score relative to the question stem to obtain the total attention score of each sentence, which serves as the degree of relevance between the sentence and the answer points specified in the question stem.

[0173] Optionally, the process of obtaining the semantic representation of the model article by the article key point determination unit may include:

[0174] Based on the sentence feature vector of each target sentence in the model essay and the degree of association with the answer key points specified in the question stem, the context representation vector of the model essay is determined as the semantic representation of the model essay.

[0175] Optionally, there may be multiple model essays; then the process of the above-mentioned chapter key point determination unit determining the text unit belonging to the chapter key point in the chapter to be tested based on the similarity between each text unit in the chapter to be tested and the semantic representation of the model essay may include:

[0176] For each text unit, determine the number of similarities between its semantic representation and that of each model text that exceeds a set similarity threshold;

[0177] Based on the number of similarity units exceeding a set similarity threshold and the number of model articles, it is determined whether the text unit belongs to the main point of the article according to a set voting strategy.

[0178] Further optionally, the process of the passage key point determination unit determining the text units in the passage to be tested that belong to the passage key points based on the similarity between each text unit in the passage to be tested and the semantic representation of the model text may also include:

[0179] For a text unit determined to belong to the main point of the passage, the confidence level that the text unit belongs to the main point of the passage is determined based on the similarity between the semantic representation of the text unit and each model text.

[0180] The article key point detection device provided in the embodiment of the present application can be applied to article key point detection equipment, such as terminals: mobile phones, computers, etc. Optionally, Figure 7 The hardware structure diagram of the key point detection device is shown in FIG. Figure 7 ,The hardware structure of the article key point detection device may include: at least one processor 1, at least one communication interface 2, at least one memory 3 and at least one communication bus 4;

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

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

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

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

[0185] Obtaining the semantic representation of the question stem corresponding to the passage to be tested, and the semantic representation of each text unit in the passage to be tested;

[0186] Based on the semantic representation of the question stem, selecting a model essay that meets the key points of answering the question stem from the answer bank corresponding to the question stem;

[0187] The semantic representation of the model article is obtained, and based on the similarity between each text unit in the article to be tested and the semantic representation of the model article, the text units belonging to the main points of the article in the article to be tested are determined.

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

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

[0190] Obtaining the semantic representation of the question stem corresponding to the passage to be tested, and the semantic representation of each text unit in the passage to be tested;

[0191] Based on the semantic representation of the question stem, selecting a model essay that meets the key points of answering the question stem from the answer bank corresponding to the question stem;

[0192] The semantic representation of the model article is obtained, and based on the similarity between each text unit in the article to be tested and the semantic representation of the model article, the text units belonging to the main points of the article in the article to be tested are determined.

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

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

[0195] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can refer to each other.

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

Claims

1. A method for detecting key points of a passage, characterized in that: include: Obtaining the semantic representation of the question stem corresponding to the passage to be tested, and the semantic representation of each text unit in the passage to be tested; Based on the semantic representation of the question stem, selecting a model essay that meets the key points of answering the question stem from the answer bank corresponding to the question stem; Acquire the semantic representation of the model article, and determine the text units in the article to be tested that belong to the main points of the article based on the similarity between each text unit in the article to be tested and the semantic representation of the model article; The selecting, based on the semantic representation of the question stem, a model essay that meets the key points of answering the question stem from the answer bank corresponding to the question stem comprises: For each answer chapter in the answer bank: Determine the sentence feature vector of each sentence in the answering passage; determine the relevance of each sentence to the answering key points specified in the question stem based on the sentence feature vector of each sentence in the answering passage and the semantic representation of the question stem; select target sentences in the answering passage whose relevance meets the set relevance condition, and form a set of key point sentences corresponding to the answering passage with the target sentences; Based on the size of the key sentence set corresponding to each answer chapter in the answer database and the set model essay selection strategy, the key sentence set corresponding to the target answer chapter is selected to form a model essay, and each key sentence set constitutes a model essay.

2. The method according to claim 1, characterized in that The step of obtaining the semantic representation of the question stem corresponding to the passage to be tested includes: Determine a sentence feature vector for each sentence in the question stem; Performing an attention operation on the sentence feature vectors between the sentences in the question stem to obtain an attention score for each sentence; Based on the sentence feature vector of each sentence in the question stem and its attention score, a context representation vector of the question stem is determined as the semantic representation of the question stem.

3. The method according to claim 2, characterized in that The step of determining the sentence feature vector of each sentence in the question stem includes: Segment each sentence in the question stem to obtain a segmentation result for each sentence; Determine the word embedding vector of each word in each sentence, and determine the sentence feature vector of the corresponding sentence based on the word embedding vector of each word.

4. The method according to claim 1, characterized in that The step of determining the relevance of each sentence to the key points of the answering question specified in the question stem based on the sentence feature vector of each sentence in the answering passage and the semantic representation of the question stem comprises: Attention operations are performed on the semantic representation of the question stem and the sentence feature vectors of each sentence in the answer passage to obtain an attention score of each sentence in the answer passage relative to the question stem, which serves as the degree of association between the sentence and the answer points specified in the question stem.

5. The method according to claim 4, characterized in that The process of determining the degree of relevance of each sentence to the key points of the answer specified in the question stem also includes: Performing an attention operation on the sentence feature vectors between sentences in the answer passage to obtain an intra-passage attention score for each sentence; The in-chapter attention score of each sentence in the answer passage is added to the attention score relative to the question stem to obtain the total attention score of each sentence, which serves as the degree of relevance between the sentence and the answer points specified in the question stem.

6. The method according to claim 1, characterized in that The obtaining of the semantic representation of the model text comprises: Based on the sentence feature vector of each target sentence in the model essay and the degree of association with the answer key points specified in the question stem, the context representation vector of the model essay is determined as the semantic representation of the model essay.

7. The method according to claim 1, characterized in that The model essays are multiple; The step of determining the text units in the passage to be tested that belong to the passage key points based on the similarity between each text unit in the passage to be tested and the semantic representation of the model passage comprises: For each text unit, determine the number of similarities between its semantic representation and that of each model text that exceeds a set similarity threshold; Based on the number of similarity units exceeding a set similarity threshold and the number of model articles, it is determined whether the text unit belongs to the main point of the article according to a set voting strategy.

8. The method according to claim 7, characterized in that Also includes: For a text unit determined to belong to the main point of the passage, the confidence level that the text unit belongs to the main point of the passage is determined based on the similarity between the semantic representation of the text unit and each model text.

9. A device for detecting key points of a passage, characterized in that: include: A semantic representation acquisition unit, used to acquire the semantic representation of the question stem corresponding to the passage to be tested, and the semantic representation of each text unit in the passage to be tested; A model essay selection unit, configured to select a model essay that meets the key points of answering the question specified in the question stem from the answer bank corresponding to the question stem based on the semantic representation of the question stem; A chapter key point determination unit, used to obtain the semantic representation of the model article, and determine the text units in the chapter to be tested that belong to the chapter key points based on the similarity between each text unit in the chapter to be tested and the semantic representation of the model article; The process of the model essay selection unit selecting a model essay that meets the key points of answering the question specified in the question stem from the answer bank corresponding to the question stem based on the semantic representation of the question stem includes: For each answer chapter in the answer bank: Determine the sentence feature vector of each sentence in the answering passage; determine the relevance of each sentence to the answering key points specified in the question stem based on the sentence feature vector of each sentence in the answering passage and the semantic representation of the question stem; select target sentences in the answering passage whose relevance meets the set relevance condition, and form a set of key point sentences corresponding to the answering passage with the target sentences; Based on the size of the key sentence set corresponding to each answer chapter in the answer database and the set model essay selection strategy, the key sentence set corresponding to the target answer chapter is selected to form a model essay, and each key sentence set constitutes a model essay.

10. A device for detecting key points of a passage, characterized in that: include: Memory and processor; The memory is used to store programs; The processor is used to execute the program to implement the various steps of the chapter key point detection method as described in any one of claims 1 to 8.

11. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, each step of the method for detecting key points of a passage as described in any one of claims 1 to 8 is implemented.