Skip to main content

A Banglish lemmatizer and word corrector using Levenshtein Distance Developped By Pronoy Kumar Mondal & Sadman Sadik Khan Under the supervision of Md. Sadekur Rahman In colaboration with DIU NLP & ML Research Lab.

Project description

LemX

LemX is a Banglish lemmatizer and word corrector utilizing Levenshtein Distance. It was developed by Pronoy Kumar Mondal and Sadman Sadik Khan under the supervision of Md. Sadekur Rahman, in collaboration with the DIU NLP & ML Research Lab.

Installation

LemX can be installed directly from PyPI using pip:

pip install lemx

Usage

Word Correction & Lemmatization

from lemx import Lemmatizer

lemmatizer = Lemmatizer()

# Correct and lemmatize a single word
incorrect_word = "amr"
corrected_word = lemmatizer.correct(incorrect_word)

print(f"Corrected word for '{incorrect_word}': {corrected_word}")

Sentence Correction & Lemmatization

from lemx import LemX

lemmatizer = LemX()

sentence = "ajkei ami valo asi"
corrected_sentence = lemmatizer.correct_sentence(sentence)

print(f"Corrected sentence: {corrected_sentence}")

Features

  • Banglish Word Lemmatization: Converts inflected forms to their base forms.
  • Banglish Word Correction: Uses Levenshtein Distance for error correction.
  • Lightweight & Easy to Use: Simple API for seamless integration.

Contributing

We welcome contributions! If you'd like to improve LemX, feel free to:

  • Open an issue for bug reports or feature requests.
  • Submit a pull request with your improvements.

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

lemx-0.1.6.tar.gz (28.9 kB view details)

Uploaded Source

Built Distribution

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

lemx-0.1.6-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

File details

Details for the file lemx-0.1.6.tar.gz.

File metadata

  • Download URL: lemx-0.1.6.tar.gz
  • Upload date:
  • Size: 28.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for lemx-0.1.6.tar.gz
Algorithm Hash digest
SHA256 a36dc6bd8dad86a7d68f721cdf6f335141d4db4350992c89e08a042dcd0788de
MD5 73bba0686755e88a0ef447293d69b394
BLAKE2b-256 3ef0a7de20e5341984cc043818088336fd612bcb117bce69b185fa9563931e41

See more details on using hashes here.

File details

Details for the file lemx-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: lemx-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 28.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for lemx-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2bc2a7a7f09757128b30300d2f1eea3eb86b79630cc38cfe3b5673a25befd11e
MD5 780d694744ec4df0934d73ca3736d56d
BLAKE2b-256 30259ad69bac291007e15dfd94627bf8b68131a6c4d920c3a0cbb6fc726975c2

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