Document-level event argument extraction method and system

Through the combination of event coreference entities and dual-channel representation alignment module, the problem of argument dispersion and error propagation in document-level event argument extraction is solved, and the accuracy and model generalization of event argument information extraction are improved, which is suitable for Multi-field applications.

CN118468870BActive Publication Date: 2024-10-01THE ACAD OF TIANJIN UNIV HEFEI
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202410925043.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-10-01
Estimated Expiration
2044-07-11

AI Technical Summary

Technical Problem

The existing technology has problems in document-level event argument extraction, such as scattered arguments, excessive distance between arguments and trigger words, document redundancy, and error propagation, resulting in poor event argument information extraction accuracy and poor model generalization. .

Method used

A text tagging module based on event coreference entities is used for semantic similarity calculation and retrieval, and coreference-enhanced text is obtained to reflect event context information, and is spliced ​​with the event description template through a dual-channel representation alignment module, combined with the alignment loss function and cross-entropy. The loss is used for model optimization training to achieve document-level event argument extraction.

Benefits of technology

It improves the accuracy and model generalization of document-level event argument extraction, and can efficiently and accurately extract event-related argument information from the original text. It is suitable for biomedicine, network security, finance and other fields, and provides intelligent question and answer, Provide support for knowledge graph construction and information retrieval.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118468870B_ABST
    Figure CN118468870B_ABST
Patent Text Reader

Abstract

The present invention provides a document-level event argument extraction method and system, the method comprising: using a text tagging module based on event co-referential entities to calculate semantic similarity, retrieving and tagging event co-referential entities of the original text, and obtaining co-referential enhanced text; based on a model structure of a dual-path encoder and decoder, splicing the original text, co-referential enhanced text and the corresponding event description template, encoding with a shared parameter encoder to obtain text representation, extracting argument representations for representation alignment, and optimizing the model according to an alignment loss function; using a generative event argument recognition and extraction module, processing to obtain text representation, obtaining an event argument extraction generation sequence, and processing to obtain an event argument extraction result. The present invention solves the technical problems of poor accuracy of event argument information extraction and poor model generalization due to argument dispersion, excessive distance between arguments and trigger words, document redundancy, and error propagation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of natural language processing and text analysis, and in particular to a document-level event argument extraction method and system. Background Art

[0002] This invention mainly explores document-level event argument extraction. Information extraction is a key task in natural language processing, and the main purpose of information extraction is to extract valuable structured information from unstructured or semi-structured text data. Information extraction tasks include: named entity recognition, relationship extraction, and event extraction. Among them, event extraction is an important research direction in the field of information extraction due to the complexity of event structure and application value. Event extraction aims to extract event information from text. An event refers to a specific event involving one or more participants that occurs at a specific time and place, which can usually be described as a change in state and is a special form of representation of information. For example, the existing invention patent application document "An event detection method and computer-readable medium with event syntax fusion structure" with publication number CN116882389A, the existing method includes: randomly selecting multiple target texts in the corpus to construct a training set, marking multiple marked event trigger word labels of each target text in the training set, and multiple marked argument labels of each marked event trigger word label; constructing an event extraction network, optimizing and training through back propagation and gradient descent algorithms to obtain an optimized event extraction network; obtaining unstructured current hot news in real time through the optimized event extraction network, predicting event trigger words and multiple arguments corresponding to event trigger words in current hot news through the optimized event extraction network, so as to construct structured event information of current hot news. The event extraction task aims to automatically extract event information from unstructured natural language text, while event argument extraction focuses on extracting event arguments from text under the premise that the event has been detected. In real scenarios, events often appear in the form of documents, that is, event trigger words and event arguments may be distributed in multiple sentences of the document. At the same time, documents may cause many difficulties in extracting event arguments due to their large amount of text content and redundant information, such as containing a large amount of irrelevant and misleading information. This makes it more complicated to extract event arguments from documents. This requires the model to not only understand and analyze the complex syntactic and semantic structures in the text, but also to accurately screen and extract event-related information from a large amount of text.

[0003] In recent years, with the development and introduction of deep learning technology, many neural network-based methods have been used to complete event extraction tasks, and the research on event argument extraction tasks has made significant progress. Among them, the proposal and application of generative pre-trained language models have particularly promoted the task of event argument extraction. Generative pre-trained language models can transform time extraction tasks from traditional classification tasks to generation tasks, can make full use of the semantic understanding capabilities of encoders and decoders in pre-trained language models, and simplify the process of argument extraction in complex event structures, thereby improving the efficiency of event argument extraction. However, although the aforementioned prior art has good effects in improving the accuracy of event argument extraction and complex event understanding, the aforementioned solutions still face many challenges in practical applications. When processing document-level event argument extraction tasks, the generative pre-trained language model cannot take the entire document as input due to the limitation of input length, and lacks understanding of the complete event context. At the same time, some event arguments appear in places separated from event trigger words by multiple sentences, which makes it difficult for the model to recognize such arguments. In addition, a document usually contains multiple events, and ordinary pre-trained language models tend to ignore the connections between multiple events, resulting in the model being unable to recognize all event arguments.

[0004] The existing invention patent application document "A method, system, device and medium for extracting trigger words and arguments" with publication number CN116205220A, the existing method includes: obtaining the target text; preprocessing the target text to obtain event information; the event information includes text paragraphs and corresponding event types and event attributes; using the event extraction model, extracting the trigger words and arguments of the event information to obtain an event analysis structure; the event analysis structure is composed of trigger words and corresponding character data, arguments and corresponding character data; the event extraction model includes a multi-head attention module and a T5 pre-training model connected in sequence; the multi-head attention module includes an encoder and a decoder connected in sequence. However, the target task of the aforementioned existing solution is the event extraction task, including: event trigger word extraction, event argument extraction, and the problem scope of the existing solution is sentence level, which cannot cope with the event argument extraction task under the input scale of the document level. The aforementioned invention application document designs an argument prompt for each argument role when performing argument extraction. For example, when identifying the time argument, the argument prompt is: the argument role is time, which requires a large labor cost for data preprocessing; secondly, from the specific implementation content of the existing solution, it can be seen that the existing solution designs an argument prompt for each argument role when performing argument extraction. For example, when identifying the time argument, the argument prompt is: the argument role is time, which requires a large labor cost for data preprocessing; thirdly, the existing technology only solves event argument extraction at the sentence level.

[0005] The existing invention patent application document "A document-level event extraction method based on coreference disambiguation" with publication number CN116861996A, the existing method includes: obtaining all named entities in the document through named entity recognition; grouping entities representing the same thing together through coreference disambiguation to obtain a coreference entity set; processing the document using entity interaction, sentence interaction and coreference relationship to obtain an isomorphic graph with sentences as nodes; grouping sentences with similar semantics or themes together, and using sentence-level attention mechanism for noise reduction to obtain sentence groups; classifying sentence groups to obtain event types, and further obtaining corresponding arguments. However, the aforementioned existing schemes need to perform preprocessing operations such as entity recognition, coreference disambiguation, and converting documents into isomorphic graphs before training the event argument extraction model, and these preprocessing operations involve model training. Extracting event arguments in a pipeline manner will cause the problem of error propagation.

[0006] The existing invention patent application document "A closed domain chapter-level event extraction method based on joint learning" with publication number CN117743600A, the existing method includes: in the data set construction stage, the chapter-level Chinese financial announcement event data set with event type, argument role and argument entity annotation is divided into training set, verification set and test set according to proportion; the constructed data set is input into the closed domain chapter-level event extraction model based on joint learning, and the closed domain chapter-level event extraction model based on joint learning includes argument entity recognition module, semantic fusion encoding module, argument combination extraction module, event type detection module and event record generation module; define the model loss function and train the constructed neural network model. Overall loss L total It includes argument entity recognition loss, argument combination extraction loss, event type detection loss, and argument role classification loss. For each type-combination pair, a feedforward neural network FNN (Fuzzy Neural Network) is used as a classifier to classify the roles of all arguments in the argument combination. The feedforward neural network FNN uses a binary cross entropy loss function. However, the target task of this existing solution is closed domain chapter-level event extraction, not the event argument extraction problem in a general field. In terms of solution, this existing literature uses a pipeline approach to perform entity recognition, semantic fusion encoding, and event extraction, and all involve the training of model parameters, which will cause error propagation.

[0007] The existing public document "Document-level Relation Extraction Based on Contextual Coreference Entity Dependency" proposes a document-level relationship extraction model based on contextual coreference entity dependency, including: document encoding module, entity context mention module, contextual coreference entity dependency reasoning module and classification module. The input document is regarded as a long string of words, and then the input document is encoded by BERT (Bidirectional Encoder Representations from Transformers). The contextual coreference entity dependency reasoning module dynamically generates head and tail entity embeddings for each entity pair, and simulates the interaction between entity pairs by using graph neural networks (GNNs) on a constructed isomorphic entity pair graph. The classifier predicts the relationship between all entity pairs in parallel. However, the solution disclosed in this existing document aims to solve the problems in the document-level relationship extraction task, and is not applicable to the problems existing in the document-level event argument extraction task in terms of the target task. Secondly, in terms of specific solutions, the existing solution only constructs a contextual graph structure of relationships for pronoun entities to solve the problem of entity relationship recognition containing pronouns. The application scenario of only constructing a contextual graph structure of relationships for pronoun entities restricts the generalization of the model.

[0008] In summary, the existing technology has technical problems such as poor accuracy in event argument information extraction and poor model generalization due to argument dispersion, large distance between arguments and trigger words, document redundancy, and error propagation. Summary of the invention

[0009] The technical problem to be solved by the present invention is: how to solve the technical problems in the prior art of poor accuracy in event argument information extraction and poor model generalization due to argument dispersion, excessive distance between arguments and trigger words, document redundancy, and error propagation.

[0010] The present invention adopts the following technical solution to solve the above technical problem: the document level event argument extraction method comprises:

[0011] S1. Based on event co-referential entities, a text tagging module is designed to encode entities, trigger words, and argument role names in the original text to obtain text representation. By calculating semantic similarity and performing retrieval operations on the text representation, all event co-referential entities in the original text are obtained and marked. Co-referential enhanced text is obtained based on the event co-referential entities, and the co-referential enhanced text is used to reflect the event context information in the original text.

[0012] S2. Based on the model structure of the dual-path encoder and decoder, a dual-path representation alignment module is constructed to concatenate the original text and the coreference-enhanced text with the corresponding event description template, respectively, and encode them using the shared parameter encoder to obtain the concatenated text representation, extract the argument representation from the concatenated text representation, process the argument representation using the shared parameter decoder to obtain the argument output, perform representation alignment operations based on the argument output, and combine the alignment loss function and the cross entropy loss to perform model optimization training operations on the argument extraction model;

[0013] S3. Using the generative event argument recognition and extraction module, the test text is input into the argument extraction model to perform a model test operation. The test text representation is obtained by processing it with the argument extraction encoder. The test text representation is processed with the argument extraction decoder to obtain the event argument extraction result.

[0014] The text tagging module of the present invention performs semantic similarity calculation based on the text representation of the entity and argument role names encoded in the document, and retrieves all event co-referential entities in the document. Event co-referential entities can build a bridge between trigger words and arguments, and can explicitly reflect event context information in co-referential enhanced text, effectively improving the argument extraction model's ability to understand event context, helping the argument extraction model capture event arguments across sentences, and improving the effect of event argument recognition and classification.

[0015] In a more specific technical solution, S1 includes:

[0016] S11, using the text tagging module, based on the text representation, performing semantic similarity calculation to obtain a similarity score;

[0017] S12. According to the similarity scores, all event co-referencing entities in the original text are retrieved, and the event co-referencing entities are sorted according to the similarity scores to screen out valid event co-referencing entities, and the valid event co-referencing entities are marked in the original text to obtain the co-referencing enhanced text.

[0018] The present invention performs document-level event argument extraction based on event co-referencing entities and two-way representation alignment, and can efficiently and accurately extract event-related argument information from the original text. The present invention improves the performance and application flexibility of document-level event argument extraction tasks, and is better applicable to fields such as biomedicine, network security, and finance, and is used in downstream application scenarios such as intelligent question answering, knowledge graph construction, and information retrieval.

[0019] Specifically, in terms of the target task, the problem solved by the present invention is to extract event arguments based on document-level input under the premise that event detection has been completed, and can cope with event argument extraction tasks under the document-level input scale.

[0020] The present invention defines event argument extraction as a conditional generation task, which does not require different prompts for each argument role, but only requires a complete event description template. The present invention aims to solve the event argument extraction at the document level, and can realize argument recognition in scenarios where arguments are scattered in multiple sentences.

[0021] In a more specific technical solution, S12 also includes:

[0022] S121, when searching for event coreference entities, fill the event roles of the event coreference entities into a preset event description template to obtain a role-filled template Role-Filled Template;

[0023] S122, inputting the role-filled template Role-Filled Template, the event trigger word Trigger and the document content Context corresponding to the event co-referencing entity into a preset encoder for encoding; obtaining the similarity score corresponding to each role-filled template Role-Filled Template, and screening out K similar entities whose similarity scores are greater than a preset threshold;

[0024] S123. Based on similar entities, valid event co-reference entities are marked in the original text to obtain co-reference enhanced text.

[0025] In a more specific technical solution, in S122, the input of the preset encoder is defined using the following logic:

[0026] [CLS] Role–Filled Template, Trigger, Context [SEP]

[0027] Among them, [CLS] is the special classifier of the encoder, [SEP] is the special separator of the encoder, and Context[SEP] is the document content Context separated by the special separator;

[0028] According to the text representation, the role representation is extracted , trigger word representation And the entity representation in the text content Context , the trigger word representation is processed in series and entity representation , and the series representation is obtained , get the concatenated representation and role representation The semantic similarity of .

[0029] The present invention focuses on event co-referential entities in documents by retrieving and marking event co-referential entities, and can provide event context for pre-trained language models with limited input length, thereby helping the pre-trained language models capture event arguments across sentences.

[0030] Specifically, in addition to the argument extraction model, the present invention does not need to train other models. Only through the text tagging module and the use of the named entity recognition tool, the acquisition of event co-referencing entities can be completed.

[0031] In a more specific technical solution, in S2, the model optimization training operation includes:

[0032] S21, inputting a document containing an event;

[0033] S22, concatenating the event document with the corresponding event description template and inputting them into a shared parameter encoder to obtain an original text representation;

[0034] S23, executing S1 to obtain coreference enhanced text by processing with a text tagging module;

[0035] S24, concatenating the coreference enhanced text with the corresponding event description template and inputting the concatenated text into a shared parameter encoder to obtain a coreference enhanced text representation;

[0036] S25, using a two-way representation alignment module, calculating an alignment loss function between the original text representation and the coreference enhanced text representation;

[0037] S26, inputting the original text representation into the shared parameter decoder to obtain the original event argument text output;

[0038] S27, inputting the coreference enhanced text representation into the shared parameter decoder to obtain an enhanced event argument text output;

[0039] S28. Perform representation alignment operation based on the original event argument text output and the enhanced event argument text output to obtain argument representation, and optimize the argument extraction model based on the cross entropy loss and alignment loss function.

[0040] The dual-path representation alignment module of the present invention strengthens the argument extraction model's understanding of the event context. Based on the model structure of the dual-path encoder and decoder, the event context information is integrated into the representation of the original text, thereby strengthening the argument extraction model's understanding of the event context. The argument extraction model is able to capture arguments across sentences and the association between multiple events, further optimizing the performance of the argument extraction model.

[0041] Specifically, the target task of the present invention is the event argument extraction problem in a general field. There is no model parameter training outside the argument extraction model, and there is no risk of error propagation.

[0042] The present invention proposes the concept of event co-referential entities, i.e. entities in a document that are similar to trigger words and argument roles at the representation level. The present invention uses event co-referential entities to provide event context information for argument extraction models, thereby solving the problem of difficulty in recognition due to scattered arguments. The present invention is not limited to pronoun entities, but any entity that is similar to trigger words and argument roles at the representation level, including pronoun entities, and other types of entities that are co-referential with arguments or related to events, which can provide richer event context information and better solve the problem of difficulty in recognition due to scattered event arguments.

[0043] In a more specific technical solution, in S28, the correct result is set to , the event trigger word is , the corresponding event description template is , the model parameters are , the probability that the current model predicts correctly is , using the following logic, define the original text and coreference-enhanced text In the process of event argument extraction, the functional relationship of cross entropy loss is:

[0044]

[0045]

[0046] in, Represents original text The argument loss function is Representation based on coreference enhanced text c e The argument loss function is o Indicates the original original , e Indicates enhanced enhanced , base Indicates operations based on different texts. Indicates that the corresponding event description template is , event trigger words are Based on the original text Get the correct result The probability of Indicates that the corresponding event description template is , event trigger words are When the text is enhanced based on coreference c e Get the correct result probability.

[0047] In a more specific technical solution, in S25, the alignment loss function is defined using the following logic:

[0048]

[0049] in, L fusion represents the alignment loss function, Represents original text Get the argument representation The probability of p(a|c e ) Representation based on coreference enhanced text c e Get the argument representation The probability of Represents original text Get the argument representation Probability , text enhancement based on coreference c e Get the argument representation Probability p(a |c e ) The Euclidean norm between two corresponding points in high-dimensional space.

[0050] In a more specific technical solution, in S2, the following logic is used to perform a loss function summation operation according to preset weights to obtain the total loss function of the argument extraction model:

[0051]

[0052] in, Represents original text The weight of the argument loss function, Representation based on coreference enhanced text c e The weight of the argument loss function, represents the weight of the alignment loss function, Represents the total loss function.

[0053] In a more specific technical solution, the model testing operation in S3 includes:

[0054] S31, inputting a document containing an event;

[0055] S32, splicing the event document with the corresponding event description template, obtaining and inputting the spliced ​​data into an argument extraction encoder to obtain a test text representation;

[0056] S33, inputting the test text representation into an argument extraction decoder to extract an event argument extraction generation sequence;

[0057] S34. Generate a sequence based on event argument extraction, and process to obtain an event argument extraction result.

[0058] The present invention adopts a generative event argument recognition and extraction module, which reduces the dependence of the argument extraction model on entity annotation during the testing phase, and significantly improves the accuracy of event argument information extraction and the generalization of the model.

[0059] In a more specific technical solution, the document-level event argument extraction system includes:

[0060] The text tagging module is used to encode entities, trigger words and argument role names in the original text to obtain text representation, and obtain and tag all event co-referencing entities in the original text by performing semantic similarity calculation and retrieval operations on the text representation. The co-referencing enhanced text is obtained based on the event co-referencing entities, and the co-referencing enhanced text is used to reflect the event context information in the original text;

[0061] A two-way representation alignment module is used to concatenate the original text and the coreference enhanced text with the corresponding event description template, respectively, and encode them using a shared parameter encoder to obtain a concatenated text representation, extract argument representations from the concatenated text representation, and process the argument representations using a shared parameter decoder to obtain argument outputs, perform representation alignment operations based on the argument outputs, and perform model optimization training operations on the argument extraction model in combination with the alignment loss function and the cross entropy loss. The two-way representation alignment module is connected to the text tagging module;

[0062] The generative event argument recognition and extraction module is used to input the test text into the argument extraction model to perform model testing operations. The test text representation is obtained after being processed by the argument extraction encoder. The test text representation is processed by the argument extraction decoder to obtain the event argument extraction result. The generative event argument recognition and extraction module is connected to the two-way representation alignment module.

[0063] Compared with the prior art, the present invention has the following advantages:

[0064] The text tagging module of the present invention performs semantic similarity calculation based on the text representation of the entity and argument role names encoded in the document, and retrieves all event co-referential entities in the document. Event co-referential entities can build a bridge between trigger words and arguments, and can explicitly reflect event context information in co-referential enhanced text, effectively improving the argument extraction model's ability to understand event context, helping the argument extraction model capture event arguments across sentences, and improving the effect of event argument recognition and classification.

[0065] The present invention performs document-level event argument extraction based on event co-referencing entities and two-way representation alignment, and can efficiently and accurately extract event-related argument information from the original text. The present invention improves the performance and application flexibility of document-level event argument extraction tasks, and is better applicable to fields such as biomedicine, network security, and finance, and is used in downstream application scenarios such as intelligent question answering, knowledge graph construction, and information retrieval.

[0066] The present invention focuses on event co-referential entities in documents by retrieving and marking event co-referential entities, and can provide event context for pre-trained language models with limited input length, thereby helping the pre-trained language models capture event arguments across sentences.

[0067] The dual-path representation alignment module of the present invention strengthens the argument extraction model's understanding of the event context. Based on the model structure of the dual-path encoder and decoder, the event context information is integrated into the representation of the original text, thereby strengthening the argument extraction model's understanding of the event context. The argument extraction model is able to capture arguments across sentences and the association between multiple events, further optimizing the performance of the argument extraction model.

[0068] The present invention adopts a generative event argument recognition and extraction module, which reduces the dependence of the argument extraction model on entity annotation during the testing phase, and significantly improves the accuracy of event argument information extraction and the generalization of the model.

[0069] The present invention solves the technical problems existing in the prior art, that is, the accuracy of event argument information extraction and the poor generalization of the model are caused by argument dispersion, excessive distance between arguments and trigger words, document redundancy, and error propagation. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] Figure 1 Schematic diagram of the basic steps of the document-level event argument extraction method according to Embodiment 1 of the present invention;

[0071] Figure 2 This is a schematic diagram of the model structure of the document-level event argument extraction method according to Embodiment 1 of the present invention;

[0072] Figure 3 This is a schematic diagram of specific steps for retrieving and marking event coreference entities in original text based on a text marking module according to Embodiment 1 of the present invention;

[0073] Figure 4 This is a schematic diagram of specific steps of screening and marking coreference enhanced texts in Example 1 of the present invention;

[0074] Figure 5 Schematic diagram of the dual-path encoder and decoder architecture in Embodiment 1 of the present invention.

[0075] Figure 6This is a schematic diagram of the principle of extracting event arguments by generating text according to Embodiment 1 of the present invention;

[0076] Figure 7 This is a schematic diagram of specific steps for performing model optimization training on an argument extraction model using a dual-path representation alignment module according to Embodiment 1 of the present invention;

[0077] Figure 8 The figure is a schematic diagram of specific steps of testing the argument extraction model according to the first embodiment of the present invention. DETAILED DESCRIPTION

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

[0079] Example 1

[0080] like Figure 1 and Figure 2 As shown, the document-level event argument extraction method provided by the present invention includes the following basic steps:

[0081] Step S1: Based on event coreference entities, a text tagging module is designed to encode entities, trigger words, and argument role names in the original text to obtain text representations. By performing semantic similarity calculations and retrieval operations on the text representations, all event coreference entities in the original text are obtained and marked. Coreference enhanced text is obtained based on the event coreference entities, and the coreference enhanced text is used to reflect event context information in the original text.

[0082] In this embodiment, the text tagging module obtains a text representation based on the entity and argument role name encoding in the event document containing the original text, calculates the semantic similarity of the text representation, and retrieves all event co-referential entities in the event document containing the event; after obtaining the retrieval results of the event co-referential entities, they are sorted according to the similarity scores, and the valid event co-referential entities are screened out and marked in the original text to obtain the co-reference enhanced text; the text tagging module can explicitly reflect the event context information in the event document containing the event, solves the problem of insufficient context understanding caused by the limited input length of the existing pre-trained language model, effectively improves the ability to understand the event context information, helps the argument extraction model capture event arguments across sentences, and improves the effect of event argument recognition and classification.

[0083] like Figure 3As shown, in this embodiment, step S1 of retrieving and marking event co-referencing entities from the original text based on the text marking module also includes the following specific steps:

[0084] S11, using the text tagging module, based on the text representation, performing semantic similarity calculation to obtain a similarity score;

[0085] S12. According to the similarity scores, all event co-referencing entities in the original text are retrieved, and the event co-referencing entities are sorted according to the similarity scores to screen out valid event co-referencing entities, and the valid event co-referencing entities are marked in the original text to obtain the co-referencing enhanced text.

[0086] like Figure 4 As shown, in this embodiment, the step S12 of screening and marking the coreference enhanced text also includes the following specific steps:

[0087] S121, when searching for event coreference entities, fill the event roles of the event coreference entities into a preset event description template to obtain a role-filled template Role-Filled Template;

[0088] S122, inputting the role-filled template Role-Filled Template, the event trigger word Trigger and the document content Context corresponding to the event co-referencing entity into a preset encoder for encoding; obtaining the similarity score corresponding to each role-filled template Role-Filled Template, and screening out K similar entities whose similarity scores are greater than a preset threshold;

[0089] In this embodiment, from the event document containing the input original text, the event co-referencing entity corresponding to the event contained in itself is retrieved and marked in the original text. When retrieving the event co-referencing entity, the event role is filled into the event description template to obtain the role-filled template Role-Filled Template, and the role-filled template Role-FilledTemplate, the event trigger word Trigger and the document content Context are input into the preset encoder. The input definition of the preset encoder is as follows:

[0090] [CLS] Role–Filled Template, Trigger, Context [SEP]

[0091] Among them, [CLS] is the special classifier of the encoder, and [SEP] is the special separator of the encoder. After obtaining the encoded text representation, extract the role representation from the text representation , trigger word representation And the entity representation in the text content Context , the trigger word is represented by and entity representation Carry out concatenation to obtain the concatenation representation ; Calculate the serial representation and role representation The semantic similarity of each entity and role representation A similarity score is calculated for each, and K similar entities are screened out as the retrieval results of event co-referencing entities.

[0092] S123. Based on similar entities, valid event co-reference entities are marked in the original text to obtain co-reference enhanced text.

[0093] In this embodiment, based on the retrieval results of event coreference entities, similar entities in documents containing events are marked with tags of valid event coreference entities to obtain coreference enhanced text.

[0094] The text tagging module in this embodiment encodes the processed original text through a bidirectional encoder to represent the role and trigger words The mean of The semantic similarity is calculated to obtain the valid event co-referencing entities associated with the event context information, and the valid event co-referencing entities are marked in the original text to obtain the co-referencing enhanced text. After representation alignment, the co-referencing enhanced text can provide document-level event context information to the argument extraction model and solve the argument dispersion problem.

[0095] Step S2: Based on the model structure of the dual-path encoder and decoder, a dual-path representation alignment module is constructed, the original text and the coreference enhanced text are concatenated with the corresponding event description template respectively, encoded by a shared parameter encoder to obtain a concatenated text representation, argument representations are extracted from the concatenated text representations, the argument representations are processed by a shared parameter decoder to obtain argument outputs, representation alignment operations are performed according to the argument outputs, and model optimization training operations are performed on the argument extraction model in combination with an alignment loss function and a cross entropy loss;

[0096] In this embodiment, in order to integrate the event context information in the event coreference entity into the original text representation, a two-way representation alignment module is designed. Figure 2 , represents the first delimiter in the original text representation, represents the second delimiter in the original text representation, represents the first delimiter in the coreference-enhanced text representation, represents the second separator in the coreference-enhanced text representation;

[0097] In this embodiment, during the application of the generative pre-trained language model BERT based on the transformer-based dual-path encoder and decoder architecture, because the tags contained in the event arguments are all from the event document containing the input original text, the general text in the original text can be directly reused to generate argument information.

[0098] like Figure 5 As shown, in this embodiment, a generative training language model BERT based on a dual-path encoder and decoder architecture with a multi-head attention module (transformer) is used to extract event arguments. Specifically, the encoder and decoder in the dual-path encoder and decoder architecture each include 12 sub-blocks, each of which includes: a self-attention mechanism, an encoder and decoder attention mechanism, and a feedforward network. The feedforward network in each sub-block includes: a fully connected layer, a linear rectifier function nonlinear layer, and the number of heads of the encoder and decoder attention mechanism can be, for example, 12. Figure 5 N is the number of iterative operations of the encoder and decoder, Softmax represents the normalized exponential function,

[0099] In this embodiment, the two-way representation alignment module is based on the model structure of a two-way encoder and decoder. The original text and the text of the event co-referential entity marker are spliced ​​with the corresponding event description template respectively, encoded by a shared parameter encoder, and the argument representation is extracted from the encoded text representation and aligned, and the model is optimized by combining the alignment loss function and the cross entropy loss. In this embodiment, the two-way representation alignment module integrates the event context information into the original text representation, strengthens the argument extraction model's understanding of the event context information, enables the argument extraction model to capture the arguments across sentences and the association between multiple events, and further optimizes the performance of the argument extraction model.

[0100] The two-way representation alignment module in this embodiment provides event context information to the argument extraction model by two-way training of the original text and the coreference-enhanced text and performing representation alignment on the argument representation. In addition, since the coreference-enhanced text contains event coreference entities of different events, the association between multiple events in the event document can be introduced by performing the representation alignment operation, and the complete event information can be identified.

[0101] like Figure 6 As shown, in this embodiment, the document-level event argument extraction task is regarded as a conditional generation task, that is, based on the existing trigger word tags and the corresponding event description template, the argument extraction model extracts event arguments by generating text. For example, the corresponding event description template of the event Transaction.ExchangeBuySell is:

[0102] <arg1>bought, sold, or traded <arg3>to <arg2>in exchange for <arg4>forthe benefit of <arg5>at <arg6>place( <arg1>Buy, sell, or trade <arg3>arrive <arg2>exchange <arg4>For the benefit of <arg5>exist <arg6>Place).

[0103] In this embodiment, the generation result of the event description template corresponding to the event Transaction.ExchangeBuySell is: the event arguments extracted from the input event document replace the placeholders at the corresponding positions respectively. <arg1> 、 <arg2> 、 <arg3> 、 <arg4> 、 <arg5> 、 <arg6>, for example:

[0104] McVeigh came into the body shop and <arg1>McVeigh enters the car factory and buys the truck. <arg1>The event argument is identified. The argument extraction result is obtained by processing the generated result of the corresponding event description template.

[0105] like Figure 7 As shown, in this embodiment, in step S2 of performing model optimization training on the argument extraction model using the two-way representation alignment module, the model optimization training operation includes:

[0106] S21, inputting a document containing an event;

[0107] S22, concatenating the event document with the corresponding event description template and inputting them into a shared parameter encoder to obtain an original text representation;

[0108] S23, executing S1 to obtain coreference enhanced text by processing with a text tagging module;

[0109] S24, concatenating the coreference enhanced text with the corresponding event description template and inputting the concatenated text into a shared parameter encoder to obtain a coreference enhanced text representation;

[0110] S25, using a two-way representation alignment module, calculating an alignment loss function between the original text representation and the coreference enhanced text representation;

[0111] In this embodiment, the two-way representation alignment module is used to represent the original text. and coreference-enhanced text c e Select the argument representation from the representation of , perform the representation alignment operation, where the alignment loss function is defined as:

[0112]

[0113] in, L fusion represents the alignment loss function, Represents original text Get the argument representation The probability of p(a|c e ) Representation based on coreference enhanced text c e Get the argument representation probability.

[0114] S26, inputting the original text representation into the shared parameter decoder to obtain the original event argument text output;

[0115] S27, inputting the coreference enhanced text representation into the shared parameter decoder to obtain an enhanced event argument text output;

[0116] S28. Perform representation alignment operation based on the original event argument text output and the enhanced event argument text output to obtain argument representation, and optimize the argument extraction model based on the cross entropy loss and alignment loss function.

[0117] In this embodiment, the original text and coreference-enhanced text c e Respectively with the corresponding event description template Concatenate the text, input the concatenated text into the shared parameter encoder, and obtain the event description output containing event arguments; post-process the event description output to obtain the event argument recognition result; assume that the correct result is , the event trigger word is , the corresponding event description template is , the model parameters are , the correct probability of the current model prediction is , then the original text and coreference-enhanced text c e The cross entropy loss function for event argument extraction is defined as:

[0118]

[0119]

[0120] in, Represents original text The argument loss function is Representation based on coreference enhanced text c e The argument loss function of .

[0121] In this embodiment, by executing step S2 and its aforementioned sub-steps, the event context information of the event co-referencing entity is integrated into the original text representation, thereby strengthening the argument extraction model's understanding of the event context and enabling the argument extraction model to capture arguments across sentences and the association between multiple events.

[0122] Based on the original text The argument loss function, based on coreference enhancement text c e The argument loss function and alignment loss function are summed according to different weights to obtain the total loss function of the model training, which is defined as follows:

[0123]

[0124] Step S3: using the generative event argument recognition and extraction module, input the test text into the argument extraction model to perform a model test operation, obtain the test text representation after being processed by the argument extraction encoder, and use the argument extraction decoder to process the test text representation to obtain the event argument extraction result.

[0125] As Figure 8 As shown, in this embodiment, a generative event argument recognition and extraction module is constructed and utilized, by taking the test text as input, passing through the argument extraction encoder to obtain the text representation, and then passing through the argument extraction decoder to obtain the event argument extraction generation sequence, and after post-processing operations, the event argument extraction result is obtained. The aforementioned generative time argument recognition and extraction module reduces the dependence of the argument extraction model on entity annotation during the test phase, and significantly improves the accuracy of event argument information extraction and the generalization of the argument extraction model.

[0126] In this embodiment, the test operation of the argument extraction model also includes the following basic steps:

[0127] S31, inputting a document containing an event;

[0128] S32, splicing the event document with the corresponding event description template, obtaining and inputting the spliced ​​data into an argument extraction encoder, and processing to obtain a test text representation;

[0129] S33, inputting the test text representation into an argument extraction decoder to extract an event argument extraction generation sequence;

[0130] S34. Generate a sequence based on event argument extraction, and process to obtain an event argument extraction result.

[0131] In this embodiment, the original text currently input is used as the test text input into the trained argument extraction model to identify and extract event arguments. The test text is preprocessed, and the preprocessing operations include but are not limited to: marking the event trigger words and splicing with the corresponding event description template; inputting the spliced ​​test text into the argument extraction encoder to obtain the test text representation; inputting the test text representation into the argument extraction decoder to obtain the event argument extraction generation sequence; in this embodiment, the event argument extraction generation sequence includes but is not limited to: event description output of event arguments; post-processing the event description output containing event arguments to obtain the event argument extraction result.

[0132] Example 2

[0133] In this embodiment, according to the document-level event argument extraction method proposed in the present invention, an event argument extraction operation (An Event Arguments Extraction Methodbased on Event Coreference Entities and Dual-path Representation Alignment, ECE-DRA) is performed based on the open source data set ACE-2005 (Automatic Content Extraction-2005), and the performance of the argument extraction model of the present invention is evaluated by comparing with other baseline models, and experimental analysis is performed. The experimental analysis parameter settings in this embodiment are shown in Table 1 below:

[0134] Table 1. List of experimental analysis parameters

[0135]

[0136] In this embodiment, the ACE-2005 data set includes, but is not limited to, 599 documents and 33 event types. In this embodiment, the aforementioned documents include documents containing events crawled from news wires, web blogs, broadcast dialogues, and broadcast news fields during 2003 to 2005.

[0137] In this embodiment, the ACE-2005 dataset is applied to the field of event extraction. Experiments on the ACE-2005 dataset are convenient for comparison with other baseline models. This helps to understand the complex events described in multimedia input. The ACE-2005 dataset has 246 annotated documents, including but not limited to: 50 event types and 59 role types. A total of 26 annotators participated in the annotation process of event information in the ACE-2005 dataset.

[0138] In the experiment of this embodiment, 529 documents in the ACE-2005 dataset are used as a training dataset, 30 documents are used as a development set, and the last 40 documents are used as a test set.

[0139] In this embodiment, the text encoder in the event coreference entity-based text tagging module uses BERT-base-uncased (Bidirectional Encoder Representations from Transformers, bidirectional encoder representations pre-trained based on uncapitalized English text from Transformers).

[0140] In this embodiment, BERT-base-uncased includes but is not limited to: 768 hidden embedding dimensions and 12 attention layers, each with 12 attention heads. The BERT-base-uncased model uses cosine similarity as the similarity calculation method used to retrieve event co-referencing entities in the text tagging module based on event co-referencing entities. For BERT in the model, in this embodiment, for example: BERT-large (BERT model based on large function) can be used. BERT-large includes but is not limited to: 1024 hidden embedding dimensions and 24 attention layers, each with 16 attention heads. During the training process, the model uses the Adam optimizer to All parameters are updated with a learning rate of . The BERT-large model is trained for 4 epochs with a batch size of 2. For hyperparameters, the original text The weight of the argument loss function , Enhanced text based on coreference c e The weight of the argument loss function and the weights of the alignment loss function They are set to, for example, 1, 1, and 0.5 respectively, and the event co-referencing entity screening number K is set to, for example, 3. In this case, for each role, the event co-referencing entity-based text tagging module selects the three similar entities with the highest similarity scores as event co-referencing entities. For details, see Table 2 below:

[0141] Table 2. Performance comparison of the present invention and existing models

[0142]

[0143] The present invention extracts document-level event arguments based on event coreference entities and two-way representation alignment modules. A generative event argument recognition and extraction module is constructed based on a generative pre-trained language model, and is combined with a text tagging module based on event coreference entities and a two-way representation alignment module to extract event arguments.

[0144] Referring to the table above, the document-level event argument extraction operation model ECE-DRA (An Event Arguments Extraction Method based on Event CoreferenceEntities and Dual-path Representation Alignment) of the present invention based on event co-referencing entities and dual-path representation alignment has achieved state-of-the-art performance on the aforementioned ACE-2005 dataset, outperforming all other benchmark models in terms of recall rate and F1 score. Compared with the baseline model BERT-QA used in the experiment of this embodiment, the ECE-DRA model improved the F1 value by 2.09 percentage points on the ACE-2005 dataset. This verifies the effectiveness of the ECE-DRA model in document-level event argument extraction tasks.

[0145] The above is only a preferred embodiment of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

[0146] In summary, the text tagging module of the present invention performs semantic similarity calculation based on the text representation of the entity and argument role names encoded in the document, and retrieves all event co-referential entities in the document. Event co-referential entities can build a bridge between trigger words and arguments, and can explicitly reflect event context information in co-referential enhanced text, effectively improving the argument extraction model's ability to understand event context, helping the argument extraction model capture event arguments across sentences, and improving the effect of event argument recognition and classification.

[0147] The present invention performs document-level event argument extraction based on event co-referencing entities and two-way representation alignment, and can efficiently and accurately extract event-related argument information from the original text. The present invention improves the performance and application flexibility of document-level event argument extraction tasks, and is better applicable to fields such as biomedicine, network security, and finance, and is used in downstream application scenarios such as intelligent question answering, knowledge graph construction, and information retrieval.

[0148] The present invention focuses on event co-referential entities in documents by retrieving and marking event co-referential entities, and can provide event context for pre-trained language models with limited input length, thereby helping the pre-trained language models capture event arguments across sentences.

[0149] The dual-path representation alignment module of the present invention strengthens the argument extraction model's understanding of the event context. Based on the model structure of the dual-path encoder and decoder, the event context information is integrated into the representation of the original text, thereby strengthening the argument extraction model's understanding of the event context. The argument extraction model is able to capture arguments across sentences and the association between multiple events, further optimizing the performance of the argument extraction model.

[0150] The present invention adopts a generative event argument recognition and extraction module, which reduces the dependence of the argument extraction model on entity annotation during the testing phase, and significantly improves the accuracy of event argument information extraction and the generalization of the model.

[0151] The present invention solves the technical problems existing in the prior art, that is, the accuracy of event argument information extraction and the poor generalization of the model are caused by argument dispersion, excessive distance between arguments and trigger words, document redundancy, and error propagation.

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

Claims

1. Document-level event argument extraction method, characterized in that: The method comprises: S1. Based on event co-referential entities, a text tagging module is designed to encode entities, trigger words, and argument role names in the original text to obtain text representation. By performing semantic similarity calculation and retrieval operations on the text representation, all event co-referential entities in the original text are obtained and marked. Co-referential enhanced text is obtained based on the event co-referential entities, and the co-referential enhanced text is used to reflect the event context information in the original text. S2. Based on the model structure of the dual-path encoder and decoder, a dual-path representation alignment module is constructed, the original text and the coreference enhanced text are concatenated with the corresponding event description template respectively, encoded by a shared parameter encoder to obtain a concatenated text representation, an argument representation is extracted from the concatenated text representation, the argument representation is processed by a shared parameter decoder to obtain an argument output, a representation alignment operation is performed according to the argument output, and a model optimization training operation is performed on the argument extraction model in combination with an alignment loss function and a cross entropy loss; In S2, the model optimization training operation includes: S21, inputting a document containing an event; S22, splicing the event document with the corresponding event description template and inputting them into the shared parameter encoder to obtain an original text representation; S23, executing S1 to obtain the coreference enhanced text by processing with the text marking module; S24, concatenating the coreference enhanced text with the corresponding event description template and inputting the concatenated text into the shared parameter encoder to obtain a coreference enhanced text representation; S25, using the two-way representation alignment module, calculating the alignment loss function between the original text representation and the coreference enhanced text representation; Among them, in S25, the alignment loss function is defined using the following logic: L fusion : In the formula, Represents original text Get the argument representation The probability of p(a|c e ) Representation based on coreference enhanced text c e Get the argument representation The probability of Indicates that based on the original text Get the argument representation Probability , based on the coreference enhanced text c e Get the argument representation Probability p(a| c e ) The Euclidean norm between two corresponding points in high-dimensional space; S26, inputting the original text representation into a shared parameter decoder to obtain an original event argument text output; S27, inputting the coreference enhanced text representation into the shared parameter decoder to obtain an enhanced event argument text output; S28, performing the representation alignment operation according to the original event argument text output and the enhanced event argument text output, processing to obtain the argument representation, and optimizing the argument extraction model based on the cross entropy loss and the alignment loss function; Among them, in said S28, it is assumed that the correct result is , the event trigger word is , the corresponding event description template is , the model parameters are , the probability that the current model predicts correctly is , using the following logic, define the original text and the coreference-enhanced text c e In the process of event argument extraction, the functional relationship of the cross entropy loss is: In the formula, Represents original text The argument loss function is Representation based on coreference enhanced text c e The argument loss function is o Indicates the original original , e Indicates enhanced enhanced , base Indicates operations based on different texts. Indicates that the corresponding event description template is , the event trigger word is When, based on the original text Get the correct result The probability of Indicates that the corresponding event description template is , the event trigger word is When the coreference is enhanced based on the text c e Get the correct result The probability of Using the following logic, the loss function is summed according to the preset weights to obtain the total loss function of the argument extraction model: In the formula, Represents original text The argument loss function is Representation based on coreference enhanced text c e The argument loss function is Indicates that based on the original text The weight of the argument loss function, Represents the coreference-enhanced text c e The weight of the argument loss function, represents the weight of the alignment loss function, represents the total loss function; S3. Using the generative event argument recognition and extraction module, the test text is input into the argument extraction model to perform a model test operation, and the test text representation is obtained by processing the argument extraction encoder. The test text representation is processed by the argument extraction decoder to obtain the event argument extraction result.

2. The document-level event argument extraction method according to claim 1, characterized in that: The S1 includes: S11, using the text marking module to perform the semantic similarity calculation based on the text representation to obtain a similarity score; S12. According to the similarity score, all the event co-referential entities in the original text are retrieved, and the event co-referential entities are sorted according to the similarity score to screen out valid event co-referential entities, and the valid event co-referential entities are marked in the original text to obtain the co-referential enhanced text.

3. The document-level event argument extraction method according to claim 2, characterized in that: The S12 further includes: S121, when retrieving the event coreference entity, filling the event role of the event coreference entity into a preset event description template to obtain a role-filled template Role-Filled Template; S122, inputting the role-filled template Role-Filled Template, event trigger Trigger and document content Context corresponding to the event co-referencing entity into a preset encoder for encoding; obtaining the similarity score corresponding to each role-filled template Role-Filled Template, and screening out K similar entities whose similarity scores are greater than a preset threshold; S123. Based on the similar entities, mark the valid event coreference entities in the original text to obtain the coreference enhanced text.

4. The document-level event argument extraction method according to claim 3 is characterized in that: In S122, the input of the preset encoder is defined using the following logic: [CLS] Role–Filled Template, Trigger, Context [SEP] Wherein, [CLS] is the special classifier of the encoder, [SEP] is the special separator of the encoder, and Context [SEP] is the document content Context separated by the special separator; According to the text representation, the role representation is extracted , trigger word representation And the entity representation in the text content Context , the trigger words are processed in series to represent and the entity representation , and the series representation is obtained , get the series representation and said role represents The semantic similarity of .

5. The document-level event argument extraction method according to claim 1, characterized in that: The model testing operation in S3 includes: S31, inputting a document containing an event; S32, splicing the event-containing document with the corresponding event description template, obtaining and inputting spliced ​​data into the argument extraction encoder to obtain the test text representation; S33, inputting the test text representation into the argument extraction decoder to extract an event argument extraction generation sequence; S34, extracting and generating a sequence according to the event argument, and processing to obtain the event argument extraction result.

6. A document-level event argument extraction system, used to execute the document-level event argument extraction method according to any one of claims 1 to 5, characterized in that: The system comprises: A text tagging module is used to encode entities, trigger words and argument role names in the original text to obtain text representation, obtain and tag all event co-referencing entities in the original text by performing semantic similarity calculation and retrieval operations on the text representation, obtain co-referencing enhanced text based on the event co-referencing entities, and use the co-referencing enhanced text to reflect event context information in the original text; A two-way representation alignment module is used to concatenate the original text and the coreference enhanced text with the corresponding event description template, encode them using a shared parameter encoder to obtain a concatenated text representation, extract argument representations from the concatenated text representations, process the argument representations using a shared parameter decoder to obtain argument outputs, perform representation alignment operations based on the argument outputs, and perform model optimization training operations on the argument extraction model in combination with an alignment loss function and a cross entropy loss. The two-way representation alignment module is connected to the text tagging module; A generative event argument recognition and extraction module is used to input a test text into the argument extraction model to perform a model test operation, obtain a test text representation after processing by an argument extraction encoder, and process the test text representation using an argument extraction decoder to obtain an event argument extraction result. The generative event argument recognition and extraction module is connected to the two-way representation alignment module.

Citation Information

Patent Citations

  • Trigger word and argument extraction method, system and device and medium

    CN116205220A

  • Document-level event extraction method based on co-reference disambiguation

    CN116861996A

  • Event detection method of event syntactic fusion structure and computer readable medium

    CN116882389A

  • Joint learning-based closed domain chapter-level event extraction method

    CN117743600A

  • Event extraction method and device, electronic equipment and medium

    CN116089584A