The domain adaptation from document comprehension to dialog generation is feasible by taking the rich context of the speakers as a "document", current user's query as a "question" and the chatbot's response as an "answer".
in this attention-based model, the conditional probability in Equation 4 is defined as: where is a RNN hidden state in the decoder part for time j and c j = i h i is a context vector, a weighted combination of the annotation set memory (h 1 , ..., h Ts ) produced by encoding a source sentence s with length T s .