v3: real code-switching vocabulary (intern, sprint, stakeholder...), 500K examples
Browse files- README.md +16 -16
- dataset_stats.json +21 -20
- test.parquet +2 -2
- train.parquet +2 -2
- 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 |
-
- **
|
| 50 |
-
- **
|
| 51 |
-
- **1,
|
| 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,
|
| 125 |
-
| `ACRONYM` |
|
| 126 |
| `EMAIL` | 4,370 | `احمد ات جيميل دوت كوم` | `ahmed@gmail.com` |
|
| 127 |
-
| `ENTITY` |
|
| 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` |
|
| 137 |
-
| `validation` |
|
| 138 |
-
| `test` |
|
| 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 |
|
| 149 |
-
| `egy` | Egyptian |
|
| 150 |
-
| `glf` | Gulf (Saudi/Emirati/Kuwaiti) |
|
|
|
|
|
|
|
| 151 |
| `yem` | Yemeni | 3,566 |
|
| 152 |
-
| `
|
| 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 |
|
| 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":
|
| 3 |
-
"kept":
|
| 4 |
"skipped_no_latin": 3246,
|
| 5 |
-
"skipped_duplicate":
|
| 6 |
-
"passthrough_examples":
|
| 7 |
-
"passthrough_ratio": 0.
|
| 8 |
-
"total_tokens":
|
| 9 |
-
"total_spans":
|
| 10 |
"by_split": {
|
| 11 |
-
"train":
|
| 12 |
-
"validation":
|
| 13 |
-
"test":
|
| 14 |
},
|
| 15 |
"by_dialect": {
|
| 16 |
-
"msa":
|
| 17 |
-
"egy":
|
| 18 |
-
"glf":
|
| 19 |
"sdn": 2701,
|
| 20 |
"yem": 3566,
|
| 21 |
-
"irq":
|
| 22 |
-
"mgr":
|
| 23 |
-
"lev":
|
| 24 |
"unk": 142599
|
| 25 |
},
|
| 26 |
"by_source": {
|
| 27 |
"sdaia": 310578,
|
| 28 |
"gemini": 22584,
|
|
|
|
| 29 |
"monolingual": 142599,
|
| 30 |
-
"sdaia-mono":
|
| 31 |
},
|
| 32 |
"by_category": {
|
| 33 |
-
"CS":
|
| 34 |
-
"ACRONYM":
|
| 35 |
-
"ENTITY":
|
| 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:
|
| 3 |
-
size
|
|
|
|
| 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:
|
| 3 |
-
size
|
|
|
|
| 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:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:af0579427b1151726bbcee38cd630ea06c500195db000ae8d4b424a255c97c1a
|
| 3 |
+
size 3437466
|