mohammedaly22 commited on
Commit
008d2e0
·
verified ·
1 Parent(s): 4ababf1

v3: real code-switching vocabulary (intern, sprint, stakeholder...), 500K examples

Browse files
Files changed (5) hide show
  1. README.md +16 -16
  2. dataset_stats.json +21 -20
  3. test.parquet +2 -2
  4. train.parquet +2 -2
  5. validation.parquet +2 -2
README.md CHANGED
@@ -46,9 +46,9 @@ This corpus trains a model to repair that, **without touching text that is genui
46
  | **Pure Arabic in** | `أنا رايح البيت دلوقتي` |
47
  | **Pure Arabic out** | `أنا رايح البيت دلوقتي` — unchanged |
48
 
49
- - **475,945 examples** across **9 dialect labels**
50
- - **30% pass-through rows** where the correct answer is *change nothing*
51
- - **1,380,376 labelled spans**, tagged by category
52
  - Zero train/test leakage, zero token/tag misalignment (both verified — see *Quality guarantees*)
53
 
54
  ---
@@ -121,10 +121,10 @@ The category is part of the label because the same characters convert differentl
121
 
122
  | Category | Count | Input | Output |
123
  |---|---|---|---|
124
- | `CS` | 1,362,606 | `انترن` | `intern` |
125
- | `ACRONYM` | 9,001 | `ايه اي` | `AI` |
126
  | `EMAIL` | 4,370 | `احمد ات جيميل دوت كوم` | `ahmed@gmail.com` |
127
- | `ENTITY` | 4,399 | `اورانج انوفيشن ايجيبت` | `Orange Innovation Egypt` |
128
  | `NUMBER` | 0 | `تو زيرو تو فور` | `2024` |
129
 
130
  ---
@@ -133,9 +133,9 @@ The category is part of the label because the same characters convert differentl
133
 
134
  | Split | Rows | Pass-through | Spans |
135
  |---|---|---|---|
136
- | `train` | 428,383 | 128,581 (30.0%) | 1,242,621 |
137
- | `validation` | 23,595 | 7,061 (29.9%) | 68,259 |
138
- | `test` | 23,967 | 7,141 (29.8%) | 69,496 |
139
 
140
  Splits are assigned by **hashing a normalised sentence key** rather than shuffling, so a rebuild
141
  reproduces exactly the same test set — important if this corpus is to serve as a shared benchmark.
@@ -145,14 +145,14 @@ reproduces exactly the same test set — important if this corpus is to serve as
145
  | Code | Dialect | Rows |
146
  |---|---|---|
147
  | `unk` | Mixed / unlabelled (monolingual pass-through) | 142,599 |
148
- | `msa` | Modern Standard Arabic | 109,929 |
149
- | `egy` | Egyptian | 104,818 |
150
- | `glf` | Gulf (Saudi/Emirati/Kuwaiti) | 104,004 |
 
 
151
  | `yem` | Yemeni | 3,566 |
152
- | `lev` | Levantine (Syrian/Lebanese/Jordanian/Palestinian) | 2,939 |
153
- | `mgr` | Maghrebi (Moroccan/Algerian/Tunisian) | 2,912 |
154
  | `sdn` | Sudanese | 2,701 |
155
- | `irq` | Iraqi | 2,477 |
156
 
157
  `unk` is monolingual Arabic contributing pass-through examples; it is dialectally mixed and is
158
  labelled honestly rather than guessed at.
@@ -203,7 +203,7 @@ emails symbol by symbol (`@` → `ات`, `.` → `دوت`), and digits as words
203
  |---|---|---|
204
  | [SDAIA ArE-CSTD](https://huggingface.co/datasets/SDAIANCAI/Ar-En-Code-Switching-Textual-Dataset) | 310,578 rows — MSA, Saudi, Egyptian | CC-BY-SA-4.0 |
205
  | Gemini synthesis | 22,584 rows — the missing dialects and rare categories | generated for this corpus |
206
- | Arabic Wikipedia + dialectal ASR transcripts | 142,783 rows — pass-through examples | CC-BY-SA |
207
 
208
  **Why synthesis was necessary.** SDAIA covers three dialects and is almost entirely plain
209
  word-level code-switching. Measured on 20K of its sentences: ~60,000 ordinary code-switch spans but
 
46
  | **Pure Arabic in** | `أنا رايح البيت دلوقتي` |
47
  | **Pure Arabic out** | `أنا رايح البيت دلوقتي` — unchanged |
48
 
49
+ - **499,998 examples** across **9 dialect labels**
50
+ - **29% pass-through rows** where the correct answer is *change nothing*
51
+ - **1,416,686 labelled spans**, tagged by category
52
  - Zero train/test leakage, zero token/tag misalignment (both verified — see *Quality guarantees*)
53
 
54
  ---
 
121
 
122
  | Category | Count | Input | Output |
123
  |---|---|---|---|
124
+ | `CS` | 1,394,636 | `انترن` | `intern` |
125
+ | `ACRONYM` | 12,392 | `ايه اي` | `AI` |
126
  | `EMAIL` | 4,370 | `احمد ات جيميل دوت كوم` | `ahmed@gmail.com` |
127
+ | `ENTITY` | 5,288 | `اورانج انوفيشن ايجيبت` | `Orange Innovation Egypt` |
128
  | `NUMBER` | 0 | `تو زيرو تو فور` | `2024` |
129
 
130
  ---
 
133
 
134
  | Split | Rows | Pass-through | Spans |
135
  |---|---|---|---|
136
+ | `train` | 450,022 | 130,321 (29.0%) | 1,275,285 |
137
+ | `validation` | 24,842 | 7,159 (28.8%) | 70,162 |
138
+ | `test` | 25,134 | 7,230 (28.8%) | 71,239 |
139
 
140
  Splits are assigned by **hashing a normalised sentence key** rather than shuffling, so a rebuild
141
  reproduces exactly the same test set — important if this corpus is to serve as a shared benchmark.
 
145
  | Code | Dialect | Rows |
146
  |---|---|---|
147
  | `unk` | Mixed / unlabelled (monolingual pass-through) | 142,599 |
148
+ | `msa` | Modern Standard Arabic | 114,741 |
149
+ | `egy` | Egyptian | 111,590 |
150
+ | `glf` | Gulf (Saudi/Emirati/Kuwaiti) | 109,522 |
151
+ | `lev` | Levantine (Syrian/Lebanese/Jordanian/Palestinian) | 7,823 |
152
+ | `mgr` | Maghrebi (Moroccan/Algerian/Tunisian) | 3,935 |
153
  | `yem` | Yemeni | 3,566 |
154
+ | `irq` | Iraqi | 3,521 |
 
155
  | `sdn` | Sudanese | 2,701 |
 
156
 
157
  `unk` is monolingual Arabic contributing pass-through examples; it is dialectally mixed and is
158
  labelled honestly rather than guessed at.
 
203
  |---|---|---|
204
  | [SDAIA ArE-CSTD](https://huggingface.co/datasets/SDAIANCAI/Ar-En-Code-Switching-Textual-Dataset) | 310,578 rows — MSA, Saudi, Egyptian | CC-BY-SA-4.0 |
205
  | Gemini synthesis | 22,584 rows — the missing dialects and rare categories | generated for this corpus |
206
+ | Arabic Wikipedia + dialectal ASR transcripts | 144,710 rows — pass-through examples | CC-BY-SA |
207
 
208
  **Why synthesis was necessary.** SDAIA covers three dialects and is almost entirely plain
209
  word-level code-switching. Measured on 20K of its sentences: ~60,000 ordinary code-switch spans but
dataset_stats.json CHANGED
@@ -1,38 +1,39 @@
1
  {
2
- "total_seen": 352582,
3
- "kept": 475945,
4
  "skipped_no_latin": 3246,
5
- "skipped_duplicate": 16170,
6
- "passthrough_examples": 142783,
7
- "passthrough_ratio": 0.3,
8
- "total_tokens": 5602916,
9
- "total_spans": 1380376,
10
  "by_split": {
11
- "train": 428383,
12
- "validation": 23595,
13
- "test": 23967
14
  },
15
  "by_dialect": {
16
- "msa": 109929,
17
- "egy": 104818,
18
- "glf": 104004,
19
  "sdn": 2701,
20
  "yem": 3566,
21
- "irq": 2477,
22
- "mgr": 2912,
23
- "lev": 2939,
24
  "unk": 142599
25
  },
26
  "by_source": {
27
  "sdaia": 310578,
28
  "gemini": 22584,
 
29
  "monolingual": 142599,
30
- "sdaia-mono": 184
31
  },
32
  "by_category": {
33
- "CS": 1362606,
34
- "ACRONYM": 9001,
35
- "ENTITY": 4399,
36
  "EMAIL": 4370
37
  }
38
  }
 
1
  {
2
+ "total_seen": 432582,
3
+ "kept": 499998,
4
  "skipped_no_latin": 3246,
5
+ "skipped_duplicate": 74044,
6
+ "passthrough_examples": 144710,
7
+ "passthrough_ratio": 0.2894,
8
+ "total_tokens": 5745052,
9
+ "total_spans": 1416686,
10
  "by_split": {
11
+ "train": 450022,
12
+ "validation": 24842,
13
+ "test": 25134
14
  },
15
  "by_dialect": {
16
+ "msa": 114741,
17
+ "egy": 111590,
18
+ "glf": 109522,
19
  "sdn": 2701,
20
  "yem": 3566,
21
+ "irq": 3521,
22
+ "mgr": 3935,
23
+ "lev": 7823,
24
  "unk": 142599
25
  },
26
  "by_source": {
27
  "sdaia": 310578,
28
  "gemini": 22584,
29
+ "vocab": 22126,
30
  "monolingual": 142599,
31
+ "sdaia-mono": 2111
32
  },
33
  "by_category": {
34
+ "CS": 1394636,
35
+ "ACRONYM": 12392,
36
+ "ENTITY": 5288,
37
  "EMAIL": 4370
38
  }
39
  }
test.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:fa830dacd06165c4bfceccedf2d7fa37f27ddc7ed4647a9774fff0a07d50f106
3
- size 3410183
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d74446addf1897646dd218e0383b7479bc6bfa3f9cc888e9243904bd479f35d5
3
+ size 3491165
train.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1da670d5b822c33438b95cfc4f4e16df2ddfbcb8b86c3aaf6273cf3b53ab7245
3
- size 63554055
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:10dd8994e73b96b471f45bcf3c35d296cd89bb37c28be48b535d259acad383b6
3
+ size 65349126
validation.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:fbd32d077933b0039a669be0977edeb2ae7ed035e50aa607dd5f2140da6085f4
3
- size 3341783
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af0579427b1151726bbcee38cd630ea06c500195db000ae8d4b424a255c97c1a
3
+ size 3437466