BounharAbdelaziz commited on
Commit
079f2ec
·
verified ·
1 Parent(s): cb47cce

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.7) 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.7) 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.752466607093811,
'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: 6951048425.542308
15
+ num_examples: 26609632
16
+ download_size: 3168197720
17
+ dataset_size: 6951048425.542308
18
+ configs:
19
+ - config_name: default
20
+ data_files:
21
+ - split: train
22
+ path: data/train-*
23
+ ---
data/train-00000-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c58db6aea0aefd1033300e8fbf56eaabeac57c464415e98e3cca5e6e8a403d0d
3
+ size 264969611
data/train-00001-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96fd358b9daeef5589e05dba6945fe4a2aac7b2c7946202a1926aaeb5850ef7d
3
+ size 262956595
data/train-00002-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e8ae92c38a2d9f4359393fa1644a2d77bacd68b11ae4dcbb478b788038f8d82
3
+ size 259184112
data/train-00003-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0cf1ec523cc2941d20cfc4cce2ce19c045621eedf6bed4669fc7a37d0793abdb
3
+ size 256086132
data/train-00004-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d9aac1dcbeeb614b81fd0f7216d839a4b837e87bb6189594d6e58d16fb58b2f
3
+ size 252966461
data/train-00005-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92f873a2d140a807f6c2918c49efa15bc3b31d61eb34fe9b1eeca3b591a9d0b4
3
+ size 248483016
data/train-00006-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:12ccbc1d07e9e99a8cfb7d2934a85612227afac164ef9147f7b71e198cb65bee
3
+ size 245505258
data/train-00007-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:645ad0c88713afacc369a3446239aa1f91357ff67715a6830fc5beab481cbe12
3
+ size 242051359
data/train-00008-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ba26ad8d50c84dde009fff773d7cf51a0aa6aaee0542fe86188d940ae8e5943
3
+ size 237545851
data/train-00009-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89cc07c68f49e494694c9de39cc1b6e001dbc1151fcb6ab274865dfbcdd998b4
3
+ size 234511198
data/train-00010-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d048954554235af9630865963df53d217ffd94e2b43f357dfd972b3fba4361f
3
+ size 230685846
data/train-00011-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14722b18d194bd83bfa1da719d6e647019ea4a50111c8e4b4c7484d1ebe23e74
3
+ size 211241637
data/train-00012-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8dd6263986bd12b8168abc9b64ba3a33fad5febeda56d7390fd98bb1edac2beb
3
+ size 115788024
data/train-00013-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e752093de53ba6364febcc774610978be99db7ba0f40a9ea628977419c49e7fb
3
+ size 106222620