我正在查看有关 wordnet 的 G4G 页面,并看到
from nltk.corpus import wordnet
。所以我正在尝试,但想查看文档并查看可用的方法等,但似乎找不到nltk.corpus.wordnet
,只有nltk.corpus.reader.wordnet
。
然后,我尝试:
from nltk.corpus import wordnet as WD1
from nltk.corpus.reader import wordnet as WD2
print(WD1 == WD2)
print(WD1 is WD2)
并得到:
False
False
有人可以帮我浏览 nltk/wordnet 的结构吗?