enlp.understanding.vectors.similar_words

enlp.understanding.vectors.similar_words(wvs, word, n=10)[source]

Find similar words to word

Parameters
wordstr

word to find most similar vectors, note it must be within vocabulary

wvsgensim.model

Trained word vector model

nint

Number of similar words to return.

Returns
most_similarlist

list of most similar words and their distance