Skip to main content

BNLTK(Bangla Natural Language Processing Toolkit) is open-source python package for Bengali Natural Language Processing.

Project description

BNLTK

Build Status License: MIT

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
bnltk-0.7.6-py3-none-any.whl (11.2 kB) Copy SHA256 hash SHA256 Wheel py3
bnltk-0.7.6.tar.gz (8.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page