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.

Source Distribution

bnltk-0.7.6.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bnltk-0.7.6-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

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

Hashes for bnltk-0.7.6.tar.gz
Algorithm Hash digest
SHA256 63b65d12d7c5af076e09dee969063dafeae9472e147c3b9f664e1104a0bdc593
MD5 761ce3cc63ba0eb44e4461984e3ba7ad
BLAKE2b-256 3768818bb2872d6cb42336a8560e98070248d73be318a4d1f82722427dfb8565

See more details on using hashes here.

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

Hashes for bnltk-0.7.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c04477c40bc6e6071c0a326696f52116c00ba11560e0f9873dc54f7b7a71055c
MD5 5b3d39fb10b995739768b69fdcd83fd9
BLAKE2b-256 0e47567ba84a5918c5b48cf61b205fd3ec60fa8cde228e18a3e7ba3c4ffbb8da

See more details on using hashes here.

Supported by

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