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:'module'オブジェクトに属性'FrenchStemmer'がありません
誰かが以前にこのエラーを見たことがありますか?
これは、nltk.stemにFrenchStemmerというモジュールがないためです。
利用可能なフランス語のステマーはSnowballStemmer ()にあり、次の方法でアクセスできます。
import nltk stemmer=nltk.stem.SnowballStemmer('french')
またはによって
import nltk stemmer=nltk.stem.snowball.FrenchStemmer()