public
Description: A python implementation of the porter2 stemmer: http://snowball.tartarus.org/algorithms/english/stemmer.html
Homepage: http://www.dirolf.com/project/pyporter2
Clone URL: git://github.com/mdirolf/pyporter2.git
pyporter2 / README
100644 16 lines (12 sloc) 0.307 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pyporter2: A python implementation of the Porter2 stemmer.
 
See http://snowball.tartarus.org/algorithms/english/stemmer.html
 
USAGE
-----
>>> import Stemmer
>>> stemmer = Stemmer.Stemmer('english')
>>> stemmer.stemWord('stemming')
'stem'
 
UNIT TESTS
----------
To run the unit tests do:
> python Stemmer.py