US 12,229,519 B2
Method and apparatus for generating dialogue state
Xin Tian, Beijing (CN); Liankai Huang, Beijing (CN); Yingzhan Lin, Beijing (CN); Siqi Bao, Beijing (CN); Huang He, Beijing (CN); Fan Wang, Beijing (CN); Shuqi Sun, Beijing (CN); and Shiwei Huang, Beijing (CN)
Assigned to BEIJING BAIDU NETCOM SCIENCE TECHNOLOGY CO., LTD., Beijing (CN)
Filed by BEIJING BAIDU NETCOM SCIENCE TECHNOLOGY CO., LTD., Beijing (CN)
Filed on Jun. 9, 2022, as Appl. No. 17/806,086.
Claims priority of application No. 202110738781.4 (CN), filed on Jun. 30, 2021.
Prior Publication US 2022/0300717 A1, Sep. 22, 2022
Int. Cl. G06F 40/35 (2020.01)
CPC G06F 40/35 (2020.01) 5 Claims
OG exemplary drawing
 
1. A method for generating a dialogue state, performed by a terminal, comprising:
acquiring a target dialogue state of a previous round of dialogue and dialogue information of a current round of dialogue;
generating an initial dialogue state of the current round of dialogue according to the target dialogue state of the previous round of dialogue and the dialogue information of the current round of dialogue; wherein generating the initial dialogue state of the current round of dialogue according to the target dialogue state of the previous round of dialogue and the dialogue information of the current round of dialogue, comprises:
acquiring a first dialogue state generation model; and
obtaining the initial dialogue state of the current round of dialogue by inputting the target dialogue state of the previous round of dialogue and the dialogue information of the current round of dialogue into the first dialogue state generation model;
generating a target dialogue state of the current round of dialogue according to the initial dialogue state of the current round of dialogue and the dialogue information of the current round of dialogue; wherein generating the target dialogue state of the current round of dialogue according to the initial dialogue state of the current round of dialogue and the dialogue information of the current round of dialogue, comprises:
acquiring a second dialogue state generation model; and
obtaining the target dialogue state of the current round of dialogue by inputting the initial dialogue state of the current round of dialogue and the dialogue information of the current round of dialogue into the second dialogue state generation model;
wherein the first dialogue state generation model and the second dialogue state generation model are Transformer encoder-decoder pre-training models; and the first dialogue state generation model and the second dialogue state generation model comprise L transformer blocks respectively;
wherein the dialogue information of the current round of dialogue and the target dialogue state of the previous round of dialogue are inputted into the first dialogue state generation model, and bidirectional encoding and decoding is performed by L transformer blocks to generate the initial dialogue state of the current round of dialogue, and the initial dialogue state of the current round of dialogue and the dialogue information of the current round of dialogue are inputted into the second dialogue state generation model, and bidirectional encoding and decoding is performed by the L transformer blocks to generate the target dialogue state of the current round of dialogue.