Intelligent question and answer method, medium and system

By using pre-trained graph neural networks and expert modules for voting in an intelligent question and answer system, the problem of the existing language model's lack of external knowledge structure in complex question and answer tasks is solved, and more accurate and relevant answer information is achieved.

CN118733736APending Publication Date: 2024-10-01XIAMEN FADU INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410875591.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing large-scale language models lack external knowledge structures when processing complex question and answer tasks, resulting in inaccurate answer information and easy confusion of irrelevant knowledge, affecting the accuracy and reliability of the question and answer system.

Method used

An intelligent question and answer method is proposed, which obtains the semantic encoding of the question information through a pre-trained graph neural network, and inputs it into multiple expert modules for voting, and finally generates the answer information, and introduces external knowledge to improve the accuracy and knowledge relevance of the answer. .

Benefits of technology

It improves the answer information accuracy and knowledge relevance of the question and answer system, enhances the model's ability to handle complex question and answer tasks, and ensures the accuracy and reliability of answers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733736A_ABST
    Figure CN118733736A_ABST
Patent Text Reader

Abstract

The invention discloses an intelligent question and answer method, medium and system, and the method comprises the steps: obtaining question information, inputting the question information into a pre-trained graph neural network, and outputting a corresponding semantic code through the pre-trained graph neural network; extracting a sentence coding vector corresponding to the question information; inputting the sentence coding vector into a plurality of expert modules to obtain an expert coding vector output by each expert module; voting the expert coding vector through a round table voting module so as to determine a final coding vector according to a voting result; and generating answer information corresponding to the question information according to the semantic code and the final code vector. External knowledge can be introduced in the question and answer process, so that the accuracy of answer information is improved; meanwhile, the relevance of knowledge in the final answer information can be improved through the expert module, and the accuracy of the answer information is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of natural language processing technology, and in particular to an intelligent question-answering method, medium and system. Background Art

[0002] In the field of natural language processing, pre-trained language models (PLMs) such as BERT and GPT series have achieved remarkable results in various NLP tasks. These models are usually trained on large text corpora to capture the deep statistical characteristics of language.

[0003] However, existing large-scale language models are often designed without considering external knowledge structures, which limits the model's ability to handle complex question-answering tasks. In particular, when in-depth understanding and reasoning of specific domain knowledge is required, it is difficult for existing models to provide sufficient prompt information, thus affecting the accuracy and reliability of the question-answering system. In addition, in the case of diverse knowledge, it is easy to confuse irrelevant knowledge into the question-answering, making the final answer information inaccurate. Summary of the invention

[0004] The present invention aims to solve at least one of the technical problems in the related art to a certain extent. To this end, one purpose of the present invention is to propose an intelligent question-answering method that can introduce external knowledge in the question-answering process to improve the accuracy of the answer information; at the same time, it can improve the relevance of the knowledge in the final answer information through the expert module, thereby further improving the accuracy of the answer information.

[0005] In a first aspect, the present invention proposes an intelligent question-answering method, comprising the following steps: obtaining question information, and inputting the question information into a pre-trained graph neural network to output corresponding semantic coding through the pre-trained graph neural network; extracting a sentence coding vector corresponding to the question information; inputting the sentence coding vector into multiple expert modules to obtain an expert coding vector output by each expert module; voting on the expert coding vectors through a round-table voting module to determine a final coding vector based on the voting results; and generating answer information corresponding to the question information based on the semantic coding and the final coding vector.

[0006] According to the intelligent question-answering method of an embodiment of the present invention, first, the question information is obtained, and the question information is input into a pre-trained graph neural network to output the corresponding semantic coding through the pre-trained graph neural network; then, the sentence coding vector corresponding to the question information is extracted; then, the sentence coding vector is input into multiple expert modules to obtain the expert coding vector output by each expert module; then, the expert coding vector is voted on through a round-table voting module to determine the final coding vector according to the voting result; then, the answer information corresponding to the question information is generated according to the semantic coding and the final coding vector. Thereby, external knowledge is introduced into the question-answering process to improve the accuracy of the answer information; at the same time, the relevance of the knowledge in the final answer information can be improved through the expert module, and the accuracy of the answer information can be further improved.

[0007] In some embodiments, the training of the pre-trained graph neural network includes: obtaining raw data and constructing a knowledge graph corresponding to the raw data based on a dependency syntax tree; determining a graph neural network architecture and initializing nodes in the knowledge graph using a standard normal distribution; performing node masking and graph data enhancement processing on the knowledge graph to obtain final training samples; and training a model based on the final training samples to obtain the pre-trained graph neural network.

[0008] In some embodiments, node masking is performed on the knowledge graph, including: randomly selecting a node in the knowledge graph as a masked node; predicting features of the masked node based on information of unmasked neighboring nodes, and comprehensively representing the masked node using neighboring nodes according to the prediction results.

[0009] In some embodiments, the knowledge graph is subjected to graph data enhancement processing, including: randomly masking nodes or edges in the knowledge graph, or randomly removing nodes or edges in the knowledge graph, or introducing slight changes in word meaning or word form.

[0010] In some embodiments, obtaining the original data includes: obtaining historical conversation data, and constructing question-answer pairs based on the historical conversation data; and cleaning and filtering the question-answer pairs to obtain the original data.

[0011] In some embodiments, the question-answer pair is cleaned and filtered, including: calculating the information density value corresponding to the question-answer pair, and determining whether the information density value is less than an information density threshold; if so, determining that the information density of the question-answer pair is too low, and removing the question-answer pair; if not, calculating the matching value corresponding to the question-answer pair; determining whether the matching value is less than a matching value threshold; if so, determining that the question-answer pair does not match, and removing the question-answer pair.

[0012] In some embodiments, the question-answer pairs are cleaned and filtered, including: inputting the question-answer pairs into a pre-trained sentence classification model to score the question-answer pairs through the sentence classification model; and removing question-answer pairs whose scoring results are lower than a preset scoring threshold.

[0013] In some embodiments, the question-answer pairs are cleaned and filtered, including: text clustering the question-answer pairs based on a text clustering algorithm to obtain multiple clusters; for each cluster, selecting the question-answer pair with the highest score as the final question-answer pair.

[0014] In a second aspect, an embodiment of the present invention provides a computer-readable storage medium on which an intelligent question-answering program is stored. When the intelligent question-answering program is executed by a processor, the intelligent question-answering method as described above is implemented.

[0015] In the third aspect, an embodiment of the present invention proposes an intelligent question and answer system, including: an acquisition module, the acquisition module is used to acquire question information, and input the question information into a pre-trained graph neural network to output the corresponding semantic code through the pre-trained graph neural network; an extraction module, the extraction module is used to extract the sentence coding vector corresponding to the question information; an expert module, the expert module is used to input the sentence coding vector into multiple expert modules to obtain the expert coding vector output by each expert module; a roundtable voting module, the roundtable voting module is used to vote on the expert coding vector through the roundtable voting module to determine the final coding vector according to the voting results; an answer module, the answer module is used to generate answer information corresponding to the question information according to the semantic code and the final coding vector.

[0016] According to the intelligent question-answering system of the embodiment of the present invention, an acquisition module is set to acquire question information, and the question information is input into a pre-trained graph neural network, so as to output the corresponding semantic code through the pre-trained graph neural network; an extraction module is used to extract the sentence code vector corresponding to the question information; an expert module is used to input the sentence code vector into multiple expert modules, so as to obtain the expert code vector output by each expert module; a round-table voting module is used to vote on the expert code vector through the round-table voting module, so as to determine the final code vector according to the voting result; and an answer module is used to generate the answer information corresponding to the question information according to the semantic code and the final code vector. Thus, external knowledge is introduced into the question-answering process to improve the accuracy of the answer information; at the same time, the relevance of the knowledge in the final answer information can be improved through the expert module, so as to further improve the accuracy of the answer information.

[0017] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 is a flowchart of an intelligent question-answering method according to an embodiment of the present invention;

[0019] Figure 2 is a schematic diagram of a node masking process according to an embodiment of the present invention;

[0020] Figure 3 is a schematic diagram of a graph data enhancement processing process according to an embodiment of the present invention;

[0021] Figure 4 is a schematic diagram of a hybrid expert module according to an embodiment of the present invention;

[0022] Figure 5 is a block diagram of an intelligent question-answering system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0023] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0024] The intelligent question-answering method according to an embodiment of the present invention is described below with reference to the accompanying drawings.

[0025] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of an intelligent question-answering method according to an embodiment of the present invention; Figure 1 As shown, the intelligent question answering method includes the following steps:

[0026] S101, obtain question information, and input the question information into a pre-trained graph neural network to output corresponding semantic coding through the pre-trained graph neural network.

[0027] In some embodiments, the training of the pre-trained graph neural network includes: obtaining the original data and constructing a knowledge graph corresponding to the original data based on the dependency syntax tree; determining the graph neural network architecture and initializing the nodes in the knowledge graph using a standard normal distribution; performing node masking and graph data enhancement processing on the knowledge graph respectively to obtain the final training samples; training the model based on the final training samples to obtain the pre-trained graph neural network.

[0028] As an example, first, collect historical data for training (the historical data may include QA pairs of domain customer service questions and answers, conversation records of voice customer service, policy documents and training documents; where historical data is policy documents and training documents and other materials, chatgpt can be used to construct question-answer pairs); then, construct question-answer pairs based on the collection results to obtain original data; then, construct the corresponding knowledge graph based on the syntactic tree; specifically, the questions and answers in the question-answer pairs may be segmented first, and then the segmented words may be annotated with semantic roles to construct semantic role relationships between sentences; in this way, for similar questions and answers, there will be common semantic roles and subnodes, so that when users ask questions, the questions will also be subjected to the same operation. It can be understood that in the knowledge graph, nodes can be sentences or phrases, and edges can represent semantic relationships, such as subject-verb-object structures, modification relationships, and the like. Similar node roles and other information will be encoded into vectors, and these vector information will be constructed and brought into the training of the large language model during training. The intuitive explanation is that similar questions will bring the answer vectors in the knowledge base into the large model, thereby providing hints to the model and reducing the difficulty of learning. Then, node masking and graph data enhancement are performed on the knowledge graph to obtain the final training samples. It can be understood that node masking can improve the diversity of the final training samples, making the subsequent model more accurate when performing intelligent question and answering. Graph data enhancement can enhance the robustness of the model. Then, the model is trained based on the final training samples to obtain a pre-trained graph neural network.

[0029] It should be noted that vector embedding is a text conversion technology that encodes vocabulary units such as words and phrases into numerical vectors in a high-dimensional space. These numerical representations reveal the meaning of the text content and its contextual associations, thereby enhancing the parsing and recognition efficiency of large language models for natural language. For the constructed graph, a suitable graph neural network architecture GraphSAGE is selected to learn the embedding representation of the node. And through the unsupervised task of node reconstruction, the embedding of the node should contain enough information to reconstruct its semantic role and key vocabulary features. Specifically, a node is randomly masked, and then the masked node is predicted based on the information of the surrounding nodes. In this way, the trained node also contains the information of the surrounding neighbor nodes. After several rounds of training, the node information can be integrated into the current node to varying degrees. At the same time, in order to improve training efficiency and model performance, graph data enhancement strategies are designed, such as masking of nodes or edges, random removal of nodes or edges, and changes in word meaning or word form.

[0030] In some embodiments, node masking is performed on the knowledge graph, including: randomly selecting nodes in the knowledge graph as masked nodes; predicting features of the masked nodes based on information of unmasked neighboring nodes, and using neighboring nodes to comprehensively represent the masked nodes according to the prediction results.

[0031] As an example, Figure 2 As shown in FIG, in the process of performing node masking on the knowledge graph, first, for the original knowledge graph, randomly select nodes therein as masking nodes; for example, Figure 2 As shown, the "product" node is selected as the mask node; then, the node information reconstruction task is performed; that is, the information of the unmasked surrounding nodes is used to predict the characteristics of the masked node, the surrounding nodes are input, and the masked node is expressed as a comprehensive representation of the neighboring nodes. Specifically, it can be expressed by the formula: mask = (w1*node1+...wn*noden) / n; where wn represents the weight information of the nth neighbor node, and noden represents the node information of the nth neighbor node; during the training process, the training goal is to minimize the reconstruction loss. In this way, through continuous iteration, the diversity of training samples can be finally trained, so that the subsequent model can answer more accurately when performing intelligent question and answer.

[0032] In some embodiments, graph data enhancement processing is performed on the knowledge graph, including: randomly masking nodes or edges in the knowledge graph, or randomly removing nodes or edges in the knowledge graph, or introducing slight changes in word meaning or word form.

[0033] As an example, Figure 3 As shown in , first, randomly mask the nodes or edges in the knowledge graph; specifically, Figure 3 As shown, nodes can be randomly selected and removed; for example, Figure 3 As shown, the nodes between the node “can” and the node “find” (i.e., the “remove” node) are randomly selected; at the same time, the nodes in the knowledge graph can be randomly masked, for example, Figure 3 As shown, the nodes between the node "find" and the node "use" are masked; alternatively, the edges in the knowledge graph can be randomly masked, for example, Figure 3 As shown, the edge between the node "find" and the node "item" is randomly selected and masked. It can be understood that the above-mentioned graph data enhancement processing methods can be combined arbitrarily to improve the robustness of the model, and there is no restriction on the specific combination method.

[0034] In some embodiments, obtaining the original data includes: obtaining historical conversation data, and constructing question-answer pairs based on the historical conversation data; and cleaning and filtering the question-answer pairs to obtain the original data.

[0035] In some embodiments, the question-answer pairs are cleaned and filtered, including: calculating the information density value corresponding to the question-answer pair, and determining whether the information density value is less than an information density threshold; if so, determining that the information density of the question-answer pair is too low, and removing the question-answer pair; if not, calculating the matching value corresponding to the question-answer pair; determining whether the matching value is less than the matching value threshold; if so, determining that the question-answer pair does not match, and removing the question-answer pair.

[0036] In some embodiments, the question-answer pairs are cleaned and filtered, including: inputting the question-answer pairs into a pre-trained sentence classification model to score the question-answer pairs through the sentence classification model; and removing question-answer pairs whose scoring results are lower than a preset scoring threshold.

[0037] In some embodiments, the question-answer pairs are cleaned and filtered, including: text clustering the question-answer pairs based on a text clustering algorithm to obtain multiple clusters; for each cluster, selecting the question-answer pair with the highest score as the final question-answer pair.

[0038] As an example, historical data for training is collected (the historical data may include QA pairs of domain customer service questions and answers, conversation records of voice customer service, policy documents and training documents; when the historical data is materials such as policy documents and training documents, chatgpt can be used to construct question-answer pairs); for voice samples, the voice recognition model can be used to recognize the voice samples first to convert the voice samples into corresponding conversation texts; then, the corpus needs to be cleaned and filtered. Specifically, the information density and matching degree of the question-answer pair can be evaluated (that is, the information density value and matching value corresponding to the question-answer pair are calculated); then, it is determined whether the information density value corresponding to the question-answer pair is less than the information density threshold; if so, it is considered that the information density of the question-answer pair is too low, and the question-answer pair is removed; if not, it is determined whether the matching value is less than the matching value threshold; if so, it is determined that the matching degree of the question-answer pair is insufficient, and the question-answer pair is removed; then, in order to further improve the quality of the final training samples, a sentence classification model can be pre-trained (for example, FastText is selected to train the sentence classification model to determine the quality of the sentence); specifically, during use, question-answer pairs with scores below 0.65 are regarded as low-scoring question-answer pairs and are removed.

[0039] It should be noted that, finally, the similarity value of the question-answer pairs can be calculated to remove the question-answer pairs with too high similarity according to the similarity value; that is, the question-answer pairs with highly similar content can be deduplicated (specifically, with the help of hanlp's text clustering algorithm library, the number of clusters does not need to be specified, and for well-clustered categories, FastText is used to filter out representative question-answer pairs).

[0040] S102, extracting the sentence encoding vector corresponding to the question information.

[0041] S103, inputting the sentence encoding vector into multiple expert modules to obtain an expert encoding vector output by each expert module.

[0042] S104, voting on the expert coding vectors through a round-table voting module to determine a final coding vector according to the voting results.

[0043] S105, generating answer information corresponding to the question information according to the semantic coding and the final coding vector.

[0044] It should be noted that when processing new sentences or words in actual graph neural networks (GNNs), we may face the problem of vocabulary mismatch, that is, the entities or concepts in the sentences are not defined in the graph used during training. To create embeddings (or vector representations) for new words or sentences, we can use the node embedding method of the trained GNN model, such as using the average value of node features as the initial embedding, or using content-based embedding techniques (such as encoding sentences as vectors). The final result of graph embedding learning using GraphSAGE is the embedding vectors of each node, which are low-dimensional, dense and continuous numerical representations of each node in the graph. These embedding vectors capture the topological characteristics of the nodes, the relationships between nodes, and the initial feature information of the nodes, so that they can be effectively used in various downstream tasks.

[0045] Fine-tuning instructions for large pre-trained language models is an important technology in the field of natural language processing. It involves converting user input into a format that the model can understand through a complex processing flow to improve the model's understanding and response quality for natural language. In this process, the user's input is first segmented, that is, continuous text strings are divided into meaningful units, such as words or phrases. Then, these segmented units are labeled with semantic roles, which is a process of understanding the grammatical structure and meaning of a sentence. It can identify the subject, object, predicate and other components in the sentence and associate them with the corresponding semantic roles.

[0046] In addition, the pre-trained graph neural network model is used as a feature extractor here. Graph neural network (GNN) is a neural network that processes graph-structured data and is very suitable for extracting complex structured information from knowledge graphs. A knowledge graph is essentially a huge graph in which nodes represent entities and edges represent relationships between entities. With GNN, the relationship between user input and entities in the knowledge graph can be captured, thereby extracting rich semantic features.

[0047] As an example, during the model training process, these features extracted by GNN are integrated into the pre-trained language model. Specifically, the method is to let the graph features pass through a Dense layer, output the same dimension as the input layer, and continue to pass it to the subsequent network after being fused with the input information. This integration process enables the language model to use the rich conversation information in the knowledge graph to deepen the semantic understanding of the input text. Such high-quality information fusion not only enriches the model's knowledge base, enabling it to respond more accurately to various queries, but also provides the model with important contextual information to assist it in generating more natural, accurate, and realistic language. At the same time, the model introduces a hybrid expert module. The traditional transformers layer is equivalent to an expert. When faced with diverse knowledge, it is inevitable that confusion will arise in the field of diverse knowledge points. Here, the Dense layer in the transformers layer is copied into 8 (such as Figure 4 As shown, Figure 4 This is a structural diagram of the hybrid expert module. ), which is equivalent to having 8 experts, and there is also a round-table voting module in the front. The voting under this module is fair, and the role of voting is to control the availability of experts. In the reasoning process, different inputs are voted by the round-table, and the top-k Dense layers with the highest scores are selected through Softmax. Here, the top-k is generally 2, indicating which expert modules are activated. The knowledge and abilities of different experts in the model are different, and the input will activate the most appropriate expert, which means that when answering questions, more professional people can complete it, rather than an expert who knows a little bit of everything.

[0048] Ultimately, this high-level feature integration provides important clues for the model's predictions, enabling the model to give more reasonable predictions and more accurate answers when processing natural language tasks. By combining graph neural networks with knowledge graphs, the pre-trained language model not only obtains a powerful feature extraction capability, but also demonstrates excellent performance in a variety of application scenarios, such as dialogue systems, question answering, and text understanding tasks.

[0049] In summary, according to the intelligent question-answering method of an embodiment of the present invention, first, the question information is obtained, and the question information is input into a pre-trained graph neural network to output the corresponding semantic code through the pre-trained graph neural network; then, the sentence coding vector corresponding to the question information is extracted; then, the sentence coding vector is input into multiple expert modules to obtain the expert coding vector output by each expert module; then, the expert coding vector is voted on through the round-table voting module to determine the final coding vector according to the voting result; then, the answer information corresponding to the question information is generated according to the semantic coding and the final coding vector. Thereby, external knowledge is introduced in the process of question-answering to improve the accuracy of the answer information; at the same time, the relevance of the knowledge in the final answer information can be improved through the expert module, and the accuracy of the answer information can be further improved.

[0050] In order to implement the above embodiment, the embodiment of the present invention proposes a computer-readable storage medium, on which an intelligent question-answering program is stored. When the intelligent question-answering program is executed by a processor, the intelligent question-answering method as described above is implemented.

[0051] In order to implement the above embodiment, the embodiment of the present invention proposes an intelligent question-answering system, such as Figure 5 As shown, the intelligent question-answering system includes: an acquisition module 10, an extraction module 20, an expert module 30, a round-table voting module 40 and an answering module 50.

[0052] The acquisition module 10 is used to acquire question information and input the question information into a pre-trained graph neural network to output corresponding semantic coding through the pre-trained graph neural network;

[0053] The extraction module 20 is used to extract the sentence encoding vector corresponding to the question information;

[0054] The expert module 30 is used to input the sentence encoding vector into multiple expert modules to obtain the expert encoding vector output by each expert module;

[0055] The round-table voting module 40 is used to vote on the expert coding vectors through the round-table voting module to determine the final coding vector according to the voting results;

[0056] The answer module 50 is used to generate answer information corresponding to the question information according to the semantic coding and the final coding vector.

[0057] It should be noted that the above description of the intelligent question and answer method is also applicable to the intelligent question and answer system and will not be repeated here.

[0058] In summary, according to the intelligent question-answering system of the embodiment of the present invention, an acquisition module is set to acquire question information, and the question information is input into a pre-trained graph neural network, so as to output the corresponding semantic code through the pre-trained graph neural network; an extraction module is used to extract the sentence coding vector corresponding to the question information; an expert module is used to input the sentence coding vector into multiple expert modules to obtain the expert coding vector output by each expert module; a round-table voting module is used to vote on the expert coding vector through the round-table voting module to determine the final coding vector according to the voting result; and an answer module is used to generate the answer information corresponding to the question information according to the semantic code and the final coding vector. In this way, external knowledge is introduced in the question-answering process to improve the accuracy of the answer information; at the same time, the relevance of the knowledge in the final answer information can be improved through the expert module, so as to further improve the accuracy of the answer information.

[0059] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0060] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0061] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0062] In the description of the present invention, it is to be understood that the terms “center”, “longitudinal”, “lateral”, “length”, “width”, “thickness”, “up”, “down”, “front”, “back”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, “clockwise”, “counterclockwise”, “axial”, “radial”, “circumferential”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.

[0063] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0064] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0065] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.

[0066] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. An intelligent question-answering method, It is characterized in that The following steps are involved: Obtaining question information, and inputting the question information into a pre-trained graph neural network, so as to output corresponding semantic coding through the pre-trained graph neural network; Extracting a sentence encoding vector corresponding to the question information; Inputting the sentence encoding vector into a plurality of expert modules to obtain an expert encoding vector output by each expert module; Voting on the expert encoding vectors through a round-table voting module to determine a final encoding vector according to the voting results; Generate answer information corresponding to the question information according to the semantic code and the final code vector.

2. The intelligent question-answering method according to claim 1, It is characterized in that The training of the pre-trained graph neural network includes: Obtaining original data, and constructing a knowledge graph corresponding to the original data based on a dependency syntax tree; Determine a graph neural network architecture and initialize nodes in the knowledge graph using a standard normal distribution; Performing node masking processing and graph data enhancement processing on the knowledge graph respectively to obtain final training samples; The model is trained based on the final training sample to obtain the pre-trained graph neural network.

3. The intelligent question-answering method according to claim 2, It is characterized in that Performing node masking processing on the knowledge graph includes: Randomly select a node in the knowledge graph as a masking node; The features of the masked node are predicted based on the information of the unmasked neighboring nodes, and the masked node is comprehensively represented using the neighboring nodes according to the prediction results.

4. The intelligent question-answering method according to claim 2, It is characterized in that Performing graph data enhancement processing on the knowledge graph includes: Randomly masking nodes or edges in the knowledge graph, or randomly removing nodes or edges in the knowledge graph, or introducing slight changes in word meaning or word form.

5. The intelligent question-answering method according to claim 2, It is characterized in that Get raw data, including: Acquire historical conversation data, and construct question-answer pairs based on the historical conversation data; The question-answer pairs are cleaned and filtered to obtain the original data.

6. The intelligent question-answering method according to claim 5, It is characterized in that The question-answer pairs are cleaned and filtered, including: Calculate the information density value corresponding to the question-answer pair, and determine whether the information density value is less than an information density threshold; If yes, determining that the information density of the question-answer pair is too low, and removing the question-answer pair; If not, then calculating the matching value corresponding to the question-answer pair; Determine whether the matching value is less than a matching value threshold; If so, it is determined that the question-answer pair does not match, and the question-answer pair is removed.

7. The intelligent question-answering method according to claim 5, It is characterized in that The question-answer pairs are cleaned and filtered, including: Inputting the question-answer pair into a pre-trained sentence classification model to score the question-answer pair by the sentence classification model; Remove question-answer pairs whose scoring results are below the preset scoring threshold.

8. The intelligent question-answering method according to claim 7, It is characterized in that The question-answer pairs are cleaned and filtered, including: Performing text clustering on the question-answer pairs based on a text clustering algorithm to obtain a plurality of clusters; For each cluster, the question-answer pair with the highest score is selected as the final question-answer pair.

9. A computer-readable storage medium, It is characterized in that An intelligent question-answering program is stored thereon, and when the intelligent question-answering program is executed by a processor, the intelligent question-answering method as described in any one of claims 1-8 is implemented.

10. An intelligent question-answering system, It is characterized in that include: An acquisition module, the acquisition module is used to acquire question information and input the question information into a pre-trained graph neural network to output a corresponding semantic code through the pre-trained graph neural network; An extraction module, the extraction module is used to extract the sentence encoding vector corresponding to the question information; An expert module, wherein the expert module is used to input the sentence encoding vector into multiple expert modules to obtain an expert encoding vector output by each expert module; A round-table voting module, wherein the round-table voting module is used to vote on the expert coding vectors through the round-table voting module to determine a final coding vector according to the voting results; An answer module is used to generate answer information corresponding to the question information according to the semantic coding and the final coding vector.