File size: 3,914 Bytes
4bd61c3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
---
title: NumidiaNLP
emoji: 🌍
colorFrom: red
colorTo: yellow
sdk: static
pinned: false
---

<div align="center">

# NumidiaNLP

### Natural Language Processing for Maghrebi Arabic

**Language Models · Resources · Evaluation · Reproducible Research**

</div>

---

## About

**NumidiaNLP** is a research initiative dedicated to Natural Language
Processing for **Maghrebi Arabic and North African digital language**.

Our research focuses on the linguistic diversity observed across
**Algeria, Morocco, and Tunisia**, including dialectal Arabic,
non-standard orthography, **Arabizi**, and multilingual
**code-switching**.

The broader objective is to develop reusable language models, datasets,
and evaluation resources for underrepresented Maghrebi language varieties.

---

## Research Focus

- Maghrebi Arabic language modeling
- Regional continued pretraining
- Algerian, Moroccan, and Tunisian Arabic
- Arabizi and Latin-script Maghrebi Arabic
- Arabic–French and multilingual code-switching
- Hate and offensive language detection
- Sentiment analysis
- Dialect identification
- Corpus construction and annotation
- Robust and reproducible NLP evaluation

---

## 🌍 MagharibiBERT

### A Regionally Adapted Language Model for Maghrebi Arabic

**MagharibiBERT** is a regional language model developed to provide
reusable contextual representations for heterogeneous Maghrebi Arabic.

It is adapted through large-scale continued pretraining over diverse
Maghrebi text representing linguistic variation from Algeria, Morocco,
and Tunisia.

The training resources preserve important characteristics of real-world
Maghrebi communication, including dialectal variation, non-standard
orthography, Arabizi, and multilingual code-switching.

The central research question is:

> **Can regional continued pretraining provide transferable language
> representations across Maghrebi countries and NLP tasks?**

🤗 **Model:**  
https://huggingface.co/NumidiaNLP/MagharibiBERT

---

## Regional Perspective

Maghrebi Arabic is not treated as a single homogeneous dialect.

Instead, we consider it a **linguistically diverse regional continuum**
with substantial variation across countries, communities, scripts,
platforms, and communication contexts.

Our research therefore investigates both:

- the value of **shared regional representations**, and
- the complementary strengths of **country-specific models**.

---

## Evaluation Principles

Our experimental methodology emphasizes:

- fixed train/validation/test partitions;
- multiple random seeds;
- validation-based checkpoint selection;
- Macro-F1 for imbalanced classification tasks;
- comparisons with general Arabic and regional language models;
- statistical analysis where appropriate;
- reporting of computational requirements;
- transparent reporting of limitations and negative results.

The objective is not merely to obtain the highest score on one dataset,
but to study **cross-country robustness, stability, and transferability**.

---

## Resources

| Resource | Description |
|---|---|
| 🤗 **MagharibiBERT** | Regional language model for Maghrebi Arabic |
| 📚 **Models** | Maghrebi and task-adapted NLP models |
| 📊 **Benchmarks** | Cross-country and cross-task evaluation |
| 🗂️ **Datasets** | Documented Maghrebi NLP resources when licensing permits |

---

## Reproducible Research

Where publication, licensing, and ethical requirements permit,
NumidiaNLP aims to release:

- pretrained models;
- evaluation code;
- benchmark configurations;
- dataset documentation;
- reproducible experimental protocols.

Each released resource is accompanied by documentation describing its
provenance, intended use, evaluation setting, and limitations.

---

<div align="center">

### NumidiaNLP

**Advancing NLP research for the linguistic diversity of the Maghreb**

🇩🇿 Algeria · 🇲🇦 Morocco · 🇹🇳 Tunisia

</div>