所以我相對較新,我想要一些幫助。NLTK Wordnet,錯誤排序(wn.langs())
所以我試圖讓nltk中的Wordnet使用Open Multi 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())
,但無論哪種方式都會出現此錯誤。
任何人都可以幫助我嗎?
謝謝!有效 :) – Nolohice 2014-09-27 15:09:34