An intelligent question-answering reasoning method and system based on natural language entity relations

Through the entity relationship corpus and graph neural network technology, natural language entity connection relationships are automatically generated, which solves the problems of corpus update and accurate query in massive text data, and achieves efficient and accurate query results of the intelligent question and answer system.

CN113779211BActive Publication Date: 2024-10-22HUAZHONG UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110902862.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-06
Publication Date
2024-10-22
Estimated Expiration
2041-08-06

AI Technical Summary

Technical Problem

The existing technology is difficult to effectively construct and update corpora in massive text data. Especially when faced with complex semantic natural languages, it is difficult to generate networked structural data with dense connections, resulting in inaccurate query results of intelligent question answering systems and increasing the user's frustration. burden.

Method used

By constructing an entity relationship corpus, using the BERT model and graph neural network technology, we can automatically generate decision-making data based on natural language entity connection relationships, conduct intelligent question and answer reasoning, avoid early structured processing, rely on manual annotation of data, and use graph neural networks Perform deep learning to give accurate answers.

Benefits of technology

It realizes the direct generation of question-related entity connection relationships in massive text data, improves the query accuracy and efficiency of the intelligent question and answer system, reduces the user's cost, and is suitable for complex query problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113779211B_ABST
    Figure CN113779211B_ABST
Patent Text Reader

Abstract

The present invention discloses an intelligent question-answering reasoning method and system based on natural language entity relations, which belongs to the field of natural language processing. It includes: segmenting each sentence in the corpus and extracting entity words; using natural sentences as the edges of entity association to form entity relations, summarizing the entity connection relations in the corpus, and forming a semantic network database based on natural language entity relations; designing an intelligent reasoning deep learning model based on the BERT pre-trained language model and graph neural network; inputting the entity connection graph related to the user-submitted question into the network for reasoning, and screening the results through a multi-layer perceptron to give the final answer. The present invention automatically constructs an entity relationship database through any given natural language text corpus, avoids entity extraction and labeling through manual intervention, and automatically discovers and infers answers by analyzing the user's complex questions, so as to help users obtain the desired results faster and more accurately.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of natural language processing, and more specifically, relates to an intelligent question-answering reasoning method and system based on natural language entity relations. Background Art

[0002] With the rapid development of the information industry, people's demand for information search and analysis in various fields is also increasing day by day. Faced with the alarming growth of information and content on the Internet every day, how to quickly retrieve what people want from this explosive information has become increasingly important and urgent. This involves a trade-off between ease of use and accuracy when searching: on the one hand, although it is possible to design and use structured query languages ​​to accurately describe one's goals and quickly obtain the desired results, mastering and flexibly applying these professional query languages ​​will cause the learning cost to rise sharply, so it is not suitable for general users and practitioners; on the other hand, using common search engines, people can use natural language to describe their problems and obtain results. This retrieval method is simple and in line with human logic, but the results returned by search engines are often complex and dazzling, containing many redundant and erroneous pages, requiring the inquirer to select and identify the specific information they need, which undoubtedly increases the burden on users; further, because users use natural language when searching, it usually contains complex semantic connotations and hidden common sense background knowledge, and mainstream search engines generally complete content retrieval tasks based on keywords, which further reduces the accuracy and recall of search results.

[0003] Therefore, an ideal retrieval system should be able to have both the characteristics of being easy to use and having accurate results, which is exactly what the intelligent question-answering system has and aims to solve. The intelligent question-answering system can accept questions and descriptions entered by users in natural language, and after analysis and reasoning, it gives an accurate and concise answer, rather than a cumbersome web page for users to select. Therefore, the intelligent question-answering system is more efficient and easier to use than a search engine, and is increasingly attracting attention from many parties. In addition, when building a question-answering system, an additional information database is required to provide question-answering decision support. In recent years, some productized question-answering systems have also emerged, such as Apple's Siri assistant and Google's Google Now application. Intelligent question-answering uses natural language processing (NLP) technology to fully understand the query statements submitted by users, deeply explore the semantic connections between the information, and then return the ideal results to users more accurately.

[0004] Among them, the construction of corpus and the generation of decision-making reasoning information also face some problems and challenges: the usual corpus information database is collected from various web page texts, and then data cleaning and structured processing are carried out, such as processing into a typical RDF triple structure. Highly structured corpora are more convenient for node retrieval and are also conducive to automatic reasoning, but their disadvantages are that they are difficult to generate on a large scale and keep the data updated in a timely manner, and when faced with natural languages ​​with complex semantics, they cannot sample a densely connected network structure data well, especially when faced with actual needs. It is becoming increasingly unrealistic to face these huge amounts of data. The same is true for other industries with similar needs, so practitioners in related industries are also eager to use artificial intelligence technology to build efficient and intelligent information processing systems in the field so that they can grasp industry trends and increase their own competitiveness. Summary of the invention

[0005] In view of the defects and improvement needs of the prior art, the present invention provides an intelligent question-answering reasoning method and system based on natural language entity relationships, which aims to use massive amounts of text data directly as a data source, automatically generate question-related decision data based on natural language entity connection relationships, and hand it over to an intelligent question-answering system for reasoning and giving accurate results.

[0006] To achieve the above object, according to a first aspect of the present invention, an intelligent question-answering reasoning method based on natural language entity relations is provided, the method comprising:

[0007] 1. Entity Relationship Corpus Construction Phase:

[0008] Perform word segmentation on each sentence in the corpus; extract entity words from the segmented sentences;

[0009] Based on the extracted entity words, if two entities appear in the same natural sentence, the natural sentence is used as the edge connecting the two entities to form an entity relationship; the entity connection relationships in the corpus are summarized to form an entity relationship corpus;

[0010] 2. Training phase:

[0011] Construct an intelligent reasoning deep learning model, which includes: a BERT model, which is used to encode the entity connection relationship data into word vectors and encode and fuse the information of the graph structure itself. After these data are converted into vector structures, they are sent to the graph neural network; a graph neural network, which is used to learn the vector structure, complete the reasoning based on the understanding of the language information itself, and give the final answer;

[0012] Use the Mask mechanism to randomly mask part of the text, predict the masked words through the context of the article, and preliminarily train the corresponding parameters of the BERT model in sequence; randomly select tens of thousands of continuous sentence pairs and discontinuous sentence pairs from the corpus to form two sets, let BERT identify and predict which sentence pairs are continuous and which are not, and obtain a pre-trained BERT model; use the training sample set to train the graph neural network, and the training samples include questions, answers, and several counterexamples;

[0013] 3. Application stage:

[0014] The input question sentence is segmented and entity words are extracted to obtain the question entity words; the entity connection relationship graph related to the question is obtained from the entity relationship corpus; the entity connection relationship graph related to the question is used as the reasoning decision data, input into the intelligent reasoning deep learning model for reasoning, and the node with the highest score is output as the final answer node.

[0015] Preferably, extracting entity words from the sentence after word segmentation includes:

[0016] S16: Given a sentence s={w1,w2,w3,...,w n}, and collect the possible entity words (w1), (w2), ..., (w n )、(w1w2),(w2w3),...,(w n-1 w n )、……、(w1w2w3...w n );

[0017] S17: Calculate the recognition probability of the entity as Pr(w) = Anchor(w) / Freq(w). If Pr(w) is lower than the selected entity recognition probability threshold γ ed , then it is filtered out, where w represents the n-gram word, Freq(w) represents the frequency of w appearing in the entire corpus; Anchor(w) represents the frequency of w appearing in the form of anchor points in the entire corpus;

[0018] S18: Calculate the entity pairs of other words w2 in the sentence Degree of support Among them, Pr(e'|w2) is the prior probability, Entity(w) represents the set of entities that the word w may point to. Represents two entities The correlation degree, N p (w2) represents the number of elements in the set of all pages containing entity w2;

[0019] S19: For Calculate wk and its possible entity words The matching score is Among them, w k Represents the vocabulary in the anchor point set extracted from sentence s, Entity(w k ) indicates w k The corresponding set of all possible entities;

[0020] S110: The entity that the vocabulary finally corresponds to is Among them, Entity(s) represents the entity set that sentence s finally corresponds to, γ1 represents the threshold of the prior probability of the constrained entity, and γ2 represents the threshold for filtering out lower scores.

[0021] Beneficial effects: The present invention designs an entity extraction method for Chinese sentences. Through the entity extraction algorithm, effective entities can be extracted from Chinese sentences, laying a foundation for subsequent tasks and making it feasible to deeply explore the connections between entities during reasoning.

[0022] Preferably, the two entities The correlation for

[0023]

[0024] Among them, N p =|∪ w Pages(w)|Represents the total number of all pages in the corpus.

[0025] Preferably, the obtained entities are further screened as follows:

[0026] (1) Calculate the entity recognition probability Pr(e) and the correlation between the measured entity and the sentence R(e,s) respectively:

[0027]

[0028] (2) Take the arithmetic mean of the two as the final screening index

[0029] (3) If Represents the threshold, then filter out and get the entity set

[0030] Preferably, forming an entity relationship comprises:

[0031] S21: For any a p ∈A and for any e q ∈E,A={a1,a2,...,a k} represents the possible answer entity set associated with these entities after retrieval, E = {e1, e2, ..., e n} represents the extracted entity word set, and all sentences in the corpus that contain the connection between the two As a relationship connecting two entities, we get the set Among them, |S p,q |=N p,q , N p,q Expressing sentences The number of

[0032] S22: When but , still think is a valid entity relationship for e q The same is true, among which, Indicates that e p Corresponding documents;

[0033] S23: All entities E contained in the corpus and the edges V connected to them, as well as the natural language sentences S on the edges, are stored together in a semantic network database to form a graph structure G = (E, V, S).

[0034] Beneficial effects: The present invention designs a generation method based on natural language entity connection relationships, which avoids the early structural processing of text, makes the data source more extensive, and is not dependent on early manual annotation data, making it possible for the subsequent question-answering system to cope with complex query problems.

[0035] Preferably, the method of obtaining the entity connection relationship graph related to the problem includes:

[0036] S34: Analyze the entities that problem Q may contain to obtain the set E Q ={e1,e2,...,e n};

[0037] S35: Find other entities E in the semantic network database G that are connected to it by edges i ;

[0038] S36: After querying, other entity sets related to question Q are obtained The union of the two constitutes the entity connection relationship diagram node E related to the problem Q ←E Q ∪E other , in addition, the edges V that are directly connected to them Q And the natural language sentence S associated with the edge Q Together they form a subgraph related to a question Q That is, the entity connection relationship diagram.

[0039] Preferably, the input intelligent reasoning deep learning model performs reasoning and outputs the node with the highest score as the final answer node:

[0040] S410: The input entity relationship diagram is divided into a problem description Q, a node word E, a natural language sentence S on the connecting edge, and additional description information T for each node;

[0041] S411: Use BERT-Tokenizer to segment Q, S and T in the input data, and use BERT to embed the word vector {v1,v2,...,v n}=BERT{w1,w2,...,w n};

[0042] S412: Use the gated recurrent neural network GRU unit to perform attention-based encoding operations on the word embedding vectors in turn, and obtain the vectors {h1,h2,...,h n}=GRU{v1,v2,...,v n};

[0043] S413: Each output result h i , define its attention weight α i is α i =expWh i / ∑ j expWh j , where the weight matrix W is learned through GNN;

[0044] S414: Use the attention mechanism to weight all outputs and get the final output h o =∑ i α i h i ;

[0045] S415: For S output, the average value of its vector is adopted;

[0046] S416: In the parameter iterative learning process, the vector representation variables of the question, the sentence, and the additional information node are learned using a graph convolutional neural network;

[0047] S417: After the graph neural network has gone through multiple layers of iterative output, the output of the candidate node represents the fusion of all the problem nodes, additional information, and sentence text information of this round and the previous round;

[0048] S418: After several rounds of graph neural network operations, the answer candidate entity node E is obtained C The output {h c: c∈C}, use the Sigmoid function to map them into a real number as the probability of the answer, and take the largest result as the correct answer A: Among them, score(h c ) is obtained by connecting to a multi-layer perceptron.

[0049] Preferably, the information in S41 specifically includes:

[0050] Question text Q: It is a description in Chinese natural language;

[0051] Question Entity Q i : These are extracted from the question text Q by the entity extraction algorithm;

[0052] Counterexample node F i :The counterexample is related to the problem nodes Q i There are related nodes, and there is evidence that they may also serve as answers, but in fact they are not the real answers to the questions; counterexample nodes help provide enough information during graph neural network training to help the network model make correct judgments;

[0053] Answer node A: the true answer to the question description Q, so E other ={A}∪F i , and E Q =Q i ∪E other ;

[0054] Natural language sentence association i : It is a kind of supporting information to prove whether the node is the answer to the question, which can provide information support during reasoning;

[0055] Additional Information i : Each entity node and candidate node can be accompanied by additional information to further describe the node and provide richer semantic information.

[0056] Preferably, the calculation process during parameter iteration in step S47 is:

[0057] For vertex n, let its additional information be t, then let the vector representation of the vertex be Will They are input into the graph convolutional neural network for propagation calculation, that is, in the rth iteration, Among them, the sentence vector is the average of multiple argument vectors, and the question node n q The vector representation of fused the problem vector generated in this round and superimposed with the output of the previous round, and calculated by the graph convolutional neural network; after the completion of the rth round of iteration, we get Will Dot multiplication and normalize it with the Sigmoid function to get a value p n , which is calculated as: by The rth iteration form of calculating the candidate nodes is recorded as Quantitative results is the candidate entity n c Representation.

[0058] To achieve the above-mentioned purpose, according to a second aspect of the present invention, there is provided an intelligent question-answering reasoning system based on natural language entity relations, a computer-readable storage medium and a processor;

[0059] The computer-readable storage medium is used to store executable instructions;

[0060] The processor is used to read the executable instructions stored in the computer-readable storage medium to execute the intelligent question-answering reasoning method based on natural language entity relationships described in the first aspect.

[0061] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects:

[0062] The present invention uses the BERT pre-trained language model and graph neural network technology to design an intelligent question-answering reasoning algorithm based on the natural language entity connection relationship. A good reasoning algorithm can fully understand the content of the user's question and give an accurate answer. The basic idea of ​​the reasoning algorithm is to score each node that may be the answer and then output the highest score as the result. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Figure 1 It is a flowchart of an intelligent question-answering reasoning method based on natural language entity relations provided by the present invention;

[0064] Figure 2 It is a schematic diagram of the generation process of a semantic network database based on natural language entity relationships in an embodiment of the present invention;

[0065] Figure 3 is a schematic diagram of a flow chart of learning parameter iteration in an embodiment of the present invention;

[0066] Figure 4 It is a structural diagram of the intelligent question-answering reasoning model in an embodiment of the present invention. DETAILED DESCRIPTION

[0067] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0068] The present invention provides an intelligent question-answering reasoning method based on natural language entity relations, such as Figure 1 As shown in the figure, the whole process includes: corpus entity extraction, corpus entity relationship database generation, user question analysis and entity relationship graph generation, and intelligent question answering reasoning results, specifically including:

[0069] S1: Perform word segmentation on each sentence in the original corpus, and then use the entity extraction algorithm to extract entity words;

[0070] S2: Use natural sentences as the edges of entity associations to form entity relationships, collect and summarize entity connection relationships in the corpus, and form a semantic network database based on natural language entity relationships;

[0071] S3: Extract question entity words based on the question description submitted by the user, and obtain the entity connection relationship graph structure from the semantic network database;

[0072] S4: Design an intelligent reasoning deep learning model based on the BERT pre-trained language model and graph neural network; input the network with the entity connection graph related to the question for reasoning, and filter the results through a multi-layer perceptron to give the final answer.

[0073] Furthermore, the entity extraction algorithm steps in step S1 include:

[0074] S11: Given an input sentence s={w1,w2,w3,...,w n}, according to the n-gram algorithm to collect possible entity words (w1), (w2), ..., (w n )、(w1w2),(w2w3),...,(w n-1 w n )、……、(w1w2w3...w n ).

[0075] S12: Let the vocabulary w, let Freq(w) represent the frequency of w in the whole corpus; Anchor(w) represents the frequency of w in the whole corpus in the form of entity link, define the recognition probability of entity as Pr(w) = Anchor(w) / Freq(w), select the entity recognition probability threshold γ ed, if Pr(w) is lower than γ ed Then filter it out.

[0076] S13: Let the set of all possible entities of word w1 be Entity(w1), and define the entities of other words w2 in the sentence The support level is Among them, Pr(e'|w2) is the prior probability, Represents two entities degree of correlation.

[0077] S14: Let vocabulary w k , and its corresponding set of all possible entities is recorded as Entity(w k ),for Define w k and its possible entity words The matching score is It is the sum of the support provided by other words in the sentence.

[0078] S15: The entity that the vocabulary finally corresponds to is The entity set that sentence s finally corresponds to is denoted as Entity(s).

[0079] like Figure 2 As shown, the generation of the entity-relationship database specifically includes:

[0080] S21: Assume that the entity set E = {e1, e2, ..., e n}.

[0081] S22: For any e p ∈E and for any e q ∈E, any sentence in the corpus that contains the connection between the two A relationship that connects two entities.

[0082] S23: Suppose there are N such sentences p,q , then Among them, |S p,q |=N p,q .

[0083] S24: In addition, assuming e p The corresponding document is And when but We still believe that is a valid entity relationship because it is assumed that Implicitly includes e p , for e q The same goes for this.

[0084] S25: Store all entities E contained in the corpus and their connected edges V, as well as natural language sentences S on the edges, into a semantic network database to form a graph structure G = (E, V, S).

[0085] In addition, the steps for generating entity connection diagrams from user questions include:

[0086] S31: Analyze the entities that problem Q may contain to obtain the set E Q ={e1,e2,...,e n}.

[0087] S32: Find other entities E in the semantic network database G that are connected to it by edges i .

[0088] S33: After querying, other entity sets related to question Q are obtained The union of the two constitutes the entity connection relationship diagram node E related to the problem Q ←E Q ∪E other , in addition, the edges V that are directly connected to them Q And the natural language sentence S associated with the edge Q Together they form a subgraph related to a question Q That is, the entity connection relationship diagram;

[0089] The process of intelligent question answering reasoning is as follows Figure 4 As shown, it mainly includes:

[0090] S41: The input entity relationship diagram can be divided into problem description Q, node words E, natural language sentences S on connecting edges, and additional description information T for the nodes.

[0091] S42: Use BERT-Tokenizer to segment Q, S and T in the input data, and use BERT to embed the word vector {v1,v2,...,v n}=BERT{w1,w2,...,w n},like Figure 3 shown.

[0092] S43: Use the gated recurrent neural network GRU unit to perform attention-based encoding operations on the word embedding vectors in turn, and obtain the vectors {h1,h2,...,h n}=GRU{v1,v2,...,v n}.

[0093] S44: Each output result h i, define its attention weight α i is α i =expWh i / ∑ j expWh j , where the weight matrix W can be learned through GNN.

[0094] S45: Using the attention mechanism, we weight all outputs to get the final output h o =∑ i α i h i ,like Figure 3 shown.

[0095] S46: In particular, since there are more than one natural language sentences directly connecting two nodes, the average value of their vectors is used for S output.

[0096] S47: The main body of the reasoning model is a graph neural network, which consists of three parts: input representation, parameter learning, and node information fusion learning. During the parameter iterative learning process, the vector representation variables of questions, sentences, and additional information nodes are learned using graph convolutional neural networks respectively.

[0097] S48: After the graph neural network has gone through multiple layers of iterations, the output of the candidate node represents the fusion of all the problem nodes, additional information, and sentence text information of this round and the previous round, taking them together and fully considering them to quantify the results. is the candidate entity n c Representation.

[0098] S49: After several rounds of graph neural network operations, we get the answer candidate entity node E C The output {h c : c∈C}, use the Sigmoid function to map them into a real number as the probability of the answer, and take the largest result as the correct answer A: Where score(h c ) is obtained by connecting to a multi-layer perceptron.

[0099] Furthermore, in step S41: the input data specifically includes: question text Q: which is a description of a Chinese natural language; question entity Q i :These are extracted from the question text Q by the entity extraction algorithm; counterexample node F i :The counterexample is related to the problem nodes Q iThere are related nodes, and there is evidence that they seem to be answers, but they are not actually the real answers to the questions. They help provide enough information to help the network model make correct judgments during graph neural network training; answer node A: the real answer to the question description Q; natural language sentence association E i : It is a kind of supporting information to prove whether the node is the answer to the question, which can provide information support during reasoning; additional information T i : Each entity node and candidate node can be accompanied by additional information to further describe the node and provide richer semantic information.

[0100] The calculation process of the parameter iteration in step S47 is that the initial representation vector generated by the GRU module They are question text, additional information and natural language sentence respectively. However, considering that the additional information is the description of the entity node, the entity node is reflected as a vertex on the graph. Therefore, for vertex n, let its additional information be t, then let the vector representation of the vertex be Here, the question vector is added with additional information, so that the node vector incorporates the semantic information of the question. Note that these vertices include question entity nodes and answer candidate nodes (including correct answers and wrong answers as counterexamples at this time), and n is used when necessary. q ,n c To be distinguished.

[0101] Will They are input into the graph convolutional neural network for propagation calculation, that is, in the rth iteration, The sentence vector is the average of multiple argument vectors, and the question node n q The vector representation of fused the problem vector generated in this round and superimposed with its own output in the previous round, and was calculated through the graph convolutional neural network.

[0102] After the rth round of iterations, we get In order to measure the node n c Is it the correct answer? We will Dot multiplication and normalize it with the Sigmoid function to get a value p n , which is calculated as: Its intuitive meaning is that the result after dot multiplication contains both the problem and the supporting candidate node n c The sentence information of , integrates this information and quantifies it, so it can be used as a candidate node n c is the confidence or weight of the correct answer. Obviously, the larger the weight, the more likely this node is to be the correct answer. As the weight, the rth iteration form of the candidate node can be calculated as It combines all the question nodes, additional information, and sentence text information of this round and the previous round, taking them together and fully considering them to quantify the results. is the candidate entity n c Representation.

[0103] The present invention provides an intelligent question-answering reasoning system based on natural language entity relations, comprising:

[0104] Corpus preprocessing module: The process of corpus text processing includes five steps: traditional-simplified conversion, format conversion, tag mark removal, anchor point expansion and Chinese word segmentation, and finally obtains a usable corpus after word segmentation;

[0105] Entity extraction module: Use entity extraction algorithm to extract entity words, use natural sentences as the edges of entity association, form entity relationships, collect and summarize entity connection relationships in the corpus, and form a semantic network database based on natural language entity relationships;

[0106] Entity connection relationship graph generation module: Extract question entity words based on the question description submitted by the user, and obtain the entity connection relationship graph structure from the semantic network database;

[0107] Intelligent question-answering reasoning module: Based on the user's question, the relevant entity connection graph is input into the graph neural network for reasoning and discovery, and the results are screened through a multi-layer perceptron to give the final answer.

[0108] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. An intelligent question-answering reasoning method based on natural language entity relations, characterized in that: The method comprises:

1. Entity Relationship Corpus Construction Phase: Perform word segmentation on each sentence in the corpus; extract entity words from the segmented sentences; Based on the extracted entity words, if two entities appear in the same natural sentence, the natural sentence is used as the edge connecting the two entities to form an entity relationship; the entity connection relationships in the corpus are summarized to form an entity relationship corpus; 2. Training phase: Construct an intelligent reasoning deep learning model, which includes: a BERT model, which is used to encode the entity connection relationship data into word vectors and encode and fuse the information of the graph structure itself. After these data are converted into vector structures, they are sent to the graph neural network; a graph neural network, which is used to learn the vector structure, complete the reasoning based on the understanding of the language information itself, and give the final answer; Use the Mask mechanism to randomly mask part of the text, predict the masked words through the context of the article, and preliminarily train the corresponding parameters of the BERT model in sequence; randomly select tens of thousands of continuous sentence pairs and discontinuous sentence pairs from the corpus to form two sets, let BERT identify and predict which sentence pairs are continuous and which are not, and obtain a pre-trained BERT model; use the training sample set to train the graph neural network, and the training samples include questions, answers, and several counterexamples; 3. Application stage: Perform word segmentation and entity word extraction on the input question sentence to obtain the question entity words; obtain the question-related entity connection relationship graph from the entity relationship corpus; use the question-related entity connection relationship graph as the reasoning decision data, input it into the intelligent reasoning deep learning model for reasoning, and output the node with the highest score as the final answer node; The input intelligent reasoning deep learning model performs reasoning and outputs the node with the highest score as the final answer node: S41: The input entity relationship diagram is divided into a problem description Q, a node word E, a natural language sentence S on the connecting edge, and additional description information T for each node; S42: Use BERT-Tokenizer to segment Q, S and T in the input data, and use BERT to embed the word vector {v1,v2,...,v n }=BERT{w1,w2,...,w n }; S43: Use the gated recurrent neural network GRU unit to perform attention-based encoding operations on the word embedding vectors in turn, and obtain the vectors {h1,h2,...,h n }=GRU{v1,v2,...,v n }; S44: Each output result h i , define its attention weight as α i =expWh i / ∑ j expWh j , where the weight matrix W is learned through GNN; S45: Use the attention mechanism to weight all outputs and get the final output h o =∑ i α i h i ; S46: For S output, the average value of its vector is adopted; S47: During the parameter iterative learning process, the vector representation variables of the question, sentence, and additional information nodes are learned using a graph convolutional neural network. S48: After the graph neural network has gone through multiple layers of iterative output, the output of the candidate node represents the fusion of all the problem nodes, additional information, and sentence text information of this round and the previous round; S49: After several rounds of graph neural network operations, the answer candidate entity node E is obtained C The output {h c :c∈C}, use the Sigmoid function to map them into a real number as the probability of the answer, and take the largest result as the correct answer A: Among them, score(h c ) is obtained by connecting to a multi-layer perceptron.

2. The method according to claim 1, characterized in that The extracting entity words from the sentence after word segmentation includes: S11: Given a sentence s={w1,w2,w3,...,w n }, and collect the possible entity words (w1), (w2), ..., (w n )、(w1w2),(w2w3),...,(w n-1 w n )、……、(w1w2w3...w n ); S12: Calculate the recognition probability of the entity as Pr(w) = Anchor(w) / Freq(w). If Pr(w) is lower than the selected entity recognition probability threshold γ ed , then it is filtered out, where w represents the n-gram word, Freq(w) represents the frequency of w appearing in the entire corpus; Anchor(w) represents the frequency of w appearing in the form of anchor points in the entire corpus; S13: Calculate the entity pairs of other words w2 in the sentence Degree of support Among them, Pr(e'|w2) is the prior probability, Entity(w) represents the set of entities that the word w may point to. Represents two entities The correlation degree, N p (w2) represents the number of elements in the set of all pages containing entity w2; S14: For Calculate w k and its possible entity words The matching score is Among them, w k Represents the vocabulary in the anchor point set extracted from sentence s, Entity(w k ) indicates w k The corresponding set of all possible entities; S15: The entity that the vocabulary finally corresponds to is Among them, Entity(s) represents the entity set that sentence s finally corresponds to, γ1 represents the threshold of the prior probability of the constrained entity, and γ2 represents the threshold for filtering out lower scores.

3. The method according to claim 2, characterized in that Two entities The correlation for Among them, N p =|∪ w Pages(w)|Represents the total number of all pages in the corpus.

4. The method according to claim 2 or 3, characterized in that The obtained entities are further screened as follows: (1) Calculate the entity recognition probability Pr(e) and the correlation between the measured entity and the sentence R(e,s) respectively: (2) Take the arithmetic mean of the two as the final screening index (3) If γ s Represents the threshold, then filter out and get the entity set 5. The method according to claim 1, characterized in that The forming of entity relationship comprises: S21: For any a p ∈A and for any e q ∈E,A={a1,a2,...,a k } represents the possible answer entity set associated with these entities after retrieval, E = {e1, e2, ..., e n } represents the extracted entity word set, and all sentences in the corpus that contain the connection between the two As a relationship connecting two entities, we get the set Among them, |S p,q |=N p,q , N p,q Expressing sentences The number of S22: When but , still think is a valid entity relationship for e q The same is true, among which, Indicates that e p Corresponding documents; S23: All entities E contained in the corpus and the edges V connected to them, as well as the natural language sentences S on the edges, are stored together in a semantic network database to form a graph structure G = (E, V, S).

6. The method according to claim 1, characterized in that The method of obtaining the entity connection relationship diagram related to the problem includes: S31: Analyze the entities that problem Q may contain to obtain the set E Q ={e1,e2,...,e n }; S32: Find other entities E in the semantic network database G that are connected to it by edges i ; S33: After querying, other entity sets related to question Q are obtained The union of the two constitutes the entity connection relationship diagram node E related to the problem Q ←E Q ∪E other , in addition, the edges V that are directly connected to them Q And the natural language sentence S associated with the edge Q Together they form a subgraph related to a question Q That is, the entity connection relationship diagram.

7. The method according to claim 1, characterized in that The information in S41 specifically includes: Question text Q: It is a description in Chinese natural language; Question Entity Q i : These are extracted from the question text Q by the entity extraction algorithm; Counterexample node F i :The counterexample is related to the problem nodes Q i There are related nodes, and there is evidence that they may also serve as answers, but in fact they are not the real answers to the questions; counterexample nodes help provide enough information during graph neural network training to help the network model make correct judgments; Answer node A: the true answer to the question description Q, so E other ={A}∪F i , and E Q =Q i ∪E other ; Natural language sentence association i : It is a kind of supporting information to prove whether the node is the answer to the question, which can provide information support during reasoning; Additional Information i : Each entity node and candidate node can be accompanied by additional information to further describe the node and provide richer semantic information.

8. The method according to claim 1, characterized in that The calculation process during parameter iteration in step S47 is: For vertex n, let its additional information be t, then let the vector representation of the vertex be Will They are input into the graph convolutional neural network for propagation calculation, that is, in the rth iteration, Among them, the sentence vector is the average of multiple argument vectors, and the question node n q The vector representation of fused the problem vector generated in this round and superimposed with the output of the previous round, and calculated by the graph convolutional neural network; after the completion of the rth round of iteration, we get Will Dot multiplication and normalize it with the Sigmoid function to get a value p n , which is calculated as: by The rth iteration form of calculating the candidate nodes is recorded as Quantitative results is the candidate entity n c Representation.

9. An intelligent question-answering reasoning system based on natural language entity relations, characterized in that: A computer readable storage medium and a processor; The computer-readable storage medium is used to store executable instructions; The processor is used to read the executable instructions stored in the computer-readable storage medium to execute the intelligent question-answering reasoning method based on natural language entity relations described in any one of claims 1 to 8.