小编use*_*006的帖子

在Heroku上找不到资源'corpora/wordnet'

我正在努力让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中查看过了,所以我不知道发生了什么.

python django heroku nltk wordnet

20
推荐指数
3
解决办法
3万
查看次数

标签 统计

django ×1

heroku ×1

nltk ×1

python ×1

wordnet ×1