Python Interface for Malayalam morphology analyser
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)
| File | Size | Uploaded | |
|---|---|---|---|
| mlmorph-1.4.3.tar.gz | 5.6 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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}
|