我正在努力让NLTK和wordnet在Heroku上工作.我已经完成了
heroku run python
nltk.download()
wordnet
pip install -r requirements.txt
Run Code Online (Sandbox Code Playgroud)
但我得到这个错误:
Resource 'corpora/wordnet' not found. Please use the NLTK
Downloader to obtain the resource: >>> nltk.download()
Searched in:
- '/app/nltk_data'
- '/usr/share/nltk_data'
- '/usr/local/share/nltk_data'
- '/usr/lib/nltk_data'
- '/usr/local/lib/nltk_data'
Run Code Online (Sandbox Code Playgroud)
然而,我已经在/ app/nltk_data中查看过了,所以我不知道发生了什么.