Skip to main content

A Banglish lemmatizer and word corrector using Levenshtein Distance Developped By Pronoy Kumar Mondal Under the supervision of Md. Sadekur Rahman & Sadman Sadik Khan.

Project description

LemX

LemX is a Banglish lemmatizer and word corrector utilizing Levenshtein Distance. It was developed by Pronoy Kumar Mondal, Washik Wali Faieaz and Kawshik Ahmed Ornob under the supervision of Md. Sadekur Rahman & Sadman Sadik Khan.

Installation

LemX can be installed directly from PyPI using pip:

pip install lemx

Usage

Word Correction & Lemmatization

from lemx import LemX

lemmatizer = LemX()

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

print(f"Corrected word for '{incorrect_word}': {corrected_word}")
# Response
Corrected word for 'amr': amar

Sentence Correction & Lemmatization

from lemx import LemX

lemmatizer = LemX()

# Correct and lemmatize a sentence
sentence = "ajkei ami valo asi"
corrected_sentence = lemmatizer.correct_sentence(sentence)

print(f"Corrected sentence: {corrected_sentence}")
# Response
ajke ami valo achi

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.2.0.tar.gz (130.6 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.2.0-py3-none-any.whl (130.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for lemx-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2a503ffff331332e834429ba31e6a637623b05617ff5c536a39f8199729c3e80
MD5 93a49ca8a7014e79411427959f47b80c
BLAKE2b-256 8b7f27e10265a24da125885bf3c163b71f2c48ac2e0f10ed25f016c5cf7f62f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lemx-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 130.9 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60e535744d95b1064f531a3d408d30bb9173b9a82509b81782e480e767de31b9
MD5 a9edd96fdcebf1c88a4dd6135f8fdf28
BLAKE2b-256 6062ee745870ebc046dbd4b91d4d9f795e2a2a2ed480fcd56130e369514ccfbc

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