Python是否有任何英文字典返回具有相同含义的单词列表?

时间:2013-09-01 00:46:44

标签: python

例如,输入USA,输出America。那是这样的模块吗?我将它用于自然语言处理。

1 个答案:

答案 0 :(得分:6)

获取NLTK模块:http://nltk.org/install.html

导入语料库:http://nltk.org/data.html

玩arround:

>>> from nltk.corpus import wordnet as wn
>>> wn.synsets('USA')