nltk.corpus.wordnet 和 nltk.corpus.reader.wordnet 不同吗?

问题描述 投票:0回答:1

我正在查看有关 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 的结构吗?

python nltk wordnet
1个回答
0
投票

您可以在

wordnet 的示例用法
中找到 nltk.corpus.wordnet

的文档
© www.soinside.com 2019 - 2024. All rights reserved.