Skip to main content

Robust Tigrinya Byte Pair Encoding (BPE) 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.7.tar.gz (3.0 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.7-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tigrinya_tokenizer-0.1.7.tar.gz
  • Upload date:
  • Size: 3.0 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.7.tar.gz
Algorithm Hash digest
SHA256 1fd68da1b66c96f99e79dc84ead1728daa1c922ac85cfa6573322b3e5693da64
MD5 a2f64c45664efbe90c5b51edcf326bb2
BLAKE2b-256 02dad062f49430f242ff42c1b1f846b7a0b18b9600aab7111c44046d4475e397

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tigrinya_tokenizer-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a8868d1be946f476781208aba1d1e358f9dfaf0b40462dacba2eed23d230943c
MD5 71ce768c96c3b560b400b35b78ccdf1c
BLAKE2b-256 ce5338adab301f520884e9bd14cd014d43b9461bbcc6a67504521cbd955edf9d

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