我如何才能获得法语中的停用词关键词列表,因为我的数据是法语。 stop_words=stopwords.words('french')
stop_words=stopwords.words('french')
您提供的代码表明您正在询问如何使用nltk的停用词。我明白你的意思吗?在这种情况下,停用词集如下:
nltk
>>> import nltk >>> from nltk.corpus import stopwords >>> stop_words = set(stopwords.words('french'))