Dhiadev-tn/tunisian-darija-english
Viewer โข Updated โข 500 โข 45 โข 2
How to use Dhiadev-tn/darija-translator with Transformers:
# Use a pipeline as a high-level helper
# Warning: Pipeline type "translation" is no longer supported in transformers v5.
# You must load the model directly (see below) or downgrade to v4.x with:
# 'pip install "transformers<5.0.0'
from transformers import pipeline
pipe = pipeline("translation", model="Dhiadev-tn/darija-translator") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("Dhiadev-tn/darija-translator", dtype="auto")A Nano-Transformer for Tunisian Darija-to-English translation, built from scratch. Pre-trained on Moroccan Darija data (RTX 3050 Laptop), then fine-tuned on hand-crafted Tunisian pairs (RTX 4070 Desktop).
500 Tunisian pairs is a small foundation. Simple sentences show recognizable structure; complex cultural expressions are still limited. The dataset is actively growing toward 1,000 pairs and every retrain will be documented with a new BLEU score.
Dhia Azizi (@dhiadev-tn) GitHub: https://github.com/Dhiadev-tn/darija-translator Dataset: https://huggingface.co/datasets/Dhiadev-tn/tunisian-darija-english