gensim.similarities

This package contains implementations of pairwise similarity queries.

Classes

MatrixSimilarity(corpus[, num_best, dtype, ...]) Compute similarity against a corpus of documents by storing the index matrix in memory.
Similarity(output_prefix, corpus, num_features) Compute cosine similarity of a dynamic query against a static corpus of documents (“the index”).
SparseMatrixSimilarity(corpus[, ...]) Compute similarity against a corpus of documents by storing the sparse index matrix in memory.
WmdSimilarity(corpus, w2v_model[, num_best, ...]) Document similarity (like MatrixSimilarity) that uses the negative of WMD as a similarity measure.