Response determining method and apparatus
OwnerBin HE, Yasheng WANG +2inventors
InventorsBin HE, Yasheng WANG, Yitong LI, Fei MI
Life of this patent
Estimating the term…
Abstract
This application discloses a response determining method. The method includes: obtaining a to-be-responded first user statement; determining first state information of the first user statement based on the first user statement by using a state determining network, where the first state information includes a first dialog type of the first user statement; and inputting the first user statement and the first dialog type into a response generation network, to obtain a response corresponding to the first user statement.
Claims20
A response determining method, wherein the method comprises:
- obtaining a to-be-responded first user statement;
- determining first state information of the first user statement based on the first user statement by using a state determining network, wherein the first state information comprises a first dialog type of the first user statement, and the first dialog type is a chit-chat dialog, a task-oriented dialog, a question answering dialog, or a retrieval dialog;
- and
- inputting the first user statement and the first dialog type into a response generation network, to obtain a response corresponding to the first user statement.
A response determining method, wherein the method comprises:
- obtaining a first user statement, a first dialog type of the first user statement, and a first response corresponding to the first user statement, wherein the first dialog type is a real type of the first user statement, and the first dialog type is a chit-chat dialog, a task-oriented dialog, a question answering dialog, or a retrieval dialog;
- determining first state information of the first user statement based on the first user statement by using a state determining network, wherein the first state information comprises a second dialog type of the first user statement;
- inputting the first user statement and the first dialog type into a response generation network, to obtain a second response corresponding to the first user statement;
- updating the state determining network based on a difference between the first dialog type and the second dialog type;
- and
- updating the response generation network based on a difference between the first response and the second response.
A response determining apparatus, wherein the apparatus comprises:
- at least one processor;
- and
- one or more memories coupled to the at least one processor and storing programming instructions for execution by the at least one processor to cause the apparatus to:
- obtain a to-be-responded first user statement;
- determine first state information of the first user statement based on the first user statement by using a state determining network, wherein the first state information comprises a first dialog type of the first user statement, and the first dialog type is a chit-chat dialog, a task-oriented dialog, a question answering dialog, or a retrieval dialog;
- and
- input the first user statement and the first dialog type into a response generation network, to obtain a response corresponding to the first user statement.
A response determining apparatus, wherein the apparatus comprises:
- at least one processor;
- and
- one or more memories coupled to the at least one processor and storing programming instructions for execution by the at least one processor to cause the apparatus to:
- obtain a first user statement, a first dialog type of the first user statement, and a first response corresponding to the first user statement, wherein the first dialog type is a real type of the first user statement, and the first dialog type is a chit-chat dialog, a task-oriented dialog, a question answering dialog, or a retrieval dialog;
- determine first state information of the first user statement based on the first user statement by using a state determining network, wherein the first state information comprises a second dialog type of the first user statement;
- input the first user statement and the first dialog type into a response generation network, to obtain a second response corresponding to the first user statement;
- update the state determining network based on a difference between the first dialog type and the second dialog type;
- and
- update the response generation network based on a difference between the first response and the second response.
Dependencies are inferred from the claim text.