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.1.9.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.9-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lemx-0.1.9.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.9.tar.gz
Algorithm Hash digest
SHA256 cb5e89d0737648dda44462f12f6c53bafe78a0558f4c117672c3f1164b725b45
MD5 eac904a05ef210053fd75b4f0ee5154d
BLAKE2b-256 1f8c0044577c5eec07a3943811b8cc2132500b8f4650536e079d949e666b34c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lemx-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 28.3 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 d4868514ea6ed69d1de74a67f924df1fd3d867b5f8d2ba7ed1e90ea8bd92c8e8
MD5 330fbad9b661a229d14bd821106bcb95
BLAKE2b-256 3c006cc96e2f3f4667047787138c17ecb909c75ca8c95ad2e629913bca0aff0d

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