A method and device for constructing an entity description reasoning knowledge base and obtaining reasoning evidence quantification information
By building an entity description reasoning knowledge base and using natural language processing technology to extract and quantify entity descriptions from open texts, we solve the problem of dimension limitations and missing event reasoning data in the existing logical reasoning knowledge base, and improve the credibility and reliability of the reasoning process. reliability.
Patent Information
- Application Number
- CN202011435544.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-07
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-12-07
AI Technical Summary
The dimensions of the existing logical reasoning knowledge base are limited, the quantitative data of event reasoning transmission is missing, the transmission evidence display is not effective enough, and the entity logic mining and application exploration are insufficient, making it difficult to guarantee the credibility and reliability of the reasoning process.
Through the construction of entity description reasoning knowledge base, natural language processing technology is used to extract entity descriptions and related entities from large-scale unstructured open text, and quantitative processing is performed to form an entity description reasoning knowledge base. Based on entity linking and matching methods, the relationship between events is obtained. inference evidence and associated information.
It broadens the scope of the logical reasoning knowledge base, improves logical reasoning capabilities, alleviates the problem of the lack of quantitative data and evidence display in event reasoning, and improves the credibility and reliability of the reasoning process.
Smart Images

Figure CN112667819B
Abstract
Description
Technical Field
[0001] The present invention relates to a method and device for constructing an entity description reasoning knowledge base and acquiring reasoning evidence quantification information, which belongs to the field of natural language processing and is a specific type of knowledge base construction and application reasoning method. Background Art
[0002] Knowledge reasoning is an advanced stage of artificial intelligence. Based on existing knowledge, knowledge reasoning machine technology is used to complete decision-making in a limited field, which can generate economic benefits while fully reducing human labor. For example, knowledge reasoning based on known knowledge and knowledge discovery using event-driven transmission paths can assist in business reasoning and decision-making, conduct early warning of unknown risks in intelligent investment research, and control and monitor public opinion of companies in public opinion analysis.
[0003] In order to complete the above reasoning work, two core points are included: 1) a large-scale knowledge base with reasoning as the basic data resource; 2) a human-friendly, credible, and explainable way of presenting knowledge reasoning in the reasoning process. Among them, from large-scale open texts, through the extraction of logical knowledge, a large-scale knowledge base with reasoning description capabilities can be formed, that is, a type of common sense knowledge with logical characterization capabilities and composed of logical reasoning factors. Credible and explainable knowledge reasoning methods make requirements on the reasoning process, requiring the reasoning path to be transparent, credible, quantifiable, and easy for humans to understand well.
[0004] Limited by the current level of natural language processing technology, there are still the following deficiencies in the construction and application of logical reasoning knowledge bases around event reasoning:
[0005] 1. The dimensions of existing logical knowledge bases are relatively limited. The existing public logical reasoning knowledge bases are mainly focused on the knowledge base construction of the evolution logic of things (such as causal evolution, conditional evolution, etc.), industrial chain transmission logic and related extensions, and the construction of other types of logical reasoning knowledge bases needs to be further explored.
[0006] 2. The existing event reasoning conduction quantification data is missing. There is a conduction quantification problem in the current event reasoning process. The quantification problem depends to a large extent on quantifiable data indicators, and most of these data are not open, resulting in data distortion. The weight of event reasoning can be obtained by calculating the numerical level in the entity description. In terms of logical extension, an important advantage of entity description knowledge is "liberating data". There are a large number of statistical conclusions about data in the description of the entity.
[0007] 3. The display of the transmission evidence of existing event reasoning is missing. In the current event reasoning interpretable display process, the inferable nodes between events and the edges between nodes are directly used as elements to draw the graph, and the display of the source of empirical evidence of the transmission edge is not effective. This lack makes it difficult to ensure the credibility and reliability of the reasoning.
[0008] 4. Insufficient exploration of the mining and application of entity logic. Entity description knowledge is an important type of logical reasoning factor and application object. The real entity description of a specific entity in a real situation hides a large number of potential reasoning clues and is another very effective reasoning factor, which can not only fill the gaps in the existing logic, but also further broaden the extension of the reasoning logic. For example, Chile is the country with the largest known lithium reserves and the most lithium mining in the world. It is also the world's largest copper producer and China's largest supplier of refined copper. Such descriptive information can reflect Chile's key position in the lithium and copper supply chains. Summary of the invention
[0009] In view of the current status and problems in the prior art, the purpose of the present invention is to propose a method and device for constructing an entity description reasoning knowledge base and obtaining quantitative information of event reasoning evidence.
[0010] The present invention consists of two components: an entity description reasoning knowledge base construction module and an event reasoning evidence quantitative information acquisition module. The main idea of the present invention is to use natural language processing methods to extract entity description knowledge for expressions with clear introductory descriptions in large-scale unstructured open texts, quantify entities, related entities, and obvious conductive associations between them using quantitative and statistical methods, and record and store the associated descriptions as conductive evidence, ultimately forming a large-scale entity description reasoning knowledge base. Based on the entity description reasoning knowledge base, through the method of event entity linking and matching, for specific input events or event pair lists, reasoning evidence with quantitative information and associated reasoning information are automatically obtained.
[0011] The technical solution adopted by the present invention is as follows:
[0012] A method for constructing an entity description reasoning knowledge base and obtaining quantitative information of reasoning evidence includes the following steps:
[0013] Using large-scale unstructured open text to establish an entity description reasoning knowledge base, the entity description reasoning knowledge base includes an entity description knowledge base and an entity association conduction base;
[0014] For the input events or event description lists, event pairs or event description pair lists, entity linking is used to search in the entity description reasoning knowledge base, and the reasoning evidence and conduction strength between the events are returned.
[0015] Furthermore, the entity description knowledge base is established by the following steps:
[0016] Preprocess the input text to form paragraph sets and sentence sets;
[0017] Use the entity description tag vocabulary to perform pattern matching on the paragraph set and the sentence set to form a set of entity description candidate paragraphs and candidate sentences;
[0018] Using the sequence labeling method, for each sentence in the candidate paragraph and candidate sentence set, the corresponding entity and entity concept description recognition model is trained to learn the entity and its described features at the word level;
[0019] The trained recognition model is used to obtain <entity subject, entity description> bigrams and <entity subject, description word, entity description> triplets to form an entity description knowledge base.
[0020] Furthermore, the sequence labeling refers to outputting the character label corresponding to each character in a given text string; the sequence labeling uses the BIO labeling mode, with BX marking the start of the entity, IX marking the middle of the entity, and O marking irrelevant characters. The labels to be predicted are divided into 7 types: B-Entity, I-Entity, B-Trigger, I-Trigger, B-Desc, I-Desc, and O.
[0021] Furthermore, the entity-associated conduction library is established by the following steps:
[0022] Obtain entity descriptions from an entity description knowledge base;
[0023] Identify the associated entity in the entity description and the associated description between it and the entity body to form a triple of <entity body, associated description, associated entity>;
[0024] Quantify the association description between the entity main body and the associated entity, which is used as the strength of the association transmitted from the entity main body to the associated entity;
[0025] A set of four tuples of <entity subject, association description, association entity, association strength> is formed, which constitutes the entity association conduction library.
[0026] Furthermore, the quantification of the association description between the entity body and the associated entity is performed by means of a sentiment intensity word list, a degree adverb list, and a quantification rule base.
[0027] Furthermore, the following steps are used to obtain the quantitative information of the single event description reasoning evidence:
[0028] For a single event description or a list of event descriptions that is input, entity recognition and entity linking are performed with the help of entities in the constructed entity description reasoning knowledge base, and the event description is mapped and associated with the entity description reasoning knowledge base;
[0029] Based on the results of the association and the position of the current entity in the entity description reasoning knowledge base, a walking method is used to traverse and expand according to the set walking depth to obtain the associated entities, as well as the conduction strength and reasoning evidence between entity conductions.
[0030] Furthermore, the following steps are used to obtain quantitative information of the reasoning evidence of the dual event description:
[0031] For a single event description pair or a list of event description pairs input, entity recognition and entity linking are performed with the help of entities in the constructed entity description reasoning knowledge base, and the event description is mapped and associated with the entity description reasoning knowledge base to form a head event entity link set and a tail event entity link set;
[0032] Combine the head event entity link set and the tail event entity link set to form a <head event entity, tail event entity> binary subgraph, perform subgraph multi-hop matching on the binary subgraph in the entity description reasoning knowledge base, and obtain the hit associated conduction subgraph;
[0033] The associated conductive subgraph is parsed using breadth-first and depth-first traversal methods respectively;
[0034] The associated conduction paths and conduction weights formed during the analysis of the associated conduction subgraph are assembled, the description sentences where the conduction edges are located are used as reasoning evidence, and the weight information on the description edges is returned as the conduction strength.
[0035] A device for constructing an entity description reasoning knowledge base and acquiring reasoning evidence quantification information using the above method, comprising:
[0036] An entity description reasoning knowledge base construction module is used to establish an entity description reasoning knowledge base using large-scale unstructured open texts, wherein the entity description reasoning knowledge base includes an entity description knowledge base and an entity association conduction library;
[0037] The reasoning evidence quantitative information acquisition module is used to search the entity description reasoning knowledge base through entity linking for the input events or event description lists, event pairs or event description pair lists, and return the reasoning evidence and transmission strength between events.
[0038] Compared with the prior art, the present invention has the following advantages:
[0039] 1. The present invention proposes a method for constructing an entity description reasoning knowledge base, which further broadens the scope of existing logical reasoning knowledge bases and can further improve the logical reasoning capabilities of existing knowledge bases.
[0040] 2. The present invention proposes an entity description extraction method based on the integration of three models of sequence annotation, deep learning, and obvious description indicators. After experimental evaluation, it can achieve higher extraction accuracy, recall rate and F value.
[0041] 3. The present invention proposes an entity description reasoning knowledge base, which can alleviate the problem of missing quantitative data of event reasoning conduction and missing evidence display of event reasoning conduction in the reasoning process to a certain extent.
[0042] 4. The present invention proposes a device for acquiring quantitative information of event reasoning evidence based on an entity description reasoning knowledge base. The device can be flexibly applied to different reasoning scenarios such as single event reasoning and double event pair reasoning, and the acquisition method can be quickly changed according to actual needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 This is the system structure diagram.
[0044] Figure 2 Constructing graphs for entity description reasoning knowledge bases.
[0045] Figure 3 Diagram of the information acquisition process for event reasoning evidence quantification.
[0046] Figure 4 Detailed flow chart of entity description extraction.
[0047] Figure 5 Schematic diagram of the process flow for building an entity-associated conduction library.
[0048] Figure 6 Schematic diagram of the information flow for describing reasoning evidence quantification for a single event.
[0049] Figure 7 Schematic diagram of the information flow for quantifying evidence for reasoning in a two-event description. DETAILED DESCRIPTION
[0050] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below through specific embodiments and drawings.
[0051] The present invention mainly includes two modules: entity description reasoning knowledge base construction module and event reasoning evidence quantification information acquisition module. Figure 1 The technical process of each module follows the following steps:
[0052] 1. Construction of Entity Description Reasoning Knowledge Base
[0053] 1. Definition of the concept of entity description reasoning knowledge base
[0054] The entity description reasoning knowledge base refers to a common sense knowledge base with logical reasoning capabilities, which is formed by two core knowledges, namely, entities and entity-related description information, as nodes and quantifiable conductive relationships between entities and related entities as edges. It consists of two sub-bases, the entity description knowledge base and the entity-related conductive base, and is extracted from descriptions with clear introductions. Among them:
[0055] The entity description knowledge base refers to a knowledge set consisting of <entity subject, entity description> tuples or <entity subject, description word, entity description> triplets that have been structured and extracted.
[0056] The entity association transmission library refers to a knowledge set consisting of a triple of <entity subject, association description, associated entity> or a quadruple of <entity subject, association description, associated entity, association strength>.
[0057] The entity refers to the object discussed in the actual description text. It has no specific word-forming structure and can be a verb, a verb phrase, a short sentence, or other different language types.
[0058] The term "explicit introductory description" refers to the real descriptive knowledge of a specific entity in a real-life scenario, which contains the objective attributes and proprietary characteristics of the entity, including definitions, attributes or features, and directly or indirectly describes the entity itself. For example, in the statement "Australian forest fires are a common natural disaster", "common natural disasters" is a description of "Australian forest fires".
[0059] 2. Construction of entity description knowledge base
[0060] The idea of constructing the entity description knowledge base is to set entity description trigger words, use a hybrid method of deep learning to perform entity subject recognition and subject description body recognition on open unstructured text, and output <entity subject, entity description> tuples and <entity subject, indicator, entity description> tuples to form an entity description knowledge base. Figure 4 As shown, the specific steps are as follows (wherein steps 1) and 2) correspond to Figure 4 "Text Preprocessing" in :
[0061] 1) For the input text, remove illegal characters such as spaces and convert traditional Chinese characters to simplified Chinese characters.
[0062] 2) Use line breaks to segment the text into paragraphs, and use semicolons, periods, and exclamation marks to segment the text into sentences.
[0063] 3) Use the entity description tag vocabulary to perform pattern matching on the paragraph set and the sentence set to form a set of entity description candidate paragraphs and candidate sentences. Among them, the entity description tag word list refers to the trigger words that often appear in descriptive sentences and are summarized by observing the characteristics of descriptive sentences, including for, for the name, that is, that is, what is, as, that is, common name, common name, alias, alternative name, turned into, transformed into, that is, also known as, named, become, become, called, called, known as, name, named, named, hum, metaphorically, can be called, named, that is to say, become, refer to, refer to, denounce as, is, said, especially, call, called, called, called, called, called, called, called, equal, counted, counted, concluded, called a good name, self-proclaimed, self-proclaimed, called, called, regarded as, regarded as, regarded as, praised as, commented on, said to be, said, posthumous name, naming, as, general name, refers to, is, etc., totaling 67.
[0064] 4) Adopting the idea of sequence annotation, for each sentence in the candidate paragraph and candidate sentence set, train the corresponding entity and entity concept description recognition model, and learn the entity and its described features at the word level. The sequence annotation refers to outputting the character label corresponding to each character in a given text string. The specific steps are as follows:
[0065] A. Data Annotation
[0066] The annotation strategy used in the present invention is the annotation mode of BIO, that is, BX is used to mark the beginning of the entity, IX is used to mark the middle of the entity, and O is used to mark irrelevant characters. Compared with the BIOES five-segment annotation method, the biggest advantage of the BIO three-segment annotation method is that it supports word-by-word annotation and does not require word segmentation of the data. Since the extraction task is to extract the entity in the sentence and the description information of the entity, X can be "Entity", "Trigger" and "Desc" respectively. Therefore, the labels to be predicted are divided into 7 types: "B-Entity", "I-Entity", "B-Trigger", "I-Trigger", "B-Desc", "I-Desc", and "O". Taking the Australian forest fire as an example, the annotation specifications of the entity concept description extraction task are explained in combination with examples.
[0067] For example: "Bushfires are a common natural disaster in Australia."
[0068] The data needs to be labeled in the form of: "Australian bushfires [Entity]", "is [Trigger]", and "common natural disasters [Desc]".
[0069] The serialized data format is as follows. Each line consists of a word and its corresponding annotation. The annotation set uses BIO, and sentences are separated by a blank line. The serialized result is:
[0070] Table 1 Text sequence and data label format
[0071] Australia big profit Asia forest Forest B-Entity I-Entity I-Entity I-Entity I-Entity I-Entity big fire yes That often See I-Entity I-Entity B-Trigger O B-Desc I-Desc of since Yes disaster Harmful 。 I-Desc I-Desc I-Desc I-Desc I-Desc O
[0072] After the model is trained, the index positions of all "B-Entity", "I-Entity", "B-Trigger", "I-Trigger", "B-Desc", "I-Desc", and "O" labels are extracted according to the set label specifications, and then the corresponding words are found from the original sentence according to the index positions for splicing.
[0073] B. Model training and use
[0074] The present invention uses a method based on a pre-trained language model + fine-tuning (Finetune). Specifically, in the selection of the pre-trained model, the BERT Chinese pre-trained model file chinese_L-12_H-768_A-12 is used as the pre-trained model. Character-level word embedding is trained on large-scale texts, which are input into the BiLSTM model to obtain more dependencies between characters. The paragraphs are feature encoded by BERT and BiLSTM, and then the labels are predicted by CRF decoding to identify the boundaries of entities and description bodies. For the combination pairing problem between entities and entity description information, a rule combination classification method is used for processing.
[0075] C. Combination of entity descriptions
[0076] Since there will be multiple entity parts and description parts after using the sequence labeling model, this algorithm adopts the pairing principle for combination. The matching combination rules are shown in Table 2.
[0077] Table 2 - Entity description tuple extraction rules
[0078]
[0079] D. Evaluation of Entity Description Extraction
[0080] The present invention manually annotates 10813 data sets by sequence annotation, and then divides the data into training set, validation set and test set in a ratio of 8:1:1. The evaluation indicators used are precision, recall and F1 value, which are specifically defined as follows:
[0081]
[0082]
[0083]
[0084] Among them, T p is the number of samples correctly identified by the model, F p is the number of samples where the model incorrectly identifies non-relevant entities as relevant entities, and F N is the number of samples that the model did not recognize as containing relevant entities.
[0085] Finally, the model's test results at the token-level (character label level) on a test set of 1,172 items are shown in the following table:
[0086] Table 3 - Model test results
[0087] project Precision Recall F1 Entity 97.62% 96.47% 97.04 Descriptive tag word-Trigger 95.51% 97.70% 96.59 Entity concept description-Desc 88.42% 94.38% 91.30 Token 93.66% 96.17% 94.90
[0088] In addition, the present invention extracts and processes 49,079,726 open texts to obtain a total of 8,904,569 high-quality entity description triples, retains the description tag word -Trigger among them to form <entity body, description word, entity description> triples, and retains the description tag word -Trigger among them to form <entity body, entity description> bigrams.
[0089] 3. Construction of entity-related conduction library
[0090] The idea of constructing the entity association transmission library is to identify the associated entities in the entity description in the entity description knowledge base and the associated descriptions between the entity body, and use the associated description set to design an association strength calculation method to quantify the association relationship between the entity body and the associated entities, which is used as the transmission association strength from the entity body to the associated entities, and the associated description is used as the evidence of transmission. Finally, the entities are standardized and connected end to end to form a large-scale entity association transmission library. The construction process of the entity association transmission library is as follows: Figure 5 The algorithm steps are as follows:
[0091] 1) Obtaining the associated entity description. Obtaining the associated entity description refers to obtaining the entity description sentence based on the entity description triple information extracted from the entity description knowledge base construction part.
[0092] 2) Related entity identification. The related entity identification refers to the entity identification of the entity description statement with the help of the external domain entity library to form related entities. The external domain entity library is composed of commodity or product names with transaction nature. It includes:
[0093] A. A collection of names of tradable commodity futures sold by Dalian Commodity Futures Exchange, Shanghai Futures Exchange, Zhengzhou Futures Exchange, etc.
[0094] B. A collection of names of companies, stocks, funds, industries, concept stocks, etc. available for trading in major sectors of the financial field.
[0095] C. Each node in the industry chain, including a collection of names such as products, companies, industries, and people.
[0096] D. A collection of commodity names in the National Bureau of Statistics’ commodity catalogue.
[0097] The extracted entity description triples, entity description sentences, and identified associated entities are combined to form a <entity subject, associated description, associated entity> triple.
[0098] 3) Conductive association quantification. The conductive association quantification refers to the calculation of the strength of the association description with the help of the sentiment intensity word list, degree adverb list, and quantification rule library as the conductive association strength between the entity and the associated entity.
[0099] A. The sentiment intensity word list refers to sentiment words with obvious intensity score marks, such as (important, 1.0), (main, 1.0), (general, 0.5), (small amount, 0.1), etc. in the format of (sentiment word, intensity). The sentiment word can effectively represent the intensity expressed by the descriptive sentence.
[0100] B. The degree adverb table refers to a word collection of adverbs with obvious degree modification meanings and their intensity information, such as (very, 2.0), (extremely, 2.0), (most, 2.0), etc. in the format of (degree adverb, intensity). The degree adverb table can effectively represent the key points and emphasized attributes in the descriptive expression.
[0101] C. The quantitative rule base refers to a set of rules for weighting the emotional intensity words, degree adverbs, and description sentence length contained in the description. The rule fully considers the three factors of emotion, degree, and description length, and sets the correlation coefficient for calculation. The specific calculation method is:
[0102] a) Assume that the total number of words in a sentence is N, weight(X) is the strength score of X, count(X) is the number of X, and the total score is Score(entity, associated entity);
[0103] b) Score (entity, associated entity) = (alpha*count(sentiment word)*weight(sentiment word) + beta*count(degree adverb)*weight(degree adverb)) / N
[0104] 4) Quantitative statistical update: The quantitative statistical update refers to performing operations 1) to 3) on all entity description triples in the entity description knowledge base, and for entities and associated entity pairs with the same content, their scores are the accumulation of the strength scores of all the same triples.
[0105] 5) Entity association transmission library. The scores updated through quantitative statistics are formed into a four-tuple set of <entity subject, association description, associated entity, association strength>, and finally the entity association transmission library is established.
[0106] 2. Acquisition of quantitative information on event reasoning evidence
[0107] The event reasoning evidence quantifies information acquisition, such as Figure 3 As shown in the figure, it is mainly divided into two parts: entity linking and evidence quantification information acquisition. The idea is to search the constructed entity description reasoning knowledge base for the input event or event description list, event pair or event description pair list through entity linking technology, and return the reasoning evidence and transmission strength between events.
[0108] The event or event description refers to the expression of an objective event, which is usually a language unit composed of a subject-predicate-object or subject-predicate structure.
[0109] The reasoning evidence refers to the empirical description of the conduction edge between events, in the form of a statement description and a source document that clearly records the conduction relationship.
[0110] The transmission strength refers to the weight of the transmission edge between events, that is, the sum of the transmission association strengths between all linked entities and other entities in the entity association transmission library. For example, given events A and B, event A links entities e1 and e2, and event B links entities e3 and e4, then the transmission strength between events A and B is the sum of the association strengths between e1 and e3, e1 and e4, e2 and e3, and e2 and e4.
[0111] 1. Single event description reasoning evidence quantification information acquisition
[0112] The single event description reasoning evidence quantifies information acquisition, such as Figure 6 As shown in the figure, the idea is to perform entity recognition and entity linking for a single input event description or a list of event descriptions with the help of entities in the constructed entity description reasoning knowledge base, and complete the mapping and association between the event description and the entity description reasoning knowledge base. Based on the results of the association and the position of the current entity in the knowledge base, a walking method is used to traverse and expand according to the set walking depth to obtain the associated entities, as well as the conduction strength and reasoning evidence between the entity conductions. The algorithm steps are as follows:
[0113] 1) Get the event description. Get the event description entered by the user and determine its event description type. If it is a list, traverse and process it.
[0114] 2) Entity linking: Entities in the constructed entity description reasoning knowledge base are used to perform entity recognition and entity linking, and the event description is mapped and associated with the entity description reasoning knowledge base.
[0115] 3) Configuration of walking depth and breadth. After completing the event description and entity linking in the entity reasoning knowledge base, dynamically set the walking depth and breadth according to business needs to limit the set of associated entity names that need to be inferred.
[0116] 4) Walking in the reasoning knowledge base: According to the configured walking depth and breadth, walk in the constructed entity description reasoning knowledge base, and record its associated conduction paths and conduction weights at the same time.
[0117] 5) Reasoning evidence quantitative information acquisition. Assemble the associated conduction paths and conduction weights of the recorded itinerary after walking the reasoning knowledge base, return the associated entity information under different path depths and path widths, and use the description sentence where the conduction edge is located as evidence information, that is, Figure 6 The “inference evidence” in , describes the weight information on the edge as quantitative data, that is Figure 6 The "conduction intensity" in
[0118] 2. Double event description for quantitative information acquisition of reasoning evidence
[0119] The dual event description reasoning evidence quantifies information acquisition, such as Figure 7 As shown in the figure, the idea is to perform entity recognition and entity linking for a single input event description pair or a list of event description pairs with the help of entities in the constructed entity description reasoning knowledge base, and complete the mapping and association between the event description and the entity description reasoning knowledge base. At the same time, an entity subgraph is constructed based on the head and tail entities, and a subgraph multi-hop matching is performed in the originally constructed entity reasoning knowledge base. The matching results are subgraph parsed, and finally the quantitative evidence data is output. The algorithm steps are as follows:
[0120] 1) Get the event description. Get the event description entered by the user and determine its event description type. If it is a list, traverse and process it.
[0121] 2) Entity linking. Entities in the constructed entity description reasoning knowledge base are used to perform entity recognition and entity linking, and the event description is mapped and associated with the entity description reasoning knowledge base to form a head event entity link set and a tail event entity link set, respectively.
[0122] 3) Subgraph multi-hop matching. Combine the head event entity link set and the tail event entity link set formed in the entity link to form a binary subgraph of <head event entity, tail event entity>. Set the maximum number of intervals between matches, such as one hop is the first level, two hops is the second level, and so on. Match the binary subgraph in the entity description reasoning knowledge base to obtain the hit associated conduction subgraph. The maximum number of intervals defaults to 1, which has the strongest conduction capability.
[0123] 4) Associated subgraph analysis: For the associated conduction subgraph found through subgraph multi-hop matching, the breadth-first and depth-first traversal methods are used to analyze and output the associated information data in each conduction path.
[0124] 5) Reasoning evidence quantitative information acquisition. Assemble the associated conduction paths and conduction weights formed during the analysis of the associated subgraph, and use the description sentences where the conduction edges are located as evidence information ( Figure 7 The “inference evidence” in ) will describe the weight information on the edge ( Figure 7 The "conduction strength" in ) is returned as quantitative data.
[0125] Based on the same inventive concept, another embodiment of the present invention provides a device for constructing an entity description reasoning knowledge base and acquiring reasoning evidence quantification information using the above method, which includes:
[0126] An entity description reasoning knowledge base construction module is used to establish an entity description reasoning knowledge base using large-scale unstructured open texts, wherein the entity description reasoning knowledge base includes an entity description knowledge base and an entity association conduction library;
[0127] The reasoning evidence quantitative information acquisition module is used to search the entity description reasoning knowledge base through entity linking for the input events or event description lists, event pairs or event description pair lists, and return the reasoning evidence and transmission strength between events.
[0128] Based on the same inventive concept, another embodiment of the present invention provides an electronic device (computer, server, smart phone, etc.), which includes a memory and a processor, the memory stores a computer program, the computer program is configured to be executed by the processor, and the computer program includes instructions for executing each step in the method of the present invention.
[0129] Based on the same inventive concept, another embodiment of the present invention provides a computer-readable storage medium (such as ROM / RAM, disk, CD), which stores a computer program. When the computer program is executed by a computer, it implements the various steps of the method of the present invention.
[0130] The specific embodiments and drawings of the present invention disclosed above are intended to help understand the content of the present invention and implement it accordingly. It can be understood by those skilled in the art that various substitutions, changes and modifications are possible without departing from the spirit and scope of the present invention. The present invention should not be limited to the contents disclosed in the embodiments and drawings of this specification, and the scope of protection of the present invention shall be subject to the scope defined in the claims.
Claims
1. A method for constructing an entity description reasoning knowledge base and obtaining quantitative information of reasoning evidence, It is characterized in that The following steps are involved: Using large-scale unstructured open text to establish an entity description reasoning knowledge base, the entity description reasoning knowledge base includes an entity description knowledge base and an entity association conduction base; For the input events or event description lists, event pairs or event description pair lists, through entity linking, search in the entity description reasoning knowledge base and return the reasoning evidence and transmission strength between the events; The entity description knowledge base is established by the following steps: Preprocess the input text to form paragraph sets and sentence sets; Use the entity description tag vocabulary to perform pattern matching on the paragraph set and the sentence set to form a set of entity description candidate paragraphs and candidate sentences; Using the sequence labeling method, for each sentence in the candidate paragraph and candidate sentence set, the corresponding entity and entity concept description recognition model is trained to learn the entity and its described features at the word level; The trained recognition model is used to obtain the <entity subject, entity description> tuple and the <entity subject, description word, entity description> tuple to form an entity description knowledge base. The entity-associated conduction library is established by the following steps: Obtain entity descriptions from an entity description knowledge base; Identify the associated entity in the entity description and the associated description between it and the entity body to form a triple of <entity body, associated description, associated entity>; Quantify the association description between the entity main body and the associated entity, which is used as the strength of the association transmitted from the entity main body to the associated entity; A set of four tuples of <entity subject, association description, association entity, association strength> is formed, which constitutes an entity association conduction library; The following steps are used to obtain quantitative information of single event description reasoning evidence: For a single event description or a list of event descriptions that is input, entity recognition and entity linking are performed with the help of entities in the constructed entity description reasoning knowledge base, and the event description is mapped and associated with the entity description reasoning knowledge base; Based on the results of the association and the position of the current entity in the entity description reasoning knowledge base, a walking method is used to traverse and expand according to the set walking depth to obtain the associated entities, as well as the conduction strength and reasoning evidence between entity conductions; The following steps are used to obtain quantitative information of the reasoning evidence of the dual event description: For a single event description pair or a list of event description pairs input, entity recognition and entity linking are performed with the help of entities in the constructed entity description reasoning knowledge base, and the event description is mapped and associated with the entity description reasoning knowledge base to form a head event entity link set and a tail event entity link set.
2. The method according to claim 1, It is characterized in that The sequence labeling refers to outputting the character label corresponding to each character in a given text string; the sequence labeling uses the BIO labeling mode, with BX marking the start of the entity, IX marking the middle of the entity, and O marking irrelevant characters. The labels to be predicted are divided into 7 types: B-Entity, I-Entity, B-Trigger, I-Trigger, B-Desc, I-Desc, and O.
3. The method according to claim 1, It is characterized in that The quantification of the association description between the entity body and the associated entity is performed by means of a sentiment intensity word list, a degree adverb list, and a quantification rule library.
4. The method according to claim 1, It is characterized in that The step of obtaining quantitative information of the reasoning evidence of the dual event description further includes: Combine the head event entity link set and the tail event entity link set to form a <head event entity, tail event entity> binary subgraph, perform subgraph multi-hop matching on the binary subgraph in the entity description reasoning knowledge base, and obtain the hit associated conduction subgraph; The associated conductive subgraph is parsed using breadth-first and depth-first traversal methods respectively; The associated conduction paths and conduction weights formed during the analysis of the associated conduction subgraph are assembled, the description sentences where the conduction edges are located are used as reasoning evidence, and the weight information on the description edges is returned as the conduction strength.
5. A device for constructing an entity description reasoning knowledge base and acquiring reasoning evidence quantification information using the method described in any one of claims 1 to 4, It is characterized in that include: An entity description reasoning knowledge base construction module is used to establish an entity description reasoning knowledge base using large-scale unstructured open texts, wherein the entity description reasoning knowledge base includes an entity description knowledge base and an entity association conduction library; The reasoning evidence quantitative information acquisition module is used to search the entity description reasoning knowledge base through entity linking for the input events or event description lists, event pairs or event description pair lists, and return the reasoning evidence and transmission strength between events.
6. An electronic device, It is characterized in that The invention comprises a memory and a processor, wherein the memory stores a computer program, the computer program is configured to be executed by the processor, and the computer program comprises instructions for executing the method according to any one of claims 1 to 4.
7. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a computer, the method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Event graph construction method based on social media
CN108763333A
A method for constructing industrial knowledge map based on industrial chain
CN109255034A
A method of extracting events from text based on natural language comprehension
CN109446513A
A fusion reasoning system and method for intelligent tags of news programs
CN109635171A
Rapid learning method for large-scale knowledge base
CN110275959A
