我有运行 apache 和 django 的 AWS linux。我已经安装了 textbob 扩展,它通过 python shell 运行良好。但是,当我在 views.py 中使用它时,它总是给我 MissingCorpusError。
我已经下载了语料库(python -m textblob.download_corpora),并且该模块在 python shell 中运行良好。可能是什么问题?自从几天以来一直被困在这件事上。
以下是我收到的错误消息,
看起来您缺少此功能所需的一些数据。要下载必要的数据,只需运行 python -m textblob.download_corpora 或使用 NLTK 下载器下载缺少的数据:http ://nltk.org/data.html如果没有要解决问题,请在https://github.com/sloria/TextBlob/issues提交问题。