Event extraction robustness model training method, device and readable storage medium

By using different parameter initialization and clean token selection strategies for the two initial event extraction models, the joint loss is calculated, and the model is trained to enhance its robustness to label noise, which solves the problem of the existing event extraction model's poor robustness to data annotation errors. problems and realize the practical application needs in the military field.

CN118520038BActive Publication Date: 2024-10-01NAT UNIV OF DEFENSE TECH
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing event extraction models have poor robustness to data annotation errors, which may lead to serious consequences especially in the military field, and existing research has not yet conducted relevant research on the robustness of event extraction models to label noise.

Method used

By obtaining two initial event extraction models and initializing different parameters, a clean token selection strategy is used to calculate the supervision loss and contrast loss to form a joint loss. The model is trained to enhance its ability to discriminate clean tokens and gradually enable the model to predict results. consistent.

Benefits of technology

The robustness of the event extraction model to label noise is improved, allowing the model to maintain performance in the face of abnormal data and meeting the actual needs of the military field.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118520038B_ABST
    Figure CN118520038B_ABST
Patent Text Reader

Abstract

This disclosure provides a method, apparatus, and readable storage medium for training robust event extraction models. Two identical event extraction models are initialized with different parameters. Then, the event extraction models are used to select clean tokens from a text sequence, and the supervised loss and contrastive loss of the clean tokens are calculated to form a joint loss. Simultaneously, the event extraction models are trained, enhancing their ability to discriminate clean tokens and gradually achieving consistent predictions of the input, resulting in two well-trained target event extraction models. This processing scheme enhances the robustness of event extraction models to label noise, aiming to ensure that the trained event extraction models meet the practical needs of the military field.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of event extraction, and in particular to a method, device and readable storage medium for training an event extraction robustness model. Background Art

[0002] Event extraction methods based on deep learning usually assume that the annotation information in the event dataset is correct, and believe that the event extraction model trained on such a dataset can correctly extract event information in the text. However, the reality is often difficult to meet this assumption. Data annotation can be roughly divided into three methods: fully automatic, semi-automatic, and manual. Although the first two methods are more efficient, the annotation accuracy is not as good as the manual method, and they also require manually annotated data as a basis. However, even datasets that cost a lot of manpower to build have annotation errors, especially when the dataset is large. This makes the event extraction model often contain the same deviation as the dataset, and the model performance will be affected by the annotation errors (label noise) in the dataset. Robustness refers to the ability of the model to maintain its performance when facing abnormal data. In the military field, event extraction models with poor robustness to data annotation errors may lead to serious adverse consequences.

[0003] The annotation information of a text in an event dataset contains trigger words and event elements, and there may be multiple annotation errors at the same time. In addition, the label noise granularity in the sequence labeling task is at the token level. Currently, there is no relevant research on the label robustness of event extraction models. Summary of the invention

[0004] In view of this, the embodiments of the present disclosure provide an event extraction robustness model training method, device and readable storage medium, which at least partially solve the problems existing in the prior art to enhance the robustness of the event extraction model to label noise, aiming to make the trained event extraction model meet the actual needs of the military field.

[0005] In a first aspect, an embodiment of the present disclosure provides an event extraction model training method, comprising:

[0006] Acquire a first initial event extraction model and a second initial event extraction model, and initialize a first initialization parameter of the first initial event extraction model and a second initialization parameter of the second initial event extraction model;

[0007] Using the first initialization parameter and the second initialization parameter as two preset parameters on a validation set;

[0008] Adopting a clean token selection strategy, the first initial event extraction model and the second initial event extraction model are used to select clean tokens in the text sequence;

[0009] Calculate the supervision loss and contrast loss of the clean token to form a joint loss;

[0010] Using the joint loss, calculate the average performance indicators of the first initial event extraction model and the second initial event extraction model on the validation set for two subtasks to obtain a first target event extraction model and a second target event extraction model;

[0011] The first target event extraction model and the second target event extraction model are used for prediction.

[0012] According to a specific implementation of an embodiment of the present disclosure, obtaining a first initial event extraction model and a second initial event extraction model, and initializing a first initialization parameter of the first initial event extraction model and a second initialization parameter of the second initial event extraction model include:

[0013] Get the training set , validation set , the initial learning rate , total training rounds , the number of iterations per round , probability threshold coefficient ;

[0014] Using the training set , validation set , initial learning rate , total training rounds , number of iterations per round and probability threshold coefficient , initialize the first initialization parameter and the second initialization parameter.

[0015] According to a specific implementation of the embodiment of the present disclosure, the first initialization parameter and the second initialization parameter are used as two preset parameters on the validation set, including:

[0016] Initialize the first initial event extraction model and the second initial event extraction model with the best performance on the validation set;

[0017] Use 0 as the initialization value on the validation set values, so that the first initialization parameter and the second initialization parameter are used as two preset parameters on the validation set;

[0018] Among them, F1 is the harmonic mean of the accuracy and recall rate of the classification model. The initial value is 0. is the best F1 value.

[0019] According to a specific implementation of the embodiment of the present disclosure, a clean token selection strategy is adopted, and a first initial event extraction model and a second initial event extraction model are used to select a clean token in a text sequence, including:

[0020] Obtaining token values ​​in a text sequence and calculating the probability distribution of the token values ​​in an event tag space;

[0021] By setting a probability threshold and combining the probability distribution, a clean token in the text sequence is selected using the classification probabilities of the first initial event extraction model and the second initial event extraction model.

[0022] According to a specific implementation of the embodiment of the present disclosure, the following relationship is satisfied:

[0023]

[0024] }

[0025] Among them, the probability distribution , Quantity Indicates that the first initial event extraction model and the second initial event extraction model classify the token value as a labeled event label The probability of is the training round, For training rounds The probability threshold in is the probability threshold coefficient, Represents a sequence of text The subscript of the clean token selected in .

[0026] According to a specific implementation of the embodiment of the present disclosure, the supervised loss function of the first initial event extraction model and the second initial event extraction model for:

[0027]

[0028] Contrastive loss function :

[0029]

[0030]

[0031] Joint loss function :

[0032]

[0033] in, is a bias weight greater than 1, =1 or =0, when =1, indicating token y i is a negative token, =0 indicates that the token is a positive token. is the weight of the contrast loss.

[0034] According to a specific implementation of the embodiment of the present disclosure, during the prediction process, the first target event extraction model and the second target event extraction model output the probability distribution of each token in the event tag space. ,make express The event label corresponding to the maximum component subscript in , that is, the token of the first target event extraction model and the second target event extraction model The classification result of the prediction output is the predicted event label sequence .

[0035] In a second aspect, the present disclosure provides an event extraction robustness model training method and device, including:

[0036] An initialization parameter module, used to obtain a first initial event extraction model and a second initial event extraction model, and initialize a first initialization parameter of the first initial event extraction model and a second initialization parameter of the second initial event extraction model;

[0037] A preset parameter module, used to use the first initialization parameter and the second initialization parameter as two preset parameters on a validation set;

[0038] A clean token selection module, used to adopt a clean token selection strategy and select a clean token in a text sequence using a first initial event extraction model and a second initial event extraction model;

[0039] The first calculation module is used to calculate the supervision loss and contrast loss of the clean token to form a joint loss;

[0040] A second calculation module is used to calculate the average performance indicators of the first initial event extraction model and the second initial event extraction model on the validation set for two subtasks using the joint loss to obtain a first target event extraction model and a second target event extraction model;

[0041] A prediction module is used to perform prediction using the first target event extraction model and the second target event extraction model.

[0042] In a third aspect, an embodiment of the present disclosure also provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores one or more computer programs executable by the at least one processor, and one or more of the computer programs are executed by the at least one processor so that the at least one processor can execute the above-mentioned event extraction robustness model training method.

[0043] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium on which a computer program is stored, wherein the computer program implements the above-mentioned event extraction robustness model training method when executed by a processor / processing core.

[0044] The disclosed embodiments provide an event extraction robustness model training method, device, and readable storage medium, in which different parameters are initialized for two event extraction models of the same structure, and then the event extraction model is used to select clean tokens in a text sequence, and the supervision loss and contrast loss of the clean tokens are calculated to form a joint loss and train the event extraction models simultaneously, so that their ability to discriminate clean tokens is enhanced and they gradually reach a consistent prediction on the input, thereby obtaining two trained target event extraction models.

[0045] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention and implement it according to the contents of the specification, the following is a detailed description of the preferred embodiments of the present invention in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0047] Figure 1 A flowchart of a method for training a robust model for event extraction provided by an embodiment of the present disclosure;

[0048] Figure 2 A schematic diagram of the structure of an event extraction robustness model training device provided in an embodiment of the present disclosure;

[0049] Figure 3 A schematic diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0050] The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.

[0051] The following describes the embodiments of the present disclosure through specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.

[0052] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.

[0053] It should also be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present disclosure. The drawings only show components related to the present disclosure rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0054] Additionally, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects described may be practiced without these specific details.

[0055] In one embodiment, Figure 1 As shown, the present application provides an event extraction robustness model training method, which specifically includes the following steps:

[0056] Step S10: obtaining a first initial event extraction model and a second initial event extraction model, and initializing a first initialization parameter of the first initial event extraction model and a second initialization parameter of the second initial event extraction model;

[0057] Step S20: using the first initialization parameter and the second initialization parameter as two preset parameters on a validation set;

[0058] Step S30: adopting a clean token selection strategy, using the first initial event extraction model and the second initial event extraction model to select a clean token in the text sequence;

[0059] Step S40: Calculate the supervision loss and contrast loss of the clean token to form a joint loss;

[0060] Step S50: using the joint loss to calculate the average performance indicators of the first initial event extraction model and the second initial event extraction model on the validation set for two subtasks, so as to obtain a first target event extraction model and a second target event extraction model;

[0061] Step S60: using the first target event extraction model and the second target event extraction model to perform prediction.

[0062] In the event extraction model training method provided in the above embodiment, different parameters are initialized for two event extraction models with the same structure, and then the event extraction model is used to select clean tokens in the text sequence, and the supervision loss and contrast loss of the clean tokens are calculated to form a joint loss and train the event extraction models at the same time, so that their ability to distinguish clean tokens is enhanced and they gradually reach a consistent prediction on the input, thereby obtaining two trained target event extraction models.

[0063] In one embodiment, step S10: obtaining a first initial event extraction model and a second initial event extraction model, and initializing a first initialization parameter of the first initial event extraction model and a second initialization parameter of the second initial event extraction model, specifically comprises the following steps:

[0064] Step S11: Obtain training set , validation set , the initial learning rate , total training rounds , the number of iterations per round , probability threshold coefficient ;

[0065] Step S12: Using the training set , validation set , initial learning rate , total training rounds , number of iterations per round and probability threshold coefficient , initialize the first initialization parameter and the second initialization parameter.

[0066] Specifically, the two event extraction models are the first initial event extraction model and the second initial event extraction model , the structures of the two event extraction models are the same, the first initialization parameter and the second initialization parameter different.

[0067] Using two event extraction models is a training framework. The conventional training framework uses a single model output. The training framework proposed in this paper uses the output of the event extraction model. The two event extraction models have the same structure but different parameters, namely .

[0068] Learning Rate , total training rounds , the number of iterations per round , probability threshold coefficient They are all hyperparameters, defined by the users of the two initial event extraction models according to actual conditions.

[0069] In one embodiment, step S20: using the first initialization parameter and the second initialization parameter as two preset parameters on a validation set specifically includes the following steps:

[0070] Step S21: Initialize the first initial event extraction model and the second initial event extraction model with the best performance on the validation set;

[0071] Step S22: Use 0 as the best initialization value on the validation set values, so that the first initialization parameter and the second initialization parameter are used as two preset parameters on the validation set;

[0072] Among them, F1 is the harmonic mean of the accuracy and recall rate of the classification model. The initial value is 0. The optimal F1 value is then continuously updated.

[0073] Specifically, the preset parameters are the event extraction model parameters with the best performance on the validation set.

[0074] In one embodiment, step S30: adopting a clean token selection strategy, using the first initial event extraction model and the second initial event extraction model to select a clean token in the text sequence, specifically includes the following steps:

[0075] Step S31: obtaining token values ​​in the text sequence, and calculating the probability distribution of the token values ​​in the event tag space;

[0076] Step S32: by setting a probability threshold and combining the probability distribution, a clean token in the text sequence is selected using the classification probabilities of the first initial event extraction model and the second initial event extraction model.

[0077] Specifically, the following relationship is satisfied:

[0078]

[0079] }

[0080] Among them, the probability distribution , Quantity Indicates that the first initial event extraction model and the second initial event extraction model classify the token value as a labeled event label The probability of is the training round, For training rounds The probability threshold in is the probability threshold coefficient, Represents a sequence of text The subscript of the clean token selected in .

[0081] This paper regards event extraction as a sequence labeling task, and converts the text sequence segmented by the BERT tokenizer into and enter The BERT encoding module of the layer takes its last layer output as the token vector representation sequence of T .

[0082] In the early stage of training, the event extraction model has weak discrimination ability and large classification inconsistency. Should be a smaller value; as the training process progresses, the discrimination ability gradually increases, and increasing the probability threshold can select more reliable clean tokens, and the probability threshold is The logarithmic function of the increasing speed gradually decays, which is consistent with the nature of the gradual convergence of the model in the process. The value of is analyzed to make the probability threshold value within a reasonable range.

[0083] In one embodiment, for step S40, since the clean token selection strategy is adopted during the training process, the supervised loss function of the two initial event extraction models is The expression is:

[0084]

[0085] The supervised loss function aims to enhance the ability of the two initial event extraction models to distinguish clean tokens and pay more attention to positive tokens. In order to enhance the consistency of the classification of these tokens by the first initial event extraction model and the second initial event extraction model, their probability distribution on the event label is and Close, so the KL (Kullback Leibler) divergence is used to construct the contrast loss function :

[0086] Contrastive loss function The expression is as follows:

[0087]

[0088]

[0089] Finally, the supervision loss function and the contrast loss function are combined into a joint loss function , so that the event extraction model can enhance its ability to distinguish clean tokens and gradually reach a consistent prediction on the input, and simultaneously update the parameters of the two initial event extraction models by back-propagating the gradient:

[0090] Joint loss function :

[0091]

[0092] in, is a bias weight greater than 1, =1 or =0, when =1, indicating token y i is a negative token, =0 indicates that the token is a positive token; is the weight of the contrast loss, which is a custom parameter.

[0093] In one embodiment, the event extraction model is calculated on the validation set The average performance index of the above two subtasks .if , then record the validation set Best value , save the validation set The best performing model parameters , , output validation set The best event extraction model on and , thereby calculating the first target event extraction model and the second target event extraction model, which are the two trained event extraction models; is the accuracy, is the recall rate, It is the harmonic mean of precision and recall.

[0094] In one embodiment, during the prediction process, the first target event extraction model and the second target event extraction model output the probability distribution of each token in the event tag space. ,make express The event label corresponding to the maximum component subscript in , that is, the token of the first target event extraction model and the second target event extraction model The classification result of the prediction output is the predicted event label sequence .

[0095] In one embodiment, the present application also provides an event extraction robustness model training device, the training device 100 includes an initialization parameter module 10, a preset parameter module 20, a clean token selection module 30, a first calculation module 40, a second calculation module 50 and a prediction module 60.

[0096] Specifically, an initialization parameter module is used to obtain a first initial event extraction model and a second initial event extraction model, and initialize a first initialization parameter of the first initial event extraction model and a second initialization parameter of the second initial event extraction model; a preset parameter module is used to use the first initialization parameter and the second initialization parameter as two preset parameters on a validation set; a clean token selection module is used to adopt a clean token selection strategy and use the first initial event extraction model and the second initial event extraction model to select a clean token in a text sequence; a first calculation module is used to calculate the supervision loss and contrast loss of the clean token to form a joint loss; a second calculation module is used to use the joint loss to calculate the average performance indicators of the first initial event extraction model and the second initial event extraction model on the two subtasks on the validation set to obtain a first target event extraction model and a second target event extraction model; a prediction module is used to use the first target event extraction model and the second target event extraction model for prediction.

[0097] The beneficial effects produced by the event extraction robustness model training device are consistent with the above-mentioned event extraction robustness model training method, and will not be repeated here.

[0098] Reference Figure 3An embodiment of the present disclosure provides an electronic device, which includes: at least one processor 401; at least one memory 402, and one or more I / O interfaces 403, connected between the processor 401 and the memory 402; wherein the memory 402 stores one or more computer programs that can be executed by at least one processor 401, and the one or more computer programs are executed by at least one processor 401 so that the at least one processor 401 can execute the above-mentioned event extraction robustness model training method.

[0099] The present disclosure also provides a computer-readable storage medium on which a computer program is stored, wherein the computer program implements the above-mentioned event extraction robustness model training method when executed by a processor / processing core. The computer-readable storage medium may be a volatile or non-volatile computer-readable storage medium.

[0100] The embodiments of the present disclosure also provide a computer program product, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above-mentioned event extraction robustness model training method.

[0101] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In a hardware implementation, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable storage medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium).

[0102] The above is only a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present disclosure should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A method for training a robust event extraction model. It is characterized in that include: Acquire a first initial event extraction model and a second initial event extraction model, and initialize a first initialization parameter of the first initial event extraction model and a second initialization parameter of the second initial event extraction model; Using the first initialization parameter and the second initialization parameter as two preset parameters on a validation set; Adopting a clean token selection strategy, using the first initial event extraction model and the second initial event extraction model to select a clean token in the text sequence; Calculate the supervision loss and contrast loss of the clean token to form a joint loss; Using the joint loss, calculate the average performance indicators of the first initial event extraction model and the second initial event extraction model on the validation set for two subtasks to obtain a first target event extraction model and a second target event extraction model; Using the first target event extraction model and the second target event extraction model to perform prediction; The first initialization parameter and the second initialization parameter are used as two preset parameters on the validation set, including: Initialize the first initial event extraction model and the second initial event extraction model with the best performance on the validation set; Use 0 as the initialization value on the validation set values, so that the first initialization parameter and the second initialization parameter are used as two preset parameters on the validation set; in, is the harmonic mean of the accuracy and recall of the classification model. The initial value is 0. For the best value; And adopt a clean token selection strategy, use the first initial event extraction model and the second initial event extraction model to select clean tokens in the text sequence, including: Obtaining token values ​​in a text sequence and calculating the probability distribution of the token values ​​in an event tag space; By setting a probability threshold and combining the probability distribution, a clean token in the text sequence is selected using the classification probabilities of the first initial event extraction model and the second initial event extraction model; And the following relationship is satisfied: ; Among them, the probability distribution , Quantity Indicates that the first initial event extraction model and the second initial event extraction model classify the token value as a labeled event label The probability of is the training round, For training rounds The probability threshold in is the probability threshold coefficient, Represents a sequence of text The subscript of the clean token selected in .

2. The event extraction robustness model training method according to claim 1, It is characterized in that Acquiring a first initial event extraction model and a second initial event extraction model, and initializing a first initialization parameter of the first initial event extraction model and a second initialization parameter of the second initial event extraction model, including: Get the training set , validation set , the initial learning rate , total training rounds , the number of iterations per round , probability threshold coefficient ; Using the training set , validation set , initial learning rate , total training rounds , number of iterations per round and probability threshold coefficient , initialize the first initialization parameter and the second initialization parameter.

3. The event extraction robustness model training method according to claim 1, It is characterized in that During the prediction process, the first target event extraction model and the second target event extraction model output the probability distribution of each token in the event tag space. ,make express The event label corresponding to the maximum component subscript in , that is, the first target event extraction model and the second target event extraction model pair The classification result of the prediction output is the predicted event label sequence .

4. A device for training event extraction robustness model, It is characterized in that include: An initialization parameter module, used to obtain a first initial event extraction model and a second initial event extraction model, and initialize a first initialization parameter of the first initial event extraction model and a second initialization parameter of the second initial event extraction model; A preset parameter module, used to use the first initialization parameter and the second initialization parameter as two preset parameters on a validation set; A clean token selection module, used to adopt a clean token selection strategy and select a clean token in a text sequence using a first initial event extraction model and a second initial event extraction model; The first calculation module is used to calculate the supervision loss and contrast loss of the clean token to form a joint loss; A second calculation module is used to calculate the average performance indicators of the first initial event extraction model and the second initial event extraction model on the validation set for two subtasks using the joint loss to obtain a first target event extraction model and a second target event extraction model; A prediction module, configured to perform prediction using the first target event extraction model and the second target event extraction model; The first initialization parameter and the second initialization parameter are used as two preset parameters on the validation set, including: Initialize the first initial event extraction model and the second initial event extraction model with the best performance on the validation set; Use 0 as the initialization value on the validation set values, so that the first initialization parameter and the second initialization parameter are used as two preset parameters on the validation set; in, is the harmonic mean of the accuracy and recall of the classification model. The initial value is 0. For the best value; And adopt a clean token selection strategy, use the first initial event extraction model and the second initial event extraction model to select clean tokens in the text sequence, including: Obtaining token values ​​in a text sequence and calculating the probability distribution of the token values ​​in an event tag space; By setting a probability threshold and combining the probability distribution, a clean token in the text sequence is selected using the classification probabilities of the first initial event extraction model and the second initial event extraction model; And the following relationship is satisfied: ; Among them, the probability distribution , Quantity Indicates that the first initial event extraction model and the second initial event extraction model classify the token value as a labeled event label The probability of is the training round, For training rounds The probability threshold in is the probability threshold coefficient, Represents a sequence of text The subscript of the clean token selected in .

5. An electronic device, It is characterized in that include: at least one processor; as well as a memory communicatively coupled to the at least one processor; The memory stores one or more computer programs executable by the at least one processor, and the one or more computer programs are executed by the at least one processor so that the at least one processor can perform the method as described in any one of claims 1 to 3.

6. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the computer program implements the method according to any one of claims 1 to 3.