Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -46,11 +46,9 @@ configs:
|
|
| 46 |
|
| 47 |
# KabInflect
|
| 48 |
|
| 49 |
-
A morphological inflection and analysis benchmark for Kabyle (Taqbaylit, `kab`, Latin script), from the
|
| 50 |
-
[AƔBALU](https://huggingface.co/agbalu) project.
|
| 51 |
|
| 52 |
-
**336,151 inflected verb form entries** across **13,226 unique verb lemmas**, partitioned into
|
| 53 |
-
paradigmatically sealed splits (0 paradigm leakage), plus **6,198 complete verb conjugation tables**.
|
| 54 |
|
| 55 |
```python
|
| 56 |
from datasets import load_dataset
|
|
@@ -62,37 +60,37 @@ paradigms = load_dataset("agbalu/KabInflect", "paradigms", split="train")
|
|
| 62 |
|
| 63 |
## `inflection`
|
| 64 |
|
| 65 |
-
Morphological Inflection (Seq2Seq Morphological Generation): `(lemma, feats)
|
| 66 |
|
| 67 |
336,151 total entries across 13,226 verb lemmas.
|
| 68 |
|
| 69 |
-
|
|
| 70 |
|---|---|---|
|
| 71 |
| `train` | 10,580 | 270,026 |
|
| 72 |
| `dev` | 1,323 | 33,060 |
|
| 73 |
| `test` | 1,323 | 33,065 |
|
| 74 |
-
| **
|
| 75 |
|
| 76 |
### Schema
|
| 77 |
|
| 78 |
-
|
|
| 79 |
|---|---|---|
|
| 80 |
-
| `id` | string | `kab_inflect_{split}_{idx}` |
|
| 81 |
-
| `lemma` | string | Base verb
|
| 82 |
-
| `feats` | string | Universal Dependencies
|
| 83 |
-
| `tense_raw` | string |
|
| 84 |
-
| `person_raw` | string |
|
| 85 |
-
| `form` | string |
|
| 86 |
|
| 87 |
## `analysis`
|
| 88 |
|
| 89 |
-
Morphological Analysis and Lemmatisation: `form
|
| 90 |
|
| 91 |
-
|
| 92 |
|
| 93 |
## `paradigms`
|
| 94 |
|
| 95 |
-
6,198
|
| 96 |
|
| 97 |
## Usage
|
| 98 |
|
|
@@ -100,84 +98,46 @@ Same 336,151 entries, indexed by inflected surface form.
|
|
| 100 |
from datasets import load_dataset
|
| 101 |
|
| 102 |
inflection = load_dataset("agbalu/KabInflect", "inflection", split="train")
|
| 103 |
-
inflection[0]
|
| 104 |
# {'id': 'kab_inflect_train_000000', 'lemma': 'ttemnunnuḍ',
|
| 105 |
# 'feats': 'Aspect=Imp|VerbForm=Part', 'tense_raw': 'participe aoriste intensif',
|
| 106 |
# 'person_raw': 'participe', 'form': 'ittemnunnuḍen'}
|
| 107 |
|
| 108 |
-
analysis
|
| 109 |
-
paradigms = load_dataset("agbalu/KabInflect", "paradigms", split="train")
|
| 110 |
```
|
| 111 |
|
| 112 |
-
The task
|
| 113 |
-
splits are **sealed on the paradigm**, so a lemma appearing in train appears in no other
|
| 114 |
-
split — which is why the copy-the-lemma floor below is as low as it is.
|
| 115 |
-
|
| 116 |
-
## Paradigmatically Sealed Partitioning (Zero Paradigm Leakage)
|
| 117 |
|
| 118 |
-
|
| 119 |
|
| 120 |
-
|
| 121 |
-
- Entries are grouped
|
| 122 |
-
- Splitting is performed
|
| 123 |
-
- **0% lemma overlap**:
|
| 124 |
|
| 125 |
## Orthography
|
| 126 |
|
| 127 |
-
All Kabyle text is
|
| 128 |
-
text carries 0.00% homoglyph error and 0.00% legacy-font mojibake.
|
| 129 |
-
|
| 130 |
-
**The emphatic `ṛ` is not represented, and this is a property of the source.** Measured
|
| 131 |
-
over all 270,026 training forms, `ṛ` U+1E5B occurs **0 times**, while `ḍ` appears in 14.43%
|
| 132 |
-
of forms, `ḥ` in 12.14%, `ṣ` in 3.36%, `ẓ` in 2.73% and `ṭ` in 4.37%. The upstream
|
| 133 |
-
conjugation resource writes plain `r` throughout — its lemmas are `ruḥ`, `ṣber` and `ɛreḍ`,
|
| 134 |
-
not `ṛuḥ`, `ṣbeṛ` and `ɛṛeḍ`.
|
| 135 |
-
|
| 136 |
-
The normaliser did not remove it; there was never anything to preserve. **The `ṛ`/`r`
|
| 137 |
-
contrast is therefore neutralised in this dataset**, and it is *not* neutralised in
|
| 138 |
-
[`agbalu/KabLex`](https://huggingface.co/datasets/agbalu/KabLex), which carries both `ṛuḥ`
|
| 139 |
-
and `ruḥ`. A model trained here will not produce emphatic `ṛ`, and scoring its output
|
| 140 |
-
against text that marks it will count every such form wrong.
|
| 141 |
|
| 142 |
-
|
| 143 |
-
lexical question this dataset has no evidence for. It is disclosed rather than guessed.
|
| 144 |
|
| 145 |
## Evaluation Protocol & Baseline Floor
|
| 146 |
|
| 147 |
The benchmark evaluates morphological generation (`inflection`) and parsing (`analysis`) on **1,323 held-out test verb lemmas (33,065 unseen test forms)**.
|
| 148 |
|
| 149 |
-
|
|
| 150 |
|---|---|---|---|
|
| 151 |
-
|
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
**The floor is not zero, and that is why it is measured rather than assumed.** Kabyle's
|
| 156 |
-
imperative singular *is* the citation form for most verbs, so a copy is correct in one cell
|
| 157 |
-
of nearly every paradigm — 4.07% of 33,065 test forms. A headline exact match read against
|
| 158 |
-
zero would be flattered by exactly that much.
|
| 159 |
-
|
| 160 |
-
No system has yet been scored on the `analysis` direction.
|
| 161 |
|
| 162 |
-
Because the
|
| 163 |
-
paradigms: no test verb appears in any training cell.
|
| 164 |
|
| 165 |
-
## Known
|
| 166 |
|
| 167 |
-
- **
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
both sides; a model trained here and evaluated against `ṛ`-marking text loses every such
|
| 172 |
-
form for a reason that is not the model's.
|
| 173 |
-
- **Every form appears exactly once.** The raw shards repeat rows verbatim — one verb's
|
| 174 |
-
intensive stems can generate the same cell twice — so **8,594 identical rows were dropped**
|
| 175 |
-
(344,745 → 336,151) and no form is silently reweighted during training. Earlier revisions of
|
| 176 |
-
this dataset carried them; this one does not, and the baseline floor below was recomputed
|
| 177 |
-
after the rebuild rather than carried over.
|
| 178 |
-
- **Verb-focused.** Covers Kabyle verbal morphology (the largest morphological paradigm family in the language); nominal annexed-state paradigms are covered separately in `agbalu/KabLex`.
|
| 179 |
-
- **Gloss language.** Paradigm translations are French, reflecting the source dictionary.
|
| 180 |
-
- **Standard orthography.** Uses standard Kabyle Latin script; does not cover dialectal spellings or Tifinagh (see `agbalu/KabTifinagh` for script conversion).
|
| 181 |
|
| 182 |
## Citation
|
| 183 |
|
|
|
|
| 46 |
|
| 47 |
# KabInflect
|
| 48 |
|
| 49 |
+
A morphological inflection and analysis benchmark for Kabyle (Taqbaylit, `kab`, Latin script), from the [AƔBALU](https://huggingface.co/agbalu) project.
|
|
|
|
| 50 |
|
| 51 |
+
**336,151 inflected verb form entries** across **13,226 unique verb lemmas**, partitioned into lemma-disjoint splits (0 paradigm leakage), plus **6,198 complete verb conjugation tables**.
|
|
|
|
| 52 |
|
| 53 |
```python
|
| 54 |
from datasets import load_dataset
|
|
|
|
| 60 |
|
| 61 |
## `inflection`
|
| 62 |
|
| 63 |
+
Morphological Inflection (Seq2Seq Morphological Generation): `(lemma, feats) → form`.
|
| 64 |
|
| 65 |
336,151 total entries across 13,226 verb lemmas.
|
| 66 |
|
| 67 |
+
| Split | Lemmas | Inflected forms |
|
| 68 |
|---|---|---|
|
| 69 |
| `train` | 10,580 | 270,026 |
|
| 70 |
| `dev` | 1,323 | 33,060 |
|
| 71 |
| `test` | 1,323 | 33,065 |
|
| 72 |
+
| **Total** | **13,226** | **336,151** |
|
| 73 |
|
| 74 |
### Schema
|
| 75 |
|
| 76 |
+
| Field | Type | Description |
|
| 77 |
|---|---|---|
|
| 78 |
+
| `id` | string | Unique record ID (`kab_inflect_{split}_{idx}`) |
|
| 79 |
+
| `lemma` | string | Base verb citation form (`infinitif`) |
|
| 80 |
+
| `feats` | string | Universal Dependencies morphological features (e.g. `Aspect=Perf\|Gender=Masc\|Number=Sing\|Person=3`) |
|
| 81 |
+
| `tense_raw` | string | Source tense descriptor (e.g. `prétérit`, `aoriste intensif`) |
|
| 82 |
+
| `person_raw` | string | Source person descriptor (e.g. `3s_m`, `1p`) |
|
| 83 |
+
| `form` | string | Normalized inflected surface form |
|
| 84 |
|
| 85 |
## `analysis`
|
| 86 |
|
| 87 |
+
Morphological Analysis and Lemmatisation: `form → (lemma, feats)`.
|
| 88 |
|
| 89 |
+
336,151 entries indexed by inflected surface form, using the same lemma-disjoint split boundaries.
|
| 90 |
|
| 91 |
## `paradigms`
|
| 92 |
|
| 93 |
+
6,198 complete verb paradigms with French translations, irregularity flags (`is_irregular`, `is_derived`), pattern classifications, and principal aspect stems (`imperative`, `aorist`, `preterite`, `negative_preterite`, `aorist_participle`, `preterite_participle`, `negative_preterite_participle`, `intensive_forms`).
|
| 94 |
|
| 95 |
## Usage
|
| 96 |
|
|
|
|
| 98 |
from datasets import load_dataset
|
| 99 |
|
| 100 |
inflection = load_dataset("agbalu/KabInflect", "inflection", split="train")
|
| 101 |
+
print(inflection[0])
|
| 102 |
# {'id': 'kab_inflect_train_000000', 'lemma': 'ttemnunnuḍ',
|
| 103 |
# 'feats': 'Aspect=Imp|VerbForm=Part', 'tense_raw': 'participe aoriste intensif',
|
| 104 |
# 'person_raw': 'participe', 'form': 'ittemnunnuḍen'}
|
| 105 |
|
| 106 |
+
analysis = load_dataset("agbalu/KabInflect", "analysis", split="test")
|
| 107 |
+
paradigms = load_dataset("agbalu/KabInflect", "paradigms", split="train")
|
| 108 |
```
|
| 109 |
|
| 110 |
+
The inflection task maps `(lemma, feats) → form`, while morphological analysis performs the reverse mapping `form → (lemma, feats)`.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
|
| 112 |
+
## Lemma-Disjoint Partitioning
|
| 113 |
|
| 114 |
+
To prevent data leakage, dataset splits are partitioned strictly at the **verb lemma level** rather than splitting individual surface forms randomly:
|
| 115 |
+
- Entries are grouped by base verb lemma (`infinitif`).
|
| 116 |
+
- Splitting is performed across lemmas using seed 42.
|
| 117 |
+
- **0% lemma overlap**: All 1,323 verb lemmas in `test` (33,065 forms) are completely unseen in the training split, requiring models to generalize morphological inflection rules to novel lexemes rather than memorizing attested paradigms.
|
| 118 |
|
| 119 |
## Orthography
|
| 120 |
|
| 121 |
+
All Kabyle text is normalized under the AƔBALU reference normaliser (`1.3.0+rules1.0.0`, 81 rules).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 122 |
|
| 123 |
+
In the underlying source verb resource, the emphatic `ṛ` (U+1E5B) is not distinguished from plain `r` (occurring 0 times across 270,026 training forms, whereas other emphatics like `ḍ`, `ḥ`, `ṣ`, `ṭ`, `ẓ` are fully marked). Consequently, the `r` vs. `ṛ` phonemic distinction is neutralized in this dataset. Models trained exclusively on KabInflect will not generate emphatic `ṛ`; when evaluating on corpora where `ṛ` is marked, references should be normalized accordingly to prevent spurious orthographic mismatches.
|
|
|
|
| 124 |
|
| 125 |
## Evaluation Protocol & Baseline Floor
|
| 126 |
|
| 127 |
The benchmark evaluates morphological generation (`inflection`) and parsing (`analysis`) on **1,323 held-out test verb lemmas (33,065 unseen test forms)**.
|
| 128 |
|
| 129 |
+
| Task | System / Baseline | Exact match | CER |
|
| 130 |
|---|---|---|---|
|
| 131 |
+
| Inflection | Copy lemma unchanged | 4.07% | 30.73% |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
|
| 133 |
+
Because the imperative singular serves as the citation form for many Kabyle verbs, a trivial baseline copying the lemma unchanged achieves 4.07% exact match (and 30.73% CER) across the test split.
|
|
|
|
| 134 |
|
| 135 |
+
## Known Limitations
|
| 136 |
|
| 137 |
+
- **Unmarked `ṛ`**: Emphatic `ṛ` is written as plain `r` throughout the upstream verbal database, neutralizing this contrast.
|
| 138 |
+
- **Deduplication**: 8,594 redundant duplicate entries present in raw source tables were removed during curation (reducing 344,745 to 336,151 rows).
|
| 139 |
+
- **Verbal domain**: Focuses on Kabyle verbal morphology; nominal state alternations are provided in `agbalu/KabLex`.
|
| 140 |
+
- **Gloss language**: Translations and definitions within paradigm tables are in French.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 141 |
|
| 142 |
## Citation
|
| 143 |
|