【发布时间】:2016-06-01 18:53:56
【问题描述】:
据我所知,“compat”是 NLTK 的某个组件,TextBlob 是基于此构建的。奇怪的是,我过去曾导入过 TextBlob,所以这一定是最近的事情。我已经将 TextBlob 和 NLTK 都更新到了它们的最新版本,所以这不是问题所在。
this one 等类似问题基本上仍未解决,因为建议基本上是“不要导入所有 NLTK”。
编辑:我的代码如下
from textblob import TextBlob
【问题讨论】:
-
请显示整个回溯。
-
试试:
pip install -U nltk
标签: python nlp nltk importerror textblob