No project description provided
Project description
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:
মানুষ জীবন পাওয়া তাই কাজ লাগা দরকার আমাদের
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file BnLemma-2.1-py3-none-any.whl.
File metadata
- Download URL: BnLemma-2.1-py3-none-any.whl
- Upload date:
- Size: 57.6 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b7d85baa1a392672a51e4b377181bd4f558c2d77019e6a707232d03e1ed254f
|
|
| MD5 |
2298d39ee436234b5151ae2ae7555116
|
|
| BLAKE2b-256 |
0327ed00ae55f3bafbc00edda6d2b247af87a8c0bccb2bab3b5bb7e0b0d6a409
|