Skip to main content

Bangla Lemmatizer (BnLemma)

BnLemma is a powerful tool for getting the root words of the words used in any Bangla sentence. There is a pretrained model available with this package. This page gives a basic introduction to the package.

Installation:

pip install BnLemma

In Python a BnLemma is typically written as:

Usage:

>>>  import BnLemma as lm
>>>  s = "মানুষের জীবনটা পাচ্ছেন তাই কাজে লাগানো দরকার আমাদেরকে"  
>>>  bl = lm.Lemmatizer()
>>>  s = bl.lemma(s)
>>>  print(s)

Output:

মানুষ জীবন পাওয়া তাই কাজ লাগা দরকার আমাদের

If you want to use your own Root Word List/Word Mapping just load it while initiaizing thw BnLemma class

Usage:

>>>  import BnLemma as lm
>>>  s = "মানুষের জীবনটা পাচ্ছেন তাই কাজে লাগানো দরকার আমাদেরকে"  
>>>  bl = lm.Lemmatizer(root_file='root.txt', mapping_file='map.txt')
>>>  s = bl.lemma(s)
>>>  print(s)

Output:

মানুষ জীবন পাওয়া তাই কাজ লাগা দরকার আমাদের

Metadata

Release files for BnLemma 2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for BnLemma 2.1
File Interpreter ABI Platform
BnLemma-2.1-py3-none-any.whl Python 3 none any Details

Release files / BnLemma-2.1-py3-none-any.whl

Download URL BnLemma-2.1-py3-none-any.whl
Size 57.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b7d85baa1a392672a51e4b377181bd4f558c2d77019e6a707232d03e1ed254f
BLAKE2b-256 checksum
How to use checksums
0327ed00ae55f3bafbc00edda6d2b247af87a8c0bccb2bab3b5bb7e0b0d6a409
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.21.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.5

Release history Release notifications | RSS feed

This release

2.1 This release

1 release file

2.0

1 release file

1.9

1 release file

1.8

1 release file

1.7

1 release file

1.6

1 release file

1.5

1 release file

1.4

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

0.9

1 release file

0.8

1 release file

0.7

1 release file

0.6

1 release file

0.5

1 release file

0.4

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page