Skip to main content

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


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page