Information processing method and device

By using knowledge graph data in the dialogue system to determine the path between the intention and the slot, the problem of missing or missing answers caused by incorrect conversation slot configuration is solved, excessive questioning is reduced, and the user experience and dialogue efficiency are improved.

CN113157939BActive Publication Date: 2024-08-27LENOVO (BEIJING) LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202110324895.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-26
Publication Date
2024-08-27
Estimated Expiration
2041-03-26

AI Technical Summary

Technical Problem

In dialogue systems, misconfiguration or omission of conversation slots may lead to questions with no matching answers or missing answers, and generic user questions can lead to excessive questioning, affecting the user experience.

Method used

By obtaining the user's intention and using the knowledge graph data to determine the path between the intention and the slot, it is judged whether the slot configuration meets the set conditions. If not, a prompt message is output to help the administrator correct the slot configuration.

Benefits of technology

It achieves refined management of intentions and slots, reduces configuration errors, missing configuration information or redundant slots, and improves the efficiency of human-machine dialogue and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113157939B
    Figure CN113157939B
Patent Text Reader

Abstract

The present application discloses an information processing method and device. When configuring an intent, the method can determine whether the slot configuration performed by the administrator meets the set conditions based on the knowledge graph corresponding to the intent, and provide prompt information to help the administrator correct the slot configuration if it does not meet the conditions. Through the above method, the refined management of intents and slots can be achieved, and the configuration errors, missing configuration information, or configuration of redundant slots can be reduced, thereby reducing various problems caused by unreasonable slot configuration during human-computer dialogue.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer information processing, and in particular to an information processing method and device. Background Art

[0002] Currently, in dialogue systems, especially dialogue systems for business processing, the corresponding answer set is usually found according to the conversation intent determined by the user's question, and then the accurate answer to a certain question is filtered out by the conversation slot.

[0003] In the above dialogue system, the configuration of the session slot value is particularly important. If the session slot configuration is omitted or wrong, it may lead to the problem of not finding a matching answer or missing an answer.

[0004] In addition, if the user question is common to a certain session slot value, continuing to extract each session slot value for inquiry may result in excessive inquiry and cause a poor user experience. Summary of the invention

[0005] The applicant creatively provides an information processing method and device.

[0006] According to the first aspect of an embodiment of the present application, an information processing method is provided, the method comprising: obtaining a first intent and at least one slot configured according to the first intent; determining a path between the first intent and the at least one slot based on knowledge graph data corresponding to the first intent; determining whether the configuration of the at least one slot meets set conditions based on the knowledge graph data and the path, and if not, outputting a prompt message.

[0007] According to an embodiment of the present application, based on the knowledge graph data corresponding to the first intent, a path between the first intent and at least one slot is determined, including: performing entity recognition on the first intent to obtain at least one first entity; based on the knowledge graph data corresponding to the first intent, performing entity linking on at least one first entity to obtain at least one second entity; based on the knowledge graph data corresponding to the first intent, performing entity linking on at least one slot to obtain at least one third entity; based on the knowledge graph data corresponding to the first intent, determining a path between at least one second entity and at least one third entity.

[0008] According to an embodiment of the present application, performing entity recognition on the first intent to obtain at least one first entity includes: performing entity recognition on the conversation intent based on a named entity recognition model to obtain at least one first entity.

[0009] According to an embodiment of the present application, determining whether the configuration of at least one slot meets the set conditions based on the knowledge graph data and the path includes: determining the category to which the at least one slot belongs based on the knowledge graph data; obtaining all entities under the category to obtain a fourth entity; and determining whether there are paths between all fourth entities and the first intention, and if so, the configuration of at least one slot does not meet the set conditions.

[0010] According to one embodiment of the present application, based on the knowledge graph data and the path, determining whether the configuration of at least one slot meets the set conditions includes: determining whether the path meets the association pattern between the first intention and the at least one slot; if not, the configuration of the at least one slot does not meet the set conditions.

[0011] According to an embodiment of the present application, determining whether the configuration of at least one slot meets the set conditions is performed based on the knowledge graph data and the path, including: determining whether there is a fifth entity that is compatible with at least one slot based on the knowledge graph data and the path, and if so, outputting the fifth entity.

[0012] According to an embodiment of the present application, determining whether the configuration of at least one slot meets the set conditions is performed based on the knowledge graph data and the path, including: determining whether there is a reachable path between the first intention and at least one slot based on the knowledge graph data and the path.

[0013] According to one embodiment of the present application, before determining the path between the first intent and at least one slot based on the knowledge graph data corresponding to the first intent, the method also includes: establishing the knowledge graph data corresponding to the first intent.

[0014] According to one embodiment of the present application, knowledge graph data corresponding to the first intent is established, including: establishing a knowledge graph database for the business field to which the first intent belongs; and obtaining knowledge graph data corresponding to the first intent based on the knowledge graph database.

[0015] According to the second aspect of the embodiment of the present application, an information processing device is provided, which includes: a slot configuration information acquisition module, used to obtain a first intent and at least one slot configured according to the first intent; a knowledge graph path determination module, used to determine the path between the first intent and at least one slot based on the knowledge graph data corresponding to the first intent; a slot configuration prompt module, used to determine whether the configuration of at least one slot meets the set conditions based on the knowledge graph data and the path, and if not, output prompt information.

[0016] The embodiment of the present application provides an information processing method and device. When configuring an intent, the method can determine whether the slot configuration performed by the administrator meets the set conditions based on the knowledge graph corresponding to the intent, and give prompt information to help the administrator correct the slot configuration if it does not meet the conditions. Through the above method, the refined management of intent and slots can be achieved, and the configuration errors, missing configuration information, or configuration of redundant slots can be reduced, thereby reducing various problems caused by unreasonable slot configuration during human-computer dialogue.

[0017] It should be understood that the implementation of the present application does not require the realization of all the beneficial effects described above, but a specific technical solution can achieve a specific technical effect, and other embodiments of the present application can also achieve beneficial effects not mentioned above. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become readily understood. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, wherein:

[0019] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.

[0020] Figure 1 This is a schematic diagram of the implementation process of an embodiment of the information processing method of this application;

[0021] Figure 2 A schematic diagram of a conversation flow of an intelligent customer service system to which another embodiment of the information processing method of the present application is applied;

[0022] Figure 3 This is a schematic diagram of the implementation flow of another embodiment of the information processing method of the present application;

[0023] Figure 4 This is a specific example of another embodiment of the information processing method of the present application;

[0024] Figure 5 The composition structure of an information processing device of an embodiment of the present application shows a conversation intention. DETAILED DESCRIPTION

[0025] In order to make the purpose, features, and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0026] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

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

[0028] Figure 1 The implementation process of an embodiment of the information processing method of the present application is shown. Figure 1 The method includes: operation 110, obtaining a first intent and at least one slot configured according to the first intent; operation 120, determining a path between the first intent and the at least one slot according to the knowledge graph data corresponding to the first intent; operation 130, determining whether the configuration of the at least one slot meets the set conditions according to the knowledge graph data and the path, and if not, outputting a prompt message.

[0029] Usually in task-based dialogue systems such as intelligent customer service, the input and output of each task are enumerable. The input is each slot of each task, and the output is various answers or processing branches determined according to the slot value after the slot value is given. When some slot values ​​are unclear, the system will ask the user to obtain these slot values. The dialogue process is essentially a process of filling slots, that is, understanding the user's intention based on the user input, filling the slot value contained in the user input into the slot corresponding to the intention, and entering the next stage of the dialogue according to the slot value. Among them, the user intention and the corresponding slot are pre-defined based on domain knowledge and expert experience.

[0030] For example, when a user inputs: "How do I use NFC?", what the user is expressing is to use NFC, which is an intent. However, some models may not have the NFC function, and different models may have different instructions for using NFC. Therefore, "Model" can be configured as a slot for the intent "Use NFC".

[0031] In operation 110, the first intent is the intent that needs to configure the slot. One intent may correspond to one slot or multiple slots. For example, the intent "air ticket" may correspond to multiple slots such as "date", "departure place", and "destination". Configuring the slot mainly includes setting the slot and configuring the possible values ​​corresponding to the slot.

[0032] In operation 120, the knowledge graph data corresponding to the first intent mainly refers to the knowledge graph data constructed based on the domain knowledge and expert opinions of the business field where the first intent is located. Usually, the first intent, the slot set for the first intent, and the corresponding slot value will correspond to the entity nodes in the knowledge graph data respectively. To determine the path between the first intent and at least one slot, the first intent and the slot are mapped to the entity nodes in the knowledge graph data, and the path between the corresponding nodes is calculated through the path of the knowledge graph, so as to obtain the path between the first intent and the slot.

[0033] In this way, the intent, slot and slot value can be mapped to the knowledge graph data corresponding to the first intent, and the slot configuration can be established within the scope of domain knowledge. In this way, the comprehensive domain knowledge and profound expert experience can be used to make up for the lack of personal knowledge and experience of the slot configuration administrator, and the value of the slot configuration can be limited to a reasonable range.

[0034] In operation 130, a relationship between the first intention and at least one slot in the knowledge graph data can be obtained based on the path between the first intention and at least one slot, and based on this relationship, it can be preliminarily determined whether the configuration of the slot is reasonable.

[0035] For example, if neither the slot nor the slot value is a node in the data graph, it means that the setting of the slot exceeds the scope of the business field and may be problematic; if there is no reachable path between the first intent and the slot, it means that there is no association between the first intent and the slot, and the slot configuration may be unreasonable; if the relationship between the first intent and the slot is one-to-one or equivalent, then the slot setting is meaningless; if the slot set for the first intent has no decisive effect on subsequent processing, then the slot setting is meaningless. In addition, when it is found that there are other nodes that also meet the path pattern based on the knowledge graph and the first intent and the slot, the corresponding slot or slot value can also be recommended to the slot configuration administrator.

[0036] Among them, the set conditions can be to limit the slot configuration within a reasonable range. The implementer can flexibly determine the conditions to be set according to the specific implementation conditions and implementation requirements, and adjust them according to the implementation effect; it can also be a condition for recommending slots or slot values, etc.

[0037] The prompt information is the information output according to the judgment conclusion after the judgment is made. For example, when the slot configuration does not meet the set conditions, it means that the slot configuration is unreasonable, and the corresponding error can be prompted; and when the recommended slots or slot values ​​are found, these slots or slot values ​​can be prompted.

[0038] It can be seen that the information processing method of the present application first obtains a first intent and at least one slot configured according to the first intent; then, based on the knowledge graph data corresponding to the first intent, the first intent and the slot are mapped to entity nodes in the knowledge graph to determine the path between the first intent and the slot; then, based on the knowledge graph data and the path, it is judged whether the configuration of the slot is reasonable, or more slots or slot values ​​are recommended, and prompt information is given to help the administrator correct or supplement the slot configuration, thereby realizing refined management of intents and slots, reducing configuration errors, missing configuration information, or configuring redundant slots, etc., and thus reducing various problems caused by unreasonable slot configuration during human-computer dialogue.

[0039] It should be noted that Figure 1 The embodiment shown is only the most basic embodiment of the information processing method of the present application, and implementers can further refine and expand it on this basis.

[0040] According to an embodiment of the present application, based on the knowledge graph data corresponding to the first intent, a path between the first intent and at least one slot is determined, including: performing entity recognition on the first intent to obtain at least one first entity; based on the knowledge graph data corresponding to the first intent, performing entity linking on at least one first entity to obtain at least one second entity; based on the knowledge graph data corresponding to the first intent, performing entity linking on at least one slot to obtain at least one third entity; based on the knowledge graph data corresponding to the first intent, determining a path between at least one second entity and at least one third entity.

[0041] Since intent is not always a single noun, sometimes it may be a phrase consisting of multiple nouns, or a subject-predicate phrase or a predicate-object phrase consisting of an action plus a noun, etc. Therefore, when mapping the first intent to an entity in the knowledge graph, entity recognition must first be performed to obtain at least one entity, namely the first entity.

[0042] Since the recognized entity may not be completely consistent with the entity name in the knowledge graph due to reasons such as capitalization or name differences, but is actually the same content, an association or correspondence can be established between the first entity and the entity in the knowledge graph through entity linking. In this way, the search scope can be expanded as much as possible to avoid omissions, and the path between the first intent and at least one slot determined by this implementation method will be more complete.

[0043] According to an embodiment of the present application, performing entity recognition on the first intent to obtain at least one first entity includes: performing entity recognition on the conversation intent based on a named entity recognition model to obtain at least one first entity.

[0044] The named entity recognition (NER) model uses language grammar-based technology and statistical models, which can be trained through supervised or semi-supervised training methods, and has a high accuracy in entity recognition. In addition, when using named entity recognition, it can also be combined with the knowledge graph data corresponding to the first intent, making subsequent entity linking easier and faster.

[0045] According to an embodiment of the present application, determining whether the configuration of at least one slot meets the set conditions based on the knowledge graph data and the path includes: determining the category to which the at least one slot belongs based on the knowledge graph data; obtaining all entities under the category to obtain a fourth entity; and determining whether there are paths between all fourth entities and the first intention, and if so, the configuration of at least one slot does not meet the set conditions.

[0046] If all entities of the same category as the slot have similar paths with the first intent, it means that the slot or the corresponding slot value has no effect on subsequent processing, and the slot does not need to be set. In this way, on the one hand, computing resources can be saved, and on the other hand, user input and the number of conversations with the user can be reduced during the conversation, making the conversation more efficient, providing the user with the information they really need more quickly, and providing a better user experience.

[0047] According to one embodiment of the present application, based on the knowledge graph data and the path, determining whether the configuration of at least one slot meets the set conditions includes: determining whether the path meets the association pattern between the first intention and the at least one slot; if not, the configuration of the at least one slot does not meet the set conditions.

[0048] The path between an intent and a slot usually also represents a relationship. If the relationship between an intent and a slot represented by the path is "equal" or "alias", then the setting of the slot may not make sense. These can be filtered by defining the association pattern that the path should conform to. For example, the path cannot be "null", the path cannot be "*-equal-*", "*-alias-*", etc.

[0049] According to an embodiment of the present application, based on the knowledge graph data and the path, determining whether the configuration of at least one slot meets the set conditions includes: based on the knowledge graph data and the path, determining whether there is a fifth entity adapted to at least one slot, and if so, outputting the fifth entity.

[0050] Based on the knowledge graph data and path, other entities that have similar relationships with the first intent can also be found through the path, that is, the fifth entity. These entities are likely to be other slots or slot values ​​that are also applicable. In this way, the slot configuration can be more detailed and complete, thereby increasing the probability of extracting valid slot values ​​from user input, thereby reducing the dialogue of asking the user again. In addition, when the slot configuration is more complete, the path and calculation amount to derive the final answer can also be reduced, making the dialogue more efficient.

[0051] According to an embodiment of the present application, determining whether the configuration of at least one slot meets the set conditions is performed based on the knowledge graph data and the path, including: determining whether there is a reachable path between the first intention and at least one slot based on the knowledge graph data and the path.

[0052] If there is no reachable path between the intent and the slot or no reachable path at all, it means that there is no association between the intent and the slot, which is likely to be a configuration error. A prompt message can be output for the slot configuration administrator to check to avoid problems such as being unable to advance the conversation or finding the corresponding answer during the conversation due to configuration errors.

[0053] According to one embodiment of the present application, before determining the path between the first intent and at least one slot based on the knowledge graph data corresponding to the first intent, the method also includes: establishing the knowledge graph data corresponding to the first intent.

[0054] As mentioned above, the knowledge graph data corresponding to the first intent mainly refers to the knowledge graph data constructed based on the domain knowledge and expert opinions of the business field where the first intent is located. Therefore, it can be constructed by collecting domain knowledge and expert opinions in the business field. For example, entity information and the relationship between entities can be extracted from professional dictionaries, industry standards or business process regulations to construct knowledge graph data.

[0055] According to one embodiment of the present application, knowledge graph data corresponding to the first intent is established, including: establishing a knowledge graph database for the business field to which the first intent belongs; and obtaining knowledge graph data corresponding to the first intent based on the knowledge graph database.

[0056] Generally speaking, the business field to which the first intention belongs can be large or small. When the business field to which the first intention belongs is large and the knowledge graph data established based on domain knowledge and expert opinions is relatively large, the computational complexity of executing the information processing method of this application will also increase exponentially. Therefore, only the knowledge graph data related to the first intention can be extracted, and corresponding calculations can be performed based on the knowledge graph data related to the first intention. In this way, computing resources can be greatly saved and computing speed can be improved.

[0057] Figures 2 to 4Another embodiment of the information processing method of the present application is shown. This embodiment is applied to an intelligent customer service conversation system, and the above multiple implementation methods are comprehensively applied to finally form an embodiment with better implementation effect.

[0058] Figures 2 to 4 The illustrated embodiment is applied to an intelligent customer service system of a certain mobile phone product, and is specifically applied to a slot configuration process of the intelligent customer service system.

[0059] The conversation processing flow of the intelligent customer service system is as follows Figure 2 As shown:

[0060] First, receiving user input 201;

[0061] Then, an intent 202 is identified from the user input 201;

[0062] Afterwards, the corresponding answer set is searched according to intent 202, and then the specific answer for a certain value (for example, a certain model), such as answer 1 or answer 2, is filtered out from the answer set by the slot value (slot value 2031 or slot value 2032).

[0063] Before using the application information processing method, the slot configuration process of the intelligent customer service system mainly includes:

[0064] First, obtain the intent 202;

[0065] Then, slot 203 is set for intent 202;

[0066] Afterwards, a slot value is configured for slot 203, such as slot value 2031, slot value 2032, and so on.

[0067] Then, the system calculates and corresponds the configured slot value to answer 1 or answer 2.

[0068] Since the configuration of slots, i.e. setting slots for intents and configuring slot values ​​for slots, is manually determined and configured by the slot configuration administrator, it is inevitable that the slot configuration is unreasonable or the slot value is incorrectly configured, which affects the daily processing flow, leading to problems such as not being able to find answers or unnecessarily increasing the number of conversation rounds.

[0069] After using the application information processing method, the slot configuration process of the intelligent customer service system is as follows: Figure 3 As shown, it mainly includes:

[0070] Step 3010, using NER to analyze and identify components / functions in the intent;

[0071] Step 3020, mapping components / functions in the intent into the product knowledge graph;

[0072] Among them, the product knowledge graph is integrated from public information such as product configuration tables, including information such as product configuration, functions, components, etc.

[0073] Step 3030, configuring the slots to associate the intended component / function with the product;

[0074] Step 3040, analyzing the association paths in the product knowledge graph;

[0075] Step 3050, determine whether there are other slots that match the path, if so, proceed to step 3080;

[0076] Step 3060, determine whether all products have the path, if yes, proceed to step 3090;

[0077] Step 3070, determine whether the product in the slot does not conform to the path, if so, proceed to step 3100;

[0078] Step 3080, recommending and prompting other slots;

[0079] Step 3090, prompting that no slot configuration is required;

[0080] Step 3100, prompting that the slot configuration may be wrong.

[0081] Specifically, Figure 4 Take the example given above, when configuring the slot for the intent "Use NFC":

[0082] In step 3010, the entity recognition model is used to perform entity linking on the intent "use NFC", and the component "NFC" is identified from the intent;

[0083] In step 3020, "NFC" in the intent "use NFC" is mapped to the component "NFC" in the product knowledge graph 40;

[0084] At the same time, the slot configuration administrator configures the slot for this intent:

[0085] Assume that, in step 3030, the slot configuration administrator sets a slot "model" for the intent and gives a slot value "model C"; when proceeding to step 3040, it is found that this entity does not exist in the product knowledge graph 40; therefore, in step 3070, "determine whether the product in the slot does not meet the path" will get a "yes" result; then, proceed to step 3100, prompting that the slot configuration may be wrong;

[0086] Assume that the configuration administrator later abandons the slot value "Model C" and gives a slot value "Application"; when proceeding to step 3040, it is found that although this entity exists in the product knowledge graph 40, there is no reachable path between the entity "NFC" and the entity "Application"; therefore, in step 3070, "Judgment that the product in the slot does not meet the path" is performed to obtain a "yes" result; when entering step 3100, it is prompted that the slot configuration may be wrong;

[0087] Assume that the slot configuration administrator also abandons the slot value "application" and gives a slot value "model A"; when proceeding to step 3040, it is found that there is a path such as "model A-has-NFC" in the product knowledge graph 40; therefore, it proceeds to step 3050. Figure 4 The product knowledge graph 40 shown is searched for entity nodes similar to "*-has-NFC", and the "Model B" is found; then, step 3080 is entered to recommend "Model B" to the slot configuration administrator; in addition, when entering step 3060, it is found that there are only two models, "Model A" and "Model B", in the product knowledge graph 40, which means that all models have the NFC component, so step 3090 is entered, which prompts "All models have NFC" and there is no need to set the "Model" slot.

[0088] It can be seen that by applying the information processing method of the present application to a process similar to the above-mentioned slot configuration, after configuring a slot once for a certain intent, it can prompt and recommend other slot values ​​that can be filled in, or check the rationality of the configured slots, thereby reducing the situation where answers cannot be found during the conversation due to configuration errors and missing slot values. In addition, it can also prompt intentions that are not related to the slots, avoid setting unnecessary slots, excessively questioning users, or triggering multiple rounds of conversations. Moreover, with the help of the product knowledge graph, questions and slots are connected in a more sophisticated way, that is, they are associated through components or functions, so that the intent can perceive the function of the product, thereby assisting the slot configuration administrator to better configure the slots.

[0089] It should be noted that although Figures 2 to 4 In the illustrated embodiment, steps 3010 to 3020 are executed before step 3030 , but in practice, steps 3010 to 3020 may be executed simultaneously with step 3030 , or even after step 3030 , as long as they are completed before step 3040 .

[0090] also, Figures 2 to 4 The embodiments shown are only exemplary descriptions of the information processing method of the present application, and are not intended to limit the implementation methods and application scenarios of the information processing method of the present application. The implementer may adopt any applicable implementation method and apply it to any applicable application scenario according to specific implementation conditions.

[0091] Furthermore, the present application also provides an information processing device. Figure 5 As shown, the device 50 includes: a slot configuration information acquisition module 501, used to obtain a first intent and at least one slot configured according to the first intent; a knowledge graph path determination module 502, used to determine the path between the first intent and at least one slot based on the knowledge graph data corresponding to the first intent; a slot configuration prompt module 503, used to determine whether the configuration of at least one slot meets the set conditions based on the knowledge graph data and the path, and if not, output a prompt message.

[0092] According to one embodiment of the present application, the knowledge graph path determination module 502 includes: an entity recognition submodule, which is used to perform entity recognition on the first intent to obtain at least one first entity; an entity linking submodule, which is used to perform entity linking on at least one first entity to obtain at least one second entity based on the knowledge graph data corresponding to the first intent; the entity linking submodule is also used to perform entity linking on at least one slot to obtain at least one third entity based on the knowledge graph data corresponding to the first intent; and a path calculation submodule is used to determine the path between at least one second entity and at least one third entity based on the knowledge graph data corresponding to the first intent.

[0093] According to an embodiment of the present application, the entity recognition submodule is specifically used to perform entity recognition on the conversation intent based on the named entity recognition model to obtain at least one first entity.

[0094] According to an embodiment of the present application, the slot configuration prompt module 503 is specifically used to: determine the category to which at least one slot belongs based on the knowledge graph data; obtain all entities under the category to obtain a fourth entity; determine whether there is a path between all fourth entities and the first intention, and if so, the configuration of at least one slot does not meet the set conditions.

[0095] According to an embodiment of the present application, the slot configuration prompt module 503 is specifically used to determine whether the path meets the association pattern between the first intention and at least one slot. If not, the configuration of at least one slot does not meet the set conditions.

[0096] According to an embodiment of the present application, the slot configuration prompt module 503 is specifically used to: determine whether there is a fifth entity that is compatible with at least one slot based on the knowledge graph data and the path, and if so, output the fifth entity.

[0097] According to an embodiment of the present application, the slot configuration prompt module 503 is specifically used to determine whether there is a reachable path between the first intention and at least one slot based on the knowledge graph data and the path.

[0098] According to one embodiment of the present application, the device 50 also includes a knowledge graph data establishment module, which is used to establish knowledge graph data corresponding to the first intention.

[0099] According to one embodiment of the present application, the knowledge graph data establishment module includes: a knowledge graph database establishment sub-module, used to establish a knowledge graph database for the business field to which the first intention belongs; and a knowledge graph data acquisition sub-module, used to acquire knowledge graph data corresponding to the first intention based on the knowledge graph database.

[0100] According to a third aspect of an embodiment of the present application, there is provided a computer-readable storage medium, comprising a set of computer-executable instructions, which are used to execute any of the above-mentioned information processing methods when the instructions are executed.

[0101] It should be pointed out here that the above description of the information processing device embodiment and the above description of the computer-readable storage medium embodiment are similar to the description of the aforementioned method embodiment and have similar beneficial effects as the aforementioned method embodiment, so they are not described in detail. For the technical details that have not been disclosed in the description of the information processing device embodiment and the description of the computer-readable storage medium embodiment of this application, please refer to the description of the aforementioned method embodiment of this application for understanding, and in order to save space, they are not described in detail.

[0102] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0103] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another device, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0104] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0105] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0106] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage medium, read-only memory (ROM), disk or optical disk, etc. Various media that can store program codes.

[0107] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods of each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage media, ROM, magnetic disks or optical disks.

[0108] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. An information processing method, the method comprising: Obtaining a first intent and at least one slot configured according to the first intent; Determining a path between the first intent and the at least one slot according to the knowledge graph data corresponding to the first intent; According to the knowledge graph data and the path, determine whether the configuration of the at least one slot meets the set conditions, and if not, output a prompt message.

2. According to the method of claim 1, determining a path between the first intent and the at least one slot according to the knowledge graph data corresponding to the first intent comprises: Performing entity recognition on the first intent to obtain at least one first entity; According to the knowledge graph data corresponding to the first intent, entity linking is performed on the at least one first entity to obtain at least one second entity; According to the knowledge graph data corresponding to the first intent, entity linking is performed on the at least one slot to obtain at least one third entity; Determine a path between the at least one second entity and the at least one third entity based on the knowledge graph data corresponding to the first intent.

3. According to the method of claim 2, the step of performing entity recognition on the first intent to obtain at least one first entity comprises: Perform entity recognition on the first intent based on a named entity recognition model to obtain at least one first entity.

4. The method according to claim 1, determining whether the configuration of the at least one slot meets the set condition according to the knowledge graph data and the path, comprising: Determine, according to the knowledge graph data, a category to which the at least one slot belongs; Obtain all entities under the category to obtain a fourth entity; Determine whether the path exists between all fourth entities and the first intention. If so, the configuration of the at least one slot does not meet the set condition.

5. The method according to claim 1, determining whether the configuration of the at least one slot meets the set conditions according to the knowledge graph data and the path, comprising: Determine whether the path meets the association pattern between the first intention and the at least one slot. If not, the configuration of the at least one slot does not meet the set condition.

6. According to the method of claim 1, determining whether the configuration of the at least one slot meets a set condition based on the knowledge graph data and the path comprises: According to the knowledge graph data and the path, determine whether there is a fifth entity that is compatible with the at least one slot; if so, output the fifth entity.

7. According to the method of claim 1, determining whether the configuration of the at least one slot meets a set condition based on the knowledge graph data and the path comprises: Based on the knowledge graph data and the path, determine whether there is a reachable path between the first intention and the at least one slot.

8. The method according to claim 1, before determining the path between the first intent and the at least one slot according to the knowledge graph data corresponding to the first intent, the method further comprises: Establish knowledge graph data corresponding to the first intent.

9. According to the method of claim 8, the step of establishing the knowledge graph data corresponding to the first intent comprises: Establish a knowledge graph database for the business field to which the first intention belongs; According to the knowledge graph database, obtain the knowledge graph data corresponding to the first intention.

10. An information processing device, comprising: A slot configuration information acquisition module, used to acquire a first intention and at least one slot configured according to the first intention; a knowledge graph path determination module, configured to determine a path between the first intent and the at least one slot according to the knowledge graph data corresponding to the first intent; The slot configuration prompt module is used to determine whether the configuration of at least one slot meets the set conditions based on the knowledge graph data and the path, and if not, output prompt information.

Citation Information

Patent Citations

  • Man-machine dialogue method and man-machine dialogue device based on knowledge graph

    CN110502608A

  • Natural language processing method and device, computing equipment and storage medium

    CN111125309A

  • Man-machine training scene construction method and device based on knowledge graph

    CN111309879A

  • Enterprise system question-answer intention recognition method and device based on knowledge graph

    CN111625633A

  • Automatic question and answer method, device and equipment based on knowledge graph, and storage medium

    CN111949787A