sayanbanerjee32's picture
Update README.md
65617ff verified

A newer version of the Gradio SDK is available: 5.9.0

Upgrade
metadata
title: Bengali Bpe Tokenizer
emoji: πŸ“ˆ
colorFrom: purple
colorTo: gray
sdk: gradio
sdk_version: 4.36.1
app_file: app.py
pinned: false
license: mit

Bengali BPE Tokenizer

Dataset

Multiple references of raw Bengali corpus are available at this GitHub link. Used following references from that for gathering raw bengali text for the purpose of training the tokenizer. - Tab-delimited Bilingual Sentence Pairs - These are selected sentence pairs from the Tatoeba Project. This has approximately 6,500 english to bengali sentence pairs. Only Bengali sentences are extracted for training the tokenization - IndicParaphrase - Only the input data from validation dataset of Bengali paraphrases are used for the tokenization. That dataset contains 10,000 Bengali sentences.

Tokenizer

The Tokenizer artifacts are available at https://huggingface.co/sayanbanerjee32/bengali_tokenizer

The HuggingFace Spaces Gradio App

The App takes one or more Bengali sentences as input provide following outputs

  1. Numeric tokens that represent the sentence (using encode function)
  2. Regenerated sentence using the tokens (using decode function)
  3. A visualization for each token to Bengali text mapping as explanation for the tokenization.