Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/363.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何在wordnet中获得相似的单词(而不仅仅是同义词)?_Python_Nlp_Nltk_Wordnet - Fatal编程技术网

Python 如何在wordnet中获得相似的单词(而不仅仅是同义词)?

Python 如何在wordnet中获得相似的单词(而不仅仅是同义词)?,python,nlp,nltk,wordnet,Python,Nlp,Nltk,Wordnet,如何使用wordnet获得相似的单词,而不仅仅是使用语法集及其引理的同义词 例如,如果您在wordnet在线工具()上搜索“快乐”。对于第一个synset,只有一个同义词(happy),但是如果你点击它(在S:link上),你会在“see-all”和“similo-to”单词中看到更多的单词,比如“journey” 我如何获得这些单词,以及它们在wordnet术语中的名称?我将python与nltk结合使用,最多只能得到语法集和引理(不包括超词等)

如何使用wordnet获得相似的单词,而不仅仅是使用语法集及其引理的同义词

例如,如果您在wordnet在线工具()上搜索“快乐”。对于第一个synset,只有一个同义词(happy),但是如果你点击它(在S:link上),你会在“see-all”和“similo-to”单词中看到更多的单词,比如“journey”

我如何获得这些单词,以及它们在wordnet术语中的名称?我将python与nltk结合使用,最多只能得到语法集和引理(不包括超词等)