Downloads · 30 days
27
24% of all-time downloads
ruthuvikas1998/kannada-tokenizer
kannada-tokenizer is a machine learning model from ruthuvikas1998. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This repository contains a Byte-Level BPE (Byte Pair Encoding) tokenizer for the Kannada language, designed using the Hugging Face tokenizers library. The tokenizer is optimized for handling Kannada text, including pu…
Downloads · 30 days
27
24% of all-time downloads
All-time downloads
112
Public
Repo size
—
Likes
0
Public
Click a slice to open those files.
.json730 KB · 88%
From the Hugging Face model README
This repository contains a Byte-Level BPE (Byte Pair Encoding) tokenizer for the Kannada language, designed using the Hugging Face tokenizers library. The tokenizer is optimized for handling Kannada text, including pure Kannada, mixed-language text, numbers, punctuation, and special cases like URLs and emojis.
This tokenizer is pre-trained on a diverse Kannada text corpus and can be used for a variety of NLP tasks such as text classification, language modeling, and machine translation.
The tokenizer was trained on a large Kannada corpus, including Wikipedia articles, literary texts, and online content, ensuring a broad vocabulary coverage.
The tokenizer has been tested on multiple text categories:
Original text: ನಮಸ್ಕಾರ ಕನ್ನಡ ಭಾಷೆ
Encoded tokens: ['<s>', 'ನಮಸ', 'à³į', 'à²ķ', 'ಾ', 'ರ', 'Ġà²ķನ', 'à³į', 'ನಡ', 'Ġà²Ń', 'ಾ', 'ಷ', 'à³Ĩ', '</s>']
Token IDs: [0, 1461, 264, 278, 270, 272, 738, 264, 407, 386, 270, 323, 268, 1]
Decoded text: ನಮಸ್ಕಾರ ಕನ್ನಡ ಭಾಷೆ
Analysis:
Original text: ಕನ್ನಡ ನಾಡಿನ ಸಂಸ್ಕೃತಿ ಮತ್ತು ಪರಂಪರೆ
Encoded tokens: ['<s>', 'à²ķನ', 'à³į', 'ನಡ', 'Ġನ', 'ಾ', 'ಡ', 'ಿ', 'ನ', 'Ġಸ', 'à²Ĥ', 'ಸ', 'à³į', 'à²ķ', 'à³ĥ', 'ತ', 'ಿ', 'Ġಮತ', 'à³į', 'ತ', 'à³ģ', 'Ġಪರ', 'à²Ĥ', 'ಪರ', 'à³Ĩ', '</s>']
Token IDs: [0, 754, 264, 407, 298, 270, 280, 267, 266, 300, 275, 281, 264, 278, 412, 271, 267, 382, 264, 271, 265, 360, 275, 524, 268, 1]
Decoded text: ಕನ್ನಡ ನಾಡಿನ ಸಂಸ್ಕೃತಿ ಮತ್ತು ಪರಂಪರೆ
Analysis:
Original text: ನನ್ನ email ID ಇದು [email protected] ಆಗಿದೆ
Encoded tokens: ['<s>', 'ನನ', 'à³į', 'ನ', 'Ġ', 'e', 'm', 'a', 'i', 'l', 'Ġ', 'I', 'D', 'Ġà²ĩದ', 'à³ģ', 'Ġ', 'e', 'x', 'a', 'm', 'p', 'l', 'e', '@', 'e', 'm', 'a', 'i', 'l', '.', 'com', 'Ġà²Ĩà²Ĺ', 'ಿ', 'ದ', 'à³Ĩ', '</s>']
Token IDs: [0, 306, 264, 266, 225, 73, 81, 69, 77, 80, 225, 45, 40, 493, 265, 225, 73, 92, 69, 81, 84, 80, 73, 36, 73, 81, 69, 77, 80, 18, 469, 408, 267, 269, 268, 1]
Decoded text: ನನ್ನ email ID ಇದು [email protected] ಆಗಿದೆ
Analysis:
The repository consists of tokenizer files, configuration files, and documentation:
├── kannada_tokenizer/
│ ├── vocab.json
│ ├── merges.txt
│ ├── tokenizer.json
│ ├── tokenizer_config.json
│ ├── special_tokens_map.json
│ ├── config.json
├── README.md
This tokenizer is released under the MIT License.
If you use this tokenizer, please cite this repository.
For improvements and contributions, feel free to submit a Pull Request or open an Issue. 🚀