Skip to main content

Bengali Transformer for natural language processing using state of the art transformer(language model)

Project description

Bengali Transformer

Bengali Transformer for natural language processing using state of the art transformer(language model)

Thanks to huggingface transformers

Installation

pip install bntransformer

Tokenizer

Bert Multilingual Tokenizer

from bntransformer.bnbert import Tokenizer

tokenizer = Tokenizer()
tokens = tokenizer.tokenize('আমি ভাত খাই।')
print(tokens)
# output: ['আ', '##মি', 'ভ', '##াত', 'খা', '##ই', '।']

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

bntransformer-1.0.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

bntransformer-1.0-py3-none-any.whl (2.9 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