Skip to main content

Malayalam morphology analyser

Project description

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>

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

mlmorph-1.4.3.tar.gz (5.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mlmorph-1.4.3-py3-none-any.whl (5.7 MB view details)

Uploaded Python 3

File details

Details for the file mlmorph-1.4.3.tar.gz.

File metadata

  • Download URL: mlmorph-1.4.3.tar.gz
  • Upload date:
  • Size: 5.6 MB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for mlmorph-1.4.3.tar.gz
Algorithm Hash digest
SHA256 9913292be5584b4208615f85bb7929df9140aa5bb7befdc4a5a8701229781dce
MD5 fbad803124daa979ee1f9b23f1fa730f
BLAKE2b-256 f65dd9be3678c5101841cb1c5ebf68779719883e1dd32d240270026a5db13612

See more details on using hashes here.

File details

Details for the file mlmorph-1.4.3-py3-none-any.whl.

File metadata

  • Download URL: mlmorph-1.4.3-py3-none-any.whl
  • Upload date:
  • Size: 5.7 MB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for mlmorph-1.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 362940f23b2072f242802606829e2427a45df5ade260ee3dd85e15db7422a6ef
MD5 06baf75197e96603d53128f96bbe2273
BLAKE2b-256 118ee699ee48db4f8c563f00b01e1e2b2eaae937288996c8b43e3b45f959e554

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page