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 details)

Uploaded Source

File details

Details for the file py-maori-stemmer-0.0.3.tar.gz.

File metadata

  • Download URL: py-maori-stemmer-0.0.3.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.6

File hashes

Hashes for py-maori-stemmer-0.0.3.tar.gz
Algorithm Hash digest
SHA256 c1429a0113de8bad8860774d19c49de16354c475a8926c496e69360ff8174125
MD5 f9e189ab47b3ef394e22ad7476521bdd
BLAKE2b-256 b41f168347512c8df5bec48f9e6e775218df1f36abdbedf0fd6013c34f80308f

See more details on using hashes here.

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