Search code examples
pythontextnlp

AttributeError while loading textHero library


I am getting an error when importing textHero

#import the texthero library
import texthero as hero
import pandas as pd

Error : AttributeError: module 'nltk' has no attribute 'data'

I have installed textHero again but error did not get resolved.


Solution

  • Specify the gensim version to 3.8. worked for me