A chapter-level multi-event extraction method based on argument subgraph prompt generation and guidance

By using a method based on argument subgraph prompt generation and guidance, and using the Longformer model for chapter-level text encoding and slot filling, the problems of neglecting chapter-level information and low accuracy of multi-event extraction in the existing technology are solved, and efficient multi-event extraction is achieved. The effect of event extraction and reducing data annotation burden.

CN114519344BActive Publication Date: 2024-09-10ZHEJIANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210087670.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-25
Publication Date
2024-09-10
Estimated Expiration
2042-01-25

AI Technical Summary

Technical Problem

Existing event extraction methods ignore chapter-level information, the accuracy of multi-event extraction is not high, and over-reliance on trigger words increases the burden of data annotation.

Method used

A chapter-level multi-event extraction method based on argument subgraph prompt generation and guidance is adopted, the Longformer model is used for chapter-level text encoding, event sketches are generated, and the extraction accuracy is improved through slot filling tasks, reducing dependence on trigger words.

Benefits of technology

It improves the completeness and accuracy of event extraction, reduces the burden of data set annotation, and achieves efficient multi-event extraction without trigger words.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114519344B
    Figure CN114519344B
Patent Text Reader

Abstract

The present invention discloses a method for extracting multiple events at the chapter level based on argument subgraph prompt generation and guidance. The present invention uses a chapter-level long text encoder to obtain complete text features, and can use chapter-level information and sentence-level information at the same time. The event sketch generated by multi-argument relationship extraction realizes the reference and positioning of multiple events, and the event slot filling is performed using a pre-trained model method based on the prompt pattern to realize the classification of arguments, thereby improving the accuracy of multiple event extraction. The method does not need to use trigger words, which reduces the annotation burden on the data set.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of natural language processing, and in particular to a chapter-level multi-event extraction method based on argument subgraph prompt generation and guidance. Background Art

[0002] With the rapid development of Internet technology, massive amounts of data are pouring into people's lives. In order to quickly process large-scale data and mine information with potential value in the data, people's demand for information extraction technology is growing. Event extraction is an important task in the field of information extraction. It aims to detect the occurrence of events from unstructured natural language texts, determine the type of events, extract important elements involved in the events, and present the results in a structured manner. Event extraction has a wide range of application value. On the one hand, event extraction can assist in providing structured multi-relation information, bringing performance improvements to machine reading comprehension and knowledge graph construction. On the other hand, event extraction can help people understand the operation process of events and assist in analysis and decision-making in practical application fields.

[0003] At present, most of the research on event extraction uses deep learning methods to model event extraction as a sequence labeling problem. First, the trigger word is extracted. If the trigger word is included, it is considered that an event has occurred. Then the argument is extracted from the text. Finally, it is determined whether there is a relationship between the trigger word and the argument, so as to determine whether the argument belongs to the event referred to by the trigger word. However, this method has the following disadvantages:

[0004] 1. Only focusing on sentence-level information, ignoring paragraph-level information. In actual scenarios, events have the characteristic of argument dispersion. The text describing an event in a document is usually distributed in multiple sentences. It is necessary to consider paragraph-level information to obtain complete extraction results.

[0005] 2. The accuracy of multi-event extraction is not high. In the actual field, there are often multiple events interlaced in a document. Existing methods rely on trigger words to refer to events to extract multiple events. However, the trigger words in real scenes are often difficult to judge. There are phenomena such as one event containing multiple trigger words, one trigger word corresponding to multiple event types, and no obvious trigger words. Therefore, the method that relies on trigger words will cause redundancy or omissions in the extraction results, resulting in poor multi-event extraction results.

[0006] 3. Over-reliance on trigger words brings burden to data annotation. Existing methods often use trigger words as a medium, but trigger words are only the intermediate results of event extraction and are not necessary. In addition, the annotation is very difficult, which increases the burden of manually constructing data sets.

[0007] In summary, existing technical solutions have shortcomings such as ignoring chapter-level information, low accuracy of multi-event extraction, and over-reliance on trigger words. Summary of the invention

[0008] In view of the defects of the above existing methods, the present invention proposes a novel chapter-level multi-event extraction method based on argument subgraph prompt generation and guidance. This method uses a chapter-level long text encoder, which can use both chapter-level information and sentence-level information. The event sketch generated by multi-argument relationship extraction realizes the reference and positioning of multiple events, and the event slot filling is performed based on the pre-trained model method of the prompt pattern to realize the classification of arguments, thereby improving the accuracy of multi-event extraction. This method does not need to use trigger words, which reduces the annotation burden on the data set.

[0009] The technical solution of the present invention is as follows:

[0010] A method for extracting multiple events at the chapter level based on argument subgraph prompt generation and guidance comprises the following steps:

[0011] S1: Extract candidate arguments from the input text;

[0012] S2: Extract event sketches contained in the input text;

[0013] S3: Construct argument subgraph prompts based on the event sketch, fill in event slots under the guidance of argument subgraph prompts, and form event records;

[0014] S4: Set the number of iterations, convert the event record obtained in S3 into a new event sketch, iteratively repeat the steps of S3 to obtain the corrected final event record.

[0015] As a preferred embodiment of the present invention, the step S1 comprises the following steps:

[0016] S11: During the training phase, the input event text is processed into an input form that conforms to the Longformer model and represented as a text sequence. Each element is labeled using the “BIO” notation;

[0017] S12: For the text sequence D input in S11, after being encoded by the encoder based on the Longformer pre-trained model, the intermediate vector HF is obtained:

[0018]

[0019] S13: The intermediate vector HF obtained in S12 is passed through the fully connected layer FC to obtain the final element representation vector ZF:

[0020]

[0021] S14: Calculate the output label l of each element through the softmax layeri The posterior probability P(l i |zf i ), where W s and b s are trainable parameters:

[0022] P(l i |zf i )=softmax(W s zf i +b s )

[0023] S15: Output the label category with the maximum probability for each element in the sequence

[0024]

[0025] S16: Parse the label sequence of the text sequence elements obtained in S15 with the "BIO" label to obtain all candidate argument instances contained in the document, merge the candidate argument instances through entity disambiguation and fusion, and associate them with the corresponding candidate argument entities. Each instance is called a mention of the candidate argument entity; the final candidate argument entity set is denoted as candidate argument entity. e i All mention instances of

[0026] As a preferred embodiment of the present invention, the step S2 comprises the following steps:

[0027] S21: Determine the relationship between candidate arguments, model the relationship judgment as a multi-label classification problem, and the relationship category is equal to the event category plus an additional "threshold category";

[0028] S22: Use all the candidate arguments and the relationships therein to construct a global candidate argument relationship graph; the global candidate argument relationship graph is represented as an undirected graph G = (V, E), where V represents a vertex set, Each point v i is the candidate argument that has been extracted; E represents the set of edges, each edge (v i ,v j )∈E,(i,j≤N e ,i≠j) represents v i With v j There is a relationship between them, and the type of relationship is R(v i ,v j );

[0029] S23: Extract subgraphs from the global argument relationship graph;

[0030] S24: Construct event sketches based on the extracted subgraphs. All obtained event sketches are represented as Each event sketch s i The event type is t i , that is, the type of edge in the subgraph; event sketch s i The set of arguments contained in is represented by That is, the set of all vertices in the candidate argument subgraph.

[0031] As a preferred solution of the present invention, the step S3 comprises the following steps:

[0032] S31: Sketches for events i ,Construct the corresponding event prompt template, the construction method is as follows: "In [event type], [argument role 1] is [ans_slot_1], [argument role 2] is [ans_slot_2],...", where "[event type]" is the type of the event sketch i , "[argument role 1]" and "[argument role 2]" are predefined argument roles under this event type, "[ans_slot_1]" and "[ans_slot_2]" are answer slots, which consist of one or more predefined identifiers;

[0033] S32: Construct an event sketch template; for the candidate arguments contained in the event sketch, convert them into a text sequence in the following way: "[candidate argument 1][RD][candidate argument 2][RD][candidate argument 3]...", where "[candidate argument 1]" and "[candidate argument 2]" are candidate arguments extracted from the event sketch. "[RD]" is a special delimiter consisting of one or more predefined identifiers;

[0034] S33: concatenate the event prompt template in S31 and the event sketch template obtained in S32, add the prefix "[CLS]", and separate them with "[SEP]" to form an argument subgraph prompt;

[0035] S34: Fill the event slot.

[0036] As a preferred solution of the present invention, the step S4 comprises the following steps:

[0037] S41: Setting the number of iterative corrections cnt;

[0038] S42: converting the event arguments contained in the event record obtained in S3 into a new event sketch;

[0039] S43: Input the new event sketch obtained in S42 into S3, re-fill the event slots, and repeat the iterative filling for cnt times. The final result is the structured result of event extraction.

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

[0041] (1) The present invention uses a pre-trained Longformer-based model that can process ultra-long texts as a text encoder, so that the chapter-level information can be directly used to achieve the flow of global and local information of the document, thereby improving the integrity of the event extraction results.

[0042] (2) The present invention constructs a framework method and uses a variety of optimization methods to improve the effect of chapter-level multi-event extraction. First, an adaptive threshold method and a subgraph extraction method based on faction filtering are applied to construct an event sketch to refer to multiple events and obtain a preliminary event record. Then, the event extraction task is converted into a slot filling task, and a pre-trained model method based on the prompting model is applied to introduce a large amount of background knowledge contained in the pre-trained model to improve the accuracy of event slot filling. Finally, the results are iteratively corrected multiple times to improve the overall extraction effect.

[0043] (3) The present invention uses a method of first determining the binary relationship between argument candidates and then performing multi-subgraph extraction on the global candidate argument relationship graph to finally obtain an event sketch with multi-argument relationships as the reference of multiple events. Multiple event extraction can be achieved without annotating trigger words, which reduces the requirements for dataset annotation and reduces the manpower and time burden when constructing datasets. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 This is a flow chart of the chapter-level multi-event extraction method based on argument subgraph prompt generation and guidance of the present invention. DETAILED DESCRIPTION

[0045] In order to more clearly illustrate the technical method proposed in the present invention, taking the ChFinAnn public event dataset as an example, the implementation steps of a chapter-level multi-event extraction method based on argument subgraph prompt generation and guidance proposed in the present invention are specifically explained.

[0046] like Figure 1 As shown, the method of the present invention comprises the following four steps:

[0047] S1: Extract candidate arguments from the input text;

[0048] S2: Extract event sketches contained in the input text;

[0049] S3: Construct argument subgraph prompts based on the event sketch, fill in event slots under the guidance of argument subgraph prompts, and form event records;

[0050] S4: Set the number of iterations, convert the event record obtained in S3 into a new event sketch, iteratively repeat the steps of S3 to obtain the corrected final event record.

[0051] Preferably, the steps of S1 are as follows:

[0052] S11. For the input event text, process it into the input form that conforms to the Longformer model, which can be represented as a text sequence Each element is labeled using the "BIO" notation.

[0053] S12. For the input text sequence, after encoding by the encoder based on the Longformer pre-trained model, the intermediate vector HF is obtained:

[0054]

[0055] S13. The intermediate vector HF is passed through the fully connected layer FC to obtain the final element representation vector ZF:

[0056]

[0057] S14. Calculate the output label l of each element through the softmax layer i The posterior probability P(l i |zf i ), where W s and b s are trainable parameters:

[0058] P(l i |zf i )=softmax(W s zf i +b s )

[0059] S15. Output the label category with the maximum probability for each element in the sequence

[0060]

[0061] S16. Parse the obtained label sequence of the text sequence elements with the "BIO" label to obtain all candidate argument instances contained in the document, merge the candidate argument instances through entity disambiguation and fusion, and associate them with the corresponding candidate argument entities. Each instance is called a mention of the candidate argument entity. The final candidate argument entity set can be expressed as candidate argument entity. e i All mention instances of can be represented as

[0062] Preferably, the steps of S2 are as follows:

[0063] S21: Determine the relationship between candidate arguments. Model the relationship judgment as a multi-label classification problem. The relationship category is equal to the event category plus an additional "threshold category", as shown in S211-S217:

[0064] S211. For the input text sequence Use the Longformer encoder to encode and get the intermediate vector HS:

[0065]

[0066] S212. The candidate argument e i Included mentions The sequence position is represented as Represents the starting position, Represents the end position. Use average pooling to aggregate and form the representation vector of the mention

[0067]

[0068] S213. By calculating the candidate argument e i The average pooled value of all mentioned representation vectors is used to calculate the representation vector of each candidate argument

[0069]

[0070] S214. Select two different candidate arguments e in turn i and e j , converted into a hidden vector through a linear layer linear and a nonlinear layer tanh and

[0071]

[0072]

[0073] Where W i and W j is a trainable parameter;

[0074] S215: Calculate the probability P of the relationship category r through bilinear mapping r , where σ represents the softmax function, W r and b rare trainable parameters:

[0075]

[0076] S216. Use the following adaptive dynamic threshold loss function for training:

[0077]

[0078]

[0079] L total =L1+L2

[0080] The relation set composed of positive classes is C T , the relation set composed of negative classes is C N ; The symbol of the threshold class is Th; in L1, r belongs to the positive class, r' belongs to the positive class and the threshold class, P r represents the probability of category r, P r′ Represents the probability of r' category; in L2, r' belongs to the negative class and the threshold class, P r′ represents the probability of r' category, P TH represents the probability of the threshold class; L1 loss optimizes the probability of the positive class to be greater than the threshold class, and L2 loss makes the loss of the threshold class greater than the negative class; the final loss L total is the sum of L1 and L2;

[0081] S217: When predicting, by judging whether the probability of each relationship category is greater than the probability of the threshold category predicted by the sample, it is determined whether the pair of candidate arguments has a relationship of the category, where r represents a category and Rel represents the candidate argument e i and e j The relationship between:

[0082] if P r (e i ,e j )>P Th (e i ,e j ), then Rel(e i ,e j )=r

[0083] S22. Use all the candidate arguments and their relationships to construct a global candidate argument relationship graph. This graph can be represented as an undirected graph G = (V, E), where V represents the vertex set, Each point v i is the candidate argument that the model has extracted; E represents the set of edges, each edge (v i ,v j )∈E,(i,j≤Ne ,i≠j) represents v i With v j There is a relationship between them, and the type of relationship is R(v i ,v j ).

[0084] S23: Extracting a subgraph on the global argument relationship graph, as shown in S231-S234:

[0085] S231. Find all complete subgraphs of size k in G k-cliques = {c1, c2, ..., c n};

[0086] S232. Define each complete subgraph of k-cliques as a new vertex. When the number of identical original vertices between two new vertices is greater than or equal to k-1, an edge is assigned to the two new vertices, thereby forming a new graph G. new , and then continue the analysis on the new graph;

[0087] S233. Find G new All complete subgraphs in ;

[0088] S234. All the original vertices contained in each complete subgraph constitute a subgraph, which is the candidate argument subgraph to be finally extracted.

[0089] S24. Construct event sketches based on the extracted subgraphs. All obtained event sketches can be expressed as Each event sketch s i The event type is t i , that is, the type of edge in the subgraph; event sketch s i The argument candidate set contained in can be expressed as That is, the set of all vertices in the candidate argument subgraph.

[0090] Preferably, the steps of S3 are as follows:

[0091] S31. For event sketches i ,Construct the corresponding event prompt template, the construction method is as follows: "In [event type], [argument role 1] is [ans_slot_1], [argument role 2] is [ans_slot_2],...", where "[event type]" is the type of the event sketch i"[Argument role 1]" and "[Argument role 2]" are predefined argument roles under this event type, "[ans_slot_1]" and "[ans_slot_2]" are answer slots, which are composed of one or more predefined identifiers. In this embodiment, each answer slot uses the style of these two identifiers, such as "[unused1][unused2]", with increasing serial numbers.

[0092] S32. Construct an event sketch template. For the candidate arguments contained in the event sketch, convert them into a text sequence in the following way: "[candidate argument 1][RD][candidate argument 2][RD][candidate argument 3]...", where "[candidate argument 1]" and "[candidate argument 2]" are candidate arguments extracted from the event sketch. “[RD]” is a specific separator, which is composed of one or more predefined identifiers. In this embodiment, the separator uses “[unused80]”.

[0093] S33. Concatenate the event prompt template in S31 and the event sketch template obtained in S32, add the prefix "[CLS]", and separate them with "[SEP]" to form an argument subgraph prompt.

[0094] S34: Fill the event slot. The specific steps are shown in S341-S349:

[0095] S341. Concatenate the argument subgraph prompt obtained in S33 with the text, using "[SEP]" as the separator, and the input text is represented as

[0096] S342. After longformer encoding, an intermediate vector HT is generated:

[0097]

[0098] S343. Obtained candidate argument mentions The positions of event sketches and original text parts in the new text sequence are represented as The representation vector of a candidate argument mention is obtained by averaging the intermediate vectors of all elements contained in a candidate argument mention.

[0099]

[0100] S344. By averaging the representation vectors of all the candidate arguments, the representation vector of the candidate argument can be obtained.

[0101]

[0102] S345. Initialize a vector ht NULL To represent the case where the answer slot is not filled with any arguments. NULL The dimensions and Similarly, its vector parameters are continuously updated through training, so that the representation vector of the meaning of "NULL" can be learned. NULL After concatenating the argument candidate representation vector, we can get the answer candidate, which can be expressed as Where N e is the number of candidate arguments, when q = N e +1, otherwise,

[0103] S346. By averaging the intermediate vectors of all special placeholders that make up a certain answer slot, the representation vector of the answer slot can be obtained. in Representation based on event sketches i The j-th answer slot of the sample is calculated as follows:

[0104]

[0105] S347. For each answer slot, in all answer candidate vectors Select the most suitable one to fill in, and calculate the probability of each candidate answer according to the following formula, where W k , W p and W u is a trainable parameter, and σ represents the softmax function:

[0106]

[0107]

[0108]

[0109] S348. Calculate the loss function through cross entropy. is the true label:

[0110]

[0111] S349. When predicting, for a Choose the answer with the highest probability among all the candidate answers:

[0112]

[0113] From the formula, we can get that the θth answer candidate is the answer that should be filled in the event slot. When this answer is a candidate argument, it can be directly filled in the argument role slot. If it is "NULL", it means that the argument role slot should remain empty.

[0114] Preferably, the steps of S4 are as follows:

[0115] S41. Set the number of iteration corrections cnt;

[0116] S42. converting the event arguments contained in the obtained event record into a new event sketch;

[0117] S43. Refill the event slots of the obtained new event sketch and repeat the iterative filling for cnt times. The final result is the structured result of event extraction.

[0118] The ChFinAnn dataset contains five types of events, namely: Equity Freeze (EF), Equity Repurchase (ER), Equity Underweight (EU), Equity Overweight (EO) and Equity Pledge (EP). After the above steps of the present invention, the specific experimental results of this method (DMEE-ASP) on this dataset are shown in Tables 1 and 2 below:

[0119] Table 1 Event type classification results

[0120] DMEE-ASP Share Freeze-F1 Value 100.0 Share buybacks - F1 value 100.0 Share reduction-F1 value 99.3 Shareholding increase-F1 value 99.5 Share Pledge-F1 Value 99.9

[0121] Table 2 Experimental results of event argument extraction

[0122]

[0123]

[0124] As can be seen from Table 1 and Table 2, the present invention can complete the two subtasks of event type classification and event argument extraction in the chapter-level multi-event extraction task without trigger words, and the experimental results are good. The F1 value in event type classification is above 99, and the overall F1 value in event argument extraction reaches the current best level. This method effectively improves the accuracy of event extraction results and has certain versatility and superiority.

[0125] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the attached claims.

Claims

1. A chapter-level multi-event extraction method based on argument subgraph prompt generation and guidance, characterized in that: The following steps are involved: S1: Extract candidate arguments from the input text; S2: Extract event sketches contained in the input text; The step S2 comprises the following steps: S21: Determine the relationship between candidate arguments, model the relationship judgment as a multi-label classification problem, and the relationship category is equal to the event category plus an additional "threshold category"; S22: Use all the candidate arguments obtained and the relations therein to construct a global candidate argument relationship graph; the global candidate argument relationship graph is represented as an undirected graph G=(V, E), where V represents a vertex set, (|V|=N e ), each point v i is the candidate argument that has been extracted; E represents the set of edges, each edge (v i , v j )∈E,(i,j≤N e , i≠j) represents v i With v j There is a relationship between them, and the type of relationship is R(v i , v j ); S23: Extract subgraphs from the global argument relationship graph; S24: Construct event sketches based on the extracted subgraphs. All obtained event sketches are represented as Each event sketch s i The event type is t i , that is, the type of edge in the subgraph; event sketch s i The set of arguments contained in is represented by That is, the set of all vertices in the candidate argument subgraph; The step S21 comprises the following steps: S211: For the input text sequence Use the Longformer encoder to encode and get the intermediate vector HS: S212: The candidate argument e i Included mentions The sequence position is represented as Represents the starting position, Represents the end position; average pooling is used to aggregate the representation vector of the mention S213: By calculating the candidate argument e i The average pooled value of all mentioned representation vectors is used to calculate the representation vector of each candidate argument S214: Select two different candidate arguments e in turn i and e j , converted into a hidden vector through a linear layer linear and a nonlinear layer tanh and Where W i and W j is a trainable parameter; S215: Calculate the probability P of the relationship category r through bilinear mapping r , where σ represents the softmax function, W r and b r are trainable parameters: S216: Use the following adaptive dynamic threshold loss function for training: L total =L1+L2 The relation set composed of positive classes is C T , the relation set composed of negative classes is C N ; The symbol of the threshold class is Th; in L1, r belongs to the positive class, r' belongs to the positive class and the threshold class, P r represents the probability of category r, P r ′ represents the probability of r' category; in L2, r' belongs to the negative class and the threshold class, P r ′ represents the probability of r' category, P TH represents the probability of the threshold class; L1 loss optimizes the probability of the positive class to be greater than the threshold class, and L2 loss makes the loss of the threshold class greater than the negative class; the final loss L total is the sum of L1 and L2; S217: When predicting, by judging whether the probability of each relationship category is greater than the probability of the threshold category predicted by the sample, it is determined whether the pair of candidate arguments has a relationship of the category, where r represents a category and Rel represents the candidate argument e i and e j The relationship between: if P r (e i ,e j )>P Th (e i ,e j ),then Rel(e i ,e j )=r; The step S23 comprises the following steps: S231: Find all complete subgraphs of size k in G, k-cliques = {c1, c2, ..., c n }; S232: Define each complete subgraph of k-cliques as a new vertex. When the number of identical original vertices between two new vertices is greater than or equal to k-1, assign an edge to the two new vertices, thus forming a new graph G. new , and then continue the analysis on the new graph; S233: Find G new All complete subgraphs in ; S234: All original vertices contained in each complete subgraph constitute a subgraph, which is the candidate argument subgraph to be extracted in the end; S3: Construct argument subgraph prompts based on the event sketch, fill in event slots under the guidance of argument subgraph prompts, and form event records; The step S3 comprises the following steps: S31: Sketches for events i , construct the corresponding event prompt template, the construction method is as follows: "In [event type], [argument role 1] is [ans_slot_1], [argument role 2] is [ans_slot_2], ...", where "[event type]" is the type of the event sketch. i , "[argument role 1]" and "[argument role 2]" are predefined argument roles under this event type, "[ans_slot_1]" and "[ans_slot_2]" are answer slots, which consist of one or more predefined identifiers; S32: Construct an event sketch template; for the candidate arguments contained in the event sketch, convert them into a text sequence in the following way: "[candidate argument 1][RD][candidate argument 2][RD][candidate argument 3]...", where "[candidate argument 1]" and "[candidate argument 2]" are the candidate arguments extracted from the event sketch. "[RD]" is a special delimiter consisting of one or more predefined identifiers; S33: concatenate the event prompt template in S31 and the event sketch template obtained in S32, add the prefix "[CLS]", and separate them with "[SEP]" to form an argument subgraph prompt; S34: fill event slot; The step S34 comprises the following steps: S341: Concatenate the argument subgraph prompt obtained in S33 with the text, using "[SEP]" as the separator, and the input text is represented as S342: After longformer encoding, an intermediate vector HT is generated: S343: Candidate argument mentions obtained in S1 The positions of event sketches and original text parts in the new text sequence are represented as Interval; The representation vector of a candidate argument mention is obtained by averaging the intermediate vectors of all elements contained in a candidate argument mention S344: Obtain the representation vector of the candidate argument by performing average pooling on all the representation vectors mentioned by the candidate argument S345: Initialize a vector ht NULL To represent the situation where the answer slot is not filled with any arguments; ht NULL The dimensions and Similarly, its vector parameters are continuously updated through training, so as to learn the representation vector of "NULL" meaning; ht NULL After concatenating the argument candidate representation vector, we get the answer candidate, which is expressed as Where N e is the number of candidate arguments, when q = N e +1, otherwise, S346: The representation vector of the answer slot is obtained by averaging the intermediate vectors of all special placeholders that make up a certain answer slot. in Representation based on event sketches i The j-th answer slot of the sample is calculated as follows: S347: For each answer slot, in all answer candidate vectors Select the most suitable one to fill in, and calculate the probability of each candidate answer according to the following formula, where W k , W p and W u is a trainable parameter, and σ represents the softmax function: S348: Loss function calculation by cross entropy, is the true label: S349: When predicting, for a certain Choose the answer with the highest probability among all the candidate answers: The formula shows that the qth answer candidate is the answer that should be filled into the event slot. When this answer is a candidate argument, it is directly filled into the argument role slot. If it is "NULL", it means that the argument role slot should remain empty. S4: Set the number of iterations, convert the event record obtained in S3 into a new event sketch, iteratively repeat the steps of S3 to obtain the corrected final event record.

2. According to claim 1, a method for extracting multiple events at the chapter level based on argument subgraph prompt generation and guidance is characterized in that: The step S1 comprises the following steps: S11: During the training phase, the input event text is processed into an input form that conforms to the Longformer model and represented as a text sequence. The label of each element is marked by "BIO"; S12: For the text sequence D input in S11, after being encoded by the encoder based on the Longformer pre-trained model, the intermediate vector HF is obtained: S13: The intermediate vector HF obtained in S12 is passed through the fully connected layer FC to obtain the final element representation vector ZF: S14: Calculate the output label l of each element through the softmax layer i The posterior probability P(l i |zf i ), where W s and b s are trainable parameters: P(l i |zf i )=softmax(W s zf i +b s ) S15: Output the label category with the maximum probability for each element in the sequence S16: Parse the label sequence of the text sequence element obtained in S15 with the "BIO" label to obtain all candidate argument instances contained in the document, merge the candidate argument instances through entity disambiguation and fusion, and associate them with the corresponding candidate argument entities. Each instance is called a mention of the candidate argument entity. The final candidate argument entity set is denoted as candidate argument entity. e i All mention instances of 3. According to claim 1, a method for extracting multiple events at the chapter level based on argument subgraph prompt generation and guidance is characterized in that: The step S4 comprises the following steps: S41: Setting the number of iterative corrections cnt; S42: converting the event arguments contained in the event record obtained in S3 into a new event sketch; S43: Input the new event sketch obtained in S42 into S3, re-fill the event slots, and repeat the iterative filling for cnt times. The final result is the structured result of event extraction.