BounharAbdelaziz commited on
Commit
989591d
·
verified ·
1 Parent(s): 1c2f5ae

Upload dataset

Browse files

# Moroccan Darija Dataset (Filtered from FineWeb2)

This dataset contains Moroccan Darija samples extracted from the [FineWeb2](https://huggingface.co/datasets/Omartificial-Intelligence-Space/FineWeb2-Moroccan-Arabic) dataset.
The extraction was performed using a [custom model](https://huggingface.co/atlasia/SfaIA-Arabic-Dialect-Identifier/tree/main/) trained to classify Arabic dialects, including Moroccan Darija (here we used the version `model_binary_v3_1fpr.bin`).
Here, we kept samples with a high confidence score (above 0.9) for Moroccan Darija.
This dataset aims to advance research and development in Moroccan Darija NLP tasks.

---

## Dataset Description

Moroccan Darija, a widely spoken Arabic dialect in Morocco, is underrepresented in NLP resources. This dataset fills that gap by filtering FineWeb2 using an advanced classifier designed to accurately identify Moroccan Darija text. The resulting dataset is a valuable resource for tasks such as:
- Language modeling
- Sentiment analysis
- Machine translation
- Dialectal classification

---

## Extraction Methodology

1. **Base Dataset**: FineWeb2, a large-scale multilingual web dataset.
1. **First extraction using GlotLID**: [A version](https://huggingface.co/datasets/Omartificial-Intelligence-Space/FineWeb2-Moroccan-Arabic) with extraction using GlotLID.
2. **SfaIA Model**: A fasttext model trained to identify Arabic dialects, including Moroccan Darija with better performances than GlotLID.
3. **Pipeline**:
- Text samples from the [dataset](https://huggingface.co/datasets/Omartificial-Intelligence-Space/FineWeb2-Moroccan-Arabic) were passed through the SfaIA classifier.
- Only samples with a high confidence score (above 0.8) for Moroccan Darija were retained.

---

## Dataset Structure

- `text`: The raw text sample in Moroccan Darija.
- `prediction`:
- `prediction_confidence`: Model confidence score for each sample.
- `prediction_label`: Model predicted label.

Example entry:
```json
{
"text": "السلام عليكم، كيف دايرين؟",
"prediction": {
'prediction_confidence': 0.852466607093811,
'prediction_label': 'Morocco'
}
}

README.md ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ dataset_info:
3
+ features:
4
+ - name: text
5
+ dtype: string
6
+ - name: prediction
7
+ struct:
8
+ - name: prediction_confidence
9
+ dtype: float64
10
+ - name: prediction_label
11
+ dtype: string
12
+ splits:
13
+ - name: train
14
+ num_bytes: 6386386917.484202
15
+ num_examples: 24448025
16
+ download_size: 2817669136
17
+ dataset_size: 6386386917.484202
18
+ configs:
19
+ - config_name: default
20
+ data_files:
21
+ - split: train
22
+ path: data/train-*
23
+ ---
data/train-00000-of-00013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7aefd12f0832e201496d1e0af8afb80290a9f0eb217b6123b758b8080428f955
3
+ size 254374563
data/train-00001-of-00013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e8c97ea83f65d57659761df9c3628cc30ac74760503d46068c138892d07e4723
3
+ size 251934203
data/train-00002-of-00013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d456d00fc7ee31e8e769d108ba3562e291e922166393ed9a33e9718313e09b0
3
+ size 248371219
data/train-00003-of-00013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:799ace4d7437bf6b1c88537a877eae97cae22ae94cffd1f0acddf33b4bad79f7
3
+ size 244864515
data/train-00004-of-00013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e8adaeb0c803e5a1cc75bd73ef01d68f6160f1425271dd3a79f827cf164c11f
3
+ size 240581052
data/train-00005-of-00013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a4e24b1945fc366cf28a8cba541c5114ec2f6ed83defa26b995f1cc504fb7a6
3
+ size 236999392
data/train-00006-of-00013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f5d07ef67069d61dbbf755fa4a034f305a67f91d01e955eb7e3967b0af3fde8
3
+ size 233376679
data/train-00007-of-00013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:245e5cd3dbb7f9f0d609648f1755d895f2b5a8ab666540a316fd1505fb722fdf
3
+ size 229564765
data/train-00008-of-00013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a1bf8c447ceec90dab193bf35d7314d09193d1abfcad0a16d6a77e020acd1bd
3
+ size 225250110
data/train-00009-of-00013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8ee7f27dc1d561326e65ff8f0317030bf03c0607459ba53e843dc75ab5f6500
3
+ size 222102041
data/train-00010-of-00013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e01d830de560466384080c9998be54f1cbc9af334a680d8aae690106d5836486
3
+ size 214456053
data/train-00011-of-00013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ef2cba06bed09b11fcaca4067c69ffe45c1f6348e9664fa4915e15b9c8b9ece8
3
+ size 112647864
data/train-00012-of-00013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2dc4cca9bcf56b9232371d8b1cfcbba2585d0c82095f9aa3da0f9b725bcf9d5f
3
+ size 103146680