Skip to content

Simple rule-based Nepali stemmer. Flask web app deployed on Heroku platform. Created pip package.

License

Notifications You must be signed in to change notification settings

oya163/nepali-stemmer

Repository files navigation

Nepali Stemmer

This is a simple Nepali stemmer. It iteratively separates out the suffixes (postpositions) until no more separation can be processed. The algorithm is based on hindi-stemmer.

Features:

  • Iterative separation
  • Handles the postposition attached with punctuations carefully
    • Example: नेपाललाई, -> नेपाल लाई,
  • Basic text cleaning
  • Cross-verification with Nepali dictionary

How to install

pip install -r requirements.txt

pip install nepali-stemmer

How to run

from nepali_stemmer.stemmer import NepStemmer
nepstem = NepStemmer()
nepstem.stem("नेपालको एमाले पार्टीका झोले, मण्डलेहरु अमेरिका आउने रे !")

'नेपाल को एमाले पार्टी का झोले, मण्डले हरु अमेरिका आउने रे !'

Deployment

A simple flask based web app deployment

To-do:

  • Word transformation with stemming process
  • IR evaluation
  • Code-mixed data

References:

Contact

Email: oyashi

Note: Project created during COVID-19 quarantine out-of-boredom and necessity

About

Simple rule-based Nepali stemmer. Flask web app deployed on Heroku platform. Created pip package.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published