本文介绍了如何基于word2vec查找同义词的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Python 中的 gensim 处理 word2vec 模型,但我发现结果是具有相同主题的单词,同义词只是结果的一部分.

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?

任何回复将不胜感激!

推荐答案

Word2vec 倾向于表示相似的词——但您可能已经看到,它学习的相似性不仅仅包括纯同义词.

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

例如,word2vec 相似性包括出现在相似上下文中的单词,例如包括甚至对立的替代词.(毕竟,'hot' 和 'cold' 在很多方面都是非常相似的词——都是形容词,主要与温度有关,也比喻用于同类的非温度上下文中.只有在它们对比时,它们才是反义词.)

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.)

您可能需要使用其他技术(可能与 word2vec 配合使用)进行纯同义词发现.

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

这篇关于如何基于word2vec查找同义词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 03:32