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 also helped by Washik Wali Faieaz and Kawshik Ahmed Ornob 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 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.1.7.tar.gz (29.0 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.7-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lemx-0.1.7.tar.gz
  • Upload date:
  • Size: 29.0 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.7.tar.gz
Algorithm Hash digest
SHA256 e1d7620769445e7c4c58f2ab18785e9d86da81dd276c633d9db7c0a5ce8c60c9
MD5 96bc8f4f2267b23f928f32f40cd60829
BLAKE2b-256 7fd8a14db39f5559a6ecbfd62a35b8e76d93b803150208fe0f20ade820e292ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lemx-0.1.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 226a3d81a2b9fdae8f873424c1938c28fb2dc1853ab9445d26d0622410b68d08
MD5 47dde75b1b53da1cc8e018912224d85b
BLAKE2b-256 64d8d1b76f8c885899c1ec60396d599a227ca15aae3e9278da7f782b48633482

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