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.5.tar.gz (5.5 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.5-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tigrinya_tokenizer-0.1.5.tar.gz
  • Upload date:
  • Size: 5.5 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.5.tar.gz
Algorithm Hash digest
SHA256 8f37caccd44216c1d4bc019bc5f0ec1f3dd7ffa8501e95cbda76abea33bcd544
MD5 3087b341b8cc9a6b1e22f12e7a0f8c1e
BLAKE2b-256 63d6b73102bacde347ee20298bb2e2bf735ca91d66d596026ecc81f6e944fa54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tigrinya_tokenizer-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e005a8c8fb9bafe2ac5fbee688be1603360d83727bcb39ef4c0f79dad8778eaa
MD5 1810d4e9b21bc6931f5f297bdf5bd347
BLAKE2b-256 9f4aa473f362b1fc211c764da02d7477dff4df6d0d9e994c0236302cd019cd33

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