标签: python
例如,输入USA,输出America。那是这样的模块吗?我将它用于自然语言处理。
答案 0 :(得分:6)
获取NLTK模块:http://nltk.org/install.html
导入语料库:http://nltk.org/data.html
玩arround:
>>> from nltk.corpus import wordnet as wn >>> wn.synsets('USA')