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.1.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.1-py3-none-any.whl (130.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lemx-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 1818571f6d2499c5f4e11f3875cdba008a1fdb58d739b14553b5e558becfe1a4
MD5 7aa24a2a6ba67576994aac5375d5aaa1
BLAKE2b-256 35637f78ea9357b39f66b4d3389e37c4624f880e58ed21f0a6d00cafd314a73a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lemx-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 520dec2993d51ba84372778910bdbedfcdfc278805145802f1885ab808fcce72
MD5 8f2658a1cf8bb004828ad7f34af52bf7
BLAKE2b-256 b115df266fef138b46b651b0884aa11b300165547479686e783d04598e74e73a

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