Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Malayalam morphology analyser

Project description

PyPI Version

This is python interface for the Malayalam morphology analyser - mlmorph.


Python 3 is required. Using with venv is recommended

$ pip install mlmorph


Morphological analysis example

from mlmorph import Analyser
analyser = Analyser()


[('കേരളം<np><genitive>', 179)]

The second item in this result is the weight. Sometimes a single word can have multiple analysis. The analysis with less weight is the preferred analysis.

Morphological generator example

from mlmorph import Generator
generator = Generator()


(('കേരളത്തിന്റെ', 0.0),)

Command line interface

$ python -m mlmorph --help
usage: [-h] [-i INFILE] [-a] [-g] [-v]

optional arguments:
  -h, --help            show this help message and exit
  -i INFILE, --input INFILE
                        source of analysis data
  -a, --analyse         Analyse the input file strings
  -g, --generate        Generate the input file strings
  -v, --verbose         print verbosely while processing

Accepts strings from stdin too. For example:

$ python -m mlmorph -a
നിറങ്ങൾ   നിറം<n><pl>

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mlmorph, version 1.3.2
Filename, size File type Python version Upload date Hashes
Filename, size mlmorph-1.3.2.tar.gz (5.1 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page