How to find synonyms based on word2vec

非 Y 不嫁゛ 提交于 2019-12-09 18:40:18

问题


I 'm working on word2vec model using gensim in Python, but I found that the result are the words having the same theme, synonyms are only part of the result.

Can I find synonyms of a word based on the work I have done?

Any replies will be appreciated!


回答1:


Word2vec tends to indicate similar words – but as you've probably seen, the kind of similarity it learns includes more than just pure synonyms.

For example, word2vec similarities include words that appear in similar contexts, such as alternatives including even opposites. (After all, 'hot' and 'cold' are very similar words in many ways – both adjectives, primarily relating to temperature, and also figuratively used in the same sorts of non-temperature contexts. Only in their contrast are they antonyms.)

You'll likely need to use other techniques (perhaps in concert with word2vec) for pure-synonym discovery.



来源:https://stackoverflow.com/questions/44386503/how-to-find-synonyms-based-on-word2vec

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!