Document-level event joint extraction method based on role pair event backtracking graph

By constructing a method based on role-backtracking graph of events in document-level event extraction, the problems of error propagation, role sequence dependence and training time-consuming in the existing technology are solved, and more efficient and accurate event extraction effects are achieved.

CN119830909AActive Publication Date: 2025-04-15JIANGXI UNIVERSITY OF FINANCE AND ECONOMICS
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202510317714.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-18
Publication Date
2025-04-15
Estimated Expiration
2045-03-18

AI Technical Summary

Technical Problem

The prior art has problems in document-level event extraction, such as error propagation, dependence on role order, training time, and inability to effectively handle the associated semantics of entities in multiple events.

Method used

A document-level event joint extraction method based on role-tracking graph is proposed. By constructing a role-role relationship structure and graph-enhanced document-level event joint extraction model, the argument role of words under event type is directly decoded and the number of model parameters is reduced.

Benefits of technology

It effectively avoids the error propagation of pipeline mode, reduces the number of model parameters, improves the accuracy and efficiency of event extraction, and directly decodes the argument role of words in events.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119830909A_ABST
    Figure CN119830909A_ABST
Patent Text Reader

Abstract

The invention provides a document-level event joint extraction method based on a role pair event backtracking graph. The method comprises the following steps: acquiring a role pair set of an event type based on event information; obtaining role pairs corresponding to the word pairs based on the role pair set of the event type; constructing a target word pair adjacency matrix, and obtaining a new target word pair adjacency matrix based on the role pairs corresponding to the word pairs and the target word pair adjacency matrix; obtaining a golden target word pair adjacency matrix based on document information marked by corpus golden as event information; training the graph-enhanced document-level event joint extraction model constructed by using the golden target word pair adjacent matrix to obtain a trained graph-enhanced document-level event joint extraction model; and obtaining an event and an argument corresponding to the event by utilizing the trained graph-enhanced document-level event joint extraction model. According to the method, a graph-enhanced document-level event joint extraction framework is constructed, error propagation of a pipeline mode is avoided, and meanwhile, the quantity of model parameters is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of information extraction, and in particular to a document-level event joint extraction method based on a role-to-event backtracking graph. Background Art

[0002] Sentence-level event extraction aims to extract various types of specified time information from sentences. Since it is impossible to handle event arguments across sentences, document-level event extraction has attracted attention, which requires completing subtasks such as entity extraction, event type judgment, and multi-event extraction.

[0003] Most existing studies use the strategy of independently executing the above subtasks in steps to achieve document-level event extraction. This not only causes error propagation, which reduces the extraction effect, but also causes the extraction effect to depend on the specified role order, which is time-consuming to train; and the independent classification of a single event breaks the associated semantics of the entity acting as an argument in multiple events. Summary of the invention

[0004] In view of the above situation, the main purpose of the present invention is to propose a document-level event joint extraction method based on role-to-event backtracking graph to solve the above technical problems.

[0005] The present invention proposes a document-level event joint extraction method based on a role-to-event backtracking graph, the method comprising the following steps: Step 1: Based on the event information, all event types and the role sets contained in the event types are obtained, and the role sets are sorted based on the event types to obtain a role pair set of the event types; Add label elements and traceback label values ​​to the role collection of the event type; Step 2: Combine the words in any two adjacent role arguments in the role pair set of the event type to form a word pair set of the role arguments; For each word pair in the word pair set of role arguments, a role pair corresponding to the word pair is formed; Construct a target word pair adjacency matrix, and fill the label values ​​and traceback values ​​of the role pairs corresponding to the word pairs in the target word pair adjacency matrix to obtain a target traceback graph, and convert the target traceback graph into a new target word pair adjacency matrix; Step 3: Take the document information of the golden annotation of the corpus as event information, execute steps 1 and 2 in sequence to obtain the golden backtracking graph, and convert the golden backtracking graph into the golden target word pair adjacency matrix; Step 4: construct a graph-enhanced document-level event joint extraction model. The graph-enhanced document-level event joint extraction model is trained with the golden target word pair adjacency matrix as the approximation target to obtain the trained graph-enhanced document-level event joint extraction model. Through the trained graph-enhanced document-level event joint extraction model, a new predicted word pair adjacency matrix is ​​obtained; Step 5: Decode the adjacency matrix of the new predicted words to obtain the events and the arguments corresponding to the events.

[0006] Compared with the prior art, the present invention has the following beneficial effects: 1. The present invention converts the entity-role correspondence for each event into a word-word correspondence for the entire document by designing a role-role relationship structure, aiming to reveal the correspondence between the roles of two words as arguments in a certain event; 2. The present invention proposes a role-pair event backtracking graph with role-role pairs as the forward edge type and backtracking identifiers as the reverse edge type, so as to directly decode the arguments of what role a word plays in which events under which event type; 3. The present invention constructs a graph-enhanced document-level event joint extraction framework based on the role-to-event backtracking graph, thereby avoiding error propagation in the pipeline mode and reducing the number of model parameters.

[0007] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description or learned through embodiments of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Figure 1 This is a flowchart of the document-level event joint extraction method based on role-to-event backtracking graph proposed by the present invention. DETAILED DESCRIPTION

[0009] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0010] These and other aspects of the embodiments of the present invention will be apparent with reference to the following description and accompanying drawings. In these descriptions and accompanying drawings, some specific implementations of the embodiments of the present invention are specifically disclosed to represent some ways of implementing the principles of the embodiments of the present invention, but it should be understood that the scope of the embodiments of the present invention is not limited thereto.

[0011] See also Figure 1 The embodiment of the present invention proposes a document-level event joint extraction method based on a role-to-event backtracking graph, the method comprising the following steps: Step 1: Based on the event information, all event types and the role sets contained in the event types are obtained, and the role sets are sorted based on the event types to obtain a role pair set of the event types; Add label elements and traceback label values ​​to the role collection of the event type; In step 1, all event types and role sets contained in the event types are obtained based on the event information, and the role sets are sorted based on the event types to obtain a role pair set of the event type. The specific steps are as follows: Get all event types, and for each event type, get the role set contained in the event type; For each event type, the roles are randomly sorted to obtain a randomly sorted role set. The relationship between the corresponding process is: ; in, represents a randomly sorted set of roles, All represent roles after event types are randomly sorted. Indicates the number of roles included in the event type; In ascending order, two adjacent roles in the randomly sorted role set are combined into role pairs to obtain a role pair set of event types. The corresponding process relationship is: ; in, A set of role pairs representing event types, — represents a connector, Indicates the roles after the event types are randomly sorted. Indicates a role pair.

[0012] Furthermore, after obtaining the set of role pairs of the event type, a continuous label value is assigned to each element in the set of role pairs of the event type starting from 2, and the label values ​​of all role-role pairs under the same event type are required to be adjacent; Add a NULL label element and a backtracking label element to the role pair set of the event type, with label values ​​of 0 and 1 respectively.

[0013] Step 2: Combine the words in any two adjacent role arguments in the role pair set of the event type to form a word pair set of the role arguments; For each word pair in the word pair set of role arguments, a role pair corresponding to the word pair is formed; Construct a target word pair adjacency matrix, and fill the label values ​​and traceback values ​​of the role pairs corresponding to the word pairs in the target word pair adjacency matrix to obtain a target traceback graph, and convert the target traceback graph into a new target word pair adjacency matrix; In step 2, the words in any two adjacent role arguments in the role pair set of the event type are combined to form a word pair set of the role argument. The corresponding process has the following relation: ; in, The set of word pairs representing role arguments, and Respectively represent the first and words, Represents a document, and Respectively represent words in the current event and words The two adjacent roles played; For each word pair in the word pair set of role arguments, a role pair corresponding to the word pair is formed, and the relationship between the corresponding process is: ; in, Indicates the role pair corresponding to the word pair; Construct the target word pair adjacency matrix, and fill in the label value and backtracking value of the role pair corresponding to the word pair in the target word pair adjacency matrix. The relationship between the corresponding process is: ; in, Represents the words in the adjacency matrix of the target word Corresponding lines and words The value corresponding to the corresponding column, Represents the words in the adjacency matrix of the target word pair Corresponding lines and words The value corresponding to the corresponding column, Indicates the processing of the label value function of the role pair.

[0014] Step 3: Take the document information of the golden annotation of the corpus as event information, execute steps 1 and 2 in sequence to obtain the golden backtracking graph, and convert the golden backtracking graph into the golden target word pair adjacency matrix.

[0015] Step 4: construct a graph-enhanced document-level event joint extraction model. The graph-enhanced document-level event joint extraction model is trained with the golden target word pair adjacency matrix as the approximation target to obtain the trained graph-enhanced document-level event joint extraction model. The new predicted word pair adjacency matrix is ​​obtained through the trained graph-enhanced document-level event joint extraction model; In step 4, a graph-enhanced document-level event joint extraction model is constructed, wherein the graph-enhanced document-level event joint extraction model is composed of an encoding layer and a classification layer; In the encoding layer of the graph-enhanced document-level event joint extraction model, the updated embedding representation of the word pair is obtained based on the words in the document. The specific steps for obtaining the updated embedding representation of the word pair are as follows: The initial embedding representation of the words in the document is concatenated with the initial embedding representation of the word type to obtain the concatenated word embedding representation. The relationship between the corresponding process is: ; in, represents the concatenated word embedding representation, represents the initial embedding representation of the word, The initial embedding representation representing the word type, Represents a splicing operation; Based on the concatenated word embedding representation, the Bi-LSTM network is used to capture the position information of the words, and the concatenated word embedding representation is updated. The corresponding process has the following relationship: ; in, represents the concatenated word embedding representation updated by the forward computation, represents the concatenated word embedding representation updated by backward computation, It means that after forward LSTM processing, It means that after backward LSTM processing, Both represent the concatenated word embedding representations. represents the updated concatenated word embedding representation; Based on the updated concatenated word embedding representation, the updated embedding representation of the word pair is obtained. The relationship between the corresponding process is: ; in, represents the updated embedding representation of the word pair, and Both represent the updated concatenated word embedding representation; In the classification layer of the graph-enhanced document-level event joint extraction model, the word pairs are classified by calculating the probability distribution of the embedding representation of the word pairs on each label in the role pair set, and then the predicted word pair adjacency matrix is ​​obtained. The corresponding process has the following relationship: ; in, represents the probability distribution, represents the weight matrix, Indicates The embedding representation of word pairs is Indicates the parameters, represents the bias term, Indicates Parameters The final label output is as follows.

[0016] The graph-enhanced document-level event joint extraction model is trained with the golden target word pair adjacency matrix as the approximation target. During the training process, the weighted cross entropy loss function is used as the objective function, taking into account the possible difference in the number of labels in the training data. The objective function formula is: ; in, represents the cross entropy loss function, Indicates the number of words contained in the document. represents the size of the adjacency matrix of the gold target word pair, express The weight of the category.

[0017] Step 5: Decode the adjacency matrix of the new predicted word pair to obtain the event and the argument corresponding to the event; In step 5, the adjacency matrix of the new predicted word pair is decoded to obtain the event and the argument corresponding to the event. The specific steps are as follows: Create a node for each word corresponding to a value greater than 1 in the new predicted word pair adjacency matrix, and establish a node-to-node edge. At the same time, establish a reverse backtracking edge for all nodes with a value of 1 in the new predicted word pair adjacency matrix to obtain a backtracking graph of the role to the event. Based on the backtracking graph of the role to the event, in the current path, if the subsequent nodes all have reverse backtracking edges pointing to the previous nodes, then the current path corresponds to an event; For each edge in the event path, the event type and the event type label value range are determined according to the edge type label value, and the role pair corresponding to the edge is determined according to the edge type label value. The relationship between the corresponding process is: ; in, Indicates the role pair, Indicates the function processing of the relationship structure after the id is converted into a role. Represents the word pair in the new predicted word pair adjacency matrix Corresponding row words The value of the corresponding column, represents the new predicted word pair adjacency matrix, Represents the value in the adjacency matrix of the new predicted word pair.

[0018] Furthermore, precision, recall, and F1 value are used as evaluation indicators to evaluate the argument extraction results, and the calculation formula is: ; in, Indicates the accuracy, represents the recall rate, represents the number of samples predicted to be positive and whose true value is positive, Represents the number of samples that are predicted to be positive but the true value is negative. Represents the number of samples that are predicted to be negative but the true value is positive. Represents the harmonic mean.

[0019] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0020] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0021] 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 patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A document-level event joint extraction method based on role-to-event backtracking graph, characterized in that: The method comprises the following steps: Step 1: Based on the event information, all event types and the role sets contained in the event types are obtained, and the role sets are sorted based on the event types to obtain a role pair set of the event types; Add label elements and traceback label values ​​to the role collection of the event type; Step 2: Combine the words in any two adjacent role arguments in the role pair set of the event type to form a word pair set of the role arguments; For each word pair in the word pair set of role arguments, a role pair corresponding to the word pair is formed; Construct a target word pair adjacency matrix, and fill the label values ​​and traceback values ​​of the role pairs corresponding to the word pairs in the target word pair adjacency matrix to obtain a target traceback graph, and convert the target traceback graph into a new target word pair adjacency matrix; Step 3: Take the document information of the golden annotation of the corpus as event information, execute steps 1 and 2 in sequence to obtain the golden backtracking graph, and convert the golden backtracking graph into the golden target word pair adjacency matrix; Step 4: construct a graph-enhanced document-level event joint extraction model. The graph-enhanced document-level event joint extraction model is trained with the golden target word pair adjacency matrix as the approximation target to obtain the trained graph-enhanced document-level event joint extraction model. Through the trained graph-enhanced document-level event joint extraction model, a new predicted word pair adjacency matrix is ​​obtained; Step 5: Decode the adjacency matrix of the new predicted words to obtain the events and the arguments corresponding to the events.

2. The document-level event joint extraction method based on role-to-event backtracking graph according to claim 1 is characterized in that: In step 1, all event types and role sets contained in the event types are obtained based on the event information, and the role sets are sorted based on the event types to obtain a role pair set of the event type. The specific steps are as follows: Get all event types, and for each event type, get the role set contained in the event type; For each event type, the roles are randomly sorted to obtain a randomly sorted role set. The relationship between the corresponding process is: ; in, represents a randomly sorted set of roles, All represent roles after event types are randomly sorted. Indicates the number of roles included in the event type; In ascending order, two adjacent roles in the randomly sorted role set are combined into role pairs to obtain a role pair set of event types. The corresponding process relationship is: ; in, A set of role pairs representing event types, — represents a connector, Indicates the roles after the event types are randomly sorted. Indicates a role pair.

3. The document-level event joint extraction method based on role-to-event backtracking graph according to claim 2 is characterized in that: In step 2, the words in any two adjacent role arguments in the role pair set of the event type are combined to form a word pair set of the role argument. The corresponding process has the following relational expression: ; in, The set of word pairs representing role arguments, and Respectively represent the first and words, Represents a document, and Respectively represent words in the current event and words Two adjacent roles played.

4. The document-level event joint extraction method based on role-to-event backtracking graph according to claim 3 is characterized in that: In step 2, for each word pair in the word pair set of role arguments, a role pair corresponding to the word pair is formed, and the relationship between the corresponding process is: ; in, Indicates the role pair corresponding to the word pair.

5. The document-level event joint extraction method based on role-to-event backtracking graph according to claim 4 is characterized in that: In step 2, a target word pair adjacency matrix is ​​constructed, and the label values ​​and traceback values ​​of the role pairs corresponding to the word pairs are filled in the target word pair adjacency matrix. The relationship between the corresponding process is: ; in, Represents the words in the adjacency matrix of the target word Corresponding lines and words The value corresponding to the corresponding column, Represents the words in the adjacency matrix of the target word pair Corresponding lines and words The value corresponding to the corresponding column, Indicates the processing of the label value function of the role pair.

6. The document-level event joint extraction method based on role-to-event backtracking graph according to claim 5 is characterized in that: In the step 4, a graph-enhanced document-level event joint extraction model is constructed, wherein the graph-enhanced document-level event joint extraction model is composed of an encoding layer and a classification layer; In the encoding layer of the graph-enhanced document-level event joint extraction model, the updated embedding representation of the word pairs is obtained based on the words in the document. The specific steps for obtaining the updated embedding representation of the word pairs are as follows: The initial embedding representation of the words in the document is concatenated with the initial embedding representation of the word type to obtain the concatenated word embedding representation. The relationship between the corresponding process is: ; in, represents the concatenated word embedding representation, represents the initial embedding representation of the word, Initialized embedding representation representing the word type, Represents a splicing operation; Based on the concatenated word embedding representation, the Bi-LSTM network is used to capture the position information of the words, and the concatenated word embedding representation is updated. The corresponding relationship in the process is: ; in, represents the concatenated word embedding representation updated by the forward computation, represents the concatenated word embedding representation updated by backward computation, It means that after forward LSTM processing, It means that after backward LSTM processing, Both represent the concatenated word embedding representations. represents the updated concatenated word embedding representation; Based on the updated concatenated word embedding representation, the updated embedding representation of the word pair is obtained. The relationship between the corresponding process is: ; in, represents the updated embedding representation of the word pair, and Both represent the updated concatenated word embedding representation.

7. The document-level event joint extraction method based on role-to-event backtracking graph according to claim 6 is characterized in that: In the step 4, a graph-enhanced document-level event joint extraction model is constructed, wherein the graph-enhanced document-level event joint extraction model is composed of an encoding layer and a classification layer, and in the classification layer of the graph-enhanced document-level event joint extraction model; By calculating the probability distribution of the embedding representation of the word pair on each label in the role pair set, the word pairs are classified, and then the predicted word pair adjacency matrix is ​​obtained. The corresponding relationship in the process is: ; in, represents the probability distribution, represents the weight matrix, Indicates The embedding representation of word pairs is Indicates the parameters, represents the bias term, Indicates Parameters The final label output is as follows.

8. The document-level event joint extraction method based on role-to-event backtracking graph according to claim 7 is characterized in that: In step 4, the graph-enhanced document-level event joint extraction model is trained with the golden target word pair adjacency matrix as the approximation target; Among them, the weighted cross entropy loss function is used as the objective function during the training process, and the objective function formula is: ; in, represents the cross entropy loss function, Indicates the number of words contained in the document. represents the size of the adjacency matrix of the gold target word pair, express The weight of the category.

9. The document-level event joint extraction method based on role-to-event backtracking graph according to claim 8 is characterized in that: In step 5, the adjacency matrix of the new predicted word pair is decoded to obtain the event and the argument corresponding to the event. The specific steps are as follows: Create a node for each word corresponding to a value greater than 1 in the new predicted word pair adjacency matrix, and establish a node-to-node edge. At the same time, establish a reverse backtracking edge for all nodes with a value of 1 in the new predicted word pair adjacency matrix to obtain a backtracking graph of the role to the event. Based on the role-to-event backtracking graph, in the current path, if the subsequent nodes all have reverse backtracking edges pointing to the previous nodes, then the current path corresponds to an event; For each edge in the event path, the event type and the event type label value range are determined according to the edge type label value, and the role pair corresponding to the edge is determined according to the edge type label value. The relationship between the corresponding process is: ; in, Indicates the role pair, Indicates the function processing of the relationship structure after the id is converted into a role. Represents the word pair in the new predicted word pair adjacency matrix Corresponding row words The value of the corresponding column, represents the new predicted word pair adjacency matrix, Represents the value in the adjacency matrix of the new predicted word pair.

Citation Information

Patent Citations

  • Dam safety operation-oriented event atlas construction method

    CN113312500A

  • Document-level event joint extraction method and system based on bidirectional event complete graph

    CN116049345A

  • Document-level event extraction method and system based on integrated joint learning

    CN116579338A

  • Hot line distribution method based on knowledge graph questions and answers

    CN116795963A

  • Event argument extraction method and device

    CN117149940A