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

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

问题描述

我需要一个好的 python 模块来在预处理阶段提取文本文档.

我找到了这个

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

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

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

解决方案

你可能想试试 NLTK<预><代码>>>>从 nltk 进口 PorterStemmer>>>PorterStemmer().stem('并发症')

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

I found this one

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.

解决方案

You may want to try NLTK

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

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

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