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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file bnltk-0.7.5.tar.gz.

File metadata

  • Download URL: bnltk-0.7.5.tar.gz
  • Upload date:
  • Size: 7.8 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.5.tar.gz
Algorithm Hash digest
SHA256 2495b075a4c687bacc20454237256d1f28279ffac327d6fa20a66fb95a7d6159
MD5 8d29e43eeb1b1840460e83346dcddb64
BLAKE2b-256 8b4bbcb96b8eac4fb93b4fd961f9207b3a8e65553bd9fd4d41ef3bbadc60693a

See more details on using hashes here.

File details

Details for the file bnltk-0.7.5-py3-none-any.whl.

File metadata

  • Download URL: bnltk-0.7.5-py3-none-any.whl
  • Upload date:
  • Size: 11.1 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 85015733ccbeeb18d8415b9858a65fca5f8d3b16685506259cd0f22c25809bbb
MD5 511f0afe4c4a328dd4daf6fa34464e38
BLAKE2b-256 ed88a2909285b38cbb0e05e057ffe646dbba3dbf31f6a9c7d98ad31b0a2d861f

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