BNLTK(Bangla Natural Language Processing Toolkit) is open-source python package for Bengali Natural Language Processing.
Project description
BNLTK
BNLTK(Bangla Natural Language Processing Toolkit) is open-source python package for Bengali Natural Language Processing. It includes modules for Tokenization, Stemming, Parts of speech tagging. I'm looking forward to helping form contributors to make this look far better than this.
installation
pip install bnltk
Usage
Tokenizer
from bnltk.tokenize import Tokenizers
t = Tokenizers()
print(t.bn_word_tokenizer(' আমার সোনার বাংলা । '))
Stemmer
from bnltk.stemmer import BanglaStemmer
bn_stemmer = BanglaStemmer()
print(bn_stemmer.stem('খেয়েছিলো'))
Parts of Tagger
For using the Parts of Tagger you need to download some data files as follows:
from bnltk.bnltk_downloads import DataFiles
DataFiles().download()
After successfully downloading the files, then you can use this module.
pos_tagger = PosTagger()
pos_tagger.loader()
sentences = 'দুশ্চিন্তার কোন কারণই নাই'
print(pos_tagger.tagger(sentences))
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 Distribution
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 bnltk-0.7.6.tar.gz.
File metadata
- Download URL: bnltk-0.7.6.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63b65d12d7c5af076e09dee969063dafeae9472e147c3b9f664e1104a0bdc593
|
|
| MD5 |
761ce3cc63ba0eb44e4461984e3ba7ad
|
|
| BLAKE2b-256 |
3768818bb2872d6cb42336a8560e98070248d73be318a4d1f82722427dfb8565
|
File details
Details for the file bnltk-0.7.6-py3-none-any.whl.
File metadata
- Download URL: bnltk-0.7.6-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c04477c40bc6e6071c0a326696f52116c00ba11560e0f9873dc54f7b7a71055c
|
|
| MD5 |
5b3d39fb10b995739768b69fdcd83fd9
|
|
| BLAKE2b-256 |
0e47567ba84a5918c5b48cf61b205fd3ec60fa8cde228e18a3e7ba3c4ffbb8da
|