Skip to content

Latest commit

 

History

History
32 lines (18 loc) · 679 Bytes

README.md

File metadata and controls

32 lines (18 loc) · 679 Bytes

KrovetzStemmer

Python binding to the C++ KrovetzStemmer package, originally distributed with the Lemur toolkit.

The extension is compatible with both python 2.6 and python 3.x.

Installation

The package is on PyPI so usually you just go:

pip install krovetzstemmer

Or you can choose to clone this repo, cd into it, and install the package from there:

pip install .

Usage

The usage is similar to the python package porterstemmer.

from krovetzstemmer import Stemmer
stemmer = Stemmer()
stemmer.stem('utilities')  # got: 'utility'
stemmer.stem(u'utilities')  # got: u'utility'

Contributors

  • Ruey-Cheng Chen
  • Reza Gharibi