For each emotional word w z k in V z e , the attention score a jk at the time step j is determined by three parts: the previous hidden state s j−1 of the decoder, the encoded representation h M of the input post, and the embedding Emb(w z k ) of the k-th word in V z e .
given the partial generated response and the input post, the more relevant an emotional word is, the more influence it will have on the emotion feature vector at the current time step.