Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

malayalam_morpheme_splitter

An example based approach at seperating suffixes from Malayalam. Malayalam is rich in morphological variations and is highly agglutinative.

System Description

malayalam_morpheme_splitter is a Python package designed to split suffixes from Malayalam words using an example-based approach. The system comes with a set of malayalam root words and rules(examples) for suffix splitting. But users have the provision to add more root words and rules to improve the system performance if they notice incorrect outputs.

Installation

To install malayalam_morpheme_splitter, you can use pip:

pip install malayalam-morpheme-splitter

Usage

import malayalam_morpheme_splitter as mms

word_list = mms.morph_analysis('കരുതലിൻ്റെ') # ['കരുതൽ', 'ഇൻ്റെ']
word_list1 = mms.morph_analysis('ആനയെ കാണാൻ വനത്തിലേക്ക് പോവുക') # [['ആന', 'എ'], ['കാണാൻ'], ['വനം', 'ഇൽ', 'ഏക്ക്'], ['പോവുക']]

mms.read_all_examples() # returns all the examples in the database

mms.db_entry({'കരുതലിൻ്റെ':['കരുതൽ', 'ഇൻ്റെ']}) # add a new entry to DB

mms.root_word_entry('നികൃഷ്ടം') # add a new root word to DB

Functions

  • morph_analysis(sentence) : This function takes a string as input and returns a list containing segmentations.

Users can control or change the behaviour of the morpheme splitter. If you notice a certain kind of word is not split correctly, or a whord that should not be split is split, those can be fixed by adding data to the system userself:

  • read_all_examples() : Reads all the examples from the DB and returns them as a dictionary. This can be used to examine the current rules.

  • db_entry(inp) : This function takes a dictionary as input and adds it to the DB. Adding a new example will let the system learn that pattern and treat similar words in the way it i split in the given example.

  • root_word_entry(word) : This function take a string as input and adds it to DB. A word which you think shpuld not be split, can be added here.

Metadata

Release files for malayalam-morpheme-splitter 1.0.0b2

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

Source distribution (sdist)

Source distribution for malayalam-morpheme-splitter 1.0.0b2
File Size Uploaded Provenance Actions
malayalam_morpheme_splitter-1.0.0b2.tar.gz 300.9 kB Without provenance Details for malayalam_morpheme_splitter-1.0.0b2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for malayalam-morpheme-splitter 1.0.0b2
File Interpreter ABI Platform Actions
malayalam_morpheme_splitter-1.0.0b2-py3-none-any.whl Python 3 none any Details for malayalam_morpheme_splitter-1.0.0b2-py3-none-any.whl

Total release size: 606.7 kB

Release files / malayalam_morpheme_splitter-1.0.0b2.tar.gz

Download URL malayalam_morpheme_splitter-1.0.0b2.tar.gz
Size 300.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5453a102d8615a5e407af2444c747fc2504a840773b2ed8607f733890fe6c5f6
BLAKE2b-256 checksum
How to use checksums
6f90a3468ab9e0b96d2eb4749d5c7f2ca05504264dce3cb4773f995ed1a6835b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / malayalam_morpheme_splitter-1.0.0b2-py3-none-any.whl

Download URL malayalam_morpheme_splitter-1.0.0b2-py3-none-any.whl
Size 305.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b2034b94945ac0c496af2d660b59b50221cab71a8fd64a5b5bb833120aaa3a6
BLAKE2b-256 checksum
How to use checksums
748c7a58d97c7a317484acd09f8ca2d091a97501c8610e107fe4054d6ff020b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Security for malayalam-morpheme-splitter 1.0.0b2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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