相关疑难解决方法(0)

摆脱停用词和标点符号

我正在努力使用NLTK的限制词.

这是我的一些代码..有人能告诉我什么是错的吗?

from nltk.corpus import stopwords

def removeStopwords( palabras ):
     return [ word for word in palabras if word not in stopwords.words('spanish') ]

palabras = ''' my text is here '''
Run Code Online (Sandbox Code Playgroud)

python nltk stop-words

7
推荐指数
1
解决办法
3万
查看次数

标签 统计

nltk ×1

python ×1

stop-words ×1