How to find similar words with FastText?

前端 未结 5 1696
清酒与你
清酒与你 2021-02-08 18:41

I am playing around with FastText, https://pypi.python.org/pypi/fasttext,which is quite similar to Word2Vec. Since it seems to be a pretty new library

5条回答
  •  面向向阳花
    2021-02-08 19:07

    You should use gensim to load the model.vec and then get similar words:

    m = gensim.models.Word2Vec.load_word2vec_format('model.vec')
    m.most_similar(...)
    

提交回复
热议问题