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)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|