We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
使用 NLTK 库 提供的停用词:
然后只需将您的字符串传递到以下函数中:
示例:
结果:
只需将尚未涵盖的任何单词添加到 NLTK 数组中即可。
Use the stopwords provided by the NLTK library:
Then simply pass your string into the following function:
Example:
Result:
Just add any words to your NLTK array that aren't covered already.
我认为没有此类库,您需要从 https://www.ranks.nl 下载这些单词/停用词。
然后将单词替换如下:
I think there are no libraries for such thing, you need to download those words from https://www.ranks.nl/stopwords.
And then do replace the words as follows:
这是一个包含英语停用词的数组。希望有帮助。来自 http://www.ranks.nl/stopwords (在前面的答案中提到)。
此外,这可能是对您有用的资源。
https://github.com/shiffman/A2Z-F16/树/gh-pages/week5-analysis
http://shiffman.net/a2z/文本分析/
Here's an array with english stopwords. Hope it helps. From http://www.ranks.nl/stopwords (mentioned in previous answer).
Also, this could be a helpful resource for you.
https://github.com/shiffman/A2Z-F16/tree/gh-pages/week5-analysis
http://shiffman.net/a2z/text-analysis/
这里有一个用于删除停用词的 Javascript 库:http://geeklad.com/remove-stop- JavaScript 中的单词
There's a Javascript Library for removing stopwords here: http://geeklad.com/remove-stop-words-in-javascript