【发布时间】:2019-09-11 23:05:28
【问题描述】:
由于我的数据是法语,我该如何获取法语停用词的关键字列表。
stop_words=stopwords.words('french')
【问题讨论】:
标签: python python-3.x pandas stop-words
由于我的数据是法语,我该如何获取法语停用词的关键字列表。
stop_words=stopwords.words('french')
【问题讨论】:
标签: python python-3.x pandas stop-words
您提供的代码表明您正在询问如何使用nltk 的停用词。我明白你的意思吗?在这种情况下,停用词集如下:
>>> import nltk
>>> from nltk.corpus import stopwords
>>> stop_words = set(stopwords.words('french'))
【讨论】: