A joint decoding triplet extraction method integrating multi-dimensional features under low resources

By integrating multi-dimensional features and active learning strategies in triple extraction technology, combined with the TPLinker model, the problem of lack of corpus and error accumulation is solved, efficient triple extraction is achieved, the cost of manual annotation is reduced, and the accuracy of the model is improved sex and flexibility.

CN116204657BActive Publication Date: 2024-10-25NANJING NEW GENERATION ARTIFICIAL INTELLIGENCE RES INST CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202310221994.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-09
Publication Date
2024-10-25
Estimated Expiration
2043-03-09

AI Technical Summary

Technical Problem

Existing triple extraction technology faces problems such as lack of corpus, error accumulation, and active learning strategy selection, resulting in difficult annotation, high labor costs, and serious error accumulation, and the effective combination of active learning and joint decoding models has not been solved.

Method used

A joint decoding triple extraction method based on active learning that fuses multi-dimensional features under low resources is used to fuse RoBERTa word-level coding with HanLP's part-of-speech, syntactic dependency and semantic dependence features, combined with the TPLinker model, and uncertainty sampling through active learning Strategy, calculate the annotation value of the sentence, and gradually improve the accuracy of triple extraction.

Benefits of technology

Under low resource conditions, the accuracy of triple extraction is improved, the cost of manual annotation is reduced, information sharing of entity extraction, relationship extraction and active learning strategies is realized, error accumulation and strategy deviation are avoided, and the flexibility of the model is improved. and applicability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116204657B_ABST
    Figure CN116204657B_ABST
Patent Text Reader

Abstract

The present invention discloses a joint decoding triple extraction method integrating multi-dimensional features under low resources, which relates to the field of joint extraction of entities and relations in natural language processing. In the case of scarce annotation cost, after word segmentation of training data, the underlying natural language processing feature parts of speech, syntactic dependency and semantic dependency are obtained, and the underlying natural language processing features are combined with RoBERTa word-level encoding to make up for the problem of insufficient capture of semantic and syntactic features caused by the lack of corpus; the joint decoding model TPLinker is input to solve the problems of exposure bias and relationship overlap, and the annotation value of relationship triples is calculated based on multiple active learning strategies, and the ones with high annotation value are handed over to experts for annotation and input into the model for training, so as to reduce the number of corpus annotations and improve the model encoding performance, and repeat the triple value calculation, expert annotation and model training process until the many-to-many triple extraction accuracy target is reached.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of entity and relationship joint extraction in natural language processing, and in particular to a joint decoding triple extraction method based on active learning and fusion of multi-dimensional features under low resources. Background Art

[0002] Triple extraction is also used for entity-relationship joint extraction. By modeling text information, entities, entity types, and specific relationship types between entities are automatically identified, and a relationship triple of <head entity, relationship, tail entity> is constructed. This is the basis for building knowledge graphs, intelligent knowledge question and answer, semantic search and other downstream tasks. The existing triple extraction methods have the following problems that need to be solved:

[0003] The problem of lack of corpus. Lack of corpus is a common problem faced by the industry in triple extraction work. The triple extraction annotated corpus requires not only the annotation of entity types, but also the annotation of the relationship between entities and the type of relationship. Compared with entity recognition tasks or relationship classification tasks, the annotation difficulty increases exponentially and requires a huge investment of manpower costs. What is more difficult is that when downstream applications are modified, the upstream annotation requirements will be dynamically adjusted, and re-annotation is required. Therefore, the construction process of triple extraction corpus will face problems such as high annotation difficulty, high labor cost, and low annotation efficiency.

[0004] Error accumulation problem. Triple extraction methods are divided into two categories, pipeline models and joint models. The pipeline model refers to first extracting entities from sentences, and then classifying the relationships between entities to finally obtain triples. Since the pipeline model divides entity relationship extraction into two sequential subtasks, entity extraction and relationship classification, entity recognition and relationship extraction are treated as two independent tasks. The correlation between the two subtasks is not considered in the solution process of the two tasks, resulting in the result of the relationship extraction task being heavily dependent on the result of entity extraction, leading to the problem of error accumulation. The joint model is further divided into parameter sharing and joint decoding methods. In the calculation process of the shared parameter model, the entity extraction loss and the relationship extraction loss are still added together, and true joint extraction is not achieved. The joint decoding method strengthens the interaction between the entity model and the relationship model, and truly realizes the information sharing of entity recognition and relationship extraction.

[0005] Active learning strategy selection problem. The strategy based on uncertain sampling is a strategy suitable for sequence learning. Industry experiments have shown that it can effectively alleviate the problem of insufficient corpus in sequence learning tasks. However, different active learning strategies are suitable for calculating texts with different characteristics. The type of strategy selected largely affects the effectiveness of active learning.

[0006] Active learning is currently a relatively mature method to solve the problem of insufficient corpus in sequence learning. There are also related joint decoding models to solve the problem of error accumulation in triple extraction, but how to effectively combine active learning and joint decoding models is a problem that has not been solved in the industry. Summary of the invention

[0007] In view of the problems existing in the above-mentioned prior art, the purpose of the present invention is to combine three active learning strategies, underlying natural language processing features and a joint decoding model TPLinker, and to provide a joint decoding triplet extraction method based on active learning and fusion of multi-dimensional features under low resources.

[0008] In order to achieve the above purpose, the technical solution adopted by the present invention is: a joint decoding triple extraction method integrating multi-dimensional features under low resources, segmenting the training data, obtaining the underlying natural language processing feature parts of speech, syntactic dependencies and semantic dependencies, combining the underlying natural language processing features with RoBERTa word-level encoding, and inputting the joint decoding model TPLinker, calculating the annotation value of the relation triples based on the uncertainty sampling strategy of active learning, handing over the annotation values ​​with high values ​​to experts for annotation and inputting into the model for training, repeating the triple value calculation, expert annotation and model training process until the many-to-many triple extraction accuracy target is reached. Specifically including the following steps:

[0009] Step 1: Input the training data into RoBERTa and HanLP respectively to obtain word-level semantic features and word-level underlying natural language processing features, including part-of-speech features, syntactic dependency features, and semantic dependency features;

[0010] Step 2: Split the word-level underlying natural language processing features and fuse them with the character-level semantic features, and input them into the TPLinker model for training;

[0011] Step 3: After the TPLinker model training is completed, determine whether the F1 value, loss value or number of unlabeled data reaches the stopping condition. If so, proceed to step 5, otherwise proceed to step 4;

[0012] Step 4: Based on three active learning strategies of uncertain sampling, marginal sampling, N-best sequence entropy and maximum normalized log probability, the annotation value of the sentence is calculated, and the top N sentences are handed over to experts for annotation and injected into the annotated pool;

[0013] Step 5: Output the trained joint encoding model. The part-of-speech vector dictionary, syntactic dependency vector dictionary, and semantic dependency vector dictionary constitute a pre-trained model for triple extraction, and perform triple extraction on the newly input sentence.

[0014] The step 1 specifically includes:

[0015] Step 11: Get all the labeled data in the labeled data pool;

[0016] Step 12: Obtain the encoding containing semantic features through the pre-trained model RoBERTa;

[0017] Step 13: Input the sentence into the grammar tool HanLP, and after word segmentation, obtain the underlying natural language processing features: part-of-speech features, syntactic dependency features, and semantic dependency features;

[0018] Step 14: Construct three vector dictionaries for part-of-speech features, syntactic dependency features, and semantic dependency features, respectively. The widths are twice the number of part-of-speech features, twice the number of syntactic dependency features plus one, and twice the number of semantic dependency features plus one; the lengths are the RoBERTa word-level encoding lengths, respectively. The dictionary is initialized using the default normal distribution method of the Pytorch framework for cold start.

[0019] The step 2 specifically includes:

[0020] Step 21: Split the three-dimensional underlying natural language processing features obtained based on the word segmentation results into character-level features. For part-of-speech features, copy the part-of-speech features to each character. For syntactic and semantic dependency features, copy the dependency features to each character and assign different vectors to the head and tail of the dependency relationship.

[0021] Step 22: Fuse the word-level part-of-speech features, syntactic dependency features, semantic dependency features, and semantic features; for the sentence [w1,…w n ], if the word w i The assigned part of speech is a noun, the syntactic dependency feature is the subject-predicate relationship, and the semantic dependency feature is the agent relationship. The vector encoding is calculated as follows:

[0022]

[0023] Among them, C N is the part-of-speech noun vector, S SBV_R is the pointed subject-predicate relation vector, D AGT_L is the agent-directed relation vector, Code word w for RoBERTa i A vector of

[0024] Step 23: Input the code into the TPLinker model for training; obtain the entity pair (w i ,w j ) The generated representation h i,j As shown below:

[0025] h i,j =tanh(W h ·[h i;h j ]+b h ),j≥i

[0026] Where W h is the parameter matrix, b is the bias vector to be learned during training, and h i and h j They are the letters w i and w j A vector of

[0027] For entity start-entity end, head entity start-tail entity start, head entity end-tail entity end, use a unified annotation architecture, for entity pairs (w i ,w j ) relationship prediction results link(w i ,w j ), the calculation formula is as follows:

[0028] p(y i,j )=Softmax(W O ·h i,j +b o )

[0029]

[0030] Where P(y i,j = l) means that (w i ,w j ) is identified as the probability of l, W o is the parameter matrix, b o is the bias vector.

[0031] The stopping conditions in step 3 include: the F1 value reaches a threshold, the loss does not decrease for three consecutive rounds, or the unlabeled data pool does not contain any data.

[0032] The step 4 specifically includes:

[0033] Step 41: Input the data in the unlabeled data pool into the TPLinker model, and train the entity pair relationship classifier using the maximum likelihood estimation method to obtain the sentence [w1,…w n ] is the probability set {P(y 1,1 =l1),P(y 1,1 =l2),…,P(y i,j = l N )}, where N is the number of all relationship types;

[0034] Step 42: Calculate the annotation value of the sentence using three active learning strategies based on uncertain sampling: marginal sampling, N-best sequence entropy, and maximum normalized log probability;

[0035] Step 43: Use dynamic weighting method to obtain the final score of the sequence;

[0036] Step 44: Sort the final value scores of the sequences, and hand over the top N sentences to experts for labeling. After labeling, inject them into the labeled data pool and repeat the encoding module, learning module, and judgment process.

[0037] The present invention solves the problem of insufficient corpus. First, the active learning strategy improves data quality, reduces the number of annotated data, and alleviates the model's dependence on large-scale corpus; second, the fusion of prior underlying natural language processing features increases the amount of encoded information, which alleviates the problem of insufficient encoding features in the case of scarce corpus and low resources to a certain extent. In order to solve the problem of error accumulation, the TPLinker joint decoding mechanism is introduced to realize the interaction of three tasks: entity extraction, relationship extraction, and active learning calculation, and realize information sharing of each task. Specifically, due to the reference to the annotation mechanism of TPLinker, the entity extraction and relationship extraction tasks can be completed by decoding once, and the active learning strategy uses the decoding calculation results to calculate the sentence value. In order to solve the problem of active learning strategy selection, a dynamic weighting mechanism for active learning strategies is designed. On the one hand, compared with the traditional use of a single active learning strategy, the sentence value scores obtained by the combination of multiple strategies are more comprehensive and balanced, and the deviations and omissions caused by the inapplicability of some strategies to corpus features are avoided to a certain extent. On the other hand, the strategy scoring weight can be flexibly adjusted according to the corpus characteristics, strategy characteristics, or by scanning parameters, to increase the flexibility and universality of the solution.

[0038] Compared with the prior art, the main advantages of the present invention are:

[0039] (1) Under low-resource conditions, the present invention integrates the underlying natural language processing prior knowledge: part of speech, semantic dependency, and syntactic dependency, with the word-level encoding output by the pre-trained model, enriching the grammatical features, syntactic structure, dependency relationship and other information of the encoding, thereby improving the accuracy of relationship prediction and, to a certain extent, compensating for the problem of lack of corpus caused by the difficulty of triple annotation;

[0040] (2) The parameter sharing model is combined with the pool-based active learning scenario. Through active learning, valuable labeled data is selected and handed over to experts for labeling. On the one hand, high-value labeled data can improve the model training effect. Manual annotation only needs to be performed on part of the data instead of all of it, which reduces the cost of manual annotation and alleviates the problem of corpus scarcity to a certain extent. On the other hand, the three tasks of entity extraction, relationship extraction and active learning strategy calculation realize information sharing and end-to-end triple extraction, solving the exposure bias problem caused by the pipeline model.

[0041] (3) Design a dynamic weighting mechanism for active learning strategies. On the one hand, compared with the traditional use of a single active learning strategy, the sentence value scores obtained by combining multiple strategies are more comprehensive and balanced, and to a certain extent avoid the deviations and omissions caused by some strategies not being applicable to corpus characteristics. On the other hand, the strategy scoring weights can be flexibly adjusted according to corpus characteristics, strategy characteristics, or by scanning parameters, increasing the flexibility and universality of the solution. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 Schematic diagram of the flow of the joint decoding triplet extraction method integrating multi-dimensional features in this embodiment. DETAILED DESCRIPTION

[0043] In order to better understand the present invention, the technical solution of the present invention is further explained below in conjunction with the accompanying drawings and specific embodiments. The roberta in the embodiment is a Chinese pre-training model, and hanlp is a natural language processing tool.

[0044] like Figure 1 As shown, this embodiment proposes a multi-dimensional joint decoding many-to-many relationship triple extraction method based on active learning under low resources, which combines the underlying natural language processing features with RoBERTa encoding, inputs the joint decoding model TPLinker, and calculates the annotation value of the relationship triple based on active learning uncertainty sampling strategy. The annotation values ​​with high annotation values ​​are handed over to experts for annotation and input into the model for training, so as to reduce the number of corpus annotations and improve the accuracy of model encoding. Specifically, the following steps are included:

[0045] 1. Encoding steps: The first step is to obtain all the annotated data in the annotated data pool. The specific annotated data includes entities (entity types, entity boundaries) and relationships between entities (relationship orientation, relationship type). The second step is to obtain word-level vector encoding, that is, encoding containing semantic features, through the pre-trained model RoBERTa; the third step is to input the sentence into the grammar tool HanLP, and obtain the underlying natural language processing features after word segmentation: part of speech, syntactic dependency, and semantic dependency features; the fourth step is to construct three vector dictionaries for part of speech features, syntactic dependency features, and semantic dependency features, respectively. The width is the number of part of speech features, twice the number of syntactic dependency features plus one, and twice the number of semantic dependency features plus one, and the length is the RoBERTa word-level encoding length. The dictionary initialization uses the default normal distribution method of the Pytorch framework for cold start.

[0046] 2. Learning steps: The first step is to split the three-dimensional underlying natural language processing features obtained based on the word segmentation results into word-level features. For part-of-speech features, copy the part-of-speech features to each character; for syntactic and semantic dependency features, copy the dependency features to each character and assign different vectors to the head and tail of the dependency relationship. The second step is to fuse the word-level part-of-speech features, syntactic dependency features, semantic dependency features, and semantic features. For the sentence [w1,…w n ], if the word w i The assigned part of speech is a noun, the syntactic dependency feature is the subject-predicate relationship, and the semantic dependency feature is the agent relationship. The vector encoding is calculated as follows:

[0047]

[0048] Among them, C N is the part-of-speech noun vector, S SBV_R is the pointed subject-predicate relation vector, D AGT_L is the agent-directed relation vector, Code word w for RoBERTa i The word-level vector obtained above, first, contains the vector containing prior knowledge output by the pre-trained model; second, contains the underlying natural language processing features, which is suitable for making full use of existing feature resources when there are few corpus annotation resources; third, the encoding process contains the directional features of syntactic and semantic dependency features, which is one of the important reference information in the process of relationship prediction.

[0049] Step 3. Input the code into the TPLinker model for training. Get the entity pair (w i ,w j ) The generated representation h i,j As shown below:

[0050] h i,j =tanh(W h ·[h i ;h j ]+b h ),j≥i

[0051] Where W h is the parameter matrix and b is the bias vector to be learned during training.

[0052] For entity start-entity end, head entity start-tail entity start, head entity end-tail entity end, a unified annotation architecture is used, and entity pairs (w i ,w j ) relationship prediction results link(w i ,w j ), the calculation formula is as follows:

[0053] p(y i,j )=Softmax(W O ·h i,j +b o )

[0054]

[0055] Where P(y i,j = l) means that (w i ,w j ) is identified as the probability of l.

[0056] 3. Judgment step: After TPLinker training is completed, if the stop condition is met, such as: the F1 value reaches the threshold, the loss does not decrease for three consecutive rounds, or the unlabeled data pool does not contain any data, then the output module step is performed, otherwise it enters the selection module.

[0057] 4. Selection steps: In the first step, the data in the unlabeled data pool is input into the TPLinker model, and the entity pair relationship classifier trained by the maximum likelihood estimation method is obtained to obtain the sentence [w1,…w n ] is the probability set {P(y 1,1 =l1),P(y 1,1 =l2),…,P(y i,j = l N )}, where N is the number of all relationship types.

[0058] In the second step, three active learning strategies based on uncertain sampling are used: marginal sampling, N-best sequence entropy, and maximum normalized logarithmic probability to calculate the annotation value of the sentence. Information extraction belongs to the sequence learning problem, and the uncertain sampling method is one of the typical active learning strategies applied to sequence learning problems. The sentence value calculation methods of these three strategies are as follows.

[0059] Margin sampling (MARGIN) queries the minimum marginal instance between the two sets of labels with the maximum probability in the sentence. The calculation process is as follows, P(Ψ * |x;θ) is the hidden state Ψ of the sample sequence x * The conditional probability of the following sequence, Ψ*1 and Ψ*2 are the set {P(y 1,1 =l1),P(y 1,1 =l2),…,P(y i,j = l N )}The sequence labels with the best and second best scores.

[0060]

[0061] N-best Sequence Entropy (NSE) takes the entropy of the tag sequence as a whole rather than a set of entropies of a single tag. Taking into account the dilemma that the complexity of tags grows exponentially with the length of sentences, NSE approximates the set of possible tags rather than listing all possible sets. Its calculation formula is as follows. N = {Ψ*1,…,Ψ*N} is the set of N most probable tags. When N is equal to 2, this formula is approximately equal to the MARGIN calculation formula, so NSE can be regarded as a generalization of MARGIN.

[0062]

[0063] Maximum Normalized Log-Probability (MNLP) takes into account the impact of sentence length on the value of strategy evaluation. It normalizes the sentence length based on the approximate estimation of the label set, reducing the sensitivity to long sentences. The calculation formula is as follows.

[0064]

[0065] Step 3. The final score of the sequence is obtained by dynamic weighting method. The calculation formula is as follows: Margin , W NSE , W MNLP The score weights for the three active learning strategies are all 1 by default. The weights can be adjusted by scanning parameters, text features, etc. to make the final score more suitable for specific text types.

[0066] Φ LWP (x) = W Margin *Φ Margin (x)+W NSE *Φ NSE (x)+W MNLP Φ MNLP (x)

[0067] Step 4. Sort the final value scores of the sequences, and hand over the top N sentences to experts for labeling. After labeling, inject them into the labeled data pool and repeat the encoding module, learning module, and judgment process.

[0068] 5. Output step: When the stopping condition is reached, the trained joint encoding model, part-of-speech vector dictionary, syntactic dependency vector dictionary, and semantic dependency vector dictionary are output to form a pre-trained model for triple extraction, and triples are extracted for the newly input sentences.

[0069] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with the technology to understand the content of the present invention and implement it accordingly, and they cannot be used to limit the protection scope of the present invention. Any equivalent changes or modifications made according to the spirit of the present invention should be included in the protection scope of the present invention.

Claims

1. A joint decoding triple extraction method integrating multi-dimensional features under low resources, characterized by: The training data is segmented to obtain the underlying natural language processing features of part of speech, syntactic dependency and semantic dependency. The underlying natural language processing features are combined with the pre-trained model RoBERTa word-level encoding and input into the joint decoding model TPLinker. Based on the uncertainty sampling strategy of active learning, the annotation value of the relation triples is calculated. The high-value annotations are handed over to experts for annotation and input into the model for training. The triple value calculation, expert annotation and model training process are repeated until the many-to-many triple extraction accuracy target is achieved. Specifically, the following steps are included: Step 1: Input the training data into the pre-training model RoBERTa and the grammar tool HanLP respectively to obtain the word-level semantic features and the word-level underlying natural language processing features, wherein the word-level underlying natural language processing features include part-of-speech features, syntactic dependency features, and semantic dependency features; Step 2: Split the word-level underlying natural language processing features and fuse them with the character-level semantic features, and input them into the TPLinker model for training; Step 21: Split the three-dimensional underlying natural language processing features obtained based on the word segmentation results into character-level features. For part-of-speech features, copy the part-of-speech features to each character. For syntactic and semantic dependency features, copy the dependency features to each character and assign different vectors to the head and tail of the dependency relationship. Step 22: Fuse the word-level part-of-speech features, syntactic dependency features, semantic dependency features, and semantic features; for the sentence [w1,…w n ], if the word w i The assigned part of speech is a noun, the syntactic dependency feature is the subject-predicate relationship, and the semantic dependency feature is the agent relationship. The vector encoding is calculated as follows: Among them, C N is the part-of-speech noun vector, S SBV_R is the pointed subject-predicate relation vector, D AGT_L is the agent-directed relation vector, Encode word w for the pre-trained model RoBERTa i A vector of Step 23: Input the code into the TPLinker model for training; obtain the entity pair (w i ,w j ) The generated representation h i,j As shown below: h i,j =tanh(W h ·[h i ;h j ]+b h ),j≥i Where W h is the parameter matrix, b h is the bias vector to be learned during training, h i and h j They are the letters w i and w j A vector of For entity start-entity end, head entity start-tail entity start, head entity end-tail entity end, a unified annotation architecture is used, and entity pairs (w i ,w j ) relationship prediction results link(w i ,w j ), the calculation formula is as follows: p(y i,j )=Softmax(W o ·h i,j +b o ) Where P(y i,j = l) means that (w i ,w j ) is identified as the probability of l, W o is the parameter matrix, b o is the bias vector; Step 3: After the TPLinker model training is completed, determine whether the F1 value, loss value or number of unlabeled data reaches the stopping condition. If so, proceed to step 5, otherwise proceed to step 4; Step 4: Based on three active learning strategies of uncertain sampling, marginal sampling, N-best sequence entropy and maximum normalized log probability, the annotation value of the sentence is calculated, and the top N sentences are handed over to experts for annotation and injected into the annotated pool; Step 41: Input the data in the unlabeled data pool into the TPLinker model, and train the entity pair relationship classifier using the maximum likelihood estimation method to obtain the sentence [w1,…w n ] is the probability set {P(y 1,1 =l1),P(y 1,1 =l2),…,P(y i,j = l N )}, where N is the number of all relationship types; Step 42: Calculate the annotation value of the sentence using three active learning strategies based on uncertain sampling: marginal sampling, N-best sequence entropy, and maximum normalized log probability; Step 43: Use dynamic weighting method to obtain the final score of the sequence; Step 44: Sort the final value scores of the sequences, and hand over the top N sentences to experts for labeling. After labeling, inject them into the labeled data pool and repeat the encoding module, learning module, and judgment process; Step 5: Output the trained joint encoding model. The part-of-speech vector dictionary, syntactic dependency vector dictionary, and semantic dependency vector dictionary constitute a pre-trained model for triple extraction, and perform triple extraction on the newly input sentence.

2. According to the low-resource joint decoding triple extraction method integrating multi-dimensional features in claim 1, it is characterized in that: The step 1 specifically includes: Step 11: Get all the labeled data in the labeled data pool; Step 12: Obtain the encoding containing semantic features through the pre-trained model RoBERTa; Step 13: Input the sentence into the grammar tool HanLP, and after word segmentation, obtain the underlying natural language processing features: part-of-speech features, syntactic dependency features, and semantic dependency features; Step 14: Construct three vector dictionaries for part-of-speech features, syntactic dependency features, and semantic dependency features, respectively. The widths are twice the number of part-of-speech features, twice the number of syntactic dependency features plus one, and twice the number of semantic dependency features plus one; the lengths are the word-level encoding lengths of the pre-trained model RoBERTa, respectively. The dictionary is initialized using the default normal distribution method of the Pytorch framework for cold start.

3. According to the low-resource joint decoding triple extraction method integrating multi-dimensional features in claim 1, it is characterized in that: The stopping conditions in step 3 include: the F1 value reaches a threshold, the loss does not decrease for three consecutive rounds, or the unlabeled data pool does not contain any data.

4. According to the low-resource joint decoding triple extraction method integrating multi-dimensional features in claim 1, it is characterized by: The marginal sampling query is the minimum margin between the two sets of labels with the maximum probability in the sentence. The calculation process is as follows: Among them, P(Ψ * |x;θ) is the hidden state Ψ of the sample sequence x * The conditional probability of the following sequence, and is the set {P(y 1,1 =l1),P(y 1,1 =l2),…,P(y i,j = l N )}The sequence labels with the best and second best scores.

5. According to the low-resource joint decoding triple extraction method integrating multi-dimensional features, the method is characterized in that: The N-best sequence entropy takes the entropy of the tag sequence as a whole rather than a set of single tag entropies. Taking into account the dilemma that the tag complexity grows exponentially with the length of the sentence, NSE approximates the set of possible tags instead of listing all possible sets. Its calculation formula is as follows: in, is the set of N labels with the highest probability.

6. The method for extracting joint decoding triples by integrating multi-dimensional features under low resources according to claim 1, characterized in that: The maximum normalized logarithmic probability takes into account the impact of sentence length on the strategy evaluation value. On the basis of approximate estimation of the label set, the sentence length is normalized to reduce the sensitivity to long sentences. The calculation formula is as follows: Among them, P[Ψ i |Ψ1,…,Ψ n-1 ,{x ij }] is the conditional probability set of all hidden states of the sample sequence, and n is the length of the sample sequence.

7. The method for extracting joint decoding triples by integrating multi-dimensional features under low resources according to claim 2, characterized in that: The annotation data includes entity data and inter-entity relationship data, the entity data includes entity type and entity boundary, and the inter-entity relationship data includes relationship orientation and relationship type.

Citation Information

Patent Citations

  • Knowledge graph-based text comparison method, apparatus and device, and storage medium

    CN111897970A

  • Cross-language multi-source vertical domain knowledge graph construction method

    CN112199511A

  • Chinese choice question interference item generation method based on free text

    CN112686025A

  • Bridge detection knowledge graph question answering method based on hierarchical cross attention mechanism

    CN115577086A

  • Semantic recognition method for enhancing pre-training model through adaptive fusion dependency relationship

    CN115617950A