Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tigrinya_tokenizer-0.1.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tigrinya_tokenizer-0.1.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file tigrinya_tokenizer-0.1.1.tar.gz.

File metadata

  • Download URL: tigrinya_tokenizer-0.1.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for tigrinya_tokenizer-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e74ea2ebad7c66cb99fa2677e81dbdd5c7c0651c195a4144c8a2f00dc24b0ded
MD5 c8c278f45b3f048b1ac2fab9f5ee8183
BLAKE2b-256 79ce0e89f649c7f5fe089f77ef0a1ce5c780aaec986fb17bbc189f3c4728416c

See more details on using hashes here.

File details

Details for the file tigrinya_tokenizer-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for tigrinya_tokenizer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 86de99c853cc8708983e686f55bd23f3768fc53e5efa90ce1e9836170f2bff5b
MD5 af037014200ce042b6d5b3814f22aca1
BLAKE2b-256 19eea56476e26b6f19ac40d05453361320bfb7bd7161f6d3fefdcdae9022c38b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page