Robust Tigrinya Byte Pair Encoding tokenizer
Project description
Tigriyna_BPE_Tokenizer
A Byte Pair Encoding (BPE) tokenizer for the Tigrinya language, designed for low-resource NLP research and machine learning pipelines.
Tigrinya is a low-resource Semitic language, and most existing tokenizers are optimized for high-resource languages. This project aims to reduce token fragmentation, lower out-of-vocabulary (OOV) rates, and better capture Tigrinya morphology.
Features
- BPE-based subword tokenization for Tigrinya
- Optimized for low-resource settings
- Reduced OOV rate and token fragmentation
- Easy integration into NLP pipelines
- Reproducible tokenizer training and evaluation
Motivation
Tokenization plays a critical role in NLP system performance. Generic tokenizers often perform poorly on Tigrinya due to:
- Rich morphology
- Limited training data
- Underrepresentation in multilingual models
This project addresses these challenges by providing a tokenizer tailored specifically to the Tigrinya language.
Project Structure
Tigriyna_BPE_Tokenizer/
├── data/
│ ├── raw/ # Raw text data (ignored)
│ ├── processed/ # Processed text data (ignored)
├── tokenizer/
│ ├── train_bpe.py # Train BPE tokenizer
│ ├── encode.py # Encode text
│ └── decode.py # Decode tokens
├── experiments/ # Evaluation and analysis
├── requirements.txt
├── .gitignore
└── README.md
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tigrinya_tokenizer-0.1.3.tar.gz.
File metadata
- Download URL: tigrinya_tokenizer-0.1.3.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e76d1c1c9c4f9e8c99a7a39f6b7663018836083e9485a896e9af5bb715344972
|
|
| MD5 |
78531bc5d926b1156c5d86b7e6cbce4e
|
|
| BLAKE2b-256 |
75ab694c4be30e45ba2cc3e47249fb961901b25fc9348ac80343b8afbe8ccbd6
|
File details
Details for the file tigrinya_tokenizer-0.1.3-py3-none-any.whl.
File metadata
- Download URL: tigrinya_tokenizer-0.1.3-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a4303f0cf1042adc2d1e9fb53b05a08e5fe9dc5d9f4c2c2916cbe97a269e730
|
|
| MD5 |
3f2562a980f4fd58214405a614044ec2
|
|
| BLAKE2b-256 |
52a5b70400c68efcaf7b7820dee299ec22e201c776fac2a9f7ea432ee8b0fde2
|