Stemmer for Maori language
Project description
Snowball stemmer for Maori language, implementing PorterStemmer (https://snowballstem.org/projects.html)
Maori snowball syntax written by kshepherd (https://github.com/kshepherd/maoristemmer)
Install
pip install py_maori_stemmer
Usage
To stem one word:
from py_maori_stemmer import MaoriStemmer
stemmer = MaoriStemmer()
stemmer.stemWord('waihangatia')
# waihanga
To stem a sentence:
from py_maori_stemmer import MaoriStemmer
stemmer = MaoriStemmer()
stemmer.stemWord('i waihangatia mō ngā akomanga kaupapa')
# ['i', 'waihanga', 'mō', 'ngā', 'akoma', 'kaupap']
Test
nosetests --nocapture -v
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py-maori-stemmer-0.0.3.tar.gz
(4.8 kB
view hashes)