A method for checking consistency of standard information elements

By constructing an entity library and using a two-dimensional entity extraction model for triple extraction, the problem of low efficiency and poor accuracy of information consistency testing methods is solved, and efficient and accurate information consistency assessment is achieved, which is suitable for complex large-scale information data. .

CN118349632BActive Publication Date: 2024-09-20CHINA NAT INST OF STANDARDIZATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410487911.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-23
Publication Date
2024-09-20
Estimated Expiration
2044-04-23

AI Technical Summary

Technical Problem

Existing information consistency testing methods are difficult to comprehensively and accurately reflect the consistency of information elements. Especially when processing complex and large-scale information data, traditional methods are inefficient and susceptible to subjective factors. One-hot encoding generates sparse matrices that reduce model efficiency. and accuracy.

Method used

By building an entity library, comparing the triple set of information to be verified and standard information, extracting the standard information with the highest correlation, using a two-dimensional entity extraction model with relationship filters to perform triple extraction and relationship extraction, and in-depth exploration of key elements, comparing sets of triples to assess consistency.

Benefits of technology

It improves the efficiency of information retrieval and the accuracy and comprehensiveness of consistency testing, overcomes the limitations of traditional methods, and provides intuitive consistency testing results and information processing decision support.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118349632B
    Figure CN118349632B
Patent Text Reader

Abstract

The present invention discloses a method for checking the consistency of standard information elements. The method determines the standard information with the highest correlation with the information to be verified based on the triple set of each standard information in the standard library and the comparison between the entity library and the information to be verified; the main entity and the object entity in each sentence of the information to be verified are matched with the entity pair of the standard information with the highest correlation, and the triple set of the information to be verified is obtained based on a relationship extraction model; the triple set of the information to be verified is compared with the triple set of the standard information, and the consistency check result between the information to be verified and the standard information is obtained; the method improves the efficiency of element consistency, and can ensure the accuracy and reliability of the result while reducing the amount of calculation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of element consistency verification, and in particular to a method for verifying the consistency of standard information elements. Background Art

[0002] With the rapid development of information technology, the generation, dissemination and use of information are becoming more and more frequent, and the consistency and accuracy of information have become particularly important. Especially in the fields of big data and artificial intelligence, there are extremely high requirements for the standardization and normalization of information processing. As an important means to ensure the accuracy and consistency of information, the consistency test of standard information elements is particularly critical in its research and application.

[0003] At present, there are various methods for verifying the consistency of information, but most of them only focus on the surface form or partial content of the information, and it is difficult to fully and accurately reflect the consistency of information elements. In particular, when processing complex and large-scale information data, traditional verification methods often seem to be unable to cope with the situation. The application with publication number CN115688754A records a method for verifying the consistency of elements in a text, and the method includes: obtaining a text to be verified and a pre-set element value table; determining a label associated with the text to be verified according to the text content of the text to be verified, and determining the element corresponding to the label associated with the text to be verified as a text element according to the correspondence between the label and the element recorded in the element value table; performing one-hot encoding on the text element according to the elements to be extracted contained in the text element to generate a one-hot matrix; and The method comprises the following steps: calculating the probability of text elements corresponding to words in at least a part of the text content, determining the text element with the highest probability as the element of the corresponding word; extracting the word whose corresponding element is the element to be extracted as the element value of the element to be extracted in the text to be verified; comparing the element value of the element to be extracted in the text to be verified with the element value of the element to be extracted recorded in the element value table, and verifying the consistency of the text to be verified and the element to be extracted in the element value table. However, the above method mentions determining the label associated with the text according to the text content of the text to be verified. This step is affected by subjective factors. Different analysts may determine different labels, thereby affecting the accuracy of subsequent text element determination. When processing text elements, one-hot encoding will produce a very sparse matrix, which not only increases the complexity of calculation, but also may reduce the efficiency and accuracy of the model.

[0004] Therefore, it is necessary to develop an efficient and accurate method for verifying the consistency of standard information elements. Summary of the invention

[0005] The object of the present invention is to provide a method for checking the consistency of standard information elements, which reflects the consistency of elements between the information to be checked and the standard information by checking the consistency between the triples of the information to be checked and the triples of the standard information with the highest correlation. In order to achieve the above-mentioned object of the present invention, the following technical scheme is adopted:

[0006] A method for verifying the consistency of elements of standard information is used to verify the consistency of elements in information to be verified and standard information, and the method comprises the following steps:

[0007] Step 1: obtain an entity library consisting of entity pairs of each standard information according to the triple set of each standard information in the standard library, and determine the standard information with the highest correlation with the information to be verified based on the comparison between the entity library and the information to be verified.

[0008] Furthermore, suppose that the triple set of standard information M in the standard library is Expressed as , n is the total number of triples, among which The triplets are: , and Represent two entities respectively. Represents the relationship between two entities; then remove the relationship between entities, retain only the main entity and the guest entity, and obtain the entity pair set of the standard information , , among which Entity pairs .

[0009] The information to be verified is divided into m sentences, and after each sentence is segmented, the information to be verified is expressed as: , Indicates Sentences, ,in, For the The xth participle in a sentence.

[0010] Further, based on the comparison between the entity library and the information to be verified, if the information to be verified is If the word segment of a sentence contains at least one entity pair of the standard information, then Otherwise, remember 0; then for the Standard information , its correlation with the information to be verified .

[0011] Step 2, extract triples from the information to be verified, correspond the main entity and the object entity in each sentence of the information to be verified to the entity pairs of the standard information with the highest correlation, extract the relationship between the entity pairs of the information to be verified based on the relationship extraction model, and obtain a triple set of the information to be verified.

[0012] Furthermore, the subject entity and the object entity in each sentence of the information to be verified are matched with the entity pairs of the standard information. If the word segment of a sentence contains at least one entity pair of the standard information with the highest correlation, the main entity and the object entity corresponding to the entity pair of the standard information with the highest correlation corresponding to the sentence are marked as the information to be verified. The main entity and the object entity of the sentence; if the information to be verified is If the word segmentation of a sentence does not satisfy at least one entity pair that completely contains the standard information, relationship extraction will not be performed on the sentence.

[0013] Furthermore, the relationship extraction model is a two-dimensional entity extraction model with a relationship filter, including a linear layer, a pooling layer and an output layer; each sentence of the information to be verified is input into the two-dimensional entity extraction model in turn to obtain a triple set of the information to be verified.

[0014] Furthermore, each sentence of the information to be verified is sequentially input into the two-dimensional entity extraction model to obtain a triple set of the information to be verified, including the following method:

[0015] Through the linear layer to obtain In the sentence The relationship features of the words are expressed as: ;in, Is the input text In the sentence The relational features of words are represented by It is In the sentence The encoded output of words, represents the trainable weights of the linear layer, represents the bias term of the linear layer;

[0016] Through the pooling layer, we get The global vector representation of the relationship between sentences: ,in, Indicates In the sentences participle, It is The global vector representation of the relationship between sentences, pooling(·) represents the pooling operation, Is the input text In the sentence Relational feature representation of words;

[0017] Based on the nonlinear activation function sigmoid(·) The probability distribution of the relationship between the main entity and the object entity in the sentence: ,in, It is The probability distribution of the relationship between the main entity and the object entity in a sentence. The purpose of setting the sigmoid(·) function is to map real numbers to values ​​between 0 and 1. represents the trainable weights of the pooling layer, Represents the pooling layer bias term;

[0018] Filter redundant relations through the relation filter, set the relation filtering threshold to μ, if The probability of the relationship between the main entity and the object entity in the sentence is less than μ, then the relationship is redundant; if If the probability of the relationship between the main entity and the object entity in the sentence is not less than μ, then the relationship is a confidence relationship; output the The main entity, object entity and confidence relationship in the sentence are obtained. A triple of sentences.

[0019] Step 3: compare the triplet set of the information to be verified with the triplet set of the standard information with the highest correlation, and obtain a consistency check result between the information to be verified and the standard information.

[0020] Furthermore, the standard information with the highest correlation with the information to be verified is recorded as , then its correlation with the information to be verified , Indicates the information to be verified sentences, and m is the total number of sentences of the information to be verified.

[0021] The triple set of the information to be verified is , record the standard information with the highest correlation The set of triples is , the similarity between two triple sets ,in, is the vector representation of the triple set of information to be verified, The set of triples is The vector representation of .

[0022] Furthermore, the quantitative calculation result of the consistency between the information to be verified and the standard information .

[0023] Furthermore, the results were quantitatively calculated based on the consistency Determine the consistency of elements between the information to be verified and the standard information:

[0024] when , then it is considered that the elements between the information to be verified and the standard information are completely consistent;

[0025] when , it is considered that the consistency of elements between the information to be verified and the standard information is poor;

[0026] when , it is considered that the consistency of elements between the information to be verified and the standard information needs to be improved.

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

[0028] The present invention can quickly and accurately determine the standard information with the highest correlation with the information to be verified by constructing an entity library and comparing the entity library with the information to be verified, which not only improves the efficiency of information retrieval, but also ensures the accuracy and reliability of subsequent consistency verification; by extracting triples from the information to be verified and corresponding them with the entity pairs of the standard information with the highest correlation, it can deeply explore the key elements in the information to be verified, so as to more comprehensively reflect its consistency with the standard information, overcome the limitation of traditional verification methods that only focus on surface forms, and improve the accuracy and comprehensiveness of the verification; by comparing the triple set of the information to be verified with the triple set of the standard information with the highest correlation, it can intuitively obtain the consistency verification result of the information to be verified and the standard information, which is not only easy to understand and operate, but also can provide strong support for subsequent information processing decisions. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 The present invention is a flow chart of a method for checking consistency of standard information elements. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention is described clearly and completely below. 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.

[0031] Example

[0032] like Figure 1 As shown, a standard information element consistency verification method of this embodiment includes the following three basic steps.

[0033] Step 1: obtain an entity library consisting of entity pairs of each standard information according to the triple set of each standard information in the standard library, and determine the standard information with the highest correlation with the information to be verified based on the comparison between the entity library and the information to be verified.

[0034] Assume that the triple set of standard information M in the standard library is Expressed as , n is the total number of triples, among which The triplets are: , and Represent two entities respectively. Represents the relationship between two entities; then remove the relationship between entities, retain only the main entity and the guest entity, and obtain the entity pair set of the standard information , , among which Entity pairs .

[0035] The information to be verified is divided into m sentences, and after each sentence is segmented, the information to be verified is expressed as: , Indicates Sentences, ,in, For the The xth participle in a sentence.

[0036] Based on the comparison between the entity library and the information to be verified, if the information to be verified is If the word segment of a sentence contains at least one entity pair of the standard information, then Otherwise, remember 0.

[0037] Then for the Standard information , its correlation with the information to be verified .

[0038] Step 2, extract triples from the information to be verified, correspond the main entity and the object entity in each sentence of the information to be verified to the entity pairs of the standard information with the highest correlation, extract the relationship between the entity pairs of the information to be verified based on the relationship extraction model, and obtain a triple set of the information to be verified.

[0039] The main entity and the object entity in each sentence of the information to be verified are matched with the entity pairs of the standard information. If the word segment of a sentence contains at least one entity pair of the standard information with the highest correlation, the main entity and the object entity corresponding to the entity pair of the standard information with the highest correlation corresponding to the sentence are marked as the information to be verified. The main entity and the object entity of the sentence; if the information to be verified is If the word segmentation of a sentence does not satisfy at least one entity pair that completely contains the standard information, relationship extraction will not be performed on the sentence.

[0040] The relation extraction model is a two-dimensional entity extraction model with a relation filter, including a linear layer, a pooling layer and an output layer; each sentence of the information to be verified is sequentially input into the two-dimensional entity extraction model to obtain a triple set of the information to be verified.

[0041] It should be noted that the method of inputting each sentence of the information to be verified into the two-dimensional entity extraction model in sequence to obtain the triple set of the information to be verified includes the following methods:

[0042] Through the linear layer to obtain In the sentence The relationship features of the words are expressed as: ;in, Is the input text In the sentence The relational features of words are represented by It is In the sentence The encoded output of words, represents the trainable weights of the linear layer, Represents the bias term of the linear layer.

[0043] Through the pooling layer, we get The global vector representation of the relationship between sentences: ,in, Indicates In the sentences participle, It is The global vector representation of the relationship between sentences, pooling(·) represents the pooling operation, Is the input text In the sentence Relational feature representation of words;

[0044] Based on the nonlinear activation function sigmoid(·) The probability distribution of the relationship between the main entity and the object entity in the sentence: ,in, It is The probability distribution of the relationship between the main entity and the object entity in a sentence. The purpose of setting the sigmoid(·) function is to map real numbers to values ​​between 0 and 1. represents the trainable weights of the pooling layer, Represents the pooling layer bias term.

[0045] Filter redundant relations through the relation filter, set the relation filtering threshold to μ, if The probability of the relationship between the main entity and the object entity in the sentence is less than μ, then the relationship is redundant; if If the probability of the relationship between the main entity and the object entity in the sentence is not less than μ, then the relationship is a confidence relationship; output the The main entity, object entity and confidence relationship in the sentence are obtained. A triple of sentences.

[0046] For example, we compare the information to be verified "the device supports 5G network" with this entity library, find the standard information with the highest correlation, and extract triples for the information to be verified "the device supports 5G network"; if the triple in the standard information with the highest correlation appears to be a triple with the main entity being "device" and the guest entity being "5G network", then the main entity and guest entity in the sentence are marked as "device" and "5G network" respectively. Then, based on the relationship extraction model, the relationship between the entity pairs of the information to be verified is "support". Therefore, the triple we extracted for the sentence is (device, support, 5G network).

[0047] Step 3: compare the triplet set of the information to be verified with the triplet set of the standard information with the highest correlation, and obtain a consistency check result between the information to be verified and the standard information.

[0048] The standard information with the highest correlation with the information to be verified is , then its correlation with the information to be verified , Indicates the information to be verified sentences, and m is the total number of sentences of the information to be verified.

[0049] The triple set of the information to be verified is , record the standard information with the highest correlation The set of triples is , the similarity between two triple sets ,in, is the vector representation of the triple set of information to be verified, The set of triples is The vector representation of .

[0050] The quantitative calculation result of the consistency between the information to be verified and the standard information .

[0051] Quantitative calculation results based on consistency Determine the consistency of elements between the information to be verified and the standard information:

[0052] when , it is considered that the elements between the information to be verified and the standard information are completely consistent.

[0053] when , it is considered that the consistency of elements between the information to be verified and the standard information is poor.

[0054] when , it is considered that the consistency of elements between the information to be verified and the standard information needs to be improved.

[0055] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for verifying the consistency of elements of standard information, used to verify the consistency of elements in information to be verified and standard information, characterized in that: The method comprises the following steps: Step 1, obtaining an entity library consisting of entity pairs of each standard information according to a triple set of each standard information in the standard library, and determining the standard information with the highest correlation with the information to be verified based on a comparison between the entity library and the information to be verified; Assume that the triple set of standard information M in the standard library is Expressed as , n is the total number of triplets, among which The triplets are: , and Represent two entities respectively. Represents the relationship between two entities; after removing the relationship between entities and retaining only the main entity and the guest entity, the entity pair set of the standard information is obtained , , among which Entity pairs ; The information to be verified is divided into m sentences, and after each sentence is segmented, the information to be verified is expressed as: , Indicates Sentences, ,in, For the The xth participle in a sentence; Based on the comparison between the entity library and the information to be verified, if the information to be verified is If the word segment of a sentence contains at least one entity pair of the standard information, then Otherwise, remember 0; Then for the Standard information , its correlation with the information to be verified ; Step 2, extracting triples from the information to be verified, matching the main entity and the object entity in each sentence of the information to be verified with the entity pairs of the standard information with the highest correlation, extracting the relationship between the entity pairs of the information to be verified based on the relationship extraction model, and obtaining a triple set of the information to be verified; The main entity and the object entity in each sentence of the information to be verified are matched with the entity pairs of the standard information. If the word segment of a sentence contains at least one entity pair of the standard information with the highest correlation, the main entity and the object entity corresponding to the entity pair of the standard information with the highest correlation corresponding to the sentence are marked as the information to be verified. The main entity and the object entity of the sentence; if the information to be verified is If the word segmentation of a sentence does not satisfy at least one entity pair that completely contains the standard information, the relationship extraction will not be performed on the sentence; The relation extraction model is a two-dimensional entity extraction model with a relation filter, including a linear layer, a pooling layer and an output layer; each sentence of the information to be verified is sequentially input into the two-dimensional entity extraction model to obtain a triple set of the information to be verified; Step 3, comparing the triple set of the information to be verified with the triple set of the standard information with the highest correlation, to obtain a consistency check result between the information to be verified and the standard information; The standard information with the highest correlation with the information to be verified is , then its correlation with the information to be verified , Indicates the information to be verified sentences, m is the total number of sentences of the information to be verified; The triple set of the information to be verified is , record the standard information with the highest correlation The set of triples is , the similarity between two triple sets ,in, is the vector representation of the triple set of information to be verified, The set of triples is The vector representation of ; The quantitative calculation result of the consistency between the information to be verified and the standard information .

2. A method for checking consistency of standard information elements according to claim 1, characterized in that: In step 2, each sentence of the information to be verified is sequentially input into a two-dimensional entity extraction model to obtain a triple set of the information to be verified, including the following method: Through the linear layer to obtain In the sentence The relationship features of the words are expressed as: ;in, Is the input text In the sentence The relational features of words are represented by It is In the sentence The encoded output of words, represents the trainable weights of the linear layer, represents the bias term of the linear layer; Through the pooling layer, we get The global vector representation of the relationship between sentences: ,in, Indicates In the sentences participle, It is The global vector representation of the relationship between sentences, pooling(·) represents the pooling operation, Is the input text In the sentence Relational feature representation of words; Based on the nonlinear activation function sigmoid(·) The probability distribution of the relationship between the main entity and the object entity in the sentence: ,in, It is The probability distribution of the relationship between the main entity and the object entity in a sentence. The purpose of setting the sigmoid(·) function is to map real numbers to values ​​between 0 and 1. represents the trainable weights of the pooling layer, Represents the pooling layer bias term; Filter redundant relations through the relation filter, set the relation filtering threshold to μ, if The probability of the relationship between the main entity and the object entity in the sentence is less than μ, then the relationship is redundant; if If the probability of the relationship between the main entity and the object entity in the sentence is not less than μ, then the relationship is a confidence relationship; output the The main entity, object entity and confidence relationship in the sentence are obtained. A triple of sentences.

3. A method for checking consistency of standard information elements according to claim 1, characterized in that: Quantitative calculation results based on consistency Determine the consistency of elements between the information to be verified and the standard information: when , then it is considered that the elements between the information to be verified and the standard information are completely consistent; when , it is considered that the consistency of elements between the information to be verified and the standard information is poor; when , it is considered that the consistency of elements between the information to be verified and the standard information needs to be improved.