如何使用python获取停用词列表

问题描述 投票:1回答:1

我如何才能获得法语中的停用词关键词列表,因为我的数据是法语。 stop_words=stopwords.words('french')

python python-3.x pandas stop-words
1个回答
0
投票

您提供的代码表明您正在询问如何使用nltk的停用词。我明白你的意思吗?在这种情况下,停用词集如下:

>>> import nltk
>>> from nltk.corpus import stopwords
>>> stop_words = set(stopwords.words('french'))
© www.soinside.com 2019 - 2024. All rights reserved.