【发布时间】:2020-07-08 12:12:23
【问题描述】:
导入 textHero 时出现错误
#import the texthero library
import texthero as hero
import pandas as pd
错误:AttributeError:模块“nltk”没有属性“数据”
我再次安装了 textHero,但错误没有得到解决。
【问题讨论】:
导入 textHero 时出现错误
#import the texthero library
import texthero as hero
import pandas as pd
错误:AttributeError:模块“nltk”没有属性“数据”
我再次安装了 textHero,但错误没有得到解决。
【问题讨论】:
【讨论】:
将 gensim 版本指定为 3.8。为我工作
【讨论】:
导入“texthero”库后。它显示了一条错误消息:
ModuleNotFoundError:没有名为“gensim.sklearn_api”的模块
我已尝试安装“gensim.sklearn_api”,但还没有可用的模块。
另外,为旧版本的类似 python 的 3.6 和 3.7 创建了新的 anaconda 环境,但它显示了相同的错误消息。
我已经安装了旧版本的 texthero 及其工作
pip install texthero==1.0.5
旧版本的 texthero==1.0.5 与 python 版本如 3.6、3.7 和 3.8 非常兼容
[![在此处输入图片描述][2]][2]
【讨论】: