【发布时间】:2019-10-17 00:12:10
【问题描述】:
print(wn.synset('whale.n.01'))
此代码打印:
Synset('giant.n.04')
我有from nltk.corpus import wordnet as wn。其他一切正常。
【问题讨论】:
-
你好。您能否围绕“from nltk.corpus import wordnet as wn”消息添加更多信息?
-
是的,这不是一条消息,它是在我的程序顶部编写的 python 导入,它允许我访问 WordNet 及其功能。