enlp.understanding.vectors.vector_maths

enlp.understanding.vectors.vector_maths(wvs, pwords=None, nwords=None, n=1)[source]

Perform word vector maths

Parameters
wvsgensim.model

Trained word vector model

pwordslist

list of positive words

nwordslist

list of negative words

nint

Number of close words to return.

Returns
most_similarlist

list of most similar words and their distance