Datasets:
Tasks:
Token Classification
Modalities:
Text
Formats:
json
Sub-tasks:
lemmatization
Languages:
Kabyle
Size:
10K - 100K
License:
Upload folder using huggingface_hub
Browse files- README.md +174 -0
- dataset.stats.json +13 -0
- default/train.jsonl +0 -0
README.md
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc0-1.0
|
| 3 |
+
language:
|
| 4 |
+
- kab
|
| 5 |
+
language_bcp47:
|
| 6 |
+
- kab-Latn
|
| 7 |
+
size_categories:
|
| 8 |
+
- 10K<n<100K
|
| 9 |
+
task_categories:
|
| 10 |
+
- token-classification
|
| 11 |
+
task_ids:
|
| 12 |
+
- lemmatization
|
| 13 |
+
pretty_name: KabG2P — Kabyle grapheme-to-phoneme pronunciation dictionary
|
| 14 |
+
tags:
|
| 15 |
+
- kabyle
|
| 16 |
+
- taqbaylit
|
| 17 |
+
- berber
|
| 18 |
+
- tamazight
|
| 19 |
+
- low-resource
|
| 20 |
+
- grapheme-to-phoneme
|
| 21 |
+
- g2p
|
| 22 |
+
- pronunciation
|
| 23 |
+
- phonetics
|
| 24 |
+
- ipa
|
| 25 |
+
- text-to-speech
|
| 26 |
+
- automatic-speech-recognition
|
| 27 |
+
configs:
|
| 28 |
+
- config_name: default
|
| 29 |
+
data_files:
|
| 30 |
+
- split: train
|
| 31 |
+
path: default/train.jsonl
|
| 32 |
+
---
|
| 33 |
+
|
| 34 |
+
# KabG2P
|
| 35 |
+
|
| 36 |
+
A grapheme-to-phoneme pronunciation dictionary for Kabyle (Taqbaylit, `kab`, Latin script),
|
| 37 |
+
from the [AƔBALU](https://huggingface.co/agbalu) project.
|
| 38 |
+
|
| 39 |
+
**25,634 Kabyle word–IPA pairs** recovered by aligning 292,921 tokens across 59,462
|
| 40 |
+
sentence pairs at a 99.53% alignment rate, with a **0% ambiguity rate** across the entire
|
| 41 |
+
vocabulary. Every attested word has exactly one IPA reading. It is the phonetics layer
|
| 42 |
+
underlying [`agbalu/Matoub-TTS`](https://huggingface.co/agbalu) and
|
| 43 |
+
[`agbalu/Fadhma-300M`](https://huggingface.co/agbalu/Fadhma-300M), and the reference
|
| 44 |
+
target for any Kabyle G2P model.
|
| 45 |
+
|
| 46 |
+
```python
|
| 47 |
+
from datasets import load_dataset
|
| 48 |
+
|
| 49 |
+
ds = load_dataset("agbalu/KabG2P", split="train")
|
| 50 |
+
|
| 51 |
+
print(ds[4])
|
| 52 |
+
# {
|
| 53 |
+
# "word": "ababat",
|
| 54 |
+
# "ipa": "æβæβæθ",
|
| 55 |
+
# "variants": [{"ipa": "æβæβæθ", "count": 10}],
|
| 56 |
+
# "repaired": False
|
| 57 |
+
# }
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
## Data
|
| 61 |
+
|
| 62 |
+
| split | rows | source tokens |
|
| 63 |
+
|---|---|---|
|
| 64 |
+
| `train` | 25,634 | 292,921 |
|
| 65 |
+
|
| 66 |
+
Eight entries whose headword falls outside the Kabyle writing system (`3d`, `androïd`,
|
| 67 |
+
`mp3`, `muḥ€nd`, `rosé`, `supermarché`, `xelleṣ̣`, `ṭeyyeb‟`) are present in the source
|
| 68 |
+
lexicon with correct IPA but are excluded from this release; G2P benchmarking on non-Kabyle
|
| 69 |
+
words is not meaningful.
|
| 70 |
+
|
| 71 |
+
## Schema
|
| 72 |
+
|
| 73 |
+
| field | type | description |
|
| 74 |
+
|---|---|---|
|
| 75 |
+
| `word` | `str` | Canonical Kabyle Latin spelling, NFC-normalised |
|
| 76 |
+
| `ipa` | `str` | IPA transcription — the majority pronunciation across aligned tokens |
|
| 77 |
+
| `variants` | `list[dict]` | Frequency-sorted alternative readings: `[{"ipa": "...", "count": N}, ...]` |
|
| 78 |
+
| `repaired` | `bool` | `true` where this project restored a character the upstream source dropped |
|
| 79 |
+
|
| 80 |
+
## IPA Phoneme Inventory
|
| 81 |
+
|
| 82 |
+
42 phoneme symbols in the source; 38 appear in 3 or more entries. The full inventory of
|
| 83 |
+
symbols observed across 292,921 aligned tokens:
|
| 84 |
+
|
| 85 |
+
| category | symbols |
|
| 86 |
+
|---|---|
|
| 87 |
+
| Vowels | `æ` `ɑ` `ə` `i` `u` |
|
| 88 |
+
| Stops (plain) | `b` `d` `ɡ` `k` `t` `p` |
|
| 89 |
+
| Stops (emphatic) | `dˤ` |
|
| 90 |
+
| Fricatives (plain) | `β` `ð` `ʝ` `ç` `θ` `f` `s` `z` `ʃ` `ʒ` `x` `χ` `ʁ` `ħ` `ʕ` `h` |
|
| 91 |
+
| Fricatives (emphatic) | `ðˤ` |
|
| 92 |
+
| Affricates | `t͡ʃ` |
|
| 93 |
+
| Nasals | `m` `n` `ɲ` `ŋ` |
|
| 94 |
+
| Liquids | `r` `l` |
|
| 95 |
+
| Glides | `j` `w` |
|
| 96 |
+
| Length mark | `ː` |
|
| 97 |
+
|
| 98 |
+
## Phonological Rules
|
| 99 |
+
|
| 100 |
+
Three conditioned rules are applied and verified against the aligned data:
|
| 101 |
+
|
| 102 |
+
**1. Spirantization by gemination.**
|
| 103 |
+
Singleton `b d g k t ḍ` → fricatives `β ð ʝ ç θ ðˤ`; geminates → stops `b d ɡ k t dˤ`.
|
| 104 |
+
Count agreement is exact for `t`, `b`, and `k` across 292,921 tokens; off by one for `g`.
|
| 105 |
+
|
| 106 |
+
**2. Vowel backing beside emphatics and uvulars.**
|
| 107 |
+
`a` → `ɑ` when adjacent to `ḍ ṣ ṭ ẓ ṛ q ɣ x`. The rule is **92.44% accurate** against
|
| 108 |
+
an 87.19% always-`æ` baseline — +5.25 pp.
|
| 109 |
+
|
| 110 |
+
**3. `i`/`u` laxing is not applied.**
|
| 111 |
+
The only recoverable conditioning environment (closed syllable) scored 75.59% against a
|
| 112 |
+
74.99% baseline — below the threshold for inclusion. Attested words carry their verified
|
| 113 |
+
allophones from this dictionary; out-of-vocabulary words receive the tense vowel.
|
| 114 |
+
|
| 115 |
+
## Benchmark Baseline
|
| 116 |
+
|
| 117 |
+
The AƔBALU rule-based G2P system achieves **78.18% exact-match rate** on this dictionary
|
| 118 |
+
without any dictionary lookup — purely from spelling rules. This is the floor any learned
|
| 119 |
+
G2P model must exceed, and the dictionary itself is the training target and ceiling.
|
| 120 |
+
|
| 121 |
+
## Repaired Entries
|
| 122 |
+
|
| 123 |
+
The upstream generator drops any character it has no rule for, silently producing a shorter
|
| 124 |
+
IPA string. This release repairs **199 entries**, flagged by `repaired: true`:
|
| 125 |
+
|
| 126 |
+
| character | affected words | repair |
|
| 127 |
+
|---|---|---|
|
| 128 |
+
| `o` | 128 | `bob` → `ββ` repaired to `βoβ` |
|
| 129 |
+
| `ţ` U+0163 | 73 | `aţan` → `ææn` repaired to `ætːæn` (geminate, from corpus evidence) |
|
| 130 |
+
| `é`, `ï` | 3 | left as-is (outside the writing system) |
|
| 131 |
+
|
| 132 |
+
🔴 **`ţ` is attested Kabyle.** It is the Dallet-tradition spelling for the spirantised `t`,
|
| 133 |
+
occurring 21,058 times in AƔBALU-Text v1 and in 1,407 word types. It is repaired to the
|
| 134 |
+
geminate on corpus evidence. No audio confirms this mapping — `ţ` does not appear in
|
| 135 |
+
Common Voice Kabyle — and the repair is disclosed rather than hidden.
|
| 136 |
+
|
| 137 |
+
## Orthography
|
| 138 |
+
|
| 139 |
+
All headwords are normalised to canonical Kabyle Latin script under normaliser
|
| 140 |
+
`1.3.0+rules1.0.0` (81 rules). 199 entries carried Greek homoglyphs (`ε γ Σ Γ Ԑ`) in the
|
| 141 |
+
upstream source and were corrected to canonical `ɛ ɣ Ɛ Ɣ Ɛ`. The `repaired` field records
|
| 142 |
+
every affected entry.
|
| 143 |
+
|
| 144 |
+
## Source
|
| 145 |
+
|
| 146 |
+
| field | value |
|
| 147 |
+
|---|---|
|
| 148 |
+
| Upstream | `boffire/kabyle-g2p-training-data` |
|
| 149 |
+
| Upstream licence | **CC0-1.0** |
|
| 150 |
+
| Sentences aligned | 59,462 (59,185 successfully aligned) |
|
| 151 |
+
| Alignment rate | 99.53% |
|
| 152 |
+
| Ambiguity rate | 0.00% |
|
| 153 |
+
| Normaliser version | `1.3.0+rules1.0.0` |
|
| 154 |
+
| Repaired entries | 199 |
|
| 155 |
+
|
| 156 |
+
## Citation
|
| 157 |
+
|
| 158 |
+
```bibtex
|
| 159 |
+
@misc{agbalu_kabg2p,
|
| 160 |
+
title = {KabG2P: a Kabyle grapheme-to-phoneme pronunciation dictionary},
|
| 161 |
+
author = {AƔBALU},
|
| 162 |
+
year = {2026},
|
| 163 |
+
url = {https://huggingface.co/datasets/agbalu/KabG2P}
|
| 164 |
+
}
|
| 165 |
+
```
|
| 166 |
+
|
| 167 |
+
Please also cite the upstream source: `boffire/kabyle-g2p-training-data`.
|
| 168 |
+
|
| 169 |
+
## Licence
|
| 170 |
+
|
| 171 |
+
**CC0-1.0.** The upstream source (`boffire/kabyle-g2p-training-data`) is CC0-1.0. The
|
| 172 |
+
repairs and normalisation applied by this project are released under the same licence.
|
| 173 |
+
|
| 174 |
+
Part of [AƔBALU](https://huggingface.co/agbalu), a Kabyle corpus and model collection.
|
dataset.stats.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"repo": "KabG2P",
|
| 3 |
+
"files": [
|
| 4 |
+
{
|
| 5 |
+
"config": "default",
|
| 6 |
+
"split": "train",
|
| 7 |
+
"rows": 25634,
|
| 8 |
+
"path": "default/train.jsonl",
|
| 9 |
+
"bytes": 2884832
|
| 10 |
+
}
|
| 11 |
+
],
|
| 12 |
+
"rows": 25634
|
| 13 |
+
}
|
default/train.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|