I built an open, from-scratch MT pipeline + parallel corpus for Tunisian Darija (Arabizi) early baseline, and I'm growing it into a curated community corpus [P]
Our take
The recent emergence of a fully open machine translation (MT) pipeline and parallel corpus for Tunisian Darija, spearheaded by an 18-year-old student, represents a significant, albeit quietly revolutionary, step forward in low-resource natural language processing. The dedication and ingenuity demonstrated by this individual highlight a crucial gap in current NLP efforts – the persistent neglect of dialectal Arabic. While major players are focused on broad Arabic Modern Standard (MSA) models, dialects like Darija, spoken by millions, are often relegated to being processed *through* MSA, leading to inaccurate and ultimately unusable results. This project, as discussed in the recent post Is machine learning research worth it for now?, underscores the importance of supporting individual researchers and smaller teams tackling niche, yet vital, problems that might otherwise be overlooked by larger organizations. The existing tooling simply failed to account for Darija's unique orthography (the use of Arabizi, incorporating numerals to represent Arabic phonemes), further emphasizing the need for specialized approaches.
What’s particularly compelling is the developer’s pragmatic approach. Recognizing the immediate data bottleneck, they’ve openly shared a relatively small, hand-crafted parallel corpus (~553 pairs) alongside a Transformer model with just 15.6 million parameters, pre-trained from cleaned Moroccan Darija data. This transparency, combined with a commitment to ethically-sourced and consent-documented data collection – a welcome contrast to some of the more opaque data practices prevalent in the field – fosters collaboration and accelerates progress. The initial BLEU score of 3.89, while modest, is framed realistically as a "first honest baseline," demonstrating a grounded understanding of the challenges inherent in low-resource MT. The project also echoes concerns raised in Best models for generating red-team attacks? Also looking for public datasets, which asks about models and datasets for adversarial testing – this Darija project offers a valuable case study in the complexities of evaluating models trained on non-standard data. Considering the intense competition and resources dedicated to large language models, it’s easy to overlook the significant value of focused efforts like this one.
The broader implications of this work extend beyond Darija itself. It provides a blueprint for addressing the systemic underrepresentation of dialectal languages in NLP. The careful construction of an Arabizi-aware tokenizer, the deliberate choice of a smaller Transformer architecture, and the emphasis on ethical data collection are all lessons that can be adapted to other low-resource scenarios. Moreover, this project exemplifies a shift toward more community-driven and accessible AI development. By opening the code, data, and pipeline, the developer is actively inviting contributions and fostering a collaborative ecosystem – a model that stands in stark contrast to the increasingly proprietary nature of many AI endeavors. This aligns with the discussion around the sustainability of individual research, as presented in If DeepMind or Anthropic is doing your exact research topic, do you still continue?, highlighting the critical role of independent researchers in pushing boundaries beyond the scope of corporate labs.
Ultimately, the success of this Darija MT project will hinge on expanding the corpus and attracting contributors. The developer’s stated focus on quality control and consent documentation is crucial to ensure the long-term viability and ethical integrity of the initiative. It's a compelling demonstration of what can be achieved with ingenuity, resourcefulness, and a commitment to inclusivity, and it prompts a vital question: will the broader NLP community actively embrace and support these grassroots, dialect-focused efforts, or will they continue to be overshadowed by the pursuit of ever-larger, more generalized models?
I'm an 18-year-old independent student from Tunisia. I built and I'm leading an open, from-scratch machine-translation pipeline and parallel corpus for Tunisian Darija. Sharing it for feedback.
Why: Tunisian Darija, written in Arabizi (Latin letters + numerals like 3/7/9/5 for Arabic phonemes), has almost no open NLP resources. Existing Arabic tools route it through MSA and mishandle the orthography. To the best of my knowledge there was no open parallel
corpus or from-scratch baseline for it.
What I built (all open):
- Arabizi-aware SentencePiece BPE tokenizer (3/7/9/5 as protected symbols), shared 16k vocab.
- ~15.6M-param encoder–decoder Transformer, from scratch (no pretrained LM): transfer-learned from cleaned Moroccan Darija, then fine-tuned on hand-crafted Tunisian pairs.
- Full cleaning / training / eval pipeline.
Honest results & limitations: v1 BLEU is 3.89 on a small locked test set low, and I'll be upfront about it. The corpus is ~553 hand-crafted pairs, so data is the bottleneck, not architecture. I treat 3.89 as a first honest baseline to beat as the corpus grows.
Where I'm taking it: I'm expanding this into a larger, ethically-collected Darija corpus that I curate and validate consent-documented field collection, every pair provenance-tagged. I'm looking for contributors to help grow it, with every contribution reviewed
to keep quality and consent standards.
Looking for: technical feedback/critique, and anyone interested in contributing data or collaborating on low-resource / dialectal Arabic MT.
Links:
github repo: https://github.com/Dhiadev-tn/darija-translator
Hugging faces dataset: https://huggingface.co/datasets/Dhiadev-tn/tunisian-darija-english
hugging faces model: https://huggingface.co/Dhiadev-tn/darija-translator
[link] [comments]
Read on the original site
Open the publisher's page for the full experience