Answer generation method and device, readable medium, electronic equipment and product

Through the question and answer group in the target answer library, the need for knowledge base maintenance in the intelligent question and answer scenario is reduced, the problem of high maintenance cost of the knowledge base in the intelligent question and answer scenario is solved, and high-quality answer generation and multi-scenario applicability are achieved.

CN118551014AActive Publication Date: 2024-08-27BEIJING YOUZHUJU NETWORK TECH CO LTD

Patent Information

Application Number
CN202410704065.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-08-27
Estimated Expiration
2044-05-31

AI Technical Summary

Technical Problem

In intelligent question and answer scenarios, the cost of maintaining and updating the knowledge base is high, and answer generation depends on the information richness of the knowledge base, resulting in frequent maintenance and affecting the solution rate of question and answer.

Method used

Provide an answer generation method, through the target answer library, including the first type of question and answer group and the second type of question and answer group, used to indicate the correspondence between questions and answers and the correspondence between intentions and answers, reducing the need for knowledge base maintenance requirements and is suitable for a variety of question and answer scenarios.

Benefits of technology

It reduces the maintenance and update requirements of the knowledge base, ensures the quality of answer generation, improves the question-and-answer resolution rate, and is suitable for richer question-and-answer scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118551014A
    Figure CN118551014A
Patent Text Reader

Abstract

The invention relates to an answer generation method and device, a readable medium, electronic equipment and a product. The method comprises the following steps: in response to a received target question, determining an intention recognition result corresponding to the target question; according to the intention recognition result, a first answer is determined from a first question and answer group or a second question and answer group stored in a target answer library, the first question and answer group is used for indicating the corresponding relation between the question and the answer, and the second question and answer group is used for indicating the corresponding relation between the intention and the answer; and generating a target answer corresponding to the target question at least according to the first answer. Therefore, the maintenance and updating requirements of the knowledge base are greatly reduced, even if the knowledge base is not frequently maintained and updated, the answer generation quality can still be ensured, and the method can be suitable for richer question and answer scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular, to an answer generation method, device, readable medium, electronic device and product. Background Art

[0002] At present, in intelligent question-answering scenarios, knowledge bases are usually used as corpora for questions and answers. In intelligent question-answering scenarios, natural language processing is generally used to parse questions, and then the answer to the question is determined based on the relevant information in various fields and the answers to common questions contained in the knowledge base. It can be seen that in intelligent question-answering scenarios, the problem-solving rate depends to a large extent on the information richness of the knowledge base. Therefore, the maintenance and updating of the knowledge base plays a very important role in intelligent question-answering scenarios. In related technologies, it is generally necessary to implement the maintenance and updating of the knowledge base in a targeted manner according to the needs of the actual scenario, which requires additional effort and will also incur a large maintenance cost. Summary of the invention

[0003] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0004] In a first aspect, the present disclosure provides a method for generating an answer, the method comprising:

[0005] In response to receiving the target question, determining an intent recognition result corresponding to the target question;

[0006] Determine a first answer from a first type of question and answer group or a second type of question and answer group stored in a target answer library according to the intention recognition result, wherein the first type of question and answer group is used to indicate a correspondence between questions and answers, and the second type of question and answer group is used to indicate a correspondence between intentions and answers;

[0007] A target answer corresponding to the target question is generated based on at least the first answer.

[0008] In a second aspect, the present disclosure provides an answer generation device, the device comprising:

[0009] A first determination module, configured to determine, in response to receiving a target question, an intent recognition result corresponding to the target question;

[0010] A second determination module is used to determine a first answer from a first type of question and answer group or a second type of question and answer group stored in a target answer library according to the intention recognition result, wherein the first type of question and answer group is used to indicate a correspondence between questions and answers, and the second type of question and answer group is used to indicate a correspondence between intentions and answers;

[0011] The first generating module is used to generate a target answer corresponding to the target question based on at least the first answer.

[0012] In a third aspect, the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processing device, implements the steps of the method described in the first aspect of the present disclosure.

[0013] In a fourth aspect, the present disclosure provides an electronic device, including:

[0014] a storage device having at least one computer program stored thereon;

[0015] At least one processing device is used to execute the at least one computer program in the storage device to implement the steps of the method described in the first aspect of the present disclosure.

[0016] In a fifth aspect, the present disclosure provides a computer program product, including a computer program, which implements the steps of the method described in the first aspect of the present disclosure when the computer program is executed by a processor.

[0017] Through the above technical solution, a target answer library storing a first type of question and answer group and a second type of question and answer group is provided. The first type of question and answer group is used to indicate the correspondence between questions and answers, and the second type of question and answer group is used to indicate the correspondence between intentions and answers. Based on this, after receiving the target question, the target question is firstly identified for intent to determine the intent identification result, and the first answer is determined from the first type of question and answer group or the second type of question and answer group in the target answer library according to the intent identification result, and the target answer corresponding to the target question is generated at least according to the first answer. By providing a target answer library, the generation of answers is no longer completely dependent on the knowledge base, which greatly reduces the maintenance and update requirements of the knowledge base. Even if the knowledge base is no longer frequently maintained and updated, the quality of answer generation can still be guaranteed based on the target answer library. In addition, the target answer library not only stores the second type of question and answer groups for indicating the correspondence between intent and answer, but also stores the first type of question and answer groups for indicating the correspondence between question and answer, so that the question and answer corpus in the target answer library is richer, and when the received target question has a corresponding intent, the answer can be obtained directly from the second type of question and answer group. When the target question has no corresponding intent, the answer can also be obtained from the first type of question and answer group, so it can be applied to richer question and answer scenarios.

[0018] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale. In the drawings:

[0020] Figure 1 is a flowchart of an answer generation method provided according to an embodiment of the present disclosure;

[0021] Figure 2 is a flowchart of an answer generation method provided according to another embodiment of the present disclosure;

[0022] Figure 3 is a block diagram of an answer generation device provided according to an embodiment of the present disclosure;

[0023] Figure 4 A schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0024] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0025] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0026] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0027] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0028] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0029] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0030] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0031] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0032] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0033] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0034] At the same time, it is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0035] As described in the background technology, in intelligent question-and-answer scenarios (such as intelligent customer service, intelligent search, etc.), the answer generation of the intelligent question-and-answer robot is extremely dependent on the intentions stored in the knowledge base and the answers corresponding to the intentions. Based on this, if the knowledge base cannot be updated and maintained in a timely manner, it is very likely that the question cannot be successfully answered (such as the answer does not exist or the answer is wrong, etc.), affecting the questioner's experience in the intelligent question-and-answer scenario, and maintaining and updating the knowledge base requires a large cost. For example, in the field of e-commerce, intelligent dialogue robots are usually used as intelligent customer service. For merchants (especially small and medium-sized merchants), it is difficult to have enough energy or cost to maintain and update the knowledge base, which makes the problem-solving rate of intelligent customer service low, which easily leads to poor experience for customers during the conversation with intelligent customer service.

[0036] In response to the above-mentioned problems, the present disclosure provides an answer generation method, device, readable medium, electronic device and product, so that the generation of answers is no longer strongly dependent on the knowledge base, reducing the maintenance and update requirements of the knowledge base, ensuring the quality of answer generation and being applicable to a variety of question and answer scenarios.

[0037] Figure 1 FIG. 1 is a flowchart of a method for generating an answer according to an embodiment of the present disclosure. Figure 1 As shown, the method may include steps 11 to 13.

[0038] In step 11, in response to receiving the target question, an intent recognition result corresponding to the target question is determined.

[0039] Among them, the intent recognition result can be achieved by performing intent recognition on the target question.

[0040] If the intent can be identified from the target question through intent recognition, the intent recognition result can be used to indicate the intent identified from the target question as the target intent. If the intent cannot be identified from the target question through intent recognition, the intent recognition result can be used to indicate the target question itself.

[0041] Optionally, a pre-generated intent recognition model can be used to identify the intent of the target question, thereby obtaining the intent recognition result. For example, a data set containing multiple groups of texts and their intent labels (such as intent labels representing no intent, at least one label representing intent, etc.) can be collected, and the text in the data set can be used as the model input, and the text corresponding to the intent label can be used as the target output of the model. The neural network (such as a convolutional neural network, a recurrent neural network, an attention mechanism neural network, or a pre-trained language model is fine-tuned) is trained to generate the above-mentioned intent recognition model. In this way, based on the intent recognition model, it can be identified whether the target question corresponds to an intent and which intent it corresponds to.

[0042] In step 12, according to the intention recognition result, a first answer is determined from the first type of question and answer group or the second type of question and answer group stored in the target answer library.

[0043] Among them, the first type of question and answer group is used to indicate the corresponding relationship between questions and answers, and the second type of question and answer group is used to indicate the corresponding relationship between diagrams and answers.

[0044] In the present disclosure, the target answer library is a corpus of questions and answers that is independent of the knowledge base mentioned above. It stores both the correspondence between intent and answer and the correspondence between questions and answers, and is therefore applicable to a wide range of question and answer scenarios.

[0045] The following first describes in detail the method for generating the target answer library. Optionally, the target answer library can be generated in the following manner:

[0046] Determine a plurality of dialogue samples, each dialogue sample comprising a question text and an answer text corresponding to the question text;

[0047] Performing intent recognition on question texts in the conversation samples to determine a first type of conversation samples from which the intent cannot be recognized from the question texts and a second type of conversation samples from which the intent can be recognized from the question texts;

[0048] Generate a first type of question-answer group according to the question text and the answer text in the first type of dialogue sample;

[0049] A second type of question and answer group is generated according to the intention corresponding to the second type of dialogue sample and the answer text in the second type of dialogue sample.

[0050] Generally, multiple groups of dialogue information may be collected, and at least part of the collected multiple groups of dialogue information may be selected as dialogue samples. A group of dialogue information may include an original question and an original answer.

[0051] In a possible implementation, since the multiple sets of dialogue information collected may contain useless data that is not helpful for generating the target answer library or even has an adverse effect on the quality of the answer, the multiple sets of dialogue information collected may be screened to screen out the multiple dialogue samples. In this implementation, the multiple dialogue samples may be determined in the following manner:

[0052] Get multiple groups of conversation information;

[0053] The conversation information is filtered to obtain a plurality of conversation samples that meet preset conditions.

[0054] The preset conditions may include at least one of the following: no noise data, semantic similarity between the question text and the answer text, and no preset content.

[0055] Optionally, the filtering process may include a process for filtering noise data. Noise data in the dialogue information is data irrelevant to the generation of the target answer library and can be filtered out. What data is noise data can be preset according to actual needs. For example, greetings and greetings data can be set as noise data.

[0056] Based on this, the dialogue information can be subjected to noise recognition to identify the noise data in the dialogue information, and then, by filtering out the dialogue information with noise data, and / or, by filtering out the character strings corresponding to the noise data in the original questions and original answers in the dialogue information, the dialogue sample does not contain the noise data. For filtering out the dialogue information with noise data, it is equivalent to directly filtering out the entire group of dialogue information if the dialogue information contains noise data. For filtering out the character strings corresponding to the noise data in the original questions and original answers in the dialogue information, it is equivalent to using the new text generated after filtering out the noise data from the original questions as the question sample in the dialogue sample, and using the experience text generated after filtering out the noise data from the original answers as the answer sample in the dialogue sample. For example, the noise data can be recognized by keyword matching.

[0057] Optionally, the filtering process may include a process for filtering out semantically dissimilar dialogue information. In a question-and-answer scenario, if the semantics between the question and the answer are too unrelated, the answer may be wrong. Therefore, for each dialogue information, the semantic similarity between the original question and the original answer in the dialogue information may be determined, and only dialogue information with similar semantics between the question and the answer may be retained as dialogue samples.

[0058] For example, semantic similarity between question text and answer text can be determined in the following way:

[0059] Input the question text and the answer text into a pre-generated sentence embedding representation model to obtain a first sentence representation vector corresponding to the question text and a second sentence representation vector corresponding to the answer text;

[0060] Determine a similarity between the first sentence representation vector and the second sentence representation vector;

[0061] If the similarity is greater than the similarity threshold, it is determined that the question text and the answer text are semantically similar. Otherwise, if the similarity is not greater than the similarity threshold, it means that the question text and the answer text are not semantically similar and will be filtered.

[0062] Among them, a data set containing questions, answers and semantic similarity labels (such as a first label representing semantic similarity and a second label representing semantic dissimilarity) can be collected, and the pre-trained model can be fine-tuned using the data set to make the distance between the two sentence representation vectors obtained after the question and answer corresponding to the first label are input into the model small, and the distance between the two sentence representation vectors obtained after the question and answer corresponding to the second label are input into the model large, so as to obtain the above-mentioned sentence embedding representation model. For example, the pre-trained model can adopt the BERT model, and accordingly, the sentence embedding representation model obtained by training is the Sentence-BERT model.

[0063] After the question text and answer text are input into the sentence embedding representation model, the sentence embedding representation model will output the first sentence representation vector corresponding to the question text and the second sentence representation vector corresponding to the answer text. Then, based on the distance between the two, it can be determined whether the two are semantically similar. If the distance between the two is small, it means that the two are close in position in the semantic space and have similar semantics.

[0064] The distance between two sentence representation vectors can be reflected by calculating the similarity between the two sentence representation vectors. Therefore, the similarity between the first sentence representation vector and the second sentence representation vector can be determined, and by comparing it with a preset similarity threshold, it is determined whether the question and the answer are semantically similar. For example, the similarity between the first sentence representation vector and the second sentence representation vector can be achieved by calculating the cosine similarity.

[0065] Based on this, we can filter out the conversation information with semantically dissimilar original questions and original answers, and use the remaining conversation information as conversation samples. We can also use the original questions in the remaining conversation information as question texts and the original answers as answer texts, so that the question samples and answer samples in the conversation samples are semantically similar.

[0066] Optionally, the filtering process may include a processing method for filtering preset content. The preset content may be preset according to actual needs. For example, content that is not allowed to appear in the answer may be set as the preset content.

[0067] Based on this, the content of the dialogue information can be identified to identify the preset content in the dialogue information. Furthermore, by filtering out the dialogue information with the preset content, and / or, by filtering out the character strings corresponding to the preset content in the original question and the original answer in the dialogue information, the dialogue sample does not contain the preset content. For filtering out the dialogue information with the preset content, it is equivalent to directly filtering out the entire group of dialogue information if the dialogue information contains the preset content. For filtering out the character strings corresponding to the preset content in the original question and the original answer in the dialogue information, it is equivalent to using the new text generated after filtering out the preset content from the original question as the question sample in the dialogue sample, and using the new text generated after filtering out the preset content from the original answer as the answer sample in the dialogue sample. For example, the preset content can be identified by keyword matching. For another example, the preset content can be identified by a pre-generated recognition model, which can output the label of each segmentation in the text, and the label of the segmentation can represent whether the segmentation is the preset content.

[0068] Based on the above method, multiple dialogue samples for generating a target answer library can be determined.

[0069] Based on the above dialogue samples, the question texts in the dialogue samples can be identified for intent, and which question texts have no intent can be determined, and the dialogue samples containing the question texts can be regarded as the first type of dialogue samples. It is also determined which question texts have intent, and the dialogue samples containing the question texts can be regarded as the second type of dialogue samples. In this way, the dialogue samples can be divided into two categories according to whether the question texts have intent. For example, the above intent identification can be implemented through an intent identification model, and the relevant implementation methods have been recorded in the previous text and will not be repeated here.

[0070] For the first type of dialogue samples, since the questions in the first type of dialogue samples do not have corresponding intentions, the first type of question and answer group can be generated directly based on the question text and answer text in the first type of dialogue samples.

[0071] For the second category of dialogue samples, since the questions in the second category of dialogue samples have corresponding intentions, in order to be compatible with more questions corresponding to the same intention, the second category of question and answer groups can be generated according to the intentions corresponding to the second category of dialogue samples and the answer texts in the second category of dialogue samples.

[0072] It should be noted that when generating the first type of question and answer group or the second type of question and answer group, the answers can be clustered according to the questions or according to the intentions according to actual needs. For example, multiple answers corresponding to the same question can be clustered into multiple answers to the question, forming a one-to-many relationship between questions and answers. For another example, multiple answers corresponding to the same intention can be clustered into multiple answers to the intention, forming a one-to-many relationship between intention and answers.

[0073] Optionally, for the data in the target answer library (including the first type of question and answer group and the second type of question and answer group), considering that the data volume in the actual application scenario is large and the real-time requirement is not high, it can be written into the Hive (a data warehouse tool) table of the offline task, and then the data in the table can be imported into ES (Elasticsearch, a distributed search engine) offline for subsequent answer generation.

[0074] In another possible implementation, all conversation information may be used as conversation samples, and the first category of conversation samples and the second category of conversation samples may be subjected to the filtering processing described above (e.g., filtering noise data, filtering semantically dissimilar conversation samples, filtering preset content).

[0075] In another possible implementation, the order of filtering can be reasonably set according to actual needs. For example, by filtering the conversation information for noise data and filtering for semantic dissimilarity, a conversation sample is obtained, and after obtaining a first type of conversation sample and a second type of conversation sample based on the conversation sample, the first type of conversation sample and the second type of conversation sample are filtered for preset contents respectively.

[0076] The above filtering method has been described in detail in the previous article and will not be repeated here.

[0077] Through the above method, a target answer library with rich first-category question and answer groups and second-category question and answer groups can be constructed, which is conducive to compatibility with a variety of different question and answer scenarios.

[0078] Returning to step 12, based on the intention recognition result, a first answer is determined from the first category of question and answer groups or the second category of question and answer groups stored in the target answer library.

[0079] In a possible implementation, step 12 may include the following steps:

[0080] If the intention recognition result is a target question, according to the target question, determine at least one first candidate answer matching the target question from the first type of question and answer group, and determine one of the first candidate answers as the first answer;

[0081] If the intent recognition result is the target intent, at least one second alternative answer matching the target intent is determined from the second type of question and answer group according to the target intent, and one of the second alternative answers is determined as the first answer.

[0082] If the result of intent recognition is the target question, it means that there is no intent corresponding to the target question, and the answer cannot be determined by the intent. In this case, at least one first candidate answer matching the target question can be determined from the first type of question and answer group according to the target question. That is, based on the first question and answer group, determine the question in the first question and answer group that can match the target question, and use the answer to the matching question as the first candidate answer. In addition, one of the first candidate answers is determined as the first answer.

[0083] Optionally, the matching degree between each question in the first question-answer group and the target question can be calculated, and if the matching degree is higher than a specified threshold, the question is considered to match the target question. For example, the one with the highest matching degree among the first candidate answers can be determined as the first answer.

[0084] Optionally, as mentioned above, the data in the target answer library can be stored in ES. Since ES has query and scoring functions, the target question can be used as the query condition of ES to obtain the answer returned by ES and its score. For example, the one with the highest score among the first candidate answers can be determined as the first answer.

[0085] If the intent recognition result is the target intent, it means that there is an intent corresponding to the target question, and the answer can be determined directly through the intent. In this case, at least one second candidate answer matching the target intent can be determined from the second type of question and answer group based on the target intent. That is, based on the second question and answer group, the intent in the second question and answer group that can match the target intent is determined, and the answer to the matching intent is used as the second candidate answer. In addition, one of the second candidate answers is determined as the first answer.

[0086] Optionally, the degree of match between each intention in the second question-answer group and the target intention can be calculated, and if the degree of match is higher than a specified threshold, the intention is considered to match the target intention. For example, the one with the highest degree of match among the second candidate answers can be determined as the first answer.

[0087] Optionally, as mentioned above, the data in the target answer library can be stored in ES. Since ES has query and scoring functions, the target intent can be used as the query condition of ES to obtain the answer returned by ES and its score. For example, the one with the highest score among the second candidate answers can be determined as the first answer.

[0088] In step 13, a target answer corresponding to the target question is generated based on at least the first answer.

[0089] In a possible implementation, after the first answer is determined, the first answer can be determined as the target answer corresponding to the target question. In this implementation, the target answer library can independently generate the answer to the target question without the help of the knowledge base.

[0090] In another possible implementation, the method provided by the present disclosure may further include the following steps:

[0091] If the intent recognition result is the target intent, a second answer is determined from a preset knowledge base.

[0092] The preset knowledge base is used to refer to the corresponding relationship between the schematic diagram and the answer. Optionally, the preset knowledge base can be the knowledge base that needs to be maintained and updated as mentioned above.

[0093] For example, the text similarity between each intent in the preset knowledge base and the target intent can be determined according to the target intent, and the answer corresponding to the intent with the highest text similarity is used as the second answer. In addition, the method for determining the second answer can also refer to the method for determining the first answer described above, which will not be repeated here.

[0094] In this embodiment, step 13 may include the following steps:

[0095] The first answer or the second answer is determined as the target answer.

[0096] In this implementation, it is equivalent to combining the target answer library and the preset knowledge base to realize the generation of answers to the target questions to obtain better target answers.

[0097] Optionally, if the answer cannot be determined through the preset knowledge base, that is, the second answer is empty, the first answer can be directly determined as the target answer.

[0098] Optionally, if the answer cannot be determined through the target answer library, that is, the first answer is empty, the second answer can be directly determined as the target answer.

[0099] Optionally, the priority of the answers may be preset, and when both the first answer and the second answer are not empty, the one with a higher priority is determined as the target answer.

[0100] For example, the priority of the answers in the target answer library can be set higher than the priority of the answers in the preset knowledge base, so that when both the first answer and the second answer are not empty, the first answer is used as the target answer.

[0101] For another example, the priority of the answer can be set in combination with the update status of the answer in the preset knowledge base. If the user updates the answer when maintaining the preset knowledge base, the current answer can better reflect the user's expectations for the answer. Based on this, the highest priority can be set for the answer updated by the user in the preset knowledge base, the answer in the target answer base is second, and the lowest priority is set for the answer that the user has not updated in the preset knowledge base, so that the answer better meets the actual needs of the questioner.

[0102] Accordingly, determining the first answer or the second answer as the target answer may include the following steps:

[0103] Determining whether there is an answer modification record corresponding to the second answer;

[0104] If there is an answer modification record, the second answer is determined as the target answer;

[0105] If there is no answer modification record, the first answer is determined as the target answer.

[0106] Among them, the answer modification record can reflect the user's update of the answer in the preset knowledge base. If there is an answer modification record corresponding to the second answer, it means that the user has updated the second answer when maintaining the preset knowledge base. Therefore, the current second answer can better reflect the user's expectations for the answer. Based on this, if the first answer and the second answer are both not empty, if there is an answer modification record corresponding to the second answer, the second answer is determined as the target answer. If there is no answer modification record, the first answer is determined as the target answer.

[0107] For example, Figure 2 An exemplary flow chart for generating a target answer by combining a preset knowledge base and a target answer base. The main steps include:

[0108] Step 101, in response to receiving a target question, determining an intent recognition result corresponding to the target question;

[0109] If the intention recognition result is the target intention, execute steps 103, 104 and 107; if the intention recognition result is the target question, execute steps 105, 106 and 109;

[0110] Step 103, according to the target intent, determine at least one second candidate answer matching the target intent from the second type of question and answer group, and determine one of the second candidate answers as the first answer;

[0111] Step 104, determining a second answer from a preset knowledge base;

[0112] Step 105, according to the target question, determine at least one first candidate answer matching the target question from the first type of question and answer group, and determine one of the first candidate answers as the first answer;

[0113] Step 106, determining from the preset knowledge that the second answer is empty;

[0114] Step 107, determine whether there is an answer modification record corresponding to the second answer; if so, execute step 108; if not, execute step 109;

[0115] Step 108, determining the second answer as the target answer;

[0116] Step 109: determine the first answer as the target answer.

[0117] based on Figure 2 The provided flowchart can obtain better target answers and optimize the answers.

[0118] Through the above technical solution, a target answer library storing a first type of question and answer group and a second type of question and answer group is provided. The first type of question and answer group is used to indicate the correspondence between questions and answers, and the second type of question and answer group is used to indicate the correspondence between intentions and answers. Based on this, after receiving the target question, the target question is firstly identified for intent to determine the intent identification result, and the first answer is determined from the first type of question and answer group or the second type of question and answer group in the target answer library according to the intent identification result, and the target answer corresponding to the target question is generated at least according to the first answer. By providing a target answer library, the generation of answers is no longer completely dependent on the knowledge base, which greatly reduces the maintenance and update requirements of the knowledge base. Even if the knowledge base is no longer frequently maintained and updated, the quality of answer generation can still be guaranteed based on the target answer library. In addition, the target answer library not only stores the second type of question and answer groups for indicating the correspondence between intent and answer, but also stores the first type of question and answer groups for indicating the correspondence between question and answer, so that the question and answer corpus in the target answer library is richer, and when the received target question has a corresponding intent, the answer can be obtained directly from the second type of question and answer group. When the target question has no corresponding intent, the answer can also be obtained from the first type of question and answer group, so it can be applied to richer question and answer scenarios.

[0119] Figure 3 is a block diagram of an answer generation device provided according to an embodiment of the present disclosure. Figure 3 As shown, the device 30 comprises:

[0120] A first determination module 31 is used to determine, in response to receiving a target question, an intention recognition result corresponding to the target question;

[0121] A second determination module 32, configured to determine a first answer from a first type of question and answer group or a second type of question and answer group stored in a target answer library according to the intention recognition result, wherein the first type of question and answer group is used to indicate a correspondence between questions and answers, and the second type of question and answer group is used to indicate a correspondence between intentions and answers;

[0122] The first generating module 33 is used to generate a target answer corresponding to the target question at least based on the first answer.

[0123] Optionally, the target answer library is generated by the following modules:

[0124] A third determination module is used to determine a plurality of dialogue samples, wherein one of the dialogue samples includes a question text and an answer text corresponding to the question text;

[0125] A fourth determination module is used to perform intent recognition on the question text in the dialogue sample to determine a first type of dialogue sample from which the intent cannot be recognized from the question text and a second type of dialogue sample from which the intent can be recognized from the question text;

[0126] A second generating module, configured to generate the first type of question and answer group according to the question text and the answer text in the first type of dialogue sample;

[0127] The third generation module is used to generate the second type of question and answer group according to the intention corresponding to the second type of dialogue sample and the answer text in the second type of dialogue sample.

[0128] Optionally, the third determining module includes:

[0129] An acquisition submodule, used to acquire multiple groups of dialogue information, wherein a group of dialogue information includes an original question and an original answer;

[0130] A filtering submodule, used to filter the conversation information to obtain a plurality of conversation samples that meet preset conditions;

[0131] The preset conditions include at least one of the following: no noise data, semantic similarity between the question text and the answer text, and no preset content.

[0132] Optionally, the semantic similarity between the question text and the answer text is determined by the following modules:

[0133] A processing module, configured to input the question text and the answer text into a pre-generated sentence embedding representation model to obtain a first sentence representation vector corresponding to the question text and a second sentence representation vector corresponding to the answer text;

[0134] a fifth determination module, configured to determine a similarity between the first sentence representation vector and the second sentence representation vector;

[0135] The sixth determination module is used to determine that the question text and the answer text are semantically similar if the similarity is greater than a similarity threshold.

[0136] Optionally, the second determining module 32 includes:

[0137] A first determination submodule is configured to, if the intention recognition result is the target question, determine at least one first candidate answer matching the target question from the first type of question and answer group according to the target question, and determine one of the first candidate answers as the first answer;

[0138] The second determination submodule is used to determine at least one second alternative answer matching the target intent from the second category of question and answer groups if the intent recognition result is a target intent, and determine one of the second alternative answers as the first answer.

[0139] Optionally, the device 30 further includes:

[0140] a seventh determination module, configured to determine a second answer from a preset knowledge base if the intention recognition result is a target intention, wherein the preset knowledge base is used to refer to a correspondence between schematic diagrams and answers;

[0141] The first generating module 33 comprises:

[0142] The third determination submodule is configured to determine the first answer or the second answer as the target answer.

[0143] Optionally, the third determining submodule includes:

[0144] A fourth determination submodule, used to determine whether there is an answer modification record corresponding to the second answer;

[0145] a fifth determination submodule, configured to determine the second answer as a target answer if the answer modification record exists;

[0146] The sixth determination submodule is used to determine the first answer as the target answer if the answer modification record does not exist.

[0147] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0148] Based on the same inventive concept, the present disclosure also provides a computer-readable medium on which a computer program is stored. When the program is executed by a processing device, the steps of the answer generation method described in any embodiment of the present disclosure are implemented.

[0149] Based on the same inventive concept, the present disclosure also provides an electronic device, including:

[0150] a storage device having at least one computer program stored thereon;

[0151] At least one processing device is used to execute the at least one computer program in the storage device to implement the steps of the answer generation method described in any embodiment of the present disclosure.

[0152] Based on the same inventive concept, the present disclosure also provides a computer program product, including a computer program, which implements the steps of the answer generation method described in any embodiment of the present disclosure when executed by a processor.

[0153] Reference below Figure 4 , which shows a schematic diagram of the structure of an electronic device 600 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0154] like Figure 4 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0155] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0156] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0157] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0158] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0159] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device.

[0160] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: determines the intention recognition result corresponding to the target question in response to receiving the target question; determines a first answer from the first type of question and answer group or the second type of question and answer group stored in the target answer library based on the intention recognition result, the first type of question and answer group is used to indicate the correspondence between the question and the answer, and the second type of question and answer group is used to indicate the correspondence between the intention and the answer; generates a target answer corresponding to the target question based on at least the first answer.

[0161] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0162] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0163] The modules described in the embodiments of the present disclosure may be implemented by software or hardware. The name of a module does not, in some cases, limit the module itself. For example, the first determination module may also be described as a "module for determining the intent recognition result corresponding to the target question".

[0164] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0165] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0166] According to one or more embodiments of the present disclosure, a method for generating an answer is provided, the method comprising:

[0167] In response to receiving the target question, determining an intent recognition result corresponding to the target question;

[0168] Determine a first answer from a first type of question and answer group or a second type of question and answer group stored in a target answer library according to the intention recognition result, wherein the first type of question and answer group is used to indicate a correspondence between questions and answers, and the second type of question and answer group is used to indicate a correspondence between intentions and answers;

[0169] A target answer corresponding to the target question is generated based on at least the first answer.

[0170] According to one or more embodiments of the present disclosure, a method for generating an answer is provided, wherein the target answer library is generated in the following manner:

[0171] Determine a plurality of dialogue samples, wherein one of the dialogue samples includes a question text and an answer text corresponding to the question text;

[0172] Performing intent recognition on the question text in the conversation sample to determine a first type of conversation sample from which the intent cannot be recognized from the question text and a second type of conversation sample from which the intent can be recognized from the question text;

[0173] Generating the first type of question-answer group according to the question text and the answer text in the first type of dialogue sample;

[0174] The second type of question and answer group is generated according to the intention corresponding to the second type of dialogue sample and the answer text in the second type of dialogue sample.

[0175] According to one or more embodiments of the present disclosure, a method for generating an answer is provided, wherein determining a plurality of dialogue samples comprises:

[0176] Acquire multiple groups of dialogue information, where one group of dialogue information includes an original question and an original answer;

[0177] Filtering the conversation information to obtain a plurality of conversation samples that meet preset conditions;

[0178] The preset conditions include at least one of the following: no noise data, semantic similarity between the question text and the answer text, and no preset content.

[0179] According to one or more embodiments of the present disclosure, a method for generating an answer is provided, which determines the semantic similarity between a question text and an answer text in the following manner:

[0180] Inputting the question text and the answer text into a pre-generated sentence embedding representation model to obtain a first sentence representation vector corresponding to the question text and a second sentence representation vector corresponding to the answer text;

[0181] Determining a similarity between the first sentence representation vector and the second sentence representation vector;

[0182] If the similarity is greater than a similarity threshold, it is determined that the question text and the answer text are semantically similar.

[0183] According to one or more embodiments of the present disclosure, a method for generating an answer is provided, wherein, according to the intention recognition result, determining a first answer from a first type of question and answer group or a second type of question and answer group stored in a target answer library comprises:

[0184] If the intention recognition result is the target question, determining at least one first candidate answer matching the target question from the first type of question and answer group according to the target question, and determining one of the first candidate answers as the first answer;

[0185] If the intention recognition result is the target intention, based on the target intention, at least one second alternative answer matching the target intention is determined from the second type of question and answer group, and one of the second alternative answers is determined as the first answer.

[0186] According to one or more embodiments of the present disclosure, a method for generating an answer is provided, the method further comprising:

[0187] If the intention recognition result is the target intention, determining a second answer from a preset knowledge base, wherein the preset knowledge base is used to refer to the correspondence between the schematic diagram and the answer;

[0188] Generating a target answer corresponding to the target question at least according to the first answer includes:

[0189] The first answer or the second answer is determined as the target answer.

[0190] According to one or more embodiments of the present disclosure, a method for generating an answer is provided, wherein determining the first answer or the second answer as the target answer includes:

[0191] Determine whether there is an answer modification record corresponding to the second answer;

[0192] If the answer modification record exists, determining the second answer as the target answer;

[0193] If the answer modification record does not exist, the first answer is determined as the target answer.

[0194] According to one or more embodiments of the present disclosure, there is provided an answer generating device, the device comprising:

[0195] A first determination module, configured to determine, in response to receiving a target question, an intent recognition result corresponding to the target question;

[0196] A second determination module is used to determine a first answer from a first type of question and answer group or a second type of question and answer group stored in a target answer library according to the intention recognition result, wherein the first type of question and answer group is used to indicate a correspondence between questions and answers, and the second type of question and answer group is used to indicate a correspondence between intentions and answers;

[0197] The first generating module is used to generate a target answer corresponding to the target question based on at least the first answer.

[0198] According to one or more embodiments of the present disclosure, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processing device, the steps of the answer generation method described in any embodiment of the present disclosure are implemented.

[0199] According to one or more embodiments of the present disclosure, there is provided an electronic device, including:

[0200] a storage device having at least one computer program stored thereon;

[0201] At least one processing device is used to execute the at least one computer program in the storage device to implement the steps of the answer generation method described in any embodiment of the present disclosure.

[0202] According to one or more embodiments of the present disclosure, a computer program product is provided, including a computer program, which implements the steps of the answer generation method described in any embodiment of the present disclosure when the computer program is executed by a processor.

[0203] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0204] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0205] Although the subject matter has been described in language specific to structural features and / or method logic actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims. Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

Claims

1. A method for generating an answer, characterized in that: The method comprises: In response to receiving the target question, determining an intent recognition result corresponding to the target question; Determine a first answer from a first type of question and answer group or a second type of question and answer group stored in a target answer library according to the intention recognition result, wherein the first type of question and answer group is used to indicate a correspondence between questions and answers, and the second type of question and answer group is used to indicate a correspondence between intentions and answers; A target answer corresponding to the target question is generated based on at least the first answer.

2. The method according to claim 1, characterized in that The target answer library is generated in the following way: Determine a plurality of dialogue samples, wherein one of the dialogue samples includes a question text and an answer text corresponding to the question text; Performing intent recognition on the question text in the conversation sample to determine a first type of conversation sample from which the intent cannot be recognized from the question text and a second type of conversation sample from which the intent can be recognized from the question text; Generating the first type of question-answer group according to the question text and the answer text in the first type of dialogue sample; The second type of question and answer group is generated according to the intention corresponding to the second type of dialogue sample and the answer text in the second type of dialogue sample.

3. The method according to claim 2, characterized in that The determining of a plurality of dialogue samples comprises: Acquire multiple groups of dialogue information, where one group of dialogue information includes an original question and an original answer; Filtering the conversation information to obtain a plurality of conversation samples that meet preset conditions; The preset conditions include at least one of the following: no noise data, semantic similarity between the question text and the answer text, and no preset content.

4. The method according to claim 3, characterized in that The semantic similarity between the question text and the answer text is determined by: Inputting the question text and the answer text into a pre-generated sentence embedding representation model to obtain a first sentence representation vector corresponding to the question text and a second sentence representation vector corresponding to the answer text; Determining a similarity between the first sentence representation vector and the second sentence representation vector; If the similarity is greater than a similarity threshold, it is determined that the question text and the answer text are semantically similar.

5. The method according to claim 1, characterized in that Determining the first answer from the first type of question and answer group or the second type of question and answer group stored in the target answer library according to the intention recognition result includes: If the intention recognition result is the target question, determining at least one first candidate answer matching the target question from the first type of question and answer group according to the target question, and determining one of the first candidate answers as the first answer; If the intention recognition result is the target intention, based on the target intention, at least one second alternative answer matching the target intention is determined from the second type of question and answer group, and one of the second alternative answers is determined as the first answer.

6. The method according to claim 1, characterized in that The method further comprises: If the intention recognition result is the target intention, determining a second answer from a preset knowledge base, wherein the preset knowledge base is used to refer to the correspondence between the schematic diagram and the answer; Generating a target answer corresponding to the target question at least according to the first answer includes: The first answer or the second answer is determined as the target answer.

7. The method according to claim 6, characterized in that The determining the first answer or the second answer as the target answer comprises: Determine whether there is an answer modification record corresponding to the second answer; If the answer modification record exists, determining the second answer as the target answer; If the answer modification record does not exist, the first answer is determined as the target answer.

8. An answer generation device, characterized in that: The device comprises: A first determination module, configured to determine, in response to receiving a target question, an intent recognition result corresponding to the target question; A second determination module is used to determine a first answer from a first type of question and answer group or a second type of question and answer group stored in a target answer library according to the intention recognition result, wherein the first type of question and answer group is used to indicate a correspondence between questions and answers, and the second type of question and answer group is used to indicate a correspondence between intentions and answers; The first generating module is used to generate a target answer corresponding to the target question based on at least the first answer.

9. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processing device, the steps of the method described in any one of claims 1 to 7 are implemented.

10. An electronic device, characterized in that: include: a storage device having at least one computer program stored thereon; At least one processing device, configured to execute the at least one computer program in the storage device to implement the steps of the method according to any one of claims 1 to 7.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Intelligently questioning and answering method, device, computer, equipment and storage medium

    CA3153056A1

  • Event question-answering method, device and equipment based on artificial intelligence and storage medium

    CN111368043A

  • Intention recognition model training method and device and intention recognition method and device

    CN112347760A

Cited By

  • Answer generation method and apparatus, readable medium, electronic device, and product

    WO2025246555A1