Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图初始化FrenchStemmer:
FrenchStemmer
stemmer = nltk.stem.FrenchStemmer('french')
错误是:
AttributeError:“模块”对象没有属性“FrenchStemmer”
有没有人见过这个错误?
That's because nltk.stem has no module called as FrenchStemmer.
The French stemmer available is in SnowballStemmer() and you can access it by
import nltk stemmer=nltk.stem.SnowballStemmer('french')
or by
import nltk stemmer=nltk.stem.snowball.FrenchStemmer()