Dialogue processing method, system, device and computer readable storage medium

Through dialogue intent analysis and policy query, preset configuration files are used to process dialogue tasks, which solves the problem of dialogue processing inaccuracy caused by incomplete dialogue materials in the existing technology, and improves the stability and reliability of dialogue processing.

CN113705249BActive Publication Date: 2024-10-11SHANGHAI YUNCHONG ENTERPRISE DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110984181.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-25
Publication Date
2024-10-11
Estimated Expiration
2041-08-25

AI Technical Summary

Technical Problem

When existing dialogue processing equipment is used in application scenarios where dialogue materials are not fully covered, it is difficult to ensure the accuracy and reliability of dialogue processing, which affects the user experience.

Method used

Through semantic analysis of the received input information, the user's dialogue intention is determined, and the dialogue strategy query conditions are determined based on the dialogue intention. The preset dialogue strategy configuration file is used to query the dialogue processing tasks and generate reply information to ensure that all dialogue processing tasks are completed. It is preset, certain, stable and reliable.

Benefits of technology

It significantly improves the accuracy and reliability of dialogue processing, enhances the user's dialogue experience, and ensures the stability and reliability of dialogue processing tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113705249B_ABST
    Figure CN113705249B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of artificial intelligence technology, and specifically provides a dialogue processing method, system, device and computer-readable storage medium, aiming to solve how to effectively improve the accuracy and reliability of dialogue processing. The dialogue processing method of the present invention includes performing semantic analysis on the received input information to determine the dialogue intention; determining the dialogue strategy query condition according to the dialogue intention; using the dialogue strategy query condition to query a preset dialogue strategy configuration file to determine the dialogue processing task of the dialogue intention; the dialogue strategy configuration file is a configuration file of a tree data structure generated according to multiple different dialogue processing tasks and the dialogue strategy query conditions corresponding to each dialogue processing task; executing the dialogue processing task to generate reply information. By querying the preset dialogue strategy configuration file to determine the dialogue processing task, accurate reply information can be generated for the input information, significantly improving the accuracy and reliability of dialogue processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and specifically provides a task processing method, device and computer-readable storage medium. Background Art

[0002] At present, dialogue processing equipment is widely used in various application scenarios such as air ticket booking and life payment. Users can issue voice commands to the dialogue processing equipment, and the dialogue processing equipment can parse the voice commands and complete corresponding operations such as booking air tickets or paying life bills. The dialogue processing method currently used by dialogue processing equipment is mainly to first train the dialogue processing model with dialogue data in different application scenarios, and then use the trained dialogue processing model for dialogue processing. The accuracy of the dialogue data will greatly affect the model performance of the dialogue processing model, and then affect the accuracy and reliability of the dialogue processing. At the same time, this method will not be able to complete the dialogue processing when the application scenario is not covered by the dialogue data, further reducing the accuracy and reliability of the dialogue processing.

[0003] Accordingly, the art needs a new dialogue processing solution to solve the above problems. Summary of the invention

[0004] The present invention aims to solve the above technical problem, that is, to solve how to effectively improve the accuracy and reliability of dialogue processing.

[0005] In a first aspect, the present invention provides a dialog processing method, the method comprising:

[0006] When communicating with a user, semantic analysis is performed on the input information received to determine the user's conversational intent;

[0007] Determining a dialogue strategy query condition according to the dialogue intention;

[0008] The dialogue strategy query condition is used to query a preset dialogue strategy configuration file to determine the dialogue processing task of the dialogue intention; wherein the preset dialogue strategy configuration file is a configuration file of a tree data structure generated according to a plurality of different dialogue processing tasks and the dialogue strategy query condition corresponding to each dialogue processing task;

[0009] By executing the dialogue processing task, reply information is generated to complete the dialogue with the user.

[0010] In a technical solution of the above-mentioned dialogue processing method, the step of “determining the dialogue strategy query condition according to the dialogue intention” specifically includes:

[0011] Determining whether a dialogue processing task has been performed for the dialogue intention;

[0012] If yes, determining the dialogue strategy query condition according to the dialogue intention, the dialogue processing task previously executed for the dialogue intention, and the reply information generated by the dialogue processing task previously executed;

[0013] If not, the dialogue strategy query condition is directly determined according to the dialogue intention.

[0014] In a technical solution of the above-mentioned dialogue processing method, the step of "generating reply information by executing the dialogue processing task" specifically includes:

[0015] Determine whether a dialogue processing task of another dialogue intention has been executed before executing the dialogue processing task of the current dialogue intention;

[0016] If it has not been executed, obtaining slot information required for the dialogue processing task of the current dialogue intention according to the input information;

[0017] If it has been executed, then respectively obtaining the intent types of the current conversation intent and the other conversation intents;

[0018] If the intention types of the current dialogue intention and the other dialogue intentions belong to different subtypes under the same preset main type, the slot information required for the dialogue processing task of the current dialogue intention is determined according to the slot information used when executing the dialogue processing task of the other dialogue intention;

[0019] If the intention types of the current dialogue intention and the other dialogue intentions belong to different preset main types, then the slot information required for the dialogue processing task of the current dialogue intention is obtained according to the input information and information confirmation reminder information is output;

[0020] The dialogue processing task is executed according to the slot information required by the dialogue processing task of the current dialogue intention, and reply information is generated.

[0021] In a technical solution of the above-mentioned dialogue processing method, the step of "obtaining slot information required for the dialogue processing task of the current dialogue intention according to the input information" specifically includes:

[0022] Performing semantic analysis on the input information to determine entity information contained in the input information, wherein the entity information includes named entity information, digital entity information, and time entity information;

[0023] Determine the entity relationship between the named entity information, the digital entity information, and the time entity information, and obtain the slot information required for the dialogue processing task of the current dialogue intention according to the entity information and the entity relationship;

[0024] and / or,

[0025] Before the step of "executing the dialogue processing task according to the slot information required by the dialogue processing task of the current dialogue intention", the method further includes:

[0026] Determining whether slot information required to execute the dialog processing task is missing;

[0027] If yes, guiding the user to input the missing slot information according to the missing slot information;

[0028] If not, the dialogue processing task is executed to generate a reply message.

[0029] In a technical solution of the above-mentioned dialogue processing method, the number of the dialogue processing tasks is multiple, and the step of "generating reply information by executing the dialogue processing tasks" further includes:

[0030] Storing the dialog processing task in a preset task stack;

[0031] Obtaining and executing each dialog processing task from the task stack in sequence, and outputting task execution completion reminder information after all dialog processing tasks are executed;

[0032] and / or,

[0033] The step of "generating reply information by executing the dialogue processing task" also includes:

[0034] Determining whether the dialogue processing task is a preset abnormal dialogue processing task;

[0035] If so, a corresponding reply template is obtained from a preset reply template library according to the abnormal dialogue processing task, and an abnormal reminder is issued according to the reply template;

[0036] If not, generating a reply message by executing the dialogue processing task;

[0037] and / or,

[0038] The steps of “determining the user’s conversational intent” specifically include:

[0039] A preset intention classification model is used to perform semantic analysis on the input information to determine one or more conversation intentions of the user, wherein the preset intention classification model is trained based on training samples corresponding to multiple different conversation intentions.

[0040] In a second aspect, the present invention provides a dialog processing system, the system comprising:

[0041] A dialogue intention determination module, which is configured to perform semantic analysis on received input information when conducting a dialogue with a user to determine the user's dialogue intention;

[0042] A query condition determination module, configured to determine a dialogue strategy query condition according to the dialogue intention;

[0043] a dialogue processing task determination module, configured to use the dialogue strategy query condition to query a preset dialogue strategy configuration file to determine the dialogue processing task of the dialogue intention; wherein the preset dialogue strategy configuration file is a configuration file of a tree data structure generated according to a plurality of different dialogue processing tasks and the dialogue strategy query condition corresponding to each dialogue processing task;

[0044] The reply information generating module is configured to generate reply information by executing the dialogue processing task to complete the dialogue with the user.

[0045] In a technical solution of the above-mentioned dialog processing system, the query condition determination module is further configured to perform the following operations:

[0046] Determining whether a dialogue processing task has been performed for the dialogue intention;

[0047] If yes, determining the dialogue strategy query condition according to the dialogue intention, the dialogue processing task previously executed for the dialogue intention, and the reply information generated by the dialogue processing task previously executed;

[0048] If not, the dialogue strategy query condition is directly determined according to the dialogue intention.

[0049] In a technical solution of the above-mentioned dialog processing system, the reply information generation module is further configured to perform the following operations:

[0050] Determine whether a dialogue processing task of another dialogue intention has been executed before executing the dialogue processing task of the current dialogue intention;

[0051] If it has not been executed, obtaining slot information required for the dialogue processing task of the current dialogue intention according to the input information;

[0052] If it has been executed, then respectively obtaining the intent types of the current conversation intent and the other conversation intents;

[0053] If the intention types of the current dialogue intention and the other dialogue intentions belong to different subtypes under the same preset main type, the slot information required for the dialogue processing task of the current dialogue intention is determined according to the slot information used when executing the dialogue processing task of the other dialogue intention;

[0054] If the intention types of the current dialogue intention and the other dialogue intentions belong to different preset main types, then the slot information required for the dialogue processing task of the current dialogue intention is obtained according to the input information and information confirmation reminder information is output;

[0055] The dialogue processing task is executed according to the slot information required by the dialogue processing task of the current dialogue intention, and reply information is generated.

[0056] In a technical solution of the above-mentioned dialogue processing system, the reply information generation module is further configured to perform the following operations:

[0057] Performing semantic analysis on the input information to determine entity information contained in the input information, wherein the entity information includes named entity information, digital entity information, and time entity information;

[0058] Determine the entity relationship between the named entity information, the digital entity information, and the time entity information, and obtain the slot information required for the dialogue processing task of the current dialogue intention according to the entity information and the entity relationship;

[0059] and / or,

[0060] The reply information generation module is further configured to perform the following operations:

[0061] Determining whether slot information required to execute the dialog processing task is missing;

[0062] If yes, guiding the user to input the missing slot information according to the missing slot information;

[0063] If not, the dialogue processing task is executed to generate a reply message.

[0064] In a technical solution of the above-mentioned dialogue processing system, there are multiple dialogue processing tasks, and the reply information generation module is further configured to perform the following operations:

[0065] Storing the dialog processing task in a preset task stack;

[0066] Obtaining and executing each dialog processing task from the task stack in sequence, and outputting task execution completion reminder information after all dialog processing tasks are executed;

[0067] and / or,

[0068] The reply information generation module is further configured to perform the following operations:

[0069] Determining whether the dialogue processing task is a preset abnormal dialogue processing task;

[0070] If so, a corresponding reply template is obtained from a preset reply template library according to the abnormal dialogue processing task, and an abnormal reminder is issued according to the reply template;

[0071] If not, generating a reply message by executing the dialogue processing task;

[0072] and / or,

[0073] The dialogue intention determination module is further configured to perform the following operations:

[0074] A preset intention classification model is used to perform semantic analysis on the input information to determine one or more conversation intentions of the user, wherein the preset intention classification model is trained based on training samples corresponding to multiple different conversation intentions.

[0075] According to a third aspect, a control device is provided, which includes a processor and a storage device, wherein the storage device is suitable for storing multiple program codes, and the program codes are suitable for being loaded and run by the processor to execute the dialogue processing method described in any one of the technical solutions of the above-mentioned dialogue processing method.

[0076] In a fourth aspect, a computer-readable storage medium is provided, wherein a plurality of program codes are stored therein, wherein the program codes are suitable for being loaded and run by a processor to execute the dialogue processing method described in any one of the technical solutions of the above-mentioned dialogue processing method.

[0077] In the case of adopting the above technical solution, the present invention can perform semantic analysis on the received input information when conducting a dialogue with the user, determine the user's dialogue intention, and then determine the strategy query condition according to the dialogue intention, and then use the dialogue strategy query condition to query the preset dialogue strategy configuration file to determine the dialogue processing task of the dialogue intention, and finally execute the dialogue processing task to generate reply information to complete the dialogue with the user. Since all dialogue processing tasks are determined by querying the preset dialogue strategy configuration file through the dialogue strategy query condition, all dialogue processing tasks are pre-set, determined, stable and reliable. Therefore, by querying the preset dialogue strategy configuration file to determine the dialogue processing task, accurate reply information can be generated for the input information, which significantly improves the accuracy and reliability of dialogue processing, thereby improving the user's dialogue experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] The disclosure of the present invention will become more easily understood with reference to the accompanying drawings. It is easy for those skilled in the art to understand that these drawings are only for illustrative purposes and are not intended to limit the scope of protection of the present invention. In addition, similar numbers in the figures are used to represent similar components, among which:

[0079] Figure 1 is a flowchart of main steps of a method for dialog processing according to an embodiment of the present invention;

[0080] Figure 2 is a flow chart of determining a dialogue strategy query condition according to a dialogue processing method of an embodiment of the present invention;

[0081] Figure 3 is a schematic diagram of a flow chart of determining slot information of different intent types according to a method for dialog processing according to an embodiment of the present invention;

[0082] Figure 4 is a flowchart of determining entity information and entity relationships in a method for dialog processing according to an embodiment of the present invention;

[0083] Figure 5 is a flow chart of confirming whether slot information is complete according to a method for dialog processing according to an embodiment of the present invention;

[0084] Figure 6 is a flowchart of multiple dialogue processing tasks of a dialogue processing method according to an embodiment of the present invention;

[0085] Figure 7 is a flowchart of an abnormality occurring in a method for dialog processing according to an embodiment of the present invention;

[0086] Figure 8 is a detailed flowchart of multiple dialogue processing tasks of a dialogue processing method according to an embodiment of the present invention;

[0087] Fig. 9 is a schematic diagram of a main structural block diagram of a system for dialog processing according to an embodiment of the present invention;

[0088] Fig.10 is a flowchart of main steps of a method for dialog processing according to another embodiment of the present invention;

[0089] Fig.11 It is a schematic diagram of the main structural block diagram of a task robot according to an embodiment of the present invention.

[0090] List of reference numerals:

[0091] 91: Dialogue intention determination module; 92: Query condition determination module; 93: Dialogue processing task determination module; 94: Reply information generation module. DETAILED DESCRIPTION

[0092] Some embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.

[0093] In the description of the present invention, "module" and "processor" may include hardware, software or a combination of the two. A module may include hardware circuits, various suitable sensors, communication ports, and memories, and may also include software parts, such as program codes, or a combination of software and hardware. The processor may be a central processing unit, a microprocessor, an image processor, a digital signal processor, or any other suitable processor. The processor has data and / or signal processing functions. The processor may be implemented in software, hardware, or a combination of the two. Non-temporary computer-readable storage media include any suitable medium that can store program codes, such as a magnetic disk, a hard disk, an optical disk, a flash memory, a read-only memory, a random access memory, and the like. The term "A and / or B" means all possible combinations of A and B, such as only A, only B, or A and B. The term "at least one A or B" or "at least one of A and B" has a similar meaning to "A and / or B", and may include only A, only B, or A and B. The singular terms "one" and "the" may also include plural forms.

[0094] At present, the dialogue framework of traditional task robots, such as Rasa (an open source machine learning framework for building contextual AI assistants and chatbots), requires a large amount of dialogue corpus to train its dialogue process control strategy. However, the disadvantage of this solution is that the generation of dialogue process control strategy needs to rely on a large amount of dialogue corpus training, and the generation of dialogue process control strategy may be unstable. When the dialogue process control strategy is abnormal, it will affect the user experience.

[0095] In an embodiment of the present invention, when conducting a dialogue with a user, the received input information is analyzed to determine the user's dialogue intention, and then the dialogue strategy query condition is determined according to the dialogue intention. The dialogue strategy query condition is used to query the dialogue strategy configuration file to determine the dialogue processing task of the dialogue intention, and the dialogue processing task is executed to finally complete the dialogue with the user. Since the processing task is obtained by querying the dialogue strategy configuration file through the dialogue strategy query condition, the reliability and stability of the dialogue processing task can be guaranteed.

[0096] In an example of an application scenario of the present invention, a user issues a voice command to a task robot provided with a dialogue task processing system according to an embodiment of the present invention; "Help me pay the electricity bill", the task robot performs semantic analysis on the received voice command "Help me pay the electricity bill", determines that the user's dialogue intention is "pay the electricity bill", and then determines the dialogue strategy query condition as "pay the electricity bill" based on the dialogue intention "pay the electricity bill", and then uses "pay the electricity bill" to query from a preset dialogue strategy configuration file, the preset dialogue strategy configuration file has a dialogue processing task corresponding to the dialogue strategy query condition, after determining the dialogue processing task, executes the dialogue processing task, generates reply information, further guides the user to enter the payment account number, payment amount, etc., and finally completes the dialogue with the user.

[0097] See attached Figure 1 , Figure 1 FIG. 1 is a flow chart showing the main steps of a method for processing a conversation according to an embodiment of the present invention. Figure 1 As shown, the dialog processing method in the embodiment of the present invention mainly includes the following steps S101 to S104.

[0098] Step S101: When communicating with a user, semantic analysis is performed on the received input information to determine the user's conversation intention.

[0099] In one implementation of this embodiment, the step of “determining the user's conversation intention” may include:

[0100] A preset intent classification model is used to perform semantic analysis on the input information to determine one or more conversation intentions of the user, wherein the preset intent classification model is trained based on training samples corresponding to multiple different conversation intentions.

[0101] For example, you can use a BERT model, a ROBERTA model, etc., and add a classification layer for training to obtain an intent classification model, and then use the intent classification model to perform semantic analysis on the received input information to determine the user's conversation intention. In a certain implementation scenario, you can also use samples to train the above BERT model, ROBERTA model plus a classification layer, so that the intent classification model can recognize multiple user intentions at one time. For example, when the user says "help me pay the water bill, electricity bill, telephone bill, and gas bill", the intent classification model can recognize the user's four intentions at one time, namely "pay the water bill", "pay the electricity bill", "pay the telephone bill", and "pay the gas bill". It should be noted that the method for training the above BERT model, ROBERTA model plus a classification layer can be consistent with the conventional model training method in the field, and its training method will not be repeated here.

[0102] The intent classification model can be used to analyze the conversation intent in the input information very well, and the trained intent classification model can identify multiple conversation intents in the input information.

[0103] Step S102: Determine a dialogue strategy query condition according to the dialogue intention.

[0104] In one implementation of this embodiment, step S102 can be performed as follows: Figure 2 Steps S201 to S203 shown determine the dialogue query strategy according to different conditions:

[0105] Step S201: Determine whether a dialogue processing task has been executed for the dialogue intention. If so, execute step S202; if not, execute step S203.

[0106] Step S202: Determine a dialogue strategy query condition according to the dialogue intention, the dialogue processing task previously executed for the dialogue intention, and the reply information generated by the dialogue processing task previously executed.

[0107] Step S203: directly determining the dialogue strategy query condition according to the dialogue intention.

[0108] Multiple dialogue processing tasks can be performed for the same dialogue intent, so the basis for determining the dialogue strategy query conditions can be different. When no dialogue processing task has been performed for a certain dialogue intent, that is, the dialogue processing task is performed for the dialogue intent for the first time, the dialogue strategy query conditions can be determined directly based on the dialogue intent. If the dialogue processing task has been performed for the dialogue intent before, the dialogue strategy query conditions can be determined based on the dialogue intent, the dialogue processing task previously performed for the dialogue intent, and the reply information generated by the dialogue processing task previously performed.

[0109] For example, when having a conversation with a certain user, after semantic analysis of the user's input content, it is determined that the user's conversation intention is "making an appointment at a bank branch". At this time, it is necessary to perform multiple conversation processing tasks for this intention. When the conversation processing task is performed for "making an appointment at a bank branch" for the first time, the conversation strategy query condition can be determined only based on the conversation intention "making an appointment at a bank branch". When the task is performed for "making an appointment at a bank branch" for the second time, assuming that the first conversation processing task for "making an appointment at a bank branch" determines that the bank the user has made an appointment with is "Bank X", then the conversation strategy query condition can be determined based on the conversation intention "making an appointment at a bank branch" and the conversation processing task performed last time, such as determining the bank to make an appointment with, and the reply information generated by the conversation processing task performed last time, such as "Please select an appointment time" and "Bank X has been selected".

[0110] For another example, when a voice command "Help me pay the electricity bill" is received during a conversation with a certain user, after semantic analysis of the received voice command, it is determined that the user's conversation intention is "pay the electricity bill". At this time, this is the first time to execute the conversation processing task of the conversation intention, so the conversation strategy query condition is directly determined according to the conversation intention "pay the electricity bill", and then the conversation processing task is determined, such as executing a preset application for paying the electricity bill. After executing the conversation processing task, a reply message such as "Please enter the account number to be paid" is sent to the user. After the user enters the payment account number, this is the second time to execute the conversation processing task for "pay the electricity bill". At this time, the conversation strategy query condition can be determined according to the previous conversation processing task executed for "pay the electricity bill", the conversation intention, and the reply information generated by the previous execution of the conversation processing task, and the next conversation processing task can be determined.

[0111] Different dialogue strategy query conditions are determined based on whether a dialogue processing task has been performed for a certain dialogue intent, making the dialogue strategy query conditions more accurate, thereby improving the reliability of the dialogue processing task.

[0112] Step S103: querying a preset dialogue strategy configuration file using a dialogue strategy query condition to determine a dialogue processing task of the dialogue intention; wherein the preset dialogue strategy configuration file is a configuration file of a tree data structure generated according to a plurality of different dialogue processing tasks and the dialogue strategy query condition corresponding to each dialogue processing task.

[0113] The dialogue strategy configuration file can be a configuration file of a tree data structure generated based on multiple different dialogue processing tasks and the dialogue strategy query conditions corresponding to each dialogue processing task. Simply put, the configuration file of the tree data structure can include multiple dialogue processing tasks and multiple dialogue strategy query conditions. The multiple dialogue processing tasks and the multiple dialogue strategy query conditions correspond one to one, and a dialogue processing task can be determined based on the dialogue strategy query conditions.

[0114] For example, the dialog processing task and dialog strategy query conditions for "paying electricity bills" in the configuration file can be shown in Table 1 below:

[0115] Table 1

[0116]

[0117] It should be noted that the implementation method of the above-mentioned tree data structure configuration file is only for illustrative purposes and does not mean that there is only one implementation method of the present invention. Due to the diversity of dialogue intentions, those skilled in the art can generate different dialogue strategy configuration files according to the above-mentioned "the dialogue strategy configuration file can be a tree data structure configuration file generated according to multiple different dialogue processing tasks and the dialogue strategy query conditions corresponding to each dialogue processing task".

[0118] Step S104: Generate reply information by executing the dialogue processing task to complete the dialogue with the user.

[0119] In one implementation of this embodiment, the Figure 3 Steps S301 to S306 shown determine slot information under different intent types:

[0120] Step S301: Determine whether the dialogue processing tasks of other dialogue intentions have been executed before executing the dialogue processing task of the current dialogue intention. If not, execute step S302; if executed, execute step S303.

[0121] Step S302: Obtain slot information required for the dialogue processing task of the current dialogue intention according to the input information.

[0122] Step S303: respectively obtain the intention types of the current dialogue intention and other dialogue intentions. If the intention types of the current dialogue intention and other dialogue intentions belong to different subtypes under the same preset main type, execute step S304; if the intention types of the current dialogue intention and other dialogue intentions belong to different preset main types, execute step S305.

[0123] Step S304: Determine the slot information required for the dialogue processing task of the current dialogue intention based on the slot information used when executing the dialogue processing task of other dialogue intentions.

[0124] Step S305: Obtain the slot information required for the dialogue processing task of the current dialogue intention according to the input information and output information confirmation reminder information.

[0125] Step S306: Execute the dialogue processing task according to the slot information required by the dialogue processing task of the current dialogue intention and generate reply information.

[0126] For example, the currently executed dialogue intention is "buy train tickets". Before executing the dialogue processing task of buying train tickets, it is also possible to determine whether dialogue processing tasks of other dialogue intentions have been executed. If not, the slot information required for the corresponding dialogue processing task is obtained according to the dialogue intention "buy train tickets", such as time, departure place, destination, etc. If dialogue processing tasks of other dialogue intentions have been executed before, the intention types of the current dialogue intention and other dialogue intentions are determined. If the current dialogue intention and other dialogue intentions belong to different subtypes under the same preset main type, the slot information required for the dialogue processing task of the current dialogue intention can be determined based on the slot information used when executing the dialogue processing tasks of other dialogue intentions. If the current dialogue intention and the intention types of other dialogue intentions belong to different preset main types, the slot information required for the dialogue processing task of the current dialogue intention is obtained according to the input information and the information confirmation reminder information is output. Specifically, for example, buying a train ticket and refunding a train ticket are different subtypes under the same main type (train ticket service type), so if the dialogue processing task of other intents previously executed is to refund a train ticket, then it is possible to determine which slot information can be reused and retained based on the slot information used for refunding a train ticket, and which slots cannot be used in the dialogue processing task of the current dialogue intent, delete them, and then supplement the missing slot information again based on the slot information required for the dialogue processing task of the current dialogue intent. For example, paying electricity bills and buying train tickets belong to different preset main types, and the slot information required for the dialogue processing tasks corresponding to the dialogue intents of the two different main types is completely different, so if the dialogue processing task of other intents previously executed is to pay electricity bills, then the slot information of the previously executed dialogue processing tasks can be deleted, and then the slot information can be determined based on the slot information required for the dialogue processing task of the current dialogue intent, and a reminder message or confirmation request message can also be issued.

[0127] For ease of understanding, actual application scenarios are listed again here to distinguish between main types and sub-types. For example, "buying train tickets" and "refunding train tickets" are both related to train tickets, so "buying train tickets" and "refunding train tickets" can be preset as different sub-types under the same main type (train ticket service type). For another example, "paying water bills" and "paying gas bills" are both related to living expenses, so "paying water bills" and "paying gas bills" can be preset as different sub-types under the same main type (living expenses type). For another example, "train tickets" and "living expenses" have nothing to do with each other, so they can be preset as different main types. It should be noted that due to too many application scenarios, it is impossible to list all main types and sub-types, but those skilled in the art should understand that the main types and sub-types in other application scenarios that are the same as the above-mentioned classification method can be determined according to the above-mentioned classification method, and the scheme after the main type and sub-type are replaced still falls within the protection scope of the present invention.

[0128] For different user conversation intentions, the slot information used is different, so it is necessary to determine whether different conversation intentions are of the same main type. For conversation intentions of the same main type, some slot information can be reused, thereby reducing the workload. For conversation intentions of different main types, the slot information cannot be reused, and the original slot information must be deleted and the slot information must be re-determined to meet the needs of executing the conversation processing task.

[0129] In one implementation of this embodiment, the Figure 4 Steps S401 to S402 shown determine entity information and entity relationships:

[0130] Step S401: perform semantic analysis on the input information to determine entity information contained in the input information, wherein the entity information may include named entity information, digital entity information and time entity information.

[0131] Step S402: Determine the entity relationship between the named entity information, the digital entity information, and the time entity information, and obtain the slot information required for the dialogue processing task of the current dialogue intention based on the entity information and the entity relationship.

[0132] When having a conversation with a user, such as booking an air ticket, the received voice command may be "help me book an air ticket from area A to area B at 10 o'clock tomorrow morning", then the input information can be semantically analyzed, for example, the named entity recognition model constructed using the ROBERTA+CRF framework is used to recognize "help me book an air ticket from area A to area B at 10 o'clock tomorrow morning", and the recognized named entity information can be "Area A", "Area B, 10:00", and for another example, the transformer model can be used for training, so that the trained model can recognize, for example, "help me pay for the water bill of fifty yuan", and the recognized digital entity information can be "50", and for another example, the above transformer model can be used for training, so that the trained model can recognize, for example, "tomorrow morning", and the recognized time entity information can be "January 1, 2020", and for another example, the above named entity model can also be used to recognize all entity information, such as names of people, places, numbers, time, organization names, product names, etc., and then the above transformer model is used to convert the recognized entity information, convert the recognized digital entity information into a digital format, and convert the time entity information into a standard time format. It should be noted that the above-mentioned ROBERTA+CRF framework and transformer model are conventional frameworks or models in this field. For the sake of brevity, their principles, workflows, training processes, etc. will not be introduced in more detail here.

[0133] After identifying the entity information, it is also necessary to determine the entity relationship between the entity information, such as "January 1, 2020", "10:00", "Region A" and "Region B". After determining the entity relationship, the slot information required for the dialogue processing task of the current dialogue intent is obtained based on the entity information and entity relationship.

[0134] In one implementation of this embodiment, obtaining the user's input information may include optional collection and voice command collection. For optional collection, the implementation method may be:

[0135] For example, after receiving the voice command "I want to make an appointment at a branch", the user is presented with options through the interactive interface and a voice or text reminder is sent to the user: "Bank X currently supports appointments for the following services. Please select the serial number of the service you need to handle":

[0136] 1. Open an account; 2. Large amount cash withdrawal; 3. Modify personal information; 4. Modify mobile phone number; 5. Large amount transfer; 6. Other services;

[0137] Assuming that the user clicks "2" on the interactive interface, or issues a voice command "2", the interactive interface can display options to the user again and issue a voice or text reminder to the user: "Bank X currently supports the following appointment times, please select an appointment time":

[0138] 1. The morning of January 1, 2020; 2. The afternoon of January 1, 2020; 3. The morning of January 2, 2020; 4. The afternoon of January 2, 2020;

[0139] Assuming that the user clicks "1" on the interactive interface, or issues a voice command "1", the confirmation information can be displayed through the interactive interface, and a reminder can be sent to the user through voice: "You are making an appointment to go to a certain bank to handle a large cash withdrawal on the morning of January 1, 2020, please confirm". The user can complete the appointment by selecting 1 on the interactive interface or issuing a voice command "1" to the robot.

[0140] For voice command collection, the implementation method may be:

[0141] After receiving the voice command "I want to transfer money", the content that needs to be input can be displayed on the interactive interface, and a voice reminder can be issued to the user: "Please enter the receiving account for your transfer. The receiving account is a 16-, 17- or 19-digit bank card number." After receiving the voice command "I want to transfer 5,000 yuan to Wang Wu's account XXXXXXXXXXXX2366," the confirmation information can be displayed on the interactive interface, and a voice reminder can be issued to the user: "Please confirm the transfer information and remit it to the XXXXXXXXXXXX2366 account of the XXX Bank savings card. The account holder is Wang Wu, the remittance amount is RMB 5,000.00, and your account balance after the transfer is RMB 45,000.00."

[0142] By obtaining user input information in different ways, the efficiency of dialogue processing can be improved and the user experience can be enhanced.

[0143] In one implementation of this embodiment, before step S306, the following steps may be performed: Figure 5 Steps S501 to S503 shown confirm the integrity of the slot information:

[0144] Step S501: Determine whether the slot information required to execute the dialogue processing task is missing, if so, execute step S502, if not, execute step S503.

[0145] Step S502: guiding the user to input the missing slot information according to the missing slot information.

[0146] Step S503: Execute the dialogue processing task and generate reply information.

[0147] Before executing a dialogue processing task, you can also determine whether the slot information required to execute the dialogue processing task is complete. For example, when executing a dialogue processing task, you buy an air ticket. The slot information required to execute the dialogue processing task may include the departure place, destination, and time. However, the slot information only includes the destination and time, and the departure place is missing. Therefore, based on the missing slot information, that is, the departure place, you can guide the user to enter the missing departure place information. When all the slot information required to execute the dialogue processing task is available, execute the dialogue processing task and generate reply information. For example, after completing the ticket booking, generate the ticket booking completion information, and display the order information, etc.

[0148] In one implementation of this embodiment, if there are multiple dialog processing tasks, then Figure 6 Steps S601 to S602 shown in the figure perform multiple dialogue processing tasks in sequence:

[0149] Step S601: storing the dialog processing task into a preset task stack.

[0150] Step S602: Obtain and execute each dialog processing task in sequence from the task stack, and output task execution completion reminder information after all dialog processing tasks are executed.

[0151] For example, after semantic analysis of the input information, multiple dialogue intentions are determined, and correspondingly multiple dialogue processing tasks are determined. At this time, the multiple dialogue processing tasks can be stored in a preset task stack and processed according to the following example: Figure 8 Steps S801 to S807 shown in the figure obtain and execute each dialogue processing task in sequence, and output a reminder message indicating that the task execution is completed after all dialogue processing tasks are completed:

[0152] Step S801: Determine multiple dialogue processing tasks.

[0153] Step S802: Add multiple dialogue processing tasks to the task stack.

[0154] Step S803: Determine whether the dialog processing task being executed has been completed, if so, execute step S804, if not, execute step S805.

[0155] Step S804: Continue executing the ongoing dialog processing task.

[0156] Step S805: Determine whether there is a dialog processing task in the task stack, if yes, execute step S806, if no, execute step S807.

[0157] Step S806: Obtain the dialog processing task from the task stack and execute it.

[0158] Step S807: Send a reminder that all dialogue processing tasks have been completed.

[0159] For example, after receiving the voice command "Please help me pay the water bill, electricity bill, gas bill, and telephone bill", the received voice command can be semantically analyzed to determine four dialogue intentions. Correspondingly, the corresponding dialogue processing tasks will be determined. At this time, all dialogue processing tasks can be stored in the task stack, and then the dialogue processing tasks can be obtained and executed in sequence. For another example, when the input information is semantically analyzed to determine a dialogue intention, multiple dialogue processing tasks can be generated. At this time, all dialogue processing tasks can also be stored in the task stack, and then the dialogue processing tasks can be obtained and executed in sequence. Similarly, it can also be adopted Figure 8 The method shown stores all the dialog processing tasks into a task stack, and then obtains and executes the dialog processing tasks in sequence.

[0160] When the input information contains multiple dialogue intentions, multiple dialogue processing tasks are determined accordingly, which are stored in the task stack and executed in sequence, so that multi-task processing can be achieved.

[0161] In another implementation of this embodiment, step S104 may also include: Figure 7 Steps S701 to S703 shown:

[0162] Step S701: Determine whether the dialogue processing task is a preset abnormal dialogue processing task, if so, execute step S702, if not, execute step S703.

[0163] Step S702: Obtain a corresponding reply template from a preset reply template library according to the abnormal dialogue processing task, and issue an abnormal reminder according to the reply template.

[0164] Step S703: Generate reply information by executing the dialogue processing task.

[0165] When executing a dialogue processing task, the dialogue processing task is judged. Some dialogue processing tasks may be preset exception dialogue processing tasks. Some dialogue processing tasks may not be completed. For example, the information entered by the user is incorrect. For example, the user needs to buy a ticket for a certain train at a certain time on a certain day, but the tickets are sold out, resulting in the inability to complete the dialogue processing task. At this time, an exception reminder will be generated.

[0166] Based on the above steps S101 to S104, when conducting a dialogue with a user, semantic analysis is performed on the received input information to determine the user's dialogue intention, and then the strategy query condition is determined according to the dialogue intention, and then the dialogue strategy query condition is used to query the preset dialogue strategy configuration file to determine the dialogue processing task of the dialogue intention, and finally the dialogue processing task is executed to generate reply information to complete the dialogue with the user. Since all dialogue processing tasks are determined by querying the preset dialogue strategy configuration file through the dialogue strategy query condition, all dialogue processing tasks are pre-set, determined, stable and reliable. Therefore, by querying the preset dialogue strategy configuration file to determine the dialogue processing task, accurate reply information can be generated for the input information, which significantly improves the accuracy and reliability of dialogue processing, thereby improving the user's dialogue experience.

[0167] For further information, see Appendix Fig.10 In a dialog processing method according to another embodiment of the present invention, the following steps S901 to S907 may be included:

[0168] Step S901: performing text preprocessing on received input information during a conversation with a user to obtain preprocessed input information.

[0169] For example, the input information received during a conversation with a user may be chaotic text information, so the input information may be subjected to text preprocessing. The preprocessing process may include conversion of encoding formats and processing of garbled characters, and the like.

[0170] Step S902: perform intent recognition on the preprocessed input information, obtain entity information and perform entity information conversion to respectively determine the user's conversation intention, entity information, and determine the entity relationship of the entity information.

[0171] The preprocessed input information can be subjected to intent recognition through an intent recognition model to determine the user's conversation intention. The specific implementation method is similar to the above step S101 and will not be repeated here for the sake of brevity.

[0172] The preprocessed text information can be analyzed by, for example, a named entity recognition model built using the ROBERTA+CRF framework to obtain entity information, which may include named entity information, digital entity information, and temporal entity information, such as names of people, places, numbers, times, names of organizations, product names, etc.

[0173] The transformer model can be used for training, and the trained model can be used to convert the recognized numbers into a standard format, such as converting three yuan and six cents into 3.6 yuan, etc. The transformer model can also be used for training, and the trained model can be used to convert the recognized time into a standard time format, such as converting "tomorrow" into "January 1, 2020", and another example is converting "January 1, 20" into "January 1, 2020". The specific implementation method is similar to the above step S401, and for the sake of brevity, it will not be repeated here.

[0174] The roberta model can be used for training, and the trained model can be used to identify the acquired entity information to determine the entity relationship of the entity information. The specific implementation method is similar to the above step S402, and for the sake of brevity, it will not be repeated here.

[0175] Step S903: Fill in slot information according to entity information and entity relationship.

[0176] The slot information can be filled in based on the entity information and entity relationship. For example, the determined entity information and entity relationship, time: "January 1, 2020", departure place "XX City" and destination "XX City" are filled in the slot.

[0177] Step S904: Switch the task scene according to the user's conversation intention.

[0178] For example, the user's intention is "booking a plane ticket", and the current task scenario is "paying for daily life", so the task scenario needs to be switched. The task scenario can include a main scenario and a sub-scenario. For example, "air ticket service" can be a main scenario, and "booking a plane ticket" is a sub-scenario under the main scenario "air ticket service". Paying for daily life can be a main scenario, and paying for water can be a sub-scenario under the main scenario "paying for daily life". The main scenario is similar to the above sub-type, and the sub-scenario is similar to the above sub-type. After switching the scenario, it can also be determined whether the slot information can be reused. For example, the conversation intention is "buying a plane ticket", and the current task scenario is "refunding a plane ticket". The two belong to the same main scenario, so some slot information can be reused, so the slot information that can be reused can be retained, the slot information that cannot be reused can be deleted, and the slot information missing for "buying a plane ticket" can be supplemented, and the entity information can be filled in again. For another example, the conversation intention is "buying a plane ticket", and the current task scenario is "paying a water fee". The two do not belong to the same main scenario, and all slot information cannot be used, so all slot information can be deleted, and then the slot information required for "buying a plane ticket" can be supplemented, and the entity information can be filled in again. The specific implementation is similar to the above steps S301 to S306 , and will not be described in detail for the sake of brevity.

[0179] Step S905: Select a dialogue processing flow and determine a dialogue processing task according to the user's dialogue intention, task scenario, and a preset dialogue strategy configuration file.

[0180] The dialog strategy configuration file can refer to the following Table 2. According to the multiple judgment conditions in Table 2, the dialog processing flow is selected and the dialog processing task is determined:

[0181] Table 2

[0182]

[0183] Among them, the latest_action column represents the last action (task processing node), which is similar to the dialogue processing task executed last time for the dialogue intent mentioned above, s_domain represents the main scene, which is similar to the main type mentioned above, s_frame represents the sub-scene, which is similar to the sub-type mentioned above, intent represents the intent, which is similar to the dialogue intent of the user mentioned above, latest_bot_utterance represents the robot's last reply, which is similar to the reply information generated by the dialogue processing task executed last time above, and next_action represents the action that needs to be executed next time, which is similar to the dialogue processing task of the current dialogue intent mentioned above.

[0184] For example, first determine the last task processing node. If there is one, then enter the main scene determination option corresponding to the last task processing node according to the last task processing node. If there is none, then directly determine the main scene, and so on, until the next task processing node to be executed is determined, and the dialogue processing flow is determined. In one embodiment, the specific implementation is similar to the above steps S201 to S203, and for the sake of brevity, it will not be repeated here.

[0185] After determining the dialogue processing task, if there are multiple tasks to be executed, all tasks can be saved in a task stack and then executed in sequence. The specific implementation method is similar to the above steps S801 to S807, and will not be repeated here for the sake of brevity.

[0186] Step S906: Execute the current dialog processing task node.

[0187] For a dialogue processing task, it may include multiple dialogue processing task nodes, and multiple dialogue processing task nodes need to be executed to complete the dialogue with the user. Before executing the current dialogue processing task node, it can be determined whether the slot information required by the current dialogue processing task node is complete. If so, the current dialogue processing task node can be executed, and a prompt to complete the task or enter the next dialogue processing task node can be displayed. If not, the user can be guided to input the missing slot information. The dialogue processing task node is similar to the dialogue processing task in step S501, and its specific implementation method is similar to the above steps S501 to S503. For the sake of brevity, it will not be repeated here.

[0188] Step S907: Generate reply information.

[0189] When executing a dialogue processing task, due to improper user operation or other reasons, such as the air ticket the user needs to book is sold out, etc., there may be an exception that causes the dialogue processing task to be unable to be completed. When the executed dialogue processing task node is a preset exception node, a reply template can be selected from the preset template library according to the current dialogue processing task node and the cause of the exception, and the user can be replied according to the reply template. The specific implementation method is similar to the above steps S701 to S703, and for the sake of brevity, it will not be repeated here.

[0190] It should be pointed out that although the various steps in the above embodiments are described in a specific order, those skilled in the art can understand that in order to achieve the effects of the present invention, different steps do not have to be performed in such an order. They can be performed simultaneously (in parallel) or in other orders. These changes are within the scope of protection of the present invention.

[0191] Furthermore, the present invention also provides a dialogue processing system.

[0192] See attached Fig. 9 , Fig. 9 FIG. 1 is a main structural block diagram of a dialog processing system according to an embodiment of the present invention. Fig. 9 As shown, the dialogue processing system in the embodiment of the present invention mainly includes a dialogue intention determination module 91, a query condition determination module 92, a dialogue processing task determination module 93 and a reply information generation module 94. In some embodiments, one or more of the dialogue intention determination module 91, the query condition determination module 92, the dialogue processing task determination module 93 and the reply information generation module 94 can be combined into one module. In some embodiments, the dialogue intention determination module 91 can be configured to perform semantic analysis on the received input information when conducting a dialogue with the user to determine the user's dialogue intention. The query condition determination module 92 can be configured to determine the dialogue strategy query condition according to the dialogue intention. The dialogue processing task determination module 93 can be configured to use the dialogue strategy query condition to query the preset dialogue strategy configuration file to determine the dialogue processing task of the dialogue intention; wherein the preset dialogue strategy configuration file is a configuration file of a tree data structure generated according to multiple different dialogue processing tasks and the dialogue strategy query condition corresponding to each dialogue processing task. The reply information generation module 94 can be configured to generate reply information by executing the dialogue processing task to complete the dialogue with the user. In one embodiment, the description of the specific implementation function can refer to the description of steps S101 to S104.

[0193] In one embodiment, the query condition determination module is further configured to perform the following operations:

[0194] Determine whether a dialogue processing task has been performed for the dialogue intent;

[0195] If yes, determine the dialogue strategy query condition according to the dialogue intent, the dialogue processing task previously executed for the dialogue intent, and the response information generated by the dialogue processing task previously executed;

[0196] If not, the dialogue strategy query condition is directly determined according to the dialogue intention. In one implementation, the description of the specific implementation function can refer to the description of step S201 to step S203.

[0197] In one embodiment, the reply information generation module is further configured to perform the following operations:

[0198] Determine whether a dialogue processing task of another dialogue intention has been executed before executing the dialogue processing task of the current dialogue intention;

[0199] If it has not been executed, the slot information required for the dialogue processing task of the current dialogue intent is obtained according to the input information;

[0200] If it has been executed, the intent types of the current conversation intent and other conversation intents are obtained respectively;

[0201] If the intent types of the current dialogue intent and other dialogue intents belong to different subtypes under the same preset main type, the slot information required for the dialogue processing task of the current dialogue intent is determined according to the slot information used when executing the dialogue processing task of the other dialogue intents;

[0202] If the intent types of the current dialogue intent and other dialogue intents belong to different preset main types, then the slot information required for the dialogue processing task of the current dialogue intent is obtained according to the input information and an information confirmation reminder message is output;

[0203] The dialog processing task is executed according to the slot information required by the dialog processing task of the current dialog intention, and the reply information is generated. In one implementation, the description of the specific implementation function can be found in step S301 to step S306.

[0204] In one embodiment, the reply information generation module is further configured to perform the following operations:

[0205] Performing semantic analysis on the input information to determine entity information contained in the input information, wherein the entity information may include named entity information, digital entity information, and time entity information;

[0206] Determine the entity relationship between the named entity information, the digital entity information, and the time entity information, and obtain the slot information required for the dialogue processing task of the current dialogue intention according to the entity information and the entity relationship. In one implementation, the description of the specific implementation function can be found in step S401 to step S402.

[0207] In one implementation of this embodiment, the reply information generation module is further configured to perform the following operations:

[0208] Determine whether the slot information required to perform the dialogue processing task is missing;

[0209] If so, guiding the user to input the missing slot information according to the missing slot information;

[0210] If not, the dialogue processing task is executed to generate reply information. In one implementation, the description of the specific implementation functions can refer to the description of step S501 to step S503.

[0211] In one embodiment, there are multiple dialogue processing tasks, and the reply information generation module is further configured to perform the following operations:

[0212] Store the dialogue processing task into the preset task stack;

[0213] Each dialog processing task is sequentially obtained and executed from the task stack, and task execution completion reminder information is output after all dialog processing tasks are executed. In one implementation, the description of the specific implementation function can be found in step S601 to step S602.

[0214] In one implementation of this embodiment, the information generation module is further configured to perform the following operations:

[0215] Determine whether the dialogue processing task is a preset abnormal dialogue processing task;

[0216] If so, the corresponding reply template is obtained from the preset reply template library according to the abnormal dialogue processing task, and an abnormal reminder is issued according to the reply template;

[0217] If not, then a reply message is generated by executing the dialogue processing task. In one implementation, the description of the specific implementation functions can refer to the description of step S701 to step S703.

[0218] In one implementation of this embodiment, the dialogue intention determination module is further configured to perform the following operations:

[0219] A preset intent classification model is used to perform semantic analysis on the input information to determine one or more conversation intentions of the user, wherein the preset intent classification model is trained based on training samples corresponding to multiple different conversation intentions.

[0220] The above-mentioned dialogue processing system is used to perform Figure 1-8 The embodiment of the dialogue processing method shown in the figure has similar technical principles, technical problems solved and technical effects produced. Technicians in this technical field can clearly understand that for the convenience and brevity of description, the specific working process and related instructions of the dialogue processing system can refer to the contents described in the embodiment of the dialogue processing method, which will not be repeated here.

[0221] Furthermore, the present invention also provides a task robot.

[0222] See attached Fig.11 , Fig.11 The task robot according to one embodiment of the present invention is exemplarily shown. Fig.11As shown, in this embodiment, the task robot includes a natural language understanding module M0 and a dialogue care module M1, wherein the natural language understanding module includes a multi-intention extraction module m1, a named entity extraction module m2, a digital entity conversion module m3, a time entity conversion module m4, and an entity relationship acquisition module m5, and the dialogue management module includes a scene management module m6, a slot information management module m7, a process control module m8, a task node processing module m9, a response generation module m10, a user information management module m11, and an exception handling module m12.

[0223] In one embodiment, the multi-intention extraction module m1 is configured to perform semantic analysis on the input information to obtain the user's conversation intention; the named entity extraction module m2 is configured to perform semantic analysis on the input information received during the conversation with the user to obtain the entity information in the input information; the digital entity conversion module m3 is configured to convert the digital information in the entity information into a standard digital format; the time entity conversion module m4 is configured to convert the time information in the entity information into a standard time format; the entity relationship acquisition module m5 is configured to determine the entity relationship of the entity information; the scene management module m6 is configured to switch the task scene according to the user's conversation intention; the slot information management module m7 is configured to fill in the slot information according to the entity information and the entity relationship; the process control module m8 is configured to The dialog processing flow is selected based on the dialog intention, task scenario and preset dialog strategy configuration file, and the dialog processing task is determined; the task node processing module m9 is configured to execute the current dialog processing task node; the reply generation module 10 is configured to generate a prompt message of completing the task after the current dialog processing task node is executed; the user information management module 11 is configured to manage the user's input information when executing the current dialog processing task node, and guide the user to input the missing slot information when it is determined that the slot information required by the current dialog processing task node is incomplete; the exception handling module m12 is configured to select a reply template from the preset template library according to the current dialog processing task node and the cause of the exception when the executed dialog processing task node is a preset exception node, and reply to the user according to the reply template.

[0224] The description of the specific functions implemented by the above-mentioned task robot can be found in steps S901 to S907. For the sake of brevity, they will not be repeated here.

[0225] It is understood by those skilled in the art that the present invention implements all or part of the processes in the method of the above embodiment, and can also be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of each of the above method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device, medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal and software distribution medium that can carry the computer program code. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0226] Furthermore, the present invention also provides a control device. In an embodiment of a control device according to the present invention, the control device includes a processor and a storage device. The storage device can be configured to store a program for executing the dialogue processing method of the above method embodiment, and the processor can be configured to execute the program in the storage device, which includes but is not limited to the program for executing the dialogue processing method of the above method embodiment. For ease of explanation, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The control device can be a control device device formed by various electronic devices.

[0227] Furthermore, the present invention also provides a computer-readable storage medium. In a computer-readable storage medium embodiment according to the present invention, the computer-readable storage medium can be configured to store a program for executing the dialogue processing method of the above method embodiment, and the program can be loaded and run by the processor to implement the above dialogue processing method. For ease of explanation, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The computer-readable storage medium can be a storage device formed by various electronic devices. Optionally, the computer-readable storage medium in the embodiment of the present invention is a non-temporary computer-readable storage medium.

[0228] Further, it should be understood that since the setting of each module is only for illustrating the functional units of the device of the present invention, the physical devices corresponding to these modules may be the processor itself, or a part of the software in the processor, a part of the hardware, or a part of the combination of software and hardware. Therefore, the number of each module in the figure is only schematic.

[0229] Those skilled in the art will appreciate that the modules in the device can be adaptively split or merged. Such splitting or merging of specific modules will not cause the technical solution to deviate from the principle of the present invention, and therefore, the technical solutions after splitting or merging will fall within the protection scope of the present invention.

[0230] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

Claims

1. A method for processing a conversation, It is characterized in that The method comprises: When communicating with a user, semantic analysis is performed on the input information received to determine the user's conversational intent; Determining a dialogue strategy query condition according to the dialogue intention; The dialogue strategy query condition is used to query a preset dialogue strategy configuration file to determine the dialogue processing task of the dialogue intention; wherein the preset dialogue strategy configuration file is a configuration file of a tree data structure generated according to a plurality of different dialogue processing tasks and the dialogue strategy query condition corresponding to each dialogue processing task; By executing the dialogue processing task, a reply message is generated to complete the dialogue with the user; The step of "generating reply information by executing the dialogue processing task" specifically includes: Determine whether a dialogue processing task of another dialogue intention has been executed before executing the dialogue processing task of the current dialogue intention; If it has not been executed, obtaining slot information required for the dialogue processing task of the current dialogue intention according to the input information; If it has been executed, then respectively obtaining the intent types of the current conversation intent and the other conversation intents; If the intention types of the current dialogue intention and the other dialogue intentions belong to different subtypes under the same preset main type, the slot information required for the dialogue processing task of the current dialogue intention is determined according to the slot information used when executing the dialogue processing task of the other dialogue intention; If the intention types of the current dialogue intention and the other dialogue intentions belong to different preset main types, then the slot information required for the dialogue processing task of the current dialogue intention is obtained according to the input information and information confirmation reminder information is output; The dialogue processing task is executed according to the slot information required by the dialogue processing task of the current dialogue intention, and reply information is generated.

2. The method for processing a conversation according to claim 1, It is characterized in that The step of "determining the dialogue strategy query condition according to the dialogue intention" specifically includes: Determining whether a dialogue processing task has been performed for the dialogue intention; If yes, determining the dialogue strategy query condition according to the dialogue intention, the dialogue processing task previously executed for the dialogue intention, and the reply information generated by the dialogue processing task previously executed; If not, the dialogue strategy query condition is directly determined according to the dialogue intention.

3. The dialog processing method according to claim 1, It is characterized in that The step of "obtaining slot information required for the dialogue processing task of the current dialogue intention according to the input information" specifically includes: Performing semantic analysis on the input information to determine entity information contained in the input information, wherein the entity information includes named entity information, digital entity information, and time entity information; Determine the entity relationship between the named entity information, the digital entity information, and the time entity information, and obtain the slot information required for the dialogue processing task of the current dialogue intention according to the entity information and the entity relationship; and / or, Before the step of "executing the dialogue processing task according to the slot information required by the dialogue processing task of the current dialogue intention", the method further includes: Determining whether slot information required to execute the dialog processing task is missing; If yes, guiding the user to input the missing slot information according to the missing slot information; If not, the dialogue processing task is executed to generate a reply message.

4. The method for processing a conversation according to claim 1, It is characterized in that The number of the dialogue processing tasks is multiple, and the step of "generating reply information by executing the dialogue processing tasks" also includes: Storing the dialog processing task in a preset task stack; Obtaining and executing each dialog processing task from the task stack in sequence, and outputting task execution completion reminder information after all dialog processing tasks are executed; and / or, The step of "generating reply information by executing the dialogue processing task" also includes: Determining whether the dialogue processing task is a preset abnormal dialogue processing task; If so, a corresponding reply template is obtained from a preset reply template library according to the abnormal dialogue processing task, and an abnormal reminder is issued according to the reply template; If not, generating a reply message by executing the dialogue processing task; and / or, The steps of "determining the user's conversation intention" specifically include: A preset intention classification model is used to perform semantic analysis on the input information to determine one or more conversation intentions of the user, wherein the preset intention classification model is trained based on training samples corresponding to multiple different conversation intentions.

5. A dialogue processing system, It is characterized in that The system comprises: A dialogue intention determination module, which is configured to perform semantic analysis on received input information when conducting a dialogue with a user to determine the user's dialogue intention; A query condition determination module, configured to determine a dialogue strategy query condition according to the dialogue intention; a dialogue processing task determination module, configured to use the dialogue strategy query condition to query a preset dialogue strategy configuration file to determine the dialogue processing task of the dialogue intention; wherein the preset dialogue strategy configuration file is a configuration file of a tree data structure generated according to a plurality of different dialogue processing tasks and the dialogue strategy query condition corresponding to each dialogue processing task; A reply information generating module, configured to generate reply information by executing the dialogue processing task to complete the dialogue with the user; The reply information generation module is further configured to perform the following operations: Determine whether a dialogue processing task of another dialogue intention has been executed before executing the dialogue processing task of the current dialogue intention; If it has not been executed, obtaining slot information required for the dialogue processing task of the current dialogue intention according to the input information; If it has been executed, then respectively obtaining the intent types of the current conversation intent and the other conversation intents; If the intention types of the current dialogue intention and the other dialogue intentions belong to different subtypes under the same preset main type, the slot information required for the dialogue processing task of the current dialogue intention is determined according to the slot information used when executing the dialogue processing task of the other dialogue intention; If the intention types of the current dialogue intention and the other dialogue intentions belong to different preset main types, then the slot information required for the dialogue processing task of the current dialogue intention is obtained according to the input information and information confirmation reminder information is output; The dialogue processing task is executed according to the slot information required by the dialogue processing task of the current dialogue intention, and reply information is generated.

6. The dialog processing system according to claim 5, It is characterized in that The query condition determination module is further configured to perform the following operations: Determining whether a dialogue processing task has been performed for the dialogue intention; If yes, determining the dialogue strategy query condition according to the dialogue intention, the dialogue processing task previously executed for the dialogue intention, and the reply information generated by the dialogue processing task previously executed; If not, the dialogue strategy query condition is directly determined according to the dialogue intention.

7. The dialog processing system according to claim 6, It is characterized in that The reply information generation module is further configured to perform the following operations: Performing semantic analysis on the input information to determine entity information contained in the input information, wherein the entity information includes named entity information, digital entity information, and time entity information; Determine the entity relationship between the named entity information, the digital entity information, and the time entity information, and obtain the slot information required for the dialogue processing task of the current dialogue intention according to the entity information and the entity relationship; and / or, The reply information generation module is further configured to perform the following operations: Determining whether slot information required to execute the dialog processing task is missing; If yes, guiding the user to input the missing slot information according to the missing slot information; If not, the dialogue processing task is executed to generate a reply message.

8. The dialog processing system according to claim 6, It is characterized in that The dialogue processing tasks are multiple, and the reply information generation module is further configured to perform the following operations: Storing the dialog processing task in a preset task stack; Obtaining and executing each dialog processing task from the task stack in sequence, and outputting task execution completion reminder information after all dialog processing tasks are executed; and / or, The reply information generation module is further configured to perform the following operations: Determining whether the dialogue processing task is a preset abnormal dialogue processing task; If so, obtaining a corresponding reply template from a preset reply template library according to the abnormal dialogue processing task, and issuing an abnormal reminder according to the reply template; If not, generating a reply message by executing the dialogue processing task; and / or, The dialogue intention determination module is further configured to perform the following operations: A preset intention classification model is used to perform semantic analysis on the input information to determine one or more conversation intentions of the user, wherein the preset intention classification model is trained based on training samples corresponding to multiple different conversation intentions.

9. A control device comprising a processor and a storage device, wherein the storage device is suitable for storing a plurality of program codes. It is characterized in that The program code is suitable for being loaded and run by the processor to execute the dialog processing method according to any one of claims 1 to 4.

10. A computer-readable storage medium having a plurality of program codes stored therein, It is characterized in that The program code is suitable for being loaded and run by a processor to execute the dialog processing method according to any one of claims 1 to 4.