需要一个python模块来阻止文本文档 [英] Need a python module for stemming of text documents

查看:93
本文介绍了需要一个python模块来阻止文本文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在预处理阶段,我需要一个很好的python模块来阻止文本文档.

I need a good python module for stemming text documents in the pre-processing stage.

我找到了这个

http://pypi.python.org/pypi/PyStemmer/1.0.1

但是我找不到提供的链接的文档.

but i cannot find the documentation int the link provided.

我知道在哪里可以找到文档或任何其他好的词干算法,请帮忙.

I anyone knows where to find the documentation or any other good stemming algorithm please help.

推荐答案

您可能想尝试 NLTK

You may want to try NLTK

>>> from nltk import PorterStemmer
>>> PorterStemmer().stem('complications')

这篇关于需要一个python模块来阻止文本文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆