Get most similar words, given the vector of the word (not the word itself)

前端 未结 2 2124
眼角桃花
眼角桃花 2021-02-01 05:31

Using the gensim.models.Word2Vec library, you have the possibility to provide a model and a \"word\" for which you want to find the list of most similar words:

2条回答
  •  忘掉有多难
    2021-02-01 06:02

    The method similar_by_vector returns the top-N most similar words by vector:

    similar_by_vector(vector, topn=10, restrict_vocab=None)
    

提交回复
热议问题