Skip to main content

Extract a list with stem and stripped suffixes from a Malayalam word

Project description

Morpheme Generator Module for Malayalam

The Morpheme Generator helps to obtain a list with the stem and stripped suffixes from a given input word.

Requirement

Python3

Installation

You may create a virtual environment for installing the package.

python -m venv ENV_DIR
source ENV_DIR/bin/activate

Install the morpheme generator

pip install morph-gen

Otherwise, use

pip install --user morph-gen

Implementation

After installation, you can import the module to utilize the morph() function

import morph_gen
morph_gen.morph(wordi)

The above code will output the root of the input word wordi. Please note that the input word must be given in Malayalam.

For example,

if you need to find the root of the word "മകന്റെയുമാണെന്നാണ്", you may follow the below steps

import morph_gen
morph_gen.morph("മകന്റെയുമാണെന്നാണ്")

Output:

['മകന്‍ ', 'ന്റെ', 'ഉം', 'ആണ്', 'എന്ന്', 'ആണ്']

##Licensed under GNU GPL v3.0.

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

morph_gen-1.1.1.tar.gz (353.9 kB view hashes)

Uploaded Source

Built Distribution

morph_gen-1.1.1-py3-none-any.whl (372.0 kB view hashes)

Uploaded Python 3

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