BnLemma-2.1
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | BnLemma-2.1 |
| نام | BnLemma |
| نسخه کتابخانه | 2.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Karigor |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/Kowsher/Bangla-NLP/tree/master/Bangla%20Feature%20Extraction |
| آدرس اینترنتی | https://pypi.org/project/BnLemma/ |
| مجوز | MIT |
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:
```python
>>> 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:
```python
>>> import BnLemma as lm
>>> s = "মানুষের জীবনটা পাচ্ছেন তাই কাজে লাগানো দরকার আমাদেরকে"
>>> bl = lm.Lemmatizer(root_file='root.txt', mapping_file='map.txt')
>>> s = bl.lemma(s)
>>> print(s)
```
Output:
```
মানুষ জীবন পাওয়া তাই কাজ লাগা দরকার আমাদের
```
نحوه نصب
نصب پکیج whl BnLemma-2.1:
pip install BnLemma-2.1.whl
نصب پکیج tar.gz BnLemma-2.1:
pip install BnLemma-2.1.tar.gz