VS2012 で IronPython を使用して NLTK をインストールしようとしています。しかし、NLTK.book をインポートしようとすると、次のエラーが発生しました。NLTK.book は、本に付随するデータです。
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "D:\NLP\IronPython 2.7\lib\site-packages\nltk\book.py", line 21, in <module>
text1 = Text(gutenberg.words('melville-moby_dick.txt'))
File "D:\NLP\IronPython 2.7\lib\site-packages\nltk\corpus\util.py", line 68, in __getattr__
self.__load()
File "D:\NLP\IronPython 2.7\lib\site-packages\nltk\corpus\util.py", line 55, in _LazyCorpusLoader__load
try: root = nltk.data.find('corpora/%s' % zip_name)
LookupError:
**********************************************************************
Resource 'corpora/gutenberg' not found. Please use the NLTK
Downloader to obtain the resource: >>> nltk.download()
Searched in:
- 'C:\\Users\\John/nltk_data'
- '/usr/share/nltk_data'
- '/usr/local/share/nltk_data'
- '/usr/lib/nltk_data'
- '/usr/local/lib/nltk_data'
**********************************************************************
IronPath の検索パスを変更する方法を知りたいです。