A domain named entity denoising method and system based on entity topic relevance

By using a method based on entity topic relevance, irrelevant named entities in the knowledge graph are identified and removed, which improves the accuracy and user experience of entity recognition and solves the problem of incorrect entities being mixed into the graph construction of the named entity recognition model.

CN111967263BActive Publication Date: 2024-08-23BEIJING MININGLAMP SOFTWARE SYST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010750687.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-30
Publication Date
2024-08-23
Estimated Expiration
2040-07-30

AI Technical Summary

Technical Problem

The named entity recognition model cannot achieve 100% accuracy when building a knowledge graph, and often misidentified non-domain entities are mixed in, affecting the user experience.

Method used

Adopt the domain named entity denoising method based on entity topic relevance, obtain the entity list through the named entity recognition model, split it into semantic elements, use the similar semantic element model to screen domain-related topics and weights, calculate the named entity score, and calculate the score according to the noise threshold Filter noisy entities.

Benefits of technology

It improves the accuracy of entity recognition, optimizes the construction of knowledge graphs, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111967263B
    Figure CN111967263B
Patent Text Reader

Abstract

The present invention proposes a method and system for domain named entity denoising based on entity topic relevance, including: S1, obtaining a corpus to be identified and performing entity identification through a named entity recognition model to obtain an entity list; S2, splitting each named entity in the entity list into semantic elements and obtaining multiple domain-related topics and their weights through a similar semantic element model; S3, calculating the score of the named entity based on each domain-related topic and the weight of the topic obtained in step S2; S4, setting a noise threshold and screening and filtering the noise entities in the named entity according to the noise threshold. The domain named entity denoising method and system using the above scheme performs noise identification and filtering on the identified named entities, removes the misidentified entities that are not related to the domain, and retains the correct entities for the construction of the knowledge graph.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of artificial intelligence technology, and in particular relates to a domain named entity denoising method and system based on entity topic relevance. Background Art

[0002] Named Entity Recognition (nER), also known as "proper name recognition", refers to the identification of entities with specific meanings in text, mainly including names of people, places, institutions, proper nouns, etc.

[0003] Named entity recognition is a basic step in building a knowledge graph. In the construction of a knowledge graph, named entities constitute the points in the graph, and the relationships between entities constitute the edges in the graph. In addition, entities in the same field have a large number of similar semantic elements. Different types of semantic elements usually mean entities in different fields. For example, the similar semantic elements of "**Smart Screen" include "smart", "eye protection", "screen", "mobile phone", etc.

[0004] However, since the named entity recognition model cannot achieve 100% accuracy, non-domain entities that are misidentified are often mixed into the graph construction, affecting the user experience of the graph. Therefore, a technical solution for domain named entity denoising is needed to improve the accuracy of entity recognition and enhance the user experience. Summary of the invention

[0005] In order to solve the above technical problems, the present invention proposes a domain named entity denoising method and system based on entity-topic relevance, which performs noise recognition and filtering on the identified named entities, removes misidentified entities that are not related to the domain, and retains the correct entities for constructing the knowledge graph.

[0006] On the one hand, the present invention discloses a domain named entity denoising method based on entity topic relevance, comprising:

[0007] S1, obtain the corpus to be recognized and perform entity recognition through a named entity recognition model to obtain an entity list;

[0008] S2, splitting each named entity in the entity list into semantic elements and obtaining multiple field-related topics and their weights through learning and screening through a similar semantic element model;

[0009] S3, calculating the score of the named entity based on each of the field-related topics and the weight of the topic obtained in step S2;

[0010] S4, setting a noise threshold and screening and filtering noise entities in the named entities according to the noise threshold.

[0011] Furthermore, the step S2 further comprises:

[0012] S21, splitting the named entity into semantic elements;

[0013] S22, obtaining a number of topics n and inputting the semantic elements obtained in step S21 into the similar semantic element model to calculate and obtain n topics;

[0014] S23, obtaining a plurality of the field-related topics according to the topic obtained in step S22 and setting a weight for each of the field-related topics. Specifically, the field-related topics are screened according to the application field of the topic.

[0015] Furthermore, the step S4 further comprises:

[0016] S41, setting the noise threshold;

[0017] S42, sorting the named entities according to the scores and screening and filtering the noise entities, wherein the noise entities are the named entities whose scores are lower than the noise threshold.

[0018] Furthermore, the step S22 further comprises:

[0019] S221, obtaining the number of topics n, and selecting n representative elements from the semantic elements according to the number of topics n;

[0020] S222, calculating the distance between each semantic element in each topic and the representative element;

[0021] S223, obtaining n topics by combining the semantic element and the representative element with the smallest distance from the semantic element;

[0022] S224, determining a central element in the subject, where the central element is an element having the smallest sum of distances from other elements in the subject.

[0023] S225, repeating steps S221 to S224 until the central element in each theme no longer changes. This process is a process for determining the convergence of the central element.

[0024] Furthermore, the distance is the reciprocal of the number of times the semantic element appears in the same entity.

[0025] Furthermore, the weight in step S23 is the number of domain-related entities / the total number of entities, the number of domain-related entities is the number of entities in the domain, and the total number of entities is the number of entities in the entity list.

[0026] Furthermore, in step S3, the score of the entity is the average score of the weights of the field-related topics in each entity. Step S3 is not limited to using the average score to calculate the score, and the maximum value, minimum value, and harmonic mean may also be used. The optimal score calculation method may be selected according to the application scenario.

[0027] Further, in step S41,

[0028] The noise threshold = avg - 3 × σ;

[0029] Wherein, avg is the average score of the entities in the entity list; σ is the standard deviation of the scores of the entities in the entity list.

[0030] Furthermore, the step S22 is implemented through a BTM topic model.

[0031] On the other hand, the present invention discloses a domain named entity denoising system based on entity topic relevance, comprising:

[0032] A named entity recognition module obtains the corpus to be recognized and performs entity recognition through a named entity recognition model to obtain an entity list;

[0033] A named entity feature learning module, used to split each named entity in the entity list into semantic elements and obtain multiple field-related topics and their weights through learning and screening through a similar semantic element model;

[0034] A named entity noise scoring module, which calculates the score of the named entity based on each field-related topic and the weight of the topic obtained by the named entity feature learning module;

[0035] The named entity filtering module is used to set a noise threshold and screen and filter noise entities in the named entities according to the noise threshold.

[0036] Compared with the prior art, the advantages and positive effects of the present invention are:

[0037] The technical solution of the present invention uses the distance, weight, score and other parameters as references to evaluate the association between the entities. By learning the relationship between correctly named entities, the score of whether the entity is noise is calculated to remove misidentified named entities in the field and optimize graph construction, thereby achieving the technical effect of improving the accuracy of entity recognition and enhancing user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, 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 invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0039] Figure 1 A schematic diagram of a preferred process of a domain named entity denoising method based on entity topic relevance according to an embodiment of the present invention;

[0040] Figure 2 It is another preferred flow chart of the method for domain named entity denoising based on entity topic relevance according to an embodiment of the present invention;

[0041] Figure 3 The system block diagram of the domain named entity denoising system based on entity topic relevance according to an embodiment of the present invention.

[0042] in:

[0043] 0. Domain named entity denoising system; 1. Named entity recognition module; 2. Named entity feature learning module; 3. Named entity noise scoring module; 4. Named entity filtering module. DETAILED DESCRIPTION

[0044] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0045] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0046] In addition, the descriptions of "first", "second", etc. in the present invention are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of the features.

[0047] Figure 1-2 This is a schematic diagram of a preferred process of the domain named entity denoising method according to an embodiment of the present invention, referring to Figure 1-2 As shown, the embodiment of the present invention discloses a domain named entity denoising method based on entity topic relevance, comprising:

[0048] S1, obtaining a corpus to be recognized and performing entity recognition through a named entity recognition model to obtain an entity list. The entity recognition in this embodiment adopts a CRF model for entity recognition;

[0049] S2, split each named entity in the entity list into semantic elements and obtain multiple field-related topics and their weights through learning and screening through a similar semantic element model;

[0050] S3, based on the weight of each field-related topic and topic obtained in S2, the score of the named entity is calculated. The score of the entity is the average score of the weight of the field-related topic in each entity. It is worth noting that step S3 is not limited to using the average score to calculate the score, and the maximum value, minimum value, and harmonic mean can also be used. The optimal score calculation method can be selected according to the application scenario;

[0051] S4, setting a noise threshold and screening and filtering noise entities in the named entities according to the noise threshold.

[0052] Wherein, S2 further comprises:

[0053] S21, split the named entity into semantic elements;

[0054] S22, obtaining a number of topics n and inputting the semantic elements obtained in S21 into a similar semantic element model to calculate n topics;

[0055] S23, based on the topic obtained in S22, multiple field-related topics are obtained and the weight of each field-related topic is set. Specifically, the field-related topics are screened according to the topic application field, and the weight is the number of field-related entities / total number of entities, where the number of field-related entities is the number of entities in the field, and the total number of entities is the number of entities in the entity list.

[0056] S4 further includes:

[0057] S41, setting a noise threshold, specifically, the noise threshold = avg - 3 × σ, where avg is the average score of the entity in the entity list; σ is the standard deviation of the entity score in the entity list;

[0058] S42, sorting the named entities according to the scores and screening and filtering the noise entities, where the noise entities are the named entities whose scores are lower than the noise threshold.

[0059] Step S22 can be implemented through a BTM topic model, or through the following steps:

[0060] S221, obtaining the number of topics n, and selecting n representative elements from the semantic elements according to the number of topics n;

[0061] S222, calculating the distance between each semantic element and the representative element in each topic, where the distance is the reciprocal of the number of times the semantic element appears in the same entity;

[0062] S223, obtaining n topics by combining the semantic elements and the representative elements with the smallest distance from the semantic elements;

[0063] S224, determining a central element in the subject, where the central element is an element having the smallest sum of distances from other elements in the subject.

[0064] S225, repeating steps S221 to S224 until the central element in each theme no longer changes. This process is a process for determining the convergence of the central element.

[0065] On the other hand, reference Figure 3 As shown, the present invention discloses a domain named entity denoising system based on entity topic relevance, comprising:

[0066] Named entity recognition module 1, obtains the corpus to be recognized and performs entity recognition through a named entity recognition model to obtain an entity list;

[0067] Named entity feature learning module 2, used to split each named entity in the entity list into semantic elements and obtain multiple field-related topics and their weights through learning and screening through a similar semantic element model;

[0068] Named entity noise scoring module 3, which calculates the score of the named entity based on the weights of the relevant topics and topics in each field obtained by the named entity feature learning module;

[0069] The named entity filtering module 4 is used to set a noise threshold and screen and filter noise entities in the named entities according to the noise threshold.

[0070] The technical solution of this embodiment achieves the technical effect of improving the accuracy of entity recognition and enhancing user experience by learning the relationship between correctly named entities and calculating whether the entity is a noise score, so as to remove misidentified named entities in the field and optimize graph construction.

[0071] The above description is only a preferred embodiment of the present invention and does not limit the present invention in other forms. Any technician familiar with the profession may use the technical content disclosed above to change or modify it into an equivalent embodiment with equivalent changes and apply it to other fields. However, any simple modification, equivalent change and modification made to the above embodiment based on the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.

Claims

1. A domain named entity denoising method based on entity topic relevance, It is characterized in that include: S1, obtain the corpus to be recognized and perform entity recognition through a named entity recognition model to obtain an entity list; S2, splitting each named entity in the entity list into semantic elements and obtaining multiple field-related topics and their weights through learning and screening through a similar semantic element model; S3, calculating the score of the named entity based on each of the field-related topics and the weight of the topic obtained in step S2; S4, setting a noise threshold and screening and filtering noise entities in the named entities according to the noise threshold; Wherein, the step S2 further comprises: S21, splitting the named entity into semantic elements; S22, obtaining a number of topics n and inputting the semantic elements obtained in step S21 into the similar semantic element model to calculate and obtain n topics; S23, obtaining a plurality of the field-related topics according to the topic obtained in step S22 and setting a weight for each of the field-related topics; Wherein, the step S22 further comprises: S221, obtaining the number of topics n, and selecting n representative elements from the semantic elements according to the number of topics n; S222, calculating the distance between each semantic element in each topic and the representative element, wherein the distance is the reciprocal of the number of times the semantic element appears in the same entity; S223, obtaining n topics by combining the semantic element and the representative element with the smallest distance from the semantic element; S224, determining a central element in the subject, where the central element is an element having the smallest sum of distances to other elements in the subject; S225, repeat steps S221 to S224 until the central element in each theme no longer changes.

2. The domain named entity denoising method based on entity topic relevance as claimed in claim 1, It is characterized in that The step S4 further comprises: S41, setting the noise threshold; S42, sorting the named entities according to the scores and screening and filtering the noise entities, wherein the noise entities are the named entities whose scores are lower than the noise threshold.

3. The domain named entity denoising method based on entity topic relevance as claimed in claim 2, It is characterized in that The weight in step S23 is the number of domain-related entities / the total number of entities, the number of domain-related entities is the number of entities in the domain, and the total number of entities is the number of entities in the entity list.

4. The domain named entity denoising method based on entity topic relevance as claimed in claim 1, It is characterized in that In step S3, the score of the named entity is the average score of the weight of the field-related topics in each entity.

5. The domain named entity denoising method based on entity topic relevance as claimed in claim 2, It is characterized in that In the step S41, The noise threshold = avg-3×σ; Wherein, avg is the average score of the entities in the entity list; σ is the standard deviation of the scores of the entities in the entity list.

6. The domain named entity denoising method based on entity topic relevance as claimed in claim 1, It is characterized in that The step S22 is implemented through a BTM topic model.

7. A domain named entity denoising system based on entity topic relevance, It is characterized in that include: A named entity recognition module obtains the corpus to be recognized and performs entity recognition through a named entity recognition model to obtain an entity list; A named entity feature learning module is used to split each named entity in the entity list into semantic elements and obtain multiple field-related topics and their weights through learning and screening through a similar semantic element model, specifically: split the named entity into semantic elements, obtain a number of topics n and input the semantic elements into the similar semantic element model, calculate n topics, obtain multiple field-related topics according to the topics and set the weight of each field-related topic; A named entity noise scoring module, which calculates the score of the named entity based on each field-related topic and the weight of the topic obtained by the named entity feature learning module; A named entity filtering module, used to set a noise threshold and screen and filter noise entities in the named entities according to the noise threshold; The step of obtaining a number of topics n and inputting the semantic elements into the similar semantic element model to calculate the n topics specifically includes: Topic acquisition process: obtain the number of topics n, and select n representative elements from the semantic elements according to the number of topics n, calculate the distance between each semantic element in each topic and the representative element, the distance is the inverse of the number of times the semantic element appears in the same entity, and obtain n topics by combining the semantic elements and the representative elements with the smallest distance from the semantic elements, and determine the central element in the topic, the central element being the element with the smallest sum of distances from other elements in the topic; The topic acquisition process is repeated until the central element in each topic no longer changes.