Skip to main content

Python Interface for Malayalam morphology analyser

PyPI Version

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

Installation

Python 3 is required. Using with venv is recommended

$ pip install mlmorph

Usage

Morphological analysis example

from mlmorph import Analyser
analyser = Analyser()
analyser.analyse("കേരളത്തിന്റെ")

Gives

[('കേരളം<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()
generator.generate("കേരളം<np><genitive>")

Gives

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

Command line interface

$ python -m mlmorph --help
usage: __main__.py [-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>

Metadata

Release files for mlmorph 1.4.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mlmorph 1.4.3
File Size Uploaded
mlmorph-1.4.3.tar.gz 5.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for mlmorph 1.4.3
File Interpreter ABI Platform
mlmorph-1.4.3-py3-none-any.whl Python 3 none any Details

Total release size: 11.3 MB

Release files / mlmorph-1.4.3.tar.gz

Download URL mlmorph-1.4.3.tar.gz
Size 5.6 MB
Tags Source
SHA-256 checksum
How to use checksums
9913292be5584b4208615f85bb7929df9140aa5bb7befdc4a5a8701229781dce
BLAKE2b-256 checksum
How to use checksums
f65dd9be3678c5101841cb1c5ebf68779719883e1dd32d240270026a5db13612
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / mlmorph-1.4.3-py3-none-any.whl

Download URL mlmorph-1.4.3-py3-none-any.whl
Size 5.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
362940f23b2072f242802606829e2427a45df5ade260ee3dd85e15db7422a6ef
BLAKE2b-256 checksum
How to use checksums
118ee699ee48db4f8c563f00b01e1e2b2eaae937288996c8b43e3b45f959e554
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

1.4.3 This release

2 release files

1.4.0

1 release file

1.3.8

1 release file

1.3.7

1 release file

1.3.5

1 release file

1.3.4

1 release file

1.3.2

1 release file

1.3.1

1 release file

1.3.0

1 release file

1.2.2

1 release file

1.2.1

1 release file

1.2.0

1 release file

1.1.3

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.8

1 release file

1.0.7

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page