Skip to main content

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.

from bnltk.pos_tagger import BanglaPosTagger
t = BanglaPosTagger()
print(t.bn_pos_tag(' আমার সোনার বাংলা । আমি তোমায় ভালোবাসি । '))

Project details


Download files

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

Source Distribution

bnltk-0.7.5.tar.gz (7.8 kB view hashes)

Uploaded Source

Built Distribution

bnltk-0.7.5-py3-none-any.whl (11.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page