TITLE: Cosine Similarity between two sets of vectors?
QUESTION [13 upvotes]: I have words represented as vectors, and so I can compare two words using the cosine similarity of each word vector.
But, now I'd like to extrapolate that and compare two sentences, each being a set of word vectors.
What is the most robust way to go about this?
Should I compute the mean of each set of vectors and then compute the cosine-similarity of each mean vector?  Should I be normalizing the vectors first?
How does that compare to my naive approach of scoring each word pair and then simply taking the mean of the scores as the similarity between the two sets?
Any insights are greatly appreciated.
Thanks.

REPLY [2 votes]: Use this function n_similarity from the word2vec model in the python package gensim. http://radimrehurek.com/gensim/models/word2vec.html#gensim.models.word2vec.Word2Vec.n_similarity