Domain term mining method based on knowledge graph recall
By constructing and utilizing knowledge graphs, the ambiguity and dependency problems in field term mining are solved, the accuracy and recognition efficiency of terms are improved, and are suitable for multiple data types, especially in the confirmation of new word definitions in complex fields.
Patent Information
- Application Number
- CN202411234223.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-09-04
AI Technical Summary
The existing field term mining methods have strong ambiguity, difficulty in disambiguation, insufficient timeliness and strong dependence, resulting in poor accuracy and generalization capabilities, especially in new data and complex fields.
Using a knowledge graph-based method, by constructing a domain knowledge graph, extracting the context triplets of concept words, linking to the prior knowledge graph, generating nodes with high similarity in the graph embedding vectors, recalling and confirming the relationship between concept words to avoid ambiguity, Improve accuracy.
Improves the accuracy and recognition efficiency of domain terms, reduces the need for manual intervention and computing resources, and is able to process a variety of data types, including pictures and videos, and enhances the ability to define and confirm new words.
Smart Images

Figure CN119003790A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of natural language processing, and more specifically to a domain term mining method based on knowledge graph recall. Background Art
[0002] Mining domain terminology helps identify key concepts in the field, monitor development trends in the field, provide information to decision makers, and improve communication.
[0003] At present, there are three mainstream term mining methods in the industry:
[0004] Rule-based: The rule-based approach is a method of identifying terms by establishing a series of predefined rules. These rules need to borrow the knowledge of domain experts to construct rule templates, and can be continuously optimized and improved manually. This method is simple and easy to implement, but it has poor portability, consumes a lot of manpower to obtain specific rules, and the effectiveness of the rules is easily disturbed.
[0005] Based on machine learning: The machine learning method uses machine learning algorithms to identify terms. Machine learning algorithms can learn the rules related to domain terms through training, and automatically identify terms based on these rules. However, this method requires a large amount of annotated data and computing resources, and takes a long time to train the model.
[0006] Fusion method: Fusion method is a method that combines rule and machine learning methods. This method can use rule methods to improve the accuracy and reliability of the model, while also using machine learning methods to expand the data set and handle a large number of terms. The advantage of this method is that it can combine the advantages of both methods and can handle more terms. However, this method requires more time and computing resources to train the model and requires more complex data preprocessing.
[0007] The main problems of current domain term mining are:
[0008] High ambiguity and difficulty in disambiguation: Some terms may have multiple meanings or interpretations, making it difficult to determine their intended use in a specific context during the annotation stage, and directly affecting the effectiveness of the algorithm on new data.
[0009] Lack of timeliness and susceptibility to noise: For newer terms in the field, since they appear less frequently in training samples and the prior knowledge of domain experts is insufficient, both the recall rate and precision rate are insufficient and they are more easily affected by irrelevant or misleading data.
[0010] Strong dependence and poor generalization ability: The training samples of domain terms and the rule writers are generally subject to the complexity and diversity of the domain itself. For domains with poor data accumulation, the current mainstream methods are difficult to have good scalability
[0011] Therefore, how to improve the accuracy of domain concept terms is an urgent problem that technical personnel in this field need to solve. Summary of the invention
[0012] In view of this, the present invention provides a domain terminology mining method based on knowledge graph recall, which constructs a domain knowledge graph from known concept words in the domain, and confirms the relationship between concept words by recalling them in the domain knowledge graph, thereby avoiding misunderstandings caused by ambiguity of concept word terms and improving accuracy.
[0013] In order to achieve the above object, the present invention adopts the following technical solution:
[0014] A domain term mining method based on knowledge graph recall includes the following steps:
[0015] S1: Extract domain concept words and context based on the current document; in order to process multimodal data such as pictures, voice, and video, you can use OCR technology and sound-to-text technology to first convert the text in the picture, voice, and sound in the video into text data.
[0016] S2: extracting triples according to the context of the domain concept words in the current document, and generating a first graph;
[0017] S3: linking the domain concept words to a priori knowledge graph, and generating a second graph according to the path relationship of the concept words in the knowledge graph;
[0018] S4: Select nodes with high graph embedding vector similarity in the second graph for recall, and add them to the first graph, and search for known relationships in the second graph based on the newly added nodes to generate a third graph;
[0019] S5: Construct a prompt text according to the third graph to confirm the definition of the domain concept word.
[0020] Preferably, S1 specifically includes: training a concept word recognition model for extraction, wherein the concept word recognition model includes a named entity recognition model and a large language model;
[0021] During offline training, the large language model is used to perform vocabulary annotation, generate labeled samples, and identify the labeled samples; calculate the confidence of each labeled vocabulary and filter the labeled vocabulary by threshold; and fine-tune parameters based on the development of prompt words in internal domain documents;
[0022] Using the large language model to predict external universal documents and extract high-frequency co-occurring words; matching the high-frequency co-occurring words to obtain external annotated samples;
[0023] The named entity recognition model is used to be trained according to the external labeled samples.
[0024] Preferably, the step of performing online model reasoning of the concept word recognition model includes:
[0025] S11: performing a preliminary recall of the current document through a named entity recognition model, mining document keywords to form a keyword list;
[0026] S12: adjusting the keyword table through a large language model to obtain the domain concept words.
[0027] Preferably, S2 specifically includes: the large language model extracts the concept words as entities, confirms entity relationships according to the context of the concept words in the current document, extracts triples, and constructs a first graph.
[0028] Preferably, S3 specifically includes: the large language model refers the entity chain in the first graph to an existing concept graph or a general knowledge graph according to the entity relationship in the first graph;
[0029] Extract the linked entities and entity relationships in the existing concept graph or general knowledge graph to generate a second graph.
[0030] Preferably, the step of training the large language model further includes:
[0031] Constructing an entity disambiguation training set, the entity disambiguation training set includes sample sentences and sample entities in the sample sentences; constructing a domain knowledge graph and a general knowledge graph, and generating a knowledge graph label by entity alignment; the knowledge graph label is provided with a target semantic entity and a non-target semantic entity corresponding to the sample entity;
[0032] The large language model is trained using the entity disambiguation training set; the trained large language model is used to obtain a target semantic entity that competes with the sample entity from a plurality of candidate semantic entities in the knowledge graph.
[0033] Preferably, the S3 further includes: performing a graph similarity judgment on the generated second graph, and executing S4 when the similarity meets a preset threshold.
[0034] Preferably, the graph similarity is calculated as follows:
[0035] sim=k1*node_sim(g1,g2)+k2*edge_sim(g1,g2)+k3*group_sim(g1,g2)
[0036] Among them, sim represents the similarity feature value between the first graph g1 and the second graph g2, node_sim is to extract all the points of g1 and g2 from the graph embedding vector and calculate the cosine similarity and take the average value respectively; edge_sim is to extract all the edges of g1 and g2 from the graph embedding vector and calculate the cosine similarity and take the average value respectively; group_sim is to take all the points in g1 at a distance of 3 steps in the knowledge graph, take all the points and all the points in g2, and divide the number of points after the intersection by the number of points in g2 to get the similarity, k1, k2, k3 are weight constants.
[0037] Preferably, the S4 specifically includes:
[0038] Calculating the distance similarity between the domain concept word and all entities in the second graph;
[0039] Set the distance similarity threshold;
[0040] When the distance similarity threshold is met and the corresponding domain concept word does not hit the first graph, the entity corresponding to the domain concept word in the second graph is selected to recall the first graph and added to the first graph, and the third graph is generated by searching for known relationships based on the newly added nodes.
[0041] Preferably, S5 is specifically:
[0042] Constructing a paraphrase text according to the third graph to represent the relationship between each node, and combining the meta information of the current document, the known definition information of the domain concept word and the context text of the domain concept word to form a prompt text;
[0043] When the domain concept word is a new word, the relationship between the new word and the domain words in the library is confirmed according to the prompt text, and a summary is generated to generate a definition summary of the new word.
[0044] It can be seen from the above technical solutions that, compared with the prior art, the domain term mining method based on knowledge graph recall provided by the present invention has the following beneficial effects:
[0045] 1. Construct a domain knowledge graph from known concept words in the domain. By recalling the concept words in the domain knowledge graph, the relationship between the concept words is confirmed, avoiding misunderstandings caused by ambiguity in concept word terms and improving accuracy.
[0046] 2. Existing domain word mining equipment often requires a lot of manual adjustments and human intervention, which is a long and time-consuming process. Based on the large language model, automatic annotation forms prompt words to guide the recognition of domain concept words, and the named entity recognition model realizes the mining of new words. By utilizing machine learning and natural language processing technology, these tasks can be completed faster and provide more accurate results.
[0047] 3. The present invention can process various types of data, including pictures, videos, etc. Knowledge framework pictures often contain a lot of domain knowledge structure information. The present invention describes the picture information and then extracts domain words and relationship sets from it, making the information richer and more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0049] Figure 1 A schematic diagram of a domain term mining method based on knowledge graph recall provided by the present invention.
[0050] Figure 2 Schematic diagram of the offline training process of the concept word recognition model in an embodiment of the present invention.
[0051] Figure 3 Schematic diagram of the online reasoning process of the concept word recognition model in an embodiment of the present invention.
[0052] Figure 4 This is the online reasoning process for identifying new domain word relationships and summarizing the abstracts in the embodiments of the present invention. DETAILED DESCRIPTION
[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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.
[0054] like Figure 1 The embodiment of the present invention discloses a method for mining domain terms based on knowledge graph recall, comprising the following steps:
[0055] S1: Extract domain concept words and context based on the current document; in order to process multimodal data such as pictures, voice, and video, you can use OCR technology and sound-to-text technology to first convert the text in the picture, voice, and sound in the video into text data.
[0056] S2: Extract triples based on the context of domain concept words in the current document and generate the first graph;
[0057] S3: Link the domain concept words to the prior knowledge graph, and generate the second graph based on the path relationship of the concept words in the knowledge graph;
[0058] S4: nodes with high graph embedding vector similarity in the second graph are selected for recall, and added to the first graph, and the third graph is generated by searching for known relationships in the second graph based on the newly added nodes;
[0059] S5: Construct prompt text according to the third graph and confirm the definition of domain concept words.
[0060] In this embodiment, the present invention can confirm the relationship between entities in the current document in the prior knowledge graph through chain pointing, and through entity recall, realize the interpretation of entities, i.e., conceptual words in the current document by prior knowledge, avoiding misunderstandings caused by ambiguity of conceptual words.
[0061] In addition, if there is a new word in the current document, it is impossible to find the corresponding entity in the prior knowledge through chaining, but other entities in the current document can be used to indirectly confirm the relationship between the prior knowledge and the new word, thereby realizing the definition of the new word.
[0062] In one embodiment, S1 specifically includes: learning the characteristics of concept words in a field by training a concept word recognition model and finally using the model to recognize documents, thereby extracting concept words from the documents.
[0063] In order to further implement the above technical solution, the present invention provides a concept word recognition model, which includes a named entity recognition model and a large language model.
[0064] like Figure 2 ,During the offline training process, the large language model is used to perform vocabulary ,annotation, and identify the annotated samples, calculate the confidence of each annotated vocabulary, and filter them ,through the threshold.
[0065] When performing vocabulary tagging tasks, the large language model receives input information including task instructions and instructions, confirms the professional field and marking symbols, such as "in the computer field, use # to mark the beginning of the term and | to mark the end of the term", and finally performs the tagging task according to the instruction requirements. For example:
[0066] Input sample sentence: "For example, a large language model is used to solve the common mathematical problem of chickens and rabbits in the same cage. In the early days, CoT provided a small number of examples for Q&A, which is called few-shot prompt technology."
[0067] Output labeled samples with labels: "For example, using a #large language model| to solve the common mathematical chicken-rabbit-in-the-same-cage problem, in the early #CoT|, a small number of examples were provided for Q&A, which is called the #few-shot prompt| technology."
[0068] When identifying labeled samples, the large language model determines whether the labeled words are domain concept words one by one, and outputs the probability of being domain concept words, as shown below:
[0069] Input: "Wikipedia + big model defeats hallucination! Stanford WikiChat outperforms GPT-4 with an accuracy of 97.3%" Is the "hallucination" in this sentence a computer term?
[0070] Output: 1.0.
[0071] Input: "I slept too little and had a brief hallucination." Is "hallucination" a computer term in this sentence?
[0072] Output: 0.0.
[0073] Input: "n=n+1, where n is the variable name" Is "n" a computer term in this sentence?
[0074] Output: 0.1.
[0075] In the recognition task, the annotated words can be used to form prompt templates to guide model recognition, so that the large language model can recognize more types of domain words and improve the recognition accuracy.
[0076] After completing the recognition task, statistics are collected on each annotated word, the average score of the word is calculated, and the threshold is set to the average value for filtering.
[0077] Further, on the basis of the large language model, the present invention introduces a named entity recognition model to capture newly emerged terms in the field, so as to enrich the prior knowledge of the training samples. Specifically, a large number of Internet documents are collected through the Octopus tool, and the above-mentioned large language model service based on the prompt template is used to perform reasoning for concept word recognition. Since the Internet samples used are external universal documents, new concept word terms and new semantics of known concept words will appear, which will then produce a large number of concept word results with slightly lower accuracy. The newly emerged terms are screened in these results by remote supervision and external annotation samples are generated. The samples thus obtained are used to fine-tune the small model (traditional language model or large language model with a small number of parameters), namely the named entity recognition model. The process needs to be continuously iterated to maintain the effect, so that the small model effect is close to or even exceeds the large model, and finally replaces the large model to reduce the online reasoning cost. The remote supervision method is mainly to first obtain a set of concept words with high-frequency co-occurrence relationships from documents in a specific field, and directly generate external annotation samples if they match in the sample sentences.
[0078] In this embodiment, if Figure 3 ,When the trained concept word recognition model performs online reasoning, the steps include:
[0079] S11: mining keywords from the current document through a named entity recognition model to form a keyword list;
[0080] S12: Supplement and adjust the keyword table through a large language model to obtain the domain concept words.
[0081] Specifically, the named entity recognition model can learn the patterns of specific types of entity words through training. When encountering new words, it can infer the boundaries and types of entity words based on their contextual information and the co-occurrence relationship between words. The large language model has strong semantic understanding and instruction following capabilities. First, the prompt word project is used to guide the large language model to annotate the domain words in the text and supplement the vocabulary obtained by the named entity recognition model. Then, the large language model is used as a discriminator to further screen the annotated vocabulary, understand its semantics based on the context of the current text where the keyword is located, and determine one by one whether it is a domain concept word. Based on the above-mentioned supplement and adjustment of the large language model, the recall rate and accuracy of domain word recognition are improved.
[0082] In order to further implement the above technical solution, the prior knowledge graph in S2 includes: known domain knowledge graph and general knowledge graph. Among them, the domain knowledge graph is a knowledge graph constructed based on the known domain terms in the target field and the relationships between them, and the general knowledge graph is a general knowledge graph with a wider coverage such as Wikidata. The domain knowledge graph can be regarded as a subset of the general knowledge graph. Some open source domain knowledge graphs can correspond to the general knowledge graph, but the general knowledge graph often cannot cover all the knowledge in a specific field.
[0083] Furthermore, the domain knowledge graph and the general knowledge graph can be entity aligned to better expand the domain knowledge graph, and other relevant entity information in the general knowledge graph can be used to verify the domain knowledge.
[0084] In order to further implement the above technical solution, Figure 4 , S2 specifically includes: the large language model extracts the concept words as entities, confirms the entity relationship according to the context of the concept words in the current document, extracts triples, and forms a first graph.
[0085] S3 specifically includes: the large language model refers the entity chain in the first graph to an existing concept graph or a general knowledge graph according to the entity relationship in the first graph;
[0086] Extract the linked entities and entity relationships in the existing concept graph or general knowledge graph to generate a second graph.
[0087] Furthermore, the training steps of the large language model also include:
[0088] Constructing an entity disambiguation training set, the entity disambiguation training set includes sample sentences and sample entities in the sample sentences; constructing a domain knowledge graph and a general knowledge graph, and generating a knowledge graph label by entity alignment; the knowledge graph label is provided with a target semantic entity and a non-target semantic entity corresponding to the sample entity;
[0089] The large language model is trained using the entity disambiguation training set; the trained large language model is used to obtain a target semantic entity that competes with the sample entity from a plurality of candidate semantic entities in the knowledge graph to achieve triple extraction and entity disambiguation tasks.
[0090] To summarize, the output of offline training includes three parts: the large model used for concept word mining, the traditional model for concept word mining, and prior knowledge graph data.
[0091] Taking the AI field as an example, the offline construction process is:
[0092] 1. Training named entity recognition model: select the large language model baichuan-13B and use the paper abstracts, keywords and concept words as training data on the openalex dataset, perform feature engineering, prompt word engineering and other development, and fine-tune the task for difficult samples in the field, so that it can recall the corresponding keywords or concept words for the paper abstracts, as well as other words such as institutions and people, and give classifications. Then use the fine-tuned baichuan-13B model to predict recent AI news, reports and other external documents to obtain text and corresponding concepts and entity words, recorded as the "initial training set". Remote supervision can use sentence template matching, keyword mining and other methods to iterate all news and report data in a loop, and finally obtain an extended data set, and then use this data set to train the scrapy NER model as a small model.
[0093] 2. Train the knowledge graph algorithm module for triple extraction and entity disambiguation: First, use the relationships between OpenAlex's conceptual words, such as the hyponym and hyponym relationships, and the related concepts of institutions, to build a domain knowledge graph, and use Wikidata data to build a general knowledge graph. The corresponding relationship between the two entities can be directly aligned to generate the graph data for this project.
[0094] For the concept word IDs of the openalex paper abstracts and paper entities, disambiguation training data can be directly constructed; for the "initial training set" in step 1, if the triples of the knowledge graph are matched, the corresponding relationship is established to construct a triple extraction training set. Relation extraction is performed using a relation extraction model; the relation extraction model is a large language model that inputs a sentence and the two types of entities it contains, outputs their relationship, and forms a triple.
[0095] Through feature engineering, prompt word engineering and other developments, the baichuan-13B model is also fine-tuned for multiple tasks. It should be noted that the prompt words of this model need to point out the current task with a fixed template to accelerate subsequent reasoning.
[0096] 3. Build an offline index for concept relationship extraction and summary: Import the graph data from step 2 into the nebula graph database and the milvus vector database.
[0097] The online reasoning process is:
[0098] 1. Concept word extraction: Input the document and first use scrapy's NER model to recall the results. If AI field terms are recalled, call the fine-tuned baichuan-13B model to confirm again.
[0099] 2. Knowledge graph database construction: Use the baichuan-13B model produced by training process 2, and use fixed templates and thinking chains to obtain extracted text and disambiguated text. The disambiguated text can be recalled using online search engines such as elasticsearch.
[0100] 3. Concept word storage: Use the model produced in step 2 to infer the triples that constitute the sub-dataset in step 1. Figure 1 , recall the paths between the entities in these triples from nebula to form sub Figure 2 , the graph similarity algorithm uses the cosine similarity calculated by summing the node vectors in the graph. If the similarity meets the requirements, the child Figure 2 syndrome Figure 1 , and then use the child Figure 1 Neutralize the vectors of the adjacent entities of the concept word, extract similar entities from milvus and query nebula to obtain the connected paths, and add the sub Figure 2 Generator Figure 3 Finally, according to the source document meta information, the definition information of the field where the recalled concept word is located, the context text of the recalled concept word, Figure 3 The paraphrase text generates prompt words. Figure 3 The method of constructing the paraphrase text can be to directly concatenate triples and separate them with commas. After arranging the above information in markdown format, ask questions to the baichuan-65B large model one by one and get answers. After generating the hyponym, synonym, and antonym relationship entities and summaries of the domain words for the answers, write them back to the graph data of this project.
[0101] In order to further implement the above technical solution, S4 uses the second graph to correct the entity disambiguation result of the first graph. The specific steps of S4 are:
[0102] Calculate the distance similarity between the domain concept word and all entities in the second graph. When there is a similar and corresponding domain concept word that does not hit the first graph, select the entity corresponding to the domain concept word in the second graph to adjust the first graph.
[0103] The adjustment method is as follows:
[0104] Select nodes with high graph embedding vector similarity in the second graph for recall, and add them to the first graph. Find known relationships based on the newly added nodes to generate the third graph. Specifically, use the graph embedding vectors of all points in the second graph g2 to add the first 10 points with cosine similarity greater than 0.8 to the first graph g1, and find known paths for all newly added points in pairs and add them to the first graph g1 to form the third graph g3.
[0105] In another embodiment, in order to ensure the accuracy of the second graph in S3, S3 further includes: performing similarity judgment on the generated second graph, and when the similarity meets a preset threshold, executing S4. The similarity is calculated as follows:
[0106] sim=k1*node_sim(g1,g2)+k2*edge_sim(g1,g2)+k3*group_sim(g1,g2)
[0107] Among them, sim represents the similarity feature value between the first graph g1 and the second graph g2, node_sim is to extract all the points of g1 and g2 from the graph embedding vector and calculate the cosine similarity and take the average value; edge_sim is to extract all the edges of g1 and g2 from the graph embedding vector and calculate the cosine similarity and take the average value; group_sim is to take all the points in g1 in the knowledge graph and take the intersection of all the points and all the points in g2 at a distance of 3 steps and divide the number of points in g2 to get the similarity, k1, k2, k3 are weight constants. In this way, it is calculated whether the similarity sim of the two subgraphs is greater than the threshold value of 0.7 to confirm whether the knowledge graph can be used for recall. If the similarity is higher than the threshold value, S4 is executed.
[0108] In another embodiment, S5 is specifically:
[0109] The paraphrase text is constructed according to the third graph g3 to represent the relationship between each node, and the prompt text is formed by combining the meta information of the current document, the known definition information of the domain concept word and the context text of the domain concept word; assuming that g3 is represented by (s1, p1, o1), (s2, p2, o2), ..., then the paraphrase text construction method is as follows: {s1's name} of {p1's name} is {o1's name}, {s2's name} of {p2's name} is {o2's name}, ...
[0110] When the domain concept word is a new word, the relationship between the new word and the domain words in the library, such as hyponymy, synonymy, antonymy, etc., is confirmed according to the prompt text, and a definition summary of the new word is generated by summarizing.
[0111] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0112] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A domain term mining method based on knowledge graph recall, characterized in that: The following steps are involved: S1: Extract domain concept words and context based on the current document; S2: extracting triples according to the context of the domain concept words in the current document, and generating a first graph; S3: linking the domain concept words to a priori knowledge graph, and generating a second graph according to the path relationship of the concept words in the knowledge graph; S4: Select nodes with high graph embedding vector similarity in the second graph for recall, and add them to the first graph, and search for known relationships in the second graph based on the newly added nodes to generate a third graph; S5: Construct a prompt text according to the third graph to confirm the definition of the domain concept word.
2. According to claim 1, a domain term mining method based on knowledge graph recall is characterized in that: The S1 specifically includes: training a concept word recognition model for extraction, wherein the concept word recognition model includes a named entity recognition model and a large language model; During offline training, the large language model is used to perform vocabulary annotation, generate labeled samples, and identify the labeled samples; calculate the confidence of each labeled vocabulary and filter the labeled vocabulary by threshold; and fine-tune parameters based on the development of prompt words in internal domain documents; Using the large language model to predict external universal documents and extract high-frequency co-occurring words; matching the high-frequency co-occurring words to obtain external annotated samples; The named entity recognition model is used to be trained according to the external labeled samples.
3. According to claim 2, a domain term mining method based on knowledge graph recall is characterized in that: The steps of performing online model reasoning on the concept word recognition model include: S11: performing a preliminary recall of the current document through a named entity recognition model, mining document keywords to form a keyword list; S12: adjusting the keyword table through a large language model to obtain the domain concept words.
4. According to claim 2, a domain term mining method based on knowledge graph recall is characterized in that: The S2 specifically includes: the large language model extracts the concept words as entities, confirms the entity relationship according to the context of the concept words in the current document, extracts triples, and forms a first graph.
5. According to claim 4, a domain term mining method based on knowledge graph recall is characterized in that: The S3 specifically includes: the large language model points the entity chain in the first graph to an existing concept graph or a general knowledge graph according to the entity relationship in the first graph; Extract the linked entities and entity relationships in the existing concept graph or general knowledge graph to generate a second graph.
6. A method for mining domain terms based on knowledge graph recall according to claim 5, characterized in that: The training step of the large language model also includes: Constructing an entity disambiguation training set, the entity disambiguation training set includes sample sentences and sample entities in the sample sentences; constructing a domain knowledge graph and a general knowledge graph, and generating a knowledge graph label by entity alignment; the knowledge graph label is provided with a target semantic entity and a non-target semantic entity corresponding to the sample entity; The large language model is trained using the entity disambiguation training set; the trained large language model is used to obtain a target semantic entity aligned with a sample entity from a plurality of candidate semantic entities in a knowledge graph.
7. The method for mining domain terms based on knowledge graph recall according to claim 1, characterized in that: The step S3 further includes: performing a graph similarity judgment on the generated second graph, and executing S4 when the similarity meets a preset threshold.
8. The method for mining domain terms based on knowledge graph recall according to claim 7, characterized in that: The calculation method of the graph similarity is: sim=k1*node_sim(g1,g2)+k2*edge_sim(g1,g2)+k3*group_sim(g1,g2) where sim represents the similarity feature value between the first graph g1 and the second graph g2; node_sim takes all the points of g1 and g2 out of the graph embedding vector and calculates the cosine similarity and takes the average value; edge_sim takes all the edges of g1 and g2 out of the graph embedding vector and calculates the cosine similarity and takes the average value; group_sim takes all the points in g1 3 steps away in the knowledge graph, takes the intersection of all the points and all the points in g2 and divides the number of points in g2 to get the similarity; k1, k2, k3 are weight constants.
9. The method for mining domain terms based on knowledge graph recall according to claim 8, characterized in that: The S4 specifically includes: Calculating the distance similarity between the domain concept word and all entities in the second graph; Set the distance similarity threshold; When the distance similarity threshold is met and the corresponding domain concept word does not hit the first graph, the entity corresponding to the domain concept word in the second graph is selected to recall the first graph and added to the first graph, and the third graph is generated by searching for known relationships based on the newly added nodes.
10. The method for mining domain terms based on knowledge graph recall according to claim 1, characterized in that: The S5 is specifically: Constructing a paraphrase text according to the third graph to represent the relationship between each node, and combining the meta information of the current document, the known definition information of the domain concept word and the context text of the domain concept word to form a prompt text; When the domain concept word is a new word, the relationship between the new word and the domain words in the library is confirmed according to the prompt text, and a summary is generated to generate a definition summary of the new word.
Citation Information
Patent Citations
Cross-language multi-source vertical domain knowledge graph construction method
CN112199511A
Knowledge graph mining method and system
CN113553439A
Archive knowledge graph construction method based on multi-modal semantic features
CN116450834A
Knowledge graph construction method based on reliability of aircraft parts
CN116644192A
Knowledge graph completion method and system based on conceptual graph
CN116992040A
Cited By
Method and system for detecting and repairing output illusion of large language model
CN119599137A
Data processing method and device
CN119807433A
Rapid labeling method based on artificial intelligence large model
CN119848549A
Knowledge graph ontology construction method and device based on large model
CN121235061A
Method and device for constructing a knowledge graph ontology based on a large model
CN121235061B
