Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

AymanELAKKAOUI/Darija-n-gram

Domain:

natural language processing

Record type:

software
Creator:
Aym
Host:
# Darija Probabilistic N-gram Language Model This folder contains a small, self-contained training pipeline for a probabilistic Darija n-gram language model trained from the provided `data (1).rar` corpus. ## What it does - Reads the extracted corpus from `corpus/data` - Keeps all usable `.txt` content files and skips obvious tracker/noise files - Normalizes mixed-script Darija text - Evaluates multiple word-level n-gram orders on a held-out split - Selects the best order by validation perplexity - Retrains that model on the full dataset - Saves the trained model and a JSON training summary in `outputs/` ## Train ```powershell python train_ngram.py ``` Optional example: ```powershell python train_ngram.py --candidate-orders 2 3 4 --k 0.5 --min-freq 2 ``` ## Generate ```powershell python use_model.py --prompt "ana" --max-tokens 15 ``` ## Score text ```powershell python use_model.py --score "ana بغيت نمشي للسوق" ``` ## Outputs - `outputs/darija_ngram_model.pkl.gz`: trained model - `outputs/training_summary.json`: corpus stats, model choice, perplexity, and sample generations # Darija-n-gram

Visit

github.com

Languages

Arabic, Algerian Spoken

Similar

hindbertit04555/Darija-N-gram-modelAymanELAKKAOUI/Darija-Translation-extensiongeorgeedwardd/N-gram-ModelsWessi/N-gram-AmharicTekleab15/N-gram-Language-ModelsOptimizing n‑gram Order of an n‑gram Based Language Identification Algorithm for 68 Written Languages

hindbertit04555/Darija-N-gram-model

# Darija N-gram Language Model A probabilistic trigram language model implemented from scratch on a

AymanELAKKAOUI/Darija-Translation-extension

# LLM-powered RESTful Web Service for Translation to Moroccan Darija This university mini project d

georgeedwardd/N-gram-Models

Character-level n-gram models and Byte-Pair Encoding for language identification across Afrikaans, D

Wessi/N-gram-Amharic

# N-gram-Amharic This work is based on one version of the General Purpose Amharic Corpus (GPAC). Th

Tekleab15/N-gram-Language-Models

A project to create and analyze n-gram language models using Amharic corpus # N-gram Language Model

Optimizing n‑gram Order of an n‑gram Based Language Identification Algorithm for 68 Written Languages

Language identification technology is widely used in the domains of machine learning and text mining