Human-computer dialogue method, device, electronic device and storage medium

By using the pre-order data structure to manage multiple commodities in human-machine dialogue, the problem in the prior art that multiple conversations are required for shopping for multiple commodities is solved, and the efficiency of online shopping is improved.

CN113590750BActive Publication Date: 2024-09-13BEIJING XIAOMI MOBILE SOFTWARE CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110875401.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-30
Publication Date
2024-09-13
Estimated Expiration
2041-07-30

AI Technical Summary

Technical Problem

The human-machine dialogue method in the existing technology can only be used to determine the shopping demand for a single product. If the user has needs for multiple products, multiple dialogue processes are required, resulting in low online shopping efficiency.

Method used

By adding a pre-order data structure, a variety of commodities are managed. When the user inputs an order keyword, the order is placed based on the finally established pre-order data structure, allowing multiple products to be managed in one conversation. Product management and ordering.

Benefits of technology

It improves the efficiency of online shopping. Users do not need to conduct separate conversations and orders for each product, simplifying the shopping process for multiple products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113590750B
    Figure CN113590750B
Patent Text Reader

Abstract

The present disclosure relates to a human-computer dialogue method, device, electronic device and storage medium, the method comprising: determining the semantic information corresponding to the dialogue information of this round for each round of dialogue information input by the user; determining the target slot corresponding to the entity included in the semantic information, if there is no pre-order data structure including the target slot before the dialogue, then creating a new pre-order data structure including the target slot, the pre-order data structure including at least one slot and at least one configurable item when each slot corresponds to a commodity order; outputting reply information for the dialogue information, the reply information is used to guide the user to input a new round of dialogue information; when the new round of dialogue information input by the user includes keywords for indicating ordering, placing an order according to the pre-order data structure finally established. The method of the present disclosure can improve the efficiency of online shopping.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a human-computer dialogue method, device, electronic device and storage medium. Background Art

[0002] In daily life, online shopping has become a norm. When shopping online, users’ shopping needs can be understood through human-computer dialogue. For example, the machine can conduct one or more rounds of dialogue with humans to determine the user’s shopping needs and place an order. Summary of the invention

[0003] In order to overcome the problems existing in the related art, the present disclosure provides a human-computer dialogue method, device, electronic device and storage medium.

[0004] According to a first aspect of an embodiment of the present disclosure, a human-computer dialogue method is provided, the method comprising:

[0005] For each round of dialogue information input by the user, determining semantic information corresponding to the dialogue information of this round;

[0006] Determine a target slot corresponding to an entity included in the semantic information, wherein the entity includes a product name and / or a product attribute;

[0007] If there is no pre-order data structure including the target slot before this round of dialogue, a new pre-order data structure including the target slot is created, wherein the pre-order data structure includes at least one slot and at least one configurable item when placing an order for the product corresponding to each slot;

[0008] Outputting reply information for the dialogue information, wherein the reply information is used to guide the user to input a new round of dialogue information;

[0009] In the case that the new round of dialogue information input by the user includes keywords for indicating order placement, the order placement operation is performed according to the pre-order data structure finally established.

[0010] In some embodiments, outputting reply information for the dialog information includes:

[0011] In the case where there is a slot with an empty slot value in the established pre-order data structure, the reply information is output according to the slot, and the reply information is used to guide the user to input dialogue information for updating the slot value of the slot.

[0012] In some embodiments, outputting reply information for the dialog information includes:

[0013] In the case that there are no slots with empty slot values ​​in the established pre-order data structure, a reply message for guiding the user to confirm the order is output.

[0014] In some embodiments, determining a target slot corresponding to an entity included in the semantic information includes:

[0015] In the preset configuration information, determine the target slot corresponding to the entity and the slot type of the target slot, the slot type includes a primary key type and a non-primary key type, the primary key type is the type of the slot corresponding to the product name, and the non-primary key type is the type of the slot corresponding to the product attribute;

[0016] If there is no pre-order data structure including the target slot before the current round of dialogue, a new pre-order data structure including the target slot is created, including:

[0017] In the case where the slot type corresponding to the target slot is a primary key type, if a pre-order data structure including the target slot does not exist before this round of dialogue, a new pre-order data structure including the target slot is created.

[0018] In some embodiments, the semantic information further includes an operation type corresponding to the entity, and the method further includes:

[0019] If a pre-order data structure including the target slot exists before this round of dialogue, the target slot included in the pre-order data structure is updated according to the operation type and the entity to obtain an updated pre-order data structure.

[0020] In some embodiments, the method further comprises:

[0021] Determining whether the slot values ​​corresponding to the slots included in the updated pre-order data structure are all empty;

[0022] When the slot values ​​corresponding to the slots included in the updated pre-order data structure are all empty, the updated pre-order data structure is deleted.

[0023] In some embodiments, outputting reply information for the dialog information includes:

[0024] Determine whether there is a slot with an empty slot value in the updated pre-order data structure;

[0025] In the case where there is a slot whose slot value is empty in the updated pre-order data structure, reply information corresponding to the slot whose slot value is empty in the updated pre-order data structure is output.

[0026] In some embodiments, the method further comprises:

[0027] In the case that there is no slot with an empty slot value in the updated pre-order data structure, it is determined in sequence whether there is a slot with an empty slot value in the pre-order data structure in the order of establishment of other established pre-order data structures from back to front, and in the case that it is determined that there is a slot with an empty slot value in any pre-order data structure, the reply information corresponding to the slot with an empty slot value in the updated pre-order data structure is output.

[0028] In some embodiments, the conversation information is input in text form through a client interface, and the outputting of the reply information includes:

[0029] The reply information is output through the client interface.

[0030] In some embodiments, the method further comprises:

[0031] Get the voice information input by the user in each round;

[0032] Performing voice recognition on the voice information input in each round to obtain the dialogue information input in each round;

[0033] The outputting the reply information includes:

[0034] Performing speech synthesis on the reply information to obtain a speech type reply information;

[0035] Output the voice-type reply information in a voice manner.

[0036] According to a second aspect of an embodiment of the present disclosure, a human-machine dialogue device is provided, the device comprising:

[0037] The semantic recognition module is configured to determine the semantic information corresponding to the dialogue information of each round input by the user;

[0038] A target slot determination module is configured to determine a target slot corresponding to an entity included in the semantic information, wherein the entity includes a product name and / or a product attribute;

[0039] A pre-order data structure establishment module is configured to create a new pre-order data structure including the target slot if the pre-order data structure including the target slot does not exist before the current round of dialogue, wherein the pre-order data structure includes at least one slot and at least one configurable item when placing an order for a product corresponding to each slot;

[0040] The output module is configured to output reply information for the dialogue information, wherein the reply information is used to guide the user to input a new round of dialogue information.

[0041] According to a third aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the human-computer dialogue method provided in the first aspect of the present disclosure are implemented.

[0042] According to a fourth aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a memory on which a computer program is stored; and a processor for executing the computer program in the memory to implement the steps of the human-computer dialogue method mentioned in the first aspect of the present disclosure.

[0043] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: when a user has a shopping demand for multiple commodities, the multiple commodities can be managed by adding a pre-order data structure, and because the order operation is performed according to the pre-order data structure finally established only when the new round of dialogue information input by the user includes keywords for indicating an order, it is possible to manage multiple commodities and place orders for multiple commodities during one dialogue process, so that when a user has a purchasing demand for multiple commodities, it is not necessary to conduct a dialogue process and place an order for each commodity separately, thereby improving online shopping efficiency.

[0044] It should be understood that the above general description and the following detailed description are exemplary and explanatory only and are not intended to limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0046] Figure 1 It is a schematic diagram of a system architecture according to an exemplary embodiment of the present disclosure.

[0047] Figure 2 is another schematic diagram of a system architecture according to an exemplary embodiment of the present disclosure.

[0048] Figure 3 The figure is a flow chart of a human-computer dialogue method according to an exemplary embodiment of the present disclosure.

[0049] Figure 4 It is a flow chart showing another human-computer dialogue method according to an exemplary embodiment of the present disclosure.

[0050] Figure 5 The present invention is a flowchart showing a method of updating a pre-order data structure according to an exemplary embodiment of the present invention.

[0051] Figure 6The figure is a flowchart of another method of updating a pre-order data structure according to an exemplary embodiment of the present disclosure.

[0052] Figure 7 It is a structural block diagram of a human-computer dialogue device according to an exemplary embodiment of the present disclosure.

[0053] Figure 8 It is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0054] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0055] Before introducing the human-computer interaction method provided by the present disclosure, the application scenarios involved in the various embodiments of the present disclosure are first explained. The present disclosure can be applied to the process of implementing a shopping order by conducting a human-computer interaction between an electronic device and a user.

[0056] It is understandable that when a user wants to shop online, such as ordering takeout, buying clothes online, etc., he usually needs to express his shopping needs. In this case, the user can have a human-computer dialogue with the electronic device. Through the human-computer dialogue process, the electronic device can understand the user's shopping needs and place a shopping order.

[0057] However, the inventors discovered during their research that the human-computer dialogue method in the related art is a process of one dialogue (a process that ultimately leads to an order placement operation after one or more rounds of dialogue) that can only be used to determine a user's shopping demand for one commodity. If a user has shopping demands for multiple commodities, multiple dialogue processes are required. Therefore, the human-computer dialogue method in the related art leads to low efficiency in online shopping.

[0058] In order to solve the above problems, a human-computer dialogue method device, an electronic device and a storage medium of the disclosed embodiment are proposed. When a user has a shopping demand for multiple commodities, the multiple commodities are managed by adding a pre-order data structure, and the order operation is performed according to the pre-order data structure finally established only when the new round of dialogue information input by the user includes keywords for indicating an order. Therefore, it is possible to manage multiple commodities and place orders for multiple commodities in one dialogue process. Therefore, when the user has a purchasing demand for multiple commodities, it is not necessary to have a dialogue process and place an order for each commodity separately, thereby improving the efficiency of online shopping.

[0059] It should be noted that the human-computer dialogue in the embodiments of the present disclosure may be a voice dialogue or a text dialogue.

[0060] In the voice dialogue scenario, the user can send voice messages to the electronic device and send multiple rounds of voice dialogue messages. The electronic device can use the human-computer dialogue method of the embodiment of the present disclosure to process the multiple rounds of voice messages and finally place a shopping order.

[0061] In a text conversation scenario, a user can input multiple rounds of text conversation information into the human-computer interaction interface of the electronic device's client, and the electronic device can process the multiple rounds of text information using the human-computer conversation method of the disclosed embodiment to ultimately place a shopping order.

[0062] Before describing the technical solution of the embodiment of the present disclosure in detail, the system architecture of the electronic device to which the embodiment of the present disclosure is applied is described.

[0063] like Figure 1 As shown, in some cases, when the human-computer dialogue is a voice dialogue, the system architecture may include a speech recognition (ASR, Automatic Speech Recognition) module, a natural language understanding (NLU, Natural Language Understanding) module, a state tracking (DST, Dialog State Tracker) module, a dialogue decision (POL, Dialogue Policy) module, a natural language generation (NLG, Natural Language Generation) module, a speech synthesis (TTS, Text To Speech) module and a database.

[0064] Among them, the voice recognition module is used to perform voice recognition on voice information to obtain dialogue information.

[0065] The natural language understanding module can use the Lr (Logistic Regression) model-based intention NLU model to identify the user's intention, and the xgboost-based multi-classification model to perform semantic recognition on each round of input dialogue information to obtain the semantic information corresponding to the dialogue information.

[0066] The state tracking module is used to determine the target slot corresponding to the entity included in the semantic information, and if there is no pre-order data structure including the target slot before this round of dialogue, a new pre-order data structure including the target slot is created.

[0067] The dialogue decision module is used to output response information for dialogue information.

[0068] The natural language generation module reads the NLG rule template and generates natural language dialogue, i.e., reply information.

[0069] The speech synthesis module is used to perform speech synthesis on the reply information to obtain the reply information of the speech type.

[0070] The database is used to store configuration information, merchant product name slot collections, etc.

[0071] like Figure 2 As shown, in other cases, when the human-computer dialogue is a text dialogue, the system architecture may also include a natural language understanding module, a state tracking module, a dialogue decision module, a natural language generation module and a database.

[0072] Figure 3 This is a flowchart of a human-computer dialogue method according to an exemplary embodiment. The method can be applied to electronic devices, such as mobile terminals or servers. Mobile terminals include: mobile phones, notebooks, tablet computers, desktop computers, smart speakers, smart TVs, wearable devices, smart robots, vehicle terminals, and terminals equipped with smart voice assistants. Servers include: local servers and cloud servers. The method includes:

[0073] S110, for each round of dialogue information input by the user, determining semantic information corresponding to the current round of dialogue information.

[0074] Semantic information can be understood as the actual meaning of the dialogue information. That is, for a dialogue information, it is a piece of data itself and has no meaning. After obtaining the semantic information through semantic recognition, the actual meaning of the dialogue information can be understood.

[0075] In the disclosed embodiment, the semantic information includes entities.

[0076] Herein, one round of conversation refers to a user inputting conversation information once, and an electronic device outputting a reply message in response to the conversation information.

[0077] S120, determining the target slot corresponding to the entity included in the semantic information.

[0078] The entity includes the product name and / or product attributes.

[0079] Exemplarily, the entity may be cola, Sprite, shirt, shorts, etc. It may also be a large cup, a small cup, a shirt color, a shorts length, etc.

[0080] Each entity can correspond to a slot. Since an entity can include a product name and / or product attributes, the slot corresponding to the product can be understood as a product unit that can be ordered. For example, the slot corresponding to the product can be food, beverages, snacks, tops, bottoms, inner wear, etc., all of which can be used as an orderable product unit. The slot corresponding to a product attribute can be understood as the category to which a product attribute belongs. For example, the slot corresponding to a product attribute can be the sweetness of a beverage, the volume of a beverage, the color of a top, the size of a bottom, the color of an inner wear, etc.

[0081] Among them, the slot corresponding to a certain entity can be regarded as the target slot corresponding to the entity, for example, the target slot corresponding to Coke is beverage, the target slot corresponding to Sprite is also beverage, and the target slot corresponding to a shirt is tops. Therefore, it can be understood that different entities can correspond to the same target slot.

[0082] For example, for a semantic information "give me a Big Mac meal", the entity includes "Big Mac meal", and the target slot corresponding to the entity is "food". For another example, for a semantic information "I want to buy a small cup of Coke", the entity includes "", and the target slot corresponding to the entity "Coke" is "drink", and the target slot corresponding to the entity "small cup" is "drink capacity".

[0083] S130: If there is no pre-order data structure including the target slot before this round of dialogue, a new pre-order data structure including the target slot is created.

[0084] The pre-order data structure includes at least one slot and at least one configurable item when placing an order for a commodity corresponding to each slot. The configurable item can be used to configure the above-mentioned commodity or commodity attribute.

[0085] After determining the target slot corresponding to the entity included in the semantic information, the pre-order data structure before the current round of dialogue can be matched to see whether there is a pre-order data structure including the target slot before the current round of dialogue. If not, a new pre-order data structure including the target slot is created.

[0086] Among them, there may be multiple situations for the pre-order data structure that does not include the target slot before this round.

[0087] In some cases, when this round is the first round of the conversation, no pre-order data structure is stored in the electronic device. In this case, the pre-order data structure of the target slot is not included before this round.

[0088] In other cases, when the current round is not the first round of the conversation, such as the second round, the third round, etc., the electronic device stores the pre-order data structure but does not store the pre-order data structure including the target slot.

[0089] For example, the electronic device stores a pre-order data structure (meal: Big Mac, drink: Sprite, snack: large fries), and when the conversation information of this round is "give me an ice cream", the target slot corresponding to the entity "ice cream" is "dessert". In this case, the pre-order data structure of the target slot is not included before this round. At this time, a new pre-order data structure including the target slot "dessert" can be created, for example, (dessert: ice cream).

[0090] Since the above steps S110-S130 are executed for each round of dialogue information input by the user, when the user has shopping needs for multiple commodities, even if there is no pre-order data structure including the target slot before this round of dialogue, a new pre-order data structure including the target slot can be created, thereby obtaining a pre-order data structure that can support multiple different types of commodities, thereby supporting the determination of shopping needs for multiple commodities.

[0091] If a pre-order data structure including the target slot exists before this round of dialogue, the pre-order data structure can be updated using the entity to obtain an updated pre-order data structure.

[0092] S140, outputting reply information for the dialogue information, where the reply information is used to guide the user to input a new round of dialogue information.

[0093] In the case where the new round of dialogue information input by the user includes keywords for indicating order placement, the order placement operation is performed according to the pre-order data structure that is finally established.

[0094] In the disclosed embodiment, regardless of whether a new pre-order data structure is created, reply information will be generated and output to the user to guide the user to input a new round of dialogue information.

[0095] It is understandable that in a new round of conversation, the user may continue to order or may complete the order and then place an order. In this case, when the new round of conversation information input by the user includes keywords for indicating an order, it can be understood that the user has completed the order and is placing an order. At this time, the order operation can be performed based on the pre-order data structure that is finally established.

[0096] Among them, the keywords for placing an order may include placing an order, placing an order, confirming, and no other keywords are needed.

[0097] By adopting the above method, when a user has a shopping demand for multiple commodities, the multiple commodities can be managed by adding a pre-order data structure, and because the order operation is performed according to the pre-order data structure finally established only when the new round of dialogue information input by the user includes keywords for indicating the order, it is achieved that multiple commodities can be managed and orders can be placed for multiple commodities during one dialogue process. Therefore, when the user has a purchase demand for multiple commodities, it is not necessary to conduct a dialogue process and place an order for each commodity separately, thereby improving the efficiency of online shopping.

[0098] In some possible implementations, the step of outputting reply information for the dialogue information may include:

[0099] When there is a slot with an empty slot value in the established pre-order data structure, reply information is output based on the slot, and the reply information is used to guide the user to input dialog information for updating the slot value of the slot; when there is no slot with an empty slot value in the established pre-order data structure, reply information is output to guide the user to confirm the order.

[0100] It is understandable that different reply information may be output in different situations.

[0101] In one case, when the user has not completed the order, the user needs to be reminded to supplement the unfinished order information. In the disclosed embodiment, since the pre-order data structure includes at least one slot, and each slot corresponds to a configurable item when the product is ordered, then when there is a slot with an empty slot value in the established pre-order data structure, that is, when there are still configurable items that need to be configured when the product is ordered, a dialog message can be output to guide the user to input and update the slot value of the slot.

[0102] When the reply information is output according to the slot whose slot value is empty, the slot whose slot value is empty may be included in the reply information.

[0103] Exemplarily, assume that after obtaining the dialogue information input by the user in this round, there are two established pre-order data structures, namely (Meal: Big Mac, Drink: Sprite, Snack: Large French Fries) and (Meal: Family Meal, Drink: "", Snack: ""). In this case, reply information can be output according to the slot whose value is empty, such as outputting "What should I choose for the drink and snack?"

[0104] In one case, when the user completes the order after the current round of conversation, the user needs to be reminded to place the order. When there are no empty slots in the established pre-order data structure, that is, when there are no configurable items that need to be configured when placing an order for the product, a reply message can be output to guide the user to confirm the order.

[0105] Exemplarily, assume that after obtaining the dialogue information input by the user in this round, there are two established pre-order data structures, namely (Meal: Big Mac Meal, Drink: Sprite, Snack: Large French Fries) and (Meal: Family Meal, Drink: Sprite, Snack: Chicken Wings). In this case, reply information can be output to guide the user to confirm the order, such as outputting "OK, is there anything else you need? If not, please place the order."

[0106] By adopting the above method, different reply information can be output accordingly according to whether there is a slot with an empty slot value in the established pre-order data structure, so that the reply information is more accurate, has a strong guiding effect on users, and further improves the user's online shopping efficiency.

[0107] In addition, considering that in some cases, the user may input dialogue information containing non-primary key type entities at the beginning of the dialogue, for example, the first sentence of this dialogue is "Give me a small cup", in which case no information about the product name can be obtained. If there is no pre-order data structure including the target slot before this round of dialogue, even if the non-primary key type slot is obtained, an order cannot be placed. In this case, a reply message can be output asking the user to re-enter the product, for example, please enter the product name first.

[0108] Thus, in some possible implementations, the step of determining the target slot corresponding to the entity included in the semantic information may include: in the preset configuration information, determining the target slot corresponding to the entity and the slot type of the target slot; in this case, if there is no pre-order data structure including the target slot before the current round of conversation, then the step of creating a new pre-order data structure including the target slot may include: when the slot type corresponding to the target slot is the primary key type, if there is no pre-order data structure including the target slot before the current round of conversation, then creating a new pre-order data structure including the target slot.

[0109] In the disclosed embodiment, configuration information may be preset, which records the correspondence between entities and slots, and the slot type corresponding to each slot. Then, after obtaining the semantic information corresponding to the dialogue information, the preset configuration information may be queried to determine the target slot corresponding to the entity included in the semantic information, and the slot type corresponding to the target slot.

[0110] Among them, the slot type includes primary key type and non-primary key type. The primary key type is the type of the slot corresponding to the product name, and the non-primary key type is the type of the slot corresponding to the product attribute.

[0111] For example, the slot types corresponding to the slots for food, beverages, snacks, tops, bottoms, and inner wear are primary key types. The slot types corresponding to the slots for beverage sweetness, beverage capacity, top color, bottom size, and inner wear color are non-primary key types.

[0112] In the disclosed embodiment, no matter which round of conversation information this is, if the slot type of the target slot corresponding to the entity is the primary key type, the product name information can be obtained in this case. Therefore, if there is no pre-order data structure including the target slot before the current round of conversation, a new pre-order data structure including the target slot can be created.

[0113] The following is an explanation of the process of creating a new pre-order data structure including the target slot. For example, assume the following scenario:

[0114] First round of dialogue information:

[0115] User: Give me a Big Mac.

[0116] It is determined that the entity is a Big Mac combo, and the target slot corresponding to the entity is a meal. Since this is the first round of dialogue, there is no pre-order data structure including the target slot before this round of dialogue. At this time, a new pre-order data structure including meals is created. In addition, according to the configuration information, it can be determined that the meal includes three primary key slots: meals, beverages, and snacks. Therefore, the pre-order data structure at this time is (meals: Big Mac combo, beverages: "", snacks: "").

[0117] At this time, the electronic device can output reply information for the first round of dialogue information, for example, output "What should I choose between drinks and snacks?"

[0118] Among them, Figure 4 As shown, the step of creating a pre-order data structure including the target slot may include the following two sub-steps: S410, creating a pre-order data structure including a target slot with an empty slot value. S420, writing an entity into the target slot with an empty slot value, thereby obtaining a target slot with an entity as the slot value.

[0119] In some possible implementations, combined with the foregoing content, it can be seen that when matching the pre-order data structure before the current round of dialogue to see whether there is a pre-order data structure including the target slot before the current round of dialogue, if there is a pre-order data structure including the target slot before the current round of dialogue, the entity can be used to update the pre-order data structure to obtain an updated pre-order data structure. The update may include modifying or deleting the content of the target slot in the pre-order data structure, and correspondingly, the operation type includes a modification type and a deletion type.

[0120] In this case, the semantic information may also include the operation type corresponding to the entity, and the pre-order data structure is updated using the entity to obtain an updated pre-order data structure, which may include: if a pre-order data structure including a target slot exists before this round of conversation, then the target slot included in the pre-order data structure is updated according to the operation type and the entity to obtain an updated pre-order data structure.

[0121] The following is an explanation of the process of using an entity to update the pre-order data structure. Using the above example, the first round of dialogue information remains unchanged, and the second round of dialogue information and the third round of dialogue information are as follows:

[0122] Second round of dialogue information:

[0123] User:Big Coke and Big Fries Bar.

[0124] The electronic device determines that the entities are large cola and large fries, the target slots corresponding to the entities are beverages and snacks, the operation type corresponding to large cola is modification, and the operation corresponding to large fries is modification, and detects that the previous pre-order data structure includes two target slots, beverages and snacks. At this time, the entity "large cola" can be used to modify the slot value corresponding to the target slot "beverage", and the entity "large fries" can be used to modify the slot value corresponding to the target slot "snack". Thus, the updated pre-order data structure is (meal: Big Mac combo, beverage: large cola, snack: large fries).

[0125] At this time, the electronic device can output reply information for the second round of dialogue information, for example, output "OK, is there anything else you need? If not, please place an order."

[0126] The above example describes the processing procedure of the modification process included in the update, that is, the processing procedure when the operation type is the modification type.

[0127] Among them, Figure 5As shown, when the operation type is a modification type, using the entity to update the pre-order data structure includes the following process: first, determine whether the target slot in the pre-order data structure is empty. If it is not empty, directly use the entity to update the target slot to obtain an updated pre-order data structure. If it is empty, initialize the target slot, and then use the entity to update the initialized target slot.

[0128] Information of the third round of dialogue:

[0129] User: I don’t want to drink Coke anymore, let’s switch to Sprite.

[0130] The electronic device determines that the entities are Coke and Sprite, and the target slots corresponding to the entities Coke and Sprite are both beverages. The operation type corresponding to Coke is delete, and the operation corresponding to Sprite is modify. It is also detected that the previous pre-order data structure includes the target slot of beverage. At this time, the slot value "Coke" corresponding to the target slot "beverage" can be deleted first. At this time, the pre-order data structure is (meal: Big Mac combo, beverage: "", snack: large French fries), and then the entity "Big Sprite" is used to modify the slot value corresponding to the target slot "beverage". Thus, the updated pre-order data structure is (meal: Big Mac combo, beverage: Big Sprite, snack: large French fries).

[0131] At this time, the electronic device can output reply information for the third round of dialogue information, for example, output "OK, is there anything else you need? If not, please place an order."

[0132] The above example describes the processing of the deletion and update processes included in the update, that is, the processing when the operation type is the deletion type and the update type.

[0133] Among them, Figure 6 As shown, when the operation type is the deletion type, using the entity to update the pre-order data structure includes the following process: first, determine whether the target slot in the pre-order data structure is empty. If it is not empty, directly delete the slot value corresponding to the target slot to obtain the updated pre-order data structure. If it is empty, you can execute the following steps.

[0134] In combination with the foregoing content, it can be known that when the operation type is the deletion type, the slot value corresponding to the target slot is deleted. In some cases, the user may delete all the slot values ​​of at least one slot in a pre-order data structure. Using the foregoing example, assuming that the first round of dialogue information remains unchanged and the second round of dialogue information remains unchanged, the third round of dialogue information becomes "User: Forget it, I don't want a Big Mac, a Large Coke, or large fries." In this case, the updated pre-order data structure obtained according to the dialogue information is (meal: "", beverage: "", snack: ""), and the product name cannot be obtained according to the pre-order data structure, so the pre-order data structure is meaningless. Therefore, in order to save memory resources, in some implementation methods, continue to refer to Figure 6 The human-computer dialogue method of the embodiment of the present disclosure may further include the following steps:

[0135] Determine whether the slot values ​​corresponding to the slots included in the updated pre-order data structure are all empty;

[0136] When the slot values ​​corresponding to the slots included in the updated pre-order data structure are all empty, the updated pre-order data structure is deleted.

[0137] It can be seen that, as shown in the above example, when the updated pre-order data structure is (meals: "", drinks: "", snacks: ""), the slot values ​​corresponding to all slots are empty. At this time, the updated pre-order data structure can be deleted.

[0138] By adopting the above method, when the slot values ​​corresponding to the slots included in the updated pre-order data structure are all empty, the updated pre-order data structure can be deleted, thereby saving memory resources.

[0139] In combination with the foregoing content, it can be seen that when there is a slot with an empty slot value in the established pre-order data structure, reply information can be output based on the slot. However, there can be multiple pre-order data structures. So when there are multiple pre-order data structures with empty slot values, there can be multiple ways of outputting reply information.

[0140] In some possible implementations, reply information may be output based on all slots whose slot values ​​are empty.

[0141] Exemplarily, assume that after obtaining the dialogue information input by the user in this round, there are two established pre-order data structures, namely (meal: beef noodles; spiciness: ""; portion size: 2 taels) and (meal: family meal, drink: "", snack: ""). In this case, reply information can be output according to the slot value of the empty slot, for example, output "How to choose the spiciness of beef noodles, and what drinks and snacks to choose in the family meal".

[0142] In some other possible implementations, reply information may be outputted sequentially for the slots with empty slot values ​​corresponding to the pre-order data structures. In this case, the step of outputting reply information for the dialogue information may include:

[0143] Determine whether there is a slot with an empty slot value in the updated pre-order data structure;

[0144] In the case where there is a slot whose slot value is empty in the updated pre-order data structure, outputting reply information corresponding to the slot whose slot value is empty in the updated pre-order data structure;

[0145] In the case that there is no slot with an empty slot value in the updated pre-order data structure, the pre-order data structure is determined in sequence from back to front in the order of establishment of other established pre-order data structures whether there is a slot with an empty slot value, and in the case that it is determined that there is a slot with an empty slot value in any pre-order data structure, the reply information corresponding to the slot with an empty slot value in any pre-order data structure is output.

[0146] In the disclosed embodiment, it is prioritized to determine whether there is a slot with an empty slot value in the updated pre-order data structure obtained by updating the current round of dialogue information. If so, reply information corresponding to the slot with an empty slot value in the updated pre-order data structure is output.

[0147] If it does not exist, then in the order of establishing other established pre-order data structures, determine in turn whether there is a slot with an empty slot value in the pre-order data structure, and when it is determined that there is a slot with an empty slot value in any pre-order data structure, output the reply information corresponding to the slot with an empty slot value in any pre-order data structure.

[0148] Exemplarily, assume that after obtaining the dialogue information input by the user in this round, there are three established pre-order data structures, namely the pre-order data structure established after the first round of dialogue information (meal: beef noodles; spiciness: ""; portion size: two taels), and the pre-order data structure established after the second round of dialogue information (meal: Big Mac meal, beverage: Large Coke, snack: chicken wings), and the pre-order data structure obtained after this round (fourth round) of dialogue information (meal: Family Meal, beverage: Large Coke, snack: "") obtained by updating the pre-order data structure obtained in the third round of dialogue information (meal: Family Meal, beverage: Large Sprite, snack: ""). In this case, you can first output "What snacks do you need in the Family Meal?"

[0149] Next, assume that the dialog information received from the user in the fifth round is "chicken wings", so the entity "chicken wings" and the corresponding operation type are modification types, and then the pre-order data structure (meal: family meal, beverage: large Sprite, snack: "") can be modified to (meal: family meal, beverage: large Sprite, snack: chicken wings). At this time, the corresponding updated pre-order data structure is (meal: family meal, beverage: large Sprite, snack: chicken wings). In this case, the updated pre-order data structure has slot There is no empty slot value in the pre-order data structure (meal: Big Mac, drink: Large Coke, snack: chicken wings). Then, we search for the pre-order data structure established after the first round of dialogue information (meal: beef noodles; spiciness: ""; portion size: 2 taels). In this case, we can first output "How do I choose the spiciness of the beef noodles?".

[0150] In other cases, if it does not exist, it can also be determined in random order whether there is a slot with an empty slot value in the pre-order data structure, and when it is determined that there is a slot with an empty slot value in any pre-order data structure, the reply information corresponding to the slot with an empty slot value in any pre-order data structure is output.

[0151] In some possible implementations, the human-computer interaction method can be applied to online voice conversation shopping scenarios. In this case, Figure 1 In the system architecture shown, the human-computer dialogue method may further include the steps of: obtaining voice information input by the user in each round; performing voice recognition on the voice information input in each round to obtain dialogue information input in each round. Accordingly, the step of outputting reply information may include: performing voice synthesis on the reply information to obtain voice-type reply information; and outputting voice-type reply information in the form of voice.

[0152] It is understandable that the smart voice speaker can have built-in speech recognition (ASR, Automatic Speech Recognition) module, natural language understanding (NLU, Natural Language Understanding) module, state tracking (DST, Dialog State Tracker) module, dialogue decision (POL, Dialogue Policy) module, natural language generation (NLG, Natural Language Generation) module, speech synthesis (TTS, Text To Speech) module and database.

[0153] In some other possible implementations, the human-computer interaction method can be applied to online text conversation shopping scenarios. In this case, Figure 2 In the system architecture shown, at this time, the dialogue information is input in text form through the client interface, and accordingly, the step of outputting the reply information may include: outputting the reply information through the client interface.

[0154] It is understandable that the smart terminal can have built-in natural language understanding (NLU) module, state tracking (DST) module, dialogue decision (POL) module, natural language generation (NLG) module and database.

[0155] The disclosed embodiments can also realize online shopping through text, thus enriching the shopping channels.

[0156] It should be noted that the above electronic device can also be an electronic device in a server. That is, the local smart speaker or smart terminal can complete the function of collecting audio data or text data, thereby sending the audio data or text data to the server for processing, and after receiving the reply information, the server sends the reply information to the local smart speaker or smart terminal for output.

[0157] It should be noted that in the examples of the above embodiments, the slots included in the pre-order data structure are all primary key slots. In practice, the slots included in the pre-order data structure may include primary key slots, and subsidiary non-primary key slots corresponding to some or all of the primary key slots. The pre-order data structure may include both primary key slots and non-primary key slots. The following is a brief example of some pre-order data structures:

[0158] (Dish: beef noodles; Spiciness: mild; Serving size: 2 taels);

[0159] (Meal: toast set; Snack: chicken wings, Specification: small portion).

[0160] It can be seen that the human-computer dialogue method of the embodiment of the present disclosure can not only realize the management of multiple commodities, but also can be refined to more fine-grained management such as the attributes of various commodities.

[0161] Figure 7 FIG. 7 is a structural block diagram of a human-machine dialogue device 700 according to an exemplary embodiment. Figure 7The device includes: a semantic recognition module 710, a target slot determination module 720, a pre-order data structure establishment module 730 and an output module 740. Among them:

[0162] The semantic recognition module 710 is configured to determine the semantic information corresponding to each round of dialogue information input by the user.

[0163] The target slot determination module 720 is configured to determine a target slot corresponding to an entity included in the semantic information, where the entity includes a product name and / or a product attribute.

[0164] The pre-order data structure establishing module 730 is configured to create a new pre-order data structure including the target slot if the pre-order data structure including the target slot does not exist before the current round of dialogue. The pre-order data structure includes at least one slot and at least one configurable item when placing an order for the product corresponding to each slot.

[0165] The output module 740 is configured to output reply information for the dialogue information, where the reply information is used to guide the user to input a new round of dialogue information.

[0166] In some embodiments, the output module 740 includes:

[0167] The first output submodule is configured to output the reply information according to a slot whose slot value is empty in the established pre-order data structure, wherein the reply information is used to guide the user to input dialogue information for updating the slot value of the slot.

[0168] The second output submodule is configured to output reply information for guiding the user to confirm the order when there are no slots with empty slot values ​​in the established pre-order data structure.

[0169] In some embodiments, the target slot determination module 720 is further configured to determine the target slot corresponding to the entity and the slot type of the target slot in preset configuration information, the slot type including a primary key type and a non-primary key type, the primary key type being the type of the slot corresponding to the product name, and the non-primary key type being the type of the slot corresponding to the product attribute; in this case, the pre-order data structure establishment module is further configured to create a new pre-order data structure including the target slot when the slot type corresponding to the target slot is the primary key type, if a pre-order data structure including the target slot does not exist before this round of dialogue.

[0170] In some embodiments, the semantic information further includes an operation type corresponding to the entity, and the apparatus 700 further includes:

[0171] The update module is configured to update the target slot included in the pre-order data structure according to the operation type and the entity if a pre-order data structure including the target slot exists before the current round of dialogue, so as to obtain an updated pre-order data structure.

[0172] In some embodiments, the apparatus 700 further comprises:

[0173] The slot value determination module is configured to determine whether the slot values ​​corresponding to the slots included in the updated pre-order data structure are all empty.

[0174] The pre-order data structure deletion module is configured to delete the updated pre-order data structure when the slot values ​​corresponding to the slots included in the updated pre-order data structure are all empty.

[0175] In some embodiments, the output module 740 includes:

[0176] The slot value determination submodule is configured to determine whether there is a slot with an empty slot value in the updated pre-order data structure.

[0177] The third output submodule is configured to output reply information corresponding to the slot value of the empty slot in the updated pre-order data structure when there is a slot with an empty slot value in the updated pre-order data structure.

[0178] The fourth output submodule is configured to, when there is no slot with an empty slot value in the updated pre-order data structure, determine, in sequence, whether there is a slot with an empty slot value in the pre-order data structure in the order of establishment of other established pre-order data structures from back to front, and, when it is determined that there is a slot with an empty slot value in any pre-order data structure, output reply information corresponding to the slot with an empty slot value in the updated pre-order data structure.

[0179] In some embodiments, the device 700 further includes: an acquisition module configured to acquire voice information input by the user in each round. A voice recognition module configured to perform voice recognition on the voice information input in each round to obtain the dialogue information input in each round; in this case, the output module 740 is further configured to perform voice synthesis on the reply information to obtain voice-type reply information; and output the voice-type reply information in the form of voice.

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

[0181] The present disclosure also provides a computer-readable storage medium on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the human-computer dialogue method provided by the present disclosure are implemented.

[0182] Figure 8 8 is a block diagram of an electronic device 800 according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0183] Reference Figure 8 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0184] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned human-computer dialogue method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0185] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0186] The power component 806 provides power to the various components of the electronic device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.

[0187] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0188] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0189] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0190] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0191] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0192] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned human-computer dialogue method.

[0193] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by a processor 820 of an electronic device 800 to complete the above-mentioned human-computer dialogue method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0194] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program that can be executed by a programmable device, and the computer program has a code portion for executing the above-mentioned human-computer dialogue method when executed by the programmable device.

[0195] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0196] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A human-computer dialogue method, It is characterized in that include: For each round of dialogue information input by the user, determining semantic information corresponding to the dialogue information of this round; Determine a target slot corresponding to an entity included in the semantic information, wherein the entity includes a product name and / or a product attribute; If there is no pre-order data structure including the target slot before this round of dialogue, a new pre-order data structure including the target slot is created, wherein the pre-order data structure includes at least one slot and at least one configurable item when placing an order for the product corresponding to each slot; Outputting reply information for the dialogue information, wherein the reply information is used to guide the user to input a new round of dialogue information; When the new round of dialogue information input by the user includes a keyword for indicating order placement, performing an order placement operation according to the pre-order data structure finally established; The semantic information also includes an operation type corresponding to the entity, and the operation type includes a modification type and a deletion type. The method further includes: If a pre-order data structure including the target slot exists before the current round of dialogue, the target slot included in the pre-order data structure is updated according to the operation type and the entity to obtain an updated pre-order data structure; The determining of the target slot corresponding to the entity included in the semantic information includes: In the preset configuration information, determine a target slot corresponding to the entity and a slot type of the target slot; The method further comprises: Determine whether there is a slot with an empty slot value in the updated pre-order data structure; In the case that there is no slot with an empty slot value in the updated pre-order data structure, it is determined in sequence whether there is a slot with an empty slot value in the pre-order data structure in the order of establishment of other established pre-order data structures from back to front, and in the case that it is determined that there is a slot with an empty slot value in any pre-order data structure, the reply information corresponding to the slot with an empty slot value in the updated pre-order data structure is output.

2. The method according to claim 1, It is characterized in that Outputting reply information for the dialogue information includes: In the case where there is a slot with an empty slot value in the established pre-order data structure, the reply information is output according to the slot, and the reply information is used to guide the user to input dialogue information for updating the slot value of the slot.

3. The method according to claim 1, It is characterized in that Outputting reply information for the dialogue information includes: In the case that there are no slots with empty slot values ​​in the established pre-order data structure, a reply message for guiding the user to confirm the order is output.

4. The method according to claim 1, It is characterized in that The slot type includes a primary key type and a non-primary key type. The primary key type is the type of the slot corresponding to the product name, and the non-primary key type is the type of the slot corresponding to the product attribute. If there is no pre-order data structure including the target slot before the current round of dialogue, a new pre-order data structure including the target slot is created, including: In the case where the slot type corresponding to the target slot is a primary key type, if a pre-order data structure including the target slot does not exist before this round of dialogue, a new pre-order data structure including the target slot is created.

5. The method according to claim 1, It is characterized in that The method further comprises: Determining whether the slot values ​​corresponding to the slots included in the updated pre-order data structure are all empty; When the slot values ​​corresponding to the slots included in the updated pre-order data structure are all empty, the updated pre-order data structure is deleted.

6. The method according to claim 1, It is characterized in that Outputting reply information for the dialogue information includes: In the case where there is a slot whose slot value is empty in the updated pre-order data structure, reply information corresponding to the slot whose slot value is empty in the updated pre-order data structure is output.

7. The method according to any one of claims 1 to 6, It is characterized in that The method further comprises: Get the voice information input by the user in each round; Performing voice recognition on the voice information input in each round to obtain the dialogue information input in each round; The outputting the reply information includes: Performing speech synthesis on the reply information to obtain a speech type reply information; Output the voice-type reply information in a voice manner.

8. A human-computer dialogue device, It is characterized in that include: The semantic recognition module is configured to determine the semantic information corresponding to the dialogue information of each round input by the user; A target slot determination module is configured to determine a target slot corresponding to an entity included in the semantic information, wherein the entity includes a product name and / or a product attribute; A pre-order data structure establishment module is configured to create a new pre-order data structure including the target slot if the pre-order data structure including the target slot does not exist before the current round of dialogue, wherein the pre-order data structure includes at least one slot and at least one configurable item when placing an order for a product corresponding to each slot; an output module, configured to output reply information for the dialogue information, wherein the reply information is used to guide the user to input a new round of dialogue information; The semantic information also includes an operation type corresponding to the entity, and the operation type includes a modification type and a deletion type. The device also includes: an updating module configured to update the target slot included in the pre-order data structure according to the operation type and the entity if a pre-order data structure including the target slot exists before the current round of dialogue, so as to obtain an updated pre-order data structure; The target slot determination module is further configured to determine the target slot corresponding to the entity and the slot type of the target slot in the preset configuration information; Output modules include: A slot value determination submodule is configured to determine whether there is a slot with an empty slot value in the updated pre-order data structure; The fourth output submodule is configured to, when there is no slot with an empty slot value in the updated pre-order data structure, determine, in sequence, whether there is a slot with an empty slot value in the pre-order data structure in the order of establishment of other established pre-order data structures from back to front, and, when it is determined that there is a slot with an empty slot value in any pre-order data structure, output reply information corresponding to the slot with an empty slot value in the updated pre-order data structure.

9. An electronic device, It is characterized in that include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 7.

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