Process knowledge extraction method and system for interactive dialogue

Through the method of combining knowledge graph and intent, the dialogue process in intelligent voice interaction is extracted, which solves the problem of process homogeneity and fixation, realizes the richness and relevance of the dialogue process, and adapts to knowledge-intensive tasks.

CN114328967BActive Publication Date: 2024-10-18AISPEECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111665289.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-31
Publication Date
2024-10-18
Estimated Expiration
2041-12-31

AI Technical Summary

Technical Problem

Existing technology cannot effectively extract the knowledge logic inside sentences in intelligent voice interaction, resulting in the homogenization and fixation of the extracted dialogue process. It cannot adapt to knowledge-intensive and complex tasks, and cannot extract the process of specific scenes or topics.

Method used

Use the knowledge graph to determine the knowledge entities in the interactive dialogue, abstract them into knowledge concepts, and combine them with intention extraction. Through sequence training, you can obtain the knowledge concept-intention combination that conforms to the order of the dialogue process. Use the feature combination of knowledge and intention to extract the process and avoid logic. mistake.

Benefits of technology

The richness and difference of the dialogue process are realized, and the extracted knowledge is more consistent with the dialogue content, avoiding logical errors of knowledge and intention, and obtaining a highly relevant abstract process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114328967B_ABST
    Figure CN114328967B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides a process knowledge extraction method for interactive dialogue. The method includes: using a knowledge graph to determine the knowledge entity of each dialogue sentence in the interactive dialogue, abstracting the knowledge entity into a corresponding knowledge concept; extracting the intent of each dialogue sentence, combining it with the knowledge concept of each dialogue sentence, and obtaining multiple knowledge concept-intent combinations at the sentence level in the interactive dialogue; according to the dialogue order of the interactive dialogue, based on the first knowledge concept-intent combination, sequence training is performed on multiple knowledge concept-intent combinations to obtain a knowledge concept-intent combination set that conforms to the interactive dialogue process order. An embodiment of the present invention also provides a process knowledge extraction system for interactive dialogue. The extraction of the embodiment of the present invention adopts a feature combination combining knowledge and intent, and the extracted knowledge is more in line with the content of the dialogue process. An abstract process that is highly relevant to the dialogue knowledge and has differences is extracted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent speech, and in particular to a process knowledge extraction method and system for interactive dialogue. Background Art

[0002] In intelligent voice interaction, question-and-answer consultation dialogues usually use a pre-set process to gradually guide the user to interact, thereby providing services to the user. Whether the dialogue process is humane and reasonable, and whether the user's input voice can be accurately mapped to the dialogue process, will affect the user experience. In order to establish a humane and reasonable dialogue process, it is necessary to extract the real dialogue process from the artificial dialogue as a reference.

[0003] Usually, when extracting the real dialogue process from artificial dialogue, the question information in the dialogue is characterized by using feature extraction algorithms to obtain the feature vector corresponding to the sentence. Then similar questions are clustered based on the clustering method to obtain multiple clusters. The order information of the sentences in each cluster in the dialogue is identified. The sentences in the cluster are trained based on various association rule algorithms. The dialogue strategy structure is determined based on the target input and the order of the clusters, and then the dialogue strategy structure is extracted from the dialogue.

[0004] In the process of implementing the present invention, the inventors found that there are at least the following problems in the related art:

[0005] The above methods only focus on the intention of each sentence, and some turn sentences into feature vectors. These methods do not explicitly extract the knowledge inside the sentence, which will lead to highly homogeneous extraction processes. Failure to extract the knowledge of the sentence will result in the inability to apply the logic inside the knowledge to the process. Ultimately, the extraction process is not rich enough.

[0006] Most of the above methods are based on clustering or templates. Although the process is extracted in the end, the process within each template or cluster is fixed. For a new dialogue or sentence, it can only be classified in the existing clustering results or templates, and new processes cannot be extracted.

[0007] Clustering or template-based methods will result in sentences being unable to be logically judged based on the internal knowledge. In knowledge-intensive tasks, sentences with completely different knowledge logic but the same intention and sentence structure will be grouped into one category.

[0008] For knowledge-intensive and process-complex tasks, it is impossible to extract conversation processes that are highly relevant to the content, because it is based on classification and it is impossible to extract processes for specific scenarios or specific topics. Summary of the invention

[0009] In order to at least solve the problems in the prior art of homogeneous extracted content, fixed extraction process, mismatch between knowledge logic and intent, and inability to extract complex dialogues. In a first aspect, an embodiment of the present invention provides a procedural knowledge extraction method for interactive dialogues, comprising:

[0010] Using the knowledge graph to determine the knowledge entity of each dialogue sentence in the interactive dialogue, abstracting the knowledge entity into a corresponding knowledge concept;

[0011] Extracting the intent of each dialogue sentence and combining it with the knowledge concept of each dialogue sentence to obtain a plurality of knowledge concept-intent combinations at the sentence level in the interactive dialogue;

[0012] According to the dialogue order of the interactive dialogue, the multiple knowledge concept-intent combinations are sequence trained based on the first knowledge concept-intent combination among the multiple knowledge concept-intent combinations to obtain a knowledge concept-intent combination set that conforms to the interactive dialogue process order.

[0013] In a second aspect, an embodiment of the present invention provides a process knowledge extraction system for interactive dialogue, including:

[0014] A knowledge concept abstraction program module is used to determine the knowledge entity of each dialogue sentence in the interactive dialogue by using the knowledge graph, and abstract the knowledge entity into a corresponding knowledge concept;

[0015] A combination program module, used for extracting the intent of each dialogue sentence, combining it with the knowledge concept of each dialogue sentence, and obtaining a plurality of knowledge concept-intent combinations at the sentence level in the interactive dialogue;

[0016] The procedural knowledge determination program module is used to perform sequence training on the multiple knowledge concept-intent combinations according to the dialogue order of the interactive dialogue and based on the first knowledge concept-intent combination among the multiple knowledge concept-intent combinations to obtain a set of knowledge concept-intent combinations that conforms to the process order of the interactive dialogue.

[0017] According to a third aspect, an electronic device is provided, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the steps of the procedural knowledge extraction method for interactive dialogue according to any embodiment of the present invention.

[0018] In a fourth aspect, an embodiment of the present invention provides a storage medium having a computer program stored thereon, characterized in that when the program is executed by a processor, the steps of the procedural knowledge extraction method for interactive dialogue of any embodiment of the present invention are implemented.

[0019] The beneficial effect of the embodiment of the present invention is that the purpose of extracting process knowledge of interactive dialogue is no longer just the sentence-level process, but to extract the entire interactive dialogue process itself for a certain knowledge, and the extraction adopts a feature combination that combines knowledge and intention, and the extracted knowledge is more in line with the content of the dialogue process. At the same time, the knowledge is standardized and abstracted, and the entity relationship and entity attribute value within the knowledge are used to constrain the training process sorting results to avoid logical errors in knowledge and intention, and finally extract an abstract process that is highly relevant to the dialogue knowledge input by the user and has differences. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0021] Figure 1 is a flow chart of a process knowledge extraction method for interactive dialogue provided by an embodiment of the present invention;

[0022] Figure 2 It is an overall knowledge extraction flow chart of a procedural knowledge extraction method for interactive dialogue provided by an embodiment of the present invention;

[0023] Figure 3 It is a structural diagram of a process knowledge extraction system for interactive dialogue provided by an embodiment of the present invention;

[0024] Figure 4 A schematic diagram of the structure of an embodiment of an electronic device for extracting procedural knowledge in interactive dialogue provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0026] like Figure 1 FIG. 1 is a flowchart of a method for extracting procedural knowledge for interactive dialogue provided by an embodiment of the present invention, comprising the following steps:

[0027] S11: using the knowledge graph to determine the knowledge entity of each dialogue sentence in the interactive dialogue, and abstracting the knowledge entity into a corresponding knowledge concept;

[0028] S12: extracting the intent of each dialogue sentence, and combining it with the knowledge concept of each dialogue sentence to obtain a plurality of knowledge concept-intent combinations at the sentence level in the interactive dialogue;

[0029] S13: According to the dialogue order of the interactive dialogue, the multiple knowledge concept-intent combinations are sequence-trained based on the first knowledge concept-intent combination among the multiple knowledge concept-intent combinations to obtain a set of knowledge concept-intent combinations that conforms to the interactive dialogue process order.

[0030] In this embodiment, the original corpus for process knowledge extraction is the consulting dialogue data of a certain industry. This type of dialogue is usually a question-and-answer mode, which conforms to the logic of user-intelligent voice dialogue. Let D be the dialogue data set; D1, D2, D3..D k For the conversation data. D1, D2, D3..D k They represent different dialogue data respectively. Let S1, S2, S3...Sn be n dialogue sentences of a certain dialogue data.

[0031] For step S11, knowledge extraction is performed on each dialogue sentence S1...Sn in the interactive dialogue, and the knowledge entities that may be contained in the sentence can be extracted through the knowledge graph. For sentence S1, 0 to m knowledge entities 0, E1, E2...E m .

[0032] As an implementation manner, before using the knowledge graph to determine the knowledge entity of each dialogue sentence in the interactive dialogue, the method further includes:

[0033] Build knowledge graphs in different industry fields to extract procedural knowledge of interactive dialogues in different industry fields.

[0034] For example, a knowledge graph can be constructed in the medical field, which includes information such as symptoms and medicines. A knowledge graph can also be constructed in the automotive field, which includes various technical information about vehicles. In this way, using different knowledge graphs, knowledge-intensive fields such as customer service can also be used to extract complex procedural knowledge from interactive conversations in different fields.

[0035] Many of the extracted knowledge entities represent the same concept. If E1 and E2 are two very similar entities, their processes should also be similar. Therefore, E1 and E2 are abstracted into the same concept C1. The abstract knowledge that sentence S1 may contain includes C1...C jFor example, in the sentence "I have a slight fever and cough. Doctor, please prescribe some medicine for me", "fever" and "cough" are two entities.

[0036] As an implementation mode, the abstracting of the knowledge entity into a corresponding knowledge concept includes:

[0037] Based on entity clustering or entity type judgment, the knowledge entity is abstracted into a corresponding knowledge concept, wherein the degree of abstraction of the knowledge concept is inversely proportional to the process complexity of the interactive dialogue.

[0038] In this embodiment, the abstraction method can be entity clustering or the type of entity used. The degree of abstraction is different for tasks in different scenarios. The more knowledge-intensive and complex the task is, the lower the degree of abstraction. For simple tasks, the categories of two similar entities E1 and E2 may be regarded as a common knowledge concept C1 (for example, "fever" and "fever"). For complex tasks, E1 may not have an entity that can share the same process with it, so E1 is equal to concept C1.

[0039] In step S12, for each dialogue sentence S1...S n Extract intent. As an implementation method, extracting intent from each dialogue sentence includes: using the predicate of each dialogue sentence as a feature for intent recognition. Using a classification algorithm to classify the features, the intent of each dialogue sentence is obtained. For example, the intent of "I have a slight fever and cough. Doctor, please prescribe me some medicine" is "consult symptoms".

[0040] In this embodiment, the predicate of the sentence can be used as a feature for intent recognition. These features are classified and labeled using a classification algorithm to obtain a standardized intent. Let the intent of sentence S1 be I1, and assume that one sentence corresponds to one intent. In special cases, the I of a sentence can be 0, in which case only knowledge is used for process extraction.

[0041] Combine the knowledge concepts and sentence intentions extracted from each dialogue sentence with the same dialogue sentence to obtain a set of knowledge and sentence intentions. For sentence S1, there is intention I1 and knowledge 0, C1...C j . Combining intention and knowledge concepts yields: (0,I1)(C1,I1)...(C j , I1). Then for any sentence S n , we can extract the set <(C n1 ,I n )...(C nj ,I n ))>. nIt can be 0. For example, the knowledge concept-intention combination of "a little low fever, cough, doctor, please prescribe me some medicine" includes "fever, consultation symptoms" and "cough, consultation symptoms".

[0042] By extracting sentence-level (C, I) knowledge concept-intention combinations from all dialogue sentences, this method aims to extract and summarize a standard process for an input combination (C1, I1) based on these corpus features.

[0043] For step S13, according to the dialogue sequence D1, D2...D k Perform sequence training. For example, the extracted features of dialogue D1 are as follows:

[0044] <(C1,I1)...(C1j,I1)>,<(C2,I2)...(C2j,I1)>...<(Cn,In)...(Cnj,In)>.

[0045] Specifically, the knowledge concepts and intentions in the plurality of knowledge concept-intention combinations are disrupted and reorganized;

[0046] Using the knowledge graph, the knowledge concept-intention combination of the next round of dialogue of the first knowledge concept-intention combination is estimated from the multiple knowledge concept-intention combinations that have been shuffled and reorganized, so as to remove logical errors in the abstraction of knowledge entities;

[0047] By iteratively extracting each estimated knowledge concept-intention combination, a knowledge concept-intention combination set that conforms to the interactive dialogue process sequence is obtained.

[0048] In this embodiment, these features are shuffled and reorganized and randomly sorted. The shuffled data are extracted in pairs for training. Assume that (C x ,I x ) and (C y ,I y ) this set of features, put this set of features into the sorting model, and use the difference of their subscripts (xy) as the order result. For example, xy = 1 means (C x ,I x ) is (C y ,I y ) is the next round. The final trained model result is: If (C x ,I x ) and (C y , I y ) is greater than 0 and the larger it is, the farther the two combinations are from each other, and combination x is after combination y. x ,I x ) and (C y , I y) is less than 0 and the smaller it is, the farther apart the two combinations are, and combination x is before combination y.

[0049] Assume that there is an input (C1, I1), and find the standardized process of (C1, I1). For example, the input knowledge concept-intention combination is "fever, consultation symptoms", then based on this, all the dialogue processes in the corpus that contain (C1, I1) as the first round feature are extracted as candidates. Any feature (C1, I1) in these dialogue processes i, I i ) and (C1, I1) are processed in the above manner. The most likely next step (C2, I2) of (C1, I1) can be obtained.

[0050] If the corpus is rich and the features in the sentences are diverse, assuming that for the input combination (C i , I i ) predicts the next K combinations, recorded as: (C i1 , I i1 )...(C ik ,I ik ). In the case of complex sentences, K will be large, which may easily lead to incorrect sorting that does not conform to knowledge logic or intention logic. And it is difficult to select which group to use as the next process. Here, we can use the entity relationship in the knowledge graph to constrain and give priority to the group with knowledge C i The knowledge with direct entity relationship is taken as the most likely next step. By iterating the above steps continuously, all the processes of the initial input (C1, I1) can be summarized according to the characteristics in the corpus, and the knowledge concept-intention combination set that conforms to the interactive dialogue process sequence is obtained, which is recorded as (C1, I1), (C2, I2)...(C n ,I n ). The overall flow chart of the above steps is as follows Figure 2 shown.

[0051] The above partial formula is further explained using actual scenarios.

[0052] For example, the processing results of each dialogue sentence in the interactive dialogue in the medical field, where the extracted knowledge and intentions are in brackets:

[0053] Patient: I have a low-grade fever and cough. Doctor, please prescribe some medicine for me (male, 27 years old); (fever, consultation symptoms), (cough, consultation symptoms)

[0054] Doctor: Hello, how long have you had a fever? (Fever, ask how long you have been ill)

[0055] Patient: Two days;

[0056] Doctor: Have you caught a cold? (Cold, asking about the disease)

[0057] Patient: I had it yesterday;

[0058] Doctor: I am tired and have a sore throat; (tired, ask about symptoms), (have a sore throat, ask about symptoms)

[0059] Doctor: Is there phlegm when you cough? (cough, ask about symptoms), (phlegm, ask about symptoms)

[0060] Patient: He is mainly a delivery man. He was sweating yesterday and it was cold in the afternoon and a strong wind blew.

[0061] Doctor: Lianhua Qingwen Granules, and Suhuang Anti-cough Capsules; (Lianhua Qingwen Granules, medicine), (Suhuang Anti-cough Capsules, medicine)

[0062] Doctor: Drink more water and get enough rest.

[0063] Similar to the knowledge and intent extracted above, a certain process is extracted from the entire conversation set: for example, the first knowledge concept-intent combination is (fever, ask about symptoms), that is, the consultation process of the patient asking about "fever" is extracted. The process knowledge is: (fever, ask about symptoms) → (fever, ask about the duration of illness) → (body temperature, ask about indicators) → (cough, ask about symptoms) → (ask about diseases, colds).

[0064] If in the above conversation, the patient has abdominal pain (the specific conversation will not be repeated, the general content is a conversation related to abdominal pain), the patient and the doctor exchanged words such as "abdominal pain, diarrhea, bloody stool, acute enteritis, gastritis". Then we can get knowledge concept-intention combinations such as (abdominal pain, consult symptoms), (abdominal pain, ask about the duration of illness), and (acute enteritis, ask about the disease). If the first knowledge concept-intention combination is (abdominal pain, consult symptoms), that is, the consultation process of the patient asking about "abdominal pain" is extracted, the procedural knowledge is: (abdominal pain, consult symptoms) → (abdominal pain, ask about the duration of illness) → (abdominal pain, degree of illness) → (abdominal pain, site of illness) → (diarrhea, ask about symptoms) → (blood in the stool, ask about symptoms) → (acute enteritis, ask about diseases) → (gastritis, ask about diseases).

[0065] Or the processing results of each dialogue sentence in an interactive dialogue in the automotive field, where the extracted knowledge and intent are in brackets:

[0066] Consumer: I would like to ask if your store can test drive Toyota Camry. (Camry, inquiry test drive)

[0067] Sales: Hello, the 2021 models currently on sale have 2.0T and 2.5T. Which one would you like to try? (Displacement, ask about the model)

[0068] Consumer: 2.5T, maybe?

[0069] Sales: 2.5T cars come in gasoline and hybrid versions, that is, dual-engine models. Do you want to try both? (Power type, ask about the model)

[0070] Consumer: Yes, let me take a look at them all.

[0071] Sales: You can test drive it now. We can arrange a test drive for you if you come over.

[0072] Sales: Do you have a driver's license? (asking about driver's license)

[0073] Consumer: I have a driver’s license but it’s not with me. Can I show you the electronic one?

[0074] Sales: Sure, please send it to me for review. After I confirm it, I can sign the agreement on the spot and start the test drive.

[0075] Sales: When will you come for a test drive? (ask for the time)

[0076] Consumer: Uh, let’s talk about it later. I’ll contact you then, okay.

[0077] Sales: OK.

[0078] Similar to the knowledge and intent extracted above, a process is extracted from the entire conversation set: for example, the first knowledge concept-intent combination is (Camry, ask for a test drive), which means the process of consumers asking (Camry, ask for a test drive). The process knowledge is: (Camry, ask for a test drive) → (displacement, ask for the model) → (power type, ask for the model) → (Camry price, provide a quote) → (ask for a driver's license) → (ask for the time).

[0079] In the above example, for the patient's input, this method extracts and abstracts knowledge: first extract "low fever" and "cough" and then abstract the two words into "fever" and "cough". After combining the abstracted knowledge with the intention, we get two combinations: (fever, consultation symptoms) and (cough, consultation symptoms).

[0080] For car consumers' inquiries, the input is extracted (Camry, inquiry test drive).

[0081] Different industries have different levels of abstraction of knowledge. In the medical industry, knowledge is more intensive, processes are more complex, and the level of abstraction is not high. Diseases and symptoms can be standardized. In the automotive industry, "2.0T" and "2.5T" are abstracted into a general type such as "car displacement".

[0082] The obtained knowledge concepts and intentions are combined, and the sequence between the combinations is trained. The possible ordering of knowledge and intentions can be trained. For example, (fever, ask about symptoms) and (fever, ask about the duration of illness) always have a sequential relationship.

[0083] When the corpus is sufficient and the sentences are complex, a dialogue will extract many possible order combinations. For example, (fever, ask about symptoms) may have many order combinations in the corpus, such as (fever, ask about the duration of illness), (cold, ask about diseases), (abdominal pain, ask about symptoms), (malaria, ask about diseases), etc. If all combinations are extracted as possible processes, the extracted process will be lengthy and there will be knowledge logic errors. Here, the knowledge graph can be used to recommend knowledge combinations that have a relationship with the entity "fever" first.

[0084] It can be seen from this implementation that the purpose of extracting process knowledge of interactive dialogue is no longer just the sentence-level process, but to extract the entire interactive dialogue process itself for a certain knowledge, and the extraction adopts a feature combination that combines knowledge and intent, and the extracted knowledge is more in line with the content of the dialogue process. At the same time, the knowledge is standardized and abstracted, and the entity relationships and entity attribute values ​​within the knowledge are used to constrain the training process sorting results to avoid logical errors in knowledge and intent, and finally extract an abstract process that is highly relevant to the dialogue knowledge input by the user and has differences.

[0085] like Figure 3 The figure shows a schematic diagram of the structure of a process knowledge extraction system for interactive dialogue provided by an embodiment of the present invention. The system can execute the process knowledge extraction method for interactive dialogue described in any of the above embodiments and is configured in a terminal.

[0086] The present embodiment provides a process knowledge extraction system 10 for interactive dialogue, including: a knowledge concept abstraction program module 11, a combination program module 12 and a process knowledge determination program module 13.

[0087] Among them, the knowledge concept abstraction program module 11 is used to use the knowledge graph to determine the knowledge entity of each dialogue sentence in the interactive dialogue, and abstract the knowledge entity into the corresponding knowledge concept; the combination program module 12 is used to extract the intention of each dialogue sentence, and combine it with the knowledge concept of each dialogue sentence to obtain multiple knowledge concept-intention combinations at the sentence level in the interactive dialogue; the procedural knowledge determination program module 13 is used to perform sequence training on the multiple knowledge concept-intention combinations based on the first knowledge concept-intention combination in the multiple knowledge concept-intention combinations according to the dialogue order of the interactive dialogue, and obtain a knowledge concept-intention combination set that conforms to the process order of the interactive dialogue.

[0088] Furthermore, the process knowledge determination program module is used to:

[0089] Disorganize and reorganize the knowledge concepts and intentions in the plurality of knowledge concept-intention combinations;

[0090] Using the knowledge graph, the knowledge concept-intention combination of the next round of dialogue of the first knowledge concept-intention combination is estimated from the multiple knowledge concept-intention combinations that have been shuffled and reorganized, so as to remove logical errors in the abstraction of knowledge entities;

[0091] By iteratively extracting each estimated knowledge concept-intention combination, a knowledge concept-intention combination set that conforms to the interactive dialogue process sequence is obtained.

[0092] The embodiment of the present invention further provides a non-volatile computer storage medium, the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the process knowledge extraction method for interactive dialogue in any of the above method embodiments;

[0093] As an implementation mode, the non-volatile computer storage medium of the present invention stores computer executable instructions, and the computer executable instructions are configured as follows:

[0094] Using the knowledge graph to determine the knowledge entity of each dialogue sentence in the interactive dialogue, abstracting the knowledge entity into a corresponding knowledge concept;

[0095] Extracting the intent of each dialogue sentence and combining it with the knowledge concept of each dialogue sentence to obtain a plurality of knowledge concept-intent combinations at the sentence level in the interactive dialogue;

[0096] According to the dialogue order of the interactive dialogue, the multiple knowledge concept-intent combinations are sequence trained based on the first knowledge concept-intent combination among the multiple knowledge concept-intent combinations to obtain a knowledge concept-intent combination set that conforms to the interactive dialogue process order.

[0097] As a non-volatile computer-readable storage medium, it can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the method in the embodiment of the present invention. One or more program instructions are stored in the non-volatile computer-readable storage medium, and when executed by the processor, the process knowledge extraction method for interactive dialogue in any of the above method embodiments is executed.

[0098] Figure 4 FIG. 1 is a schematic diagram of the hardware structure of an electronic device for a process knowledge extraction method for interactive dialogue provided by another embodiment of the present application, such as Figure 4 As shown, the device includes:

[0099] One or more processors 410 and memory 420, Figure 4A processor 410 is taken as an example. The apparatus for extracting process knowledge for interactive dialogue may further include: an input device 430 and an output device 440 .

[0100] The processor 410, the memory 420, the input device 430 and the output device 440 may be connected via a bus or other means. Figure 4 The example of connecting through bus is taken in the following.

[0101] The memory 420, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the process knowledge extraction method for interactive dialogue in the embodiment of the present application. The processor 410 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 420, that is, implements the process knowledge extraction method for interactive dialogue in the above method embodiment.

[0102] The memory 420 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data, etc. In addition, the memory 420 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 420 may optionally include a memory remotely arranged relative to the processor 410, and these remote memories may be connected to the mobile device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0103] The input device 430 can receive input digital or character information. The output device 440 can include a display device such as a display screen.

[0104] The one or more modules are stored in the memory 420, and when executed by the one or more processors 410, the process knowledge extraction method for interactive dialogue in any of the above method embodiments is executed.

[0105] The above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method provided in the embodiment of the present application.

[0106] The non-volatile computer-readable storage medium may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the device, etc. In addition, the non-volatile computer-readable storage medium may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the non-volatile computer-readable storage medium may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0107] An embodiment of the present invention also provides an electronic device, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the steps of the procedural knowledge extraction method for interactive dialogue of any embodiment of the present invention.

[0108] The electronic device of the embodiment of the present application exists in various forms, including but not limited to:

[0109] (1) Mobile communication equipment: This type of equipment is characterized by having mobile communication functions and its main purpose is to provide voice and data communications. This type of terminal includes: smart phones, multimedia phones, functional phones, and low-end phones.

[0110] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features. These terminals include: PDAs, MIDs, and UMPC devices, such as tablet computers.

[0111] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players, handheld game consoles, e-books, smart toys, and portable car navigation devices.

[0112] (4) Other electronic devices with data processing functions.

[0113] In this article, the terms "include" and "comprise" include not only those elements, but also other elements not explicitly listed, or elements inherent to such processes, methods, articles or equipment. In the absence of more restrictions, the elements defined by the sentence "include..." do not exclude the existence of other identical elements in the process, method, article or equipment that includes the elements.

[0114] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0115] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0116] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A procedural knowledge extraction method for interactive dialogue, include: Using the knowledge graph to determine the knowledge entity of each dialogue sentence in the interactive dialogue, abstracting the knowledge entity into a corresponding knowledge concept; Extracting the intent of each dialogue sentence and combining it with the knowledge concept of each dialogue sentence to obtain a plurality of knowledge concept-intent combinations at the sentence level in the interactive dialogue; According to the dialogue order of the interactive dialogue, sequence training is performed on the multiple knowledge concept-intent combinations based on the first knowledge concept-intent combination among the multiple knowledge concept-intent combinations, wherein the sequence training includes: shuffling and reorganizing the knowledge concepts and intentions in the multiple knowledge concept-intent combinations, using the knowledge graph to estimate the knowledge concept-intent combination of the next round of dialogue of the first knowledge concept-intent combination from the multiple knowledge concept-intent combinations after shuffling and reorganization, so as to remove logical errors in the abstraction of knowledge entities, and obtaining a set of knowledge concept-intent combinations that conforms to the order of the interactive dialogue process by iteratively extracting each estimated knowledge concept-intent combination.

2. The method according to claim 1, in, The abstracting of the knowledge entity into a corresponding knowledge concept comprises: Based on entity clustering or entity type judgment, the knowledge entity is abstracted into a corresponding knowledge concept, wherein the degree of abstraction of the knowledge concept is inversely proportional to the process complexity of the interactive dialogue.

3. The method according to claim 1, in, The extracting the intent from each of the dialogue sentences comprises: The predicate of each dialogue sentence is used as a feature for intent recognition, and the feature is classified using a classification algorithm to obtain the intent of each dialogue sentence.

4. The method according to claim 1, in, Before determining the knowledge entity of each dialogue sentence in the interactive dialogue by using the knowledge graph, the method further includes: Build knowledge graphs in different industry fields to extract procedural knowledge of interactive dialogues in different industry fields.

5. A procedural knowledge extraction system for interactive dialogue, include: A knowledge concept abstraction program module is used to determine the knowledge entity of each dialogue sentence in the interactive dialogue by using the knowledge graph, and abstract the knowledge entity into a corresponding knowledge concept; A combination program module, used for extracting the intent of each dialogue sentence, combining it with the knowledge concept of each dialogue sentence, and obtaining a plurality of knowledge concept-intent combinations at the sentence level in the interactive dialogue; A procedural knowledge determination program module is used to perform sequence training on the multiple knowledge concept-intent combinations based on the first knowledge concept-intent combination among the multiple knowledge concept-intent combinations in accordance with the dialogue order of the interactive dialogue, wherein the sequence training includes: shuffling and reorganizing the knowledge concepts and intentions in the multiple knowledge concept-intent combinations, using the knowledge graph to estimate the knowledge concept-intent combination of the next round of dialogue of the first knowledge concept-intent combination from the multiple knowledge concept-intent combinations after shuffling and reorganization, so as to remove logical errors in the abstraction of knowledge entities, and obtaining a set of knowledge concept-intent combinations that conforms to the process order of the interactive dialogue by iteratively extracting each estimated knowledge concept-intent combination.

6. The system according to claim 5, in, The knowledge concept abstraction program module is used to: Based on entity clustering or entity type judgment, the knowledge entity is abstracted into a corresponding knowledge concept, wherein the degree of abstraction of the knowledge concept is inversely proportional to the process complexity of the interactive dialogue.

7. The system according to claim 5, in, The combined program module is used to: The predicate of each dialogue sentence is used as a feature for intent recognition, and the feature is classified using a classification algorithm to obtain the intent of each dialogue sentence.

8. The system according to claim 5, in, The system also includes a knowledge graph construction program module, which is used to: Build knowledge graphs in different industry fields to extract procedural knowledge of interactive dialogues in different industry fields.

9. An electronic device, wherein include: At least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the method described in any one of claims 1 to 4.

10. A storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the steps of the method described in any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Dialogue flow extraction method, device and storage medium based on intention analysis and dialog clustering

    CN109062951A

  • Conversational Agents Over Domain Structured Knowledge

    US20210209167A1