CoolFace
Apppublic

Saiteja/telugu-bpe

sourceHugging Faceupdated 2y agoView on Hugging Face
2likes
App README

Telugu Tokenizer Demo

This is a demo of a custom Telugu tokenizer trained on a large corpus of Telugu text. The tokenizer is designed to efficiently handle Telugu text while maintaining high compression ratios.

Features

  • Vocabulary Size: 50,000+ tokens
  • Compression Ratio: >3.0
  • Special Token Handling: Includes [UNK], [CLS], [SEP], [PAD], [MASK]
  • Telugu-specific: Optimized for Telugu character set (Unicode range: \u0C00-\u0C7F)

Usage

  1. 1.Enter Telugu text in the input box
  2. 2.Click "Submit"
  3. 3.View the tokenization results:
  4. 4.Tokens
  5. 5.Token IDs
  6. 6.Number of tokens
  7. 7.Text length
  8. 8.Compression ratio

Examples

The demo includes several example texts showcasing different aspects of Telugu text:

  • Basic greetings
  • Simple sentences
  • Complex sentences
  • Long paragraphs

Tokenizer Source

The tokenizer is available at: https://huggingface.co/Saiteja/telugu-bpe

Technical Details

  • Built using the 🤗 Tokenizers library
  • Uses WordPiece tokenization with Telugu-specific pre-tokenization rules
  • Handles Telugu Unicode characters effectively
  • Maintains high compression ratio while preserving token interpretability