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 | Actions Reset |
|---|---|---|---|---|
| BnLemma-2.1-py3-none-any.whl | Python 3 | none | any | Details for BnLemma-2.1-py3-none-any.whl |
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
|
Security for BnLemma 2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.