Next, candidates are ranked by similarity between their context templates and the current dialogue context.
we represent the context d(x t 1 ) as a TF-IDF weighted bag-of-words vector and similarity is computed by a dot product of two context vectors.