【发布时间】:2014-08-29 02:35:30
【问题描述】:
所以我对此比较陌生,我需要一些帮助。
所以我试图让 nltk 中的 Wordnet 使用 Open Multilingual WordNet。这是我来到的页面,它显示了如何做到这一点http://www.nltk.org/howto/wordnet.html
问题是当我尝试sorted(wn.langs()) 时出现此错误
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'WordNetCorpusReader' object has no attribute 'langs'
由于我使用的是 python 2.7,我知道它必须是 sorted(wn.langs) 而不是 sorted(wn.langs()),但无论哪种方式都会出现此错误。
谁能帮我解决这个问题?
【问题讨论】: