How to find similar words with FastText?

前端 未结 5 1684
清酒与你
清酒与你 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:02

    Use gensim,

    from gensim.models import FastText
    
    model = FastText.load(PATH_TO_MODEL)
    model.wv.most_similar(positive=['dog'])
    

    More info here

提交回复
热议问题