【问题标题】:How can i do to get the list of stopwords using python如何使用 python 获取停用词列表
【发布时间】:2019-09-11 23:05:28
【问题描述】:

由于我的数据是法语,我该如何获取法语停用词的关键字列表。 stop_words=stopwords.words('french')

【问题讨论】:

    标签: python python-3.x pandas stop-words


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-09-29
      • 2011-06-25
      • 2019-09-10
      • 2015-05-30
      • 1970-01-01
      • 2018-07-21
      • 1970-01-01
      • 2021-04-23
      相关资源
      最近更新 更多