The invention discloses an emotion reply automatic generation method for an
open domain dialogue
system, and aims to enable the dialogue
system to automatically generate replies rich in content and appropriate in emotion according to input statements of a user. The method comprises the following steps: firstly, preprocessing input and reply statements of each sample in a corpus based on a
word embedding table and a VAD sentiment dictionary to obtain an input and reply
word embedding sequence and a sentiment embedding sequence; secondly, splicing
word embedding and emotion embedding to expand word embedding, introducing replied emotion distribution information into the model, and encoding a spliced sequence in an
encoder to obtain input and replied
semantic representation vectors containing emotion information; and finally, predicting approximation of conditional prior distribution and posteriori distribution by using
semantic representation vectors, sampling latent variables, and reconstructing replies and emotion distribution of the replies through the latent variables. When reply statements are generated, multiple replies are generated through multiple times of sampling, then the sequences are combined with the
sequence model and the VAD dictionary, automatic scoring is conducted from the perspective of grammar,
semantics and emotion of the replies, and the optimal reply isselected.