如何使用python获取stopwords列表

2024-05-08 02:15:34 发布

您现在位置:Python中文网/ 问答频道 /正文

因为我的数据是法语的,所以我怎么才能得到法语中stopwords的关键字列表呢。 stop_words=stopwords.words('french')


Tags: 数据列表关键字stopwordsfrenchstopwords
1条回答
网友
1楼 · 发布于 2024-05-08 02:15:34

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

>>> import nltk
>>> from nltk.corpus import stopwords
>>> stop_words = set(stopwords.words('french'))

相关问题 更多 >