Upload folder using huggingface_hub
Browse files- README.md +144 -0
- analysis/dev.parquet +3 -0
- analysis/test.parquet +3 -0
- analysis/train.parquet +3 -0
- dataset_info.json +24 -0
- inflection/dev.parquet +3 -0
- inflection/test.parquet +3 -0
- inflection/train.parquet +3 -0
- paradigms/train.parquet +3 -0
README.md
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
language:
|
| 4 |
+
- kab
|
| 5 |
+
language_bcp47:
|
| 6 |
+
- kab-Latn
|
| 7 |
+
size_categories:
|
| 8 |
+
- 100K<n<1M
|
| 9 |
+
task_categories:
|
| 10 |
+
- text2text-generation
|
| 11 |
+
- token-classification
|
| 12 |
+
task_ids:
|
| 13 |
+
- morphological-inflection
|
| 14 |
+
- lemmatization
|
| 15 |
+
pretty_name: KabInflect — Kabyle morphological inflection and analysis benchmark
|
| 16 |
+
tags:
|
| 17 |
+
- kabyle
|
| 18 |
+
- taqbaylit
|
| 19 |
+
- berber
|
| 20 |
+
- tamazight
|
| 21 |
+
- low-resource
|
| 22 |
+
- morphology
|
| 23 |
+
- inflection
|
| 24 |
+
- lemmatization
|
| 25 |
+
configs:
|
| 26 |
+
- config_name: inflection
|
| 27 |
+
data_files:
|
| 28 |
+
- split: train
|
| 29 |
+
path: inflection/train.parquet
|
| 30 |
+
- split: dev
|
| 31 |
+
path: inflection/dev.parquet
|
| 32 |
+
- split: test
|
| 33 |
+
path: inflection/test.parquet
|
| 34 |
+
- config_name: analysis
|
| 35 |
+
data_files:
|
| 36 |
+
- split: train
|
| 37 |
+
path: analysis/train.parquet
|
| 38 |
+
- split: dev
|
| 39 |
+
path: analysis/dev.parquet
|
| 40 |
+
- split: test
|
| 41 |
+
path: analysis/test.parquet
|
| 42 |
+
- config_name: paradigms
|
| 43 |
+
data_files:
|
| 44 |
+
- split: train
|
| 45 |
+
path: paradigms/train.parquet
|
| 46 |
+
---
|
| 47 |
+
|
| 48 |
+
# KabInflect
|
| 49 |
+
|
| 50 |
+
A morphological inflection and analysis benchmark for Kabyle (Taqbaylit, `kab`, Latin script), from the
|
| 51 |
+
[AƔBALU](https://huggingface.co/agbalu) project.
|
| 52 |
+
|
| 53 |
+
**344,745 inflected verb form entries** across **13,226 unique verb lemmas**, partitioned into
|
| 54 |
+
paradigmatically sealed splits (0 paradigm leakage), plus **6,198 complete verb conjugation tables**.
|
| 55 |
+
|
| 56 |
+
```python
|
| 57 |
+
from datasets import load_dataset
|
| 58 |
+
|
| 59 |
+
inflect = load_dataset("agbalu/KabInflect", "inflection")
|
| 60 |
+
analysis = load_dataset("agbalu/KabInflect", "analysis")
|
| 61 |
+
paradigms = load_dataset("agbalu/KabInflect", "paradigms", split="train")
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
## `inflection`
|
| 65 |
+
|
| 66 |
+
Morphological Inflection (Seq2Seq Morphological Generation): `(lemma, feats)` → `form`.
|
| 67 |
+
|
| 68 |
+
344,745 total entries across 13,226 verb lemmas.
|
| 69 |
+
|
| 70 |
+
| split | lemmas | inflected forms |
|
| 71 |
+
|---|---|---|
|
| 72 |
+
| `train` | 10,580 | 276,717 |
|
| 73 |
+
| `dev` | 1,323 | 34,109 |
|
| 74 |
+
| `test` | 1,323 | 33,919 |
|
| 75 |
+
| **total** | **13,226** | **344,745** |
|
| 76 |
+
|
| 77 |
+
### Schema
|
| 78 |
+
|
| 79 |
+
| field | type | description |
|
| 80 |
+
|---|---|---|
|
| 81 |
+
| `id` | string | `kab_inflect_{split}_{idx}` |
|
| 82 |
+
| `lemma` | string | Base verb infinitif (canonical) |
|
| 83 |
+
| `feats` | string | Universal Dependencies (UD) FEATS (e.g. `Aspect=Perf\|Gender=Masc\|Number=Sing\|Person=3`) |
|
| 84 |
+
| `tense_raw` | string | Legacy source tense descriptor (e.g. `prétérit`, `aoriste intensif`) |
|
| 85 |
+
| `person_raw` | string | Legacy source person descriptor (e.g. `3s_m`, `1p`) |
|
| 86 |
+
| `form` | string | Inflected surface form in canonical Kabyle orthography |
|
| 87 |
+
|
| 88 |
+
## `analysis`
|
| 89 |
+
|
| 90 |
+
Morphological Analysis and Lemmatisation: `form` → `(lemma, feats)`.
|
| 91 |
+
|
| 92 |
+
Same 344,745 entries, indexed by inflected surface form.
|
| 93 |
+
|
| 94 |
+
## `paradigms`
|
| 95 |
+
|
| 96 |
+
6,198 full verb paradigms with French translations, irregularity indicators (`is_irregular`, `is_derived`), pattern verbs, and principal aspect stems (`imperative`, `aorist`, `preterite`, `negative_preterite`, `aorist_participle`, `preterite_participle`, `negative_preterite_participle`, `intensive_forms`).
|
| 97 |
+
|
| 98 |
+
## Paradigmatically Sealed Partitioning (Zero Paradigm Leakage)
|
| 99 |
+
|
| 100 |
+
**Upstream datasets randomly split individual inflected forms across train and test.** That design flaw causes extreme data leakage: forms of the exact same verb (e.g. `awḍeɣ`, `tewḍeḍ`, `yeweḍ`) appear in both splits, so a test score measures simple paradigm memorisation rather than linguistic learning.
|
| 101 |
+
|
| 102 |
+
`agbalu/KabInflect` fixes this:
|
| 103 |
+
- Entries are grouped strictly by **verb lemma** (`infinitif`).
|
| 104 |
+
- Splitting is performed at the **lemma level** with seed 42.
|
| 105 |
+
- **0% lemma overlap**: all 1,323 verbs in `test` (33,919 forms) are completely unseen during training. A system must learn the underlying rules of Kabyle morphology to succeed.
|
| 106 |
+
|
| 107 |
+
## Orthography
|
| 108 |
+
|
| 109 |
+
All Kabyle text is normalised under normaliser `1.3.0+rules1.0.0` (81 rules), preserving sub-dot emphatic distinctions (`ɣ ḍ ḥ ṭ ṛ ẓ ṣ`). The source text carries 0.00% homoglyph error.
|
| 110 |
+
|
| 111 |
+
## Evaluation Protocol & Baseline Floor
|
| 112 |
+
|
| 113 |
+
The benchmark evaluates morphological generation (`inflection`) and parsing (`analysis`) on **1,323 held-out test verb lemmas (33,919 unseen test forms)**.
|
| 114 |
+
|
| 115 |
+
| Task | Baseline / System | Metric | Score | Notes |
|
| 116 |
+
|---|---|---|---|---|
|
| 117 |
+
| Inflection | Identity Lemma Floor | Exact Match (EM) | 16.82% | Naive floor predicting `form = lemma` |
|
| 118 |
+
| Inflection | Identity Lemma Floor | Character Error Rate (CER) | 34.21% | Levenshtein edit distance ratio |
|
| 119 |
+
| Analysis | Unsupervised Lexicon Lookup | EM Accuracy | 78.41% | Exact match via `agbalu/KabLex` lookup |
|
| 120 |
+
|
| 121 |
+
Because splits are sealed by verb lemma (0% paradigm overlap), models must learn generalisable Kabyle morphological rules to surpass the baseline floor on unseen paradigms.
|
| 122 |
+
|
| 123 |
+
## Known Limits
|
| 124 |
+
|
| 125 |
+
- **Verb-focused.** Covers Kabyle verbal morphology (the largest morphological paradigm family in the language); nominal annexed-state paradigms are covered separately in `agbalu/KabLex`.
|
| 126 |
+
- **Gloss language.** Paradigm translations are French, reflecting the source dictionary.
|
| 127 |
+
- **Standard orthography.** Uses standard Kabyle Latin script; does not cover dialectal spellings or Tifinagh (see `agbalu/KabTifinagh` for script conversion).
|
| 128 |
+
|
| 129 |
+
## Citation
|
| 130 |
+
|
| 131 |
+
```bibtex
|
| 132 |
+
@misc{agbalu_kabinflect,
|
| 133 |
+
title = {KabInflect: a Kabyle morphological inflection and analysis benchmark},
|
| 134 |
+
author = {AƔBALU},
|
| 135 |
+
year = {2026},
|
| 136 |
+
url = {https://huggingface.co/datasets/agbalu/KabInflect}
|
| 137 |
+
}
|
| 138 |
+
```
|
| 139 |
+
|
| 140 |
+
Please also cite `boffire/kabyle-verbs` for the upstream data collection.
|
| 141 |
+
|
| 142 |
+
## Licence
|
| 143 |
+
|
| 144 |
+
**CC-BY-4.0.** Free to share, modify, and build upon with proper attribution.
|
analysis/dev.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:18f8150c115b1747e2857526c6cbb28ee679f0b750c81b63a712ad4a1f88c760
|
| 3 |
+
size 492588
|
analysis/test.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a8c39f7c699be2240fdacd863c38ab3326fe1d2fb873744fb61041ab7b88e1a1
|
| 3 |
+
size 491641
|
analysis/train.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6d1458de4cc7f420df91aa81dccdc9541bcf6a8bb9065c9e5af441ce226c709f
|
| 3 |
+
size 3452484
|
dataset_info.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset_name": "agbalu/KabInflect",
|
| 3 |
+
"description": "Standardised Kabyle Morphological Inflection, Lemmatisation, and Conjugation Benchmark",
|
| 4 |
+
"language": "kab_Latn",
|
| 5 |
+
"license": "CC-BY-4.0",
|
| 6 |
+
"total_inflected_forms": 344745,
|
| 7 |
+
"unique_lemmas": 13226,
|
| 8 |
+
"unique_paradigms": 6198,
|
| 9 |
+
"splits": {
|
| 10 |
+
"train": {
|
| 11 |
+
"lemmas": 10580,
|
| 12 |
+
"forms": 276717
|
| 13 |
+
},
|
| 14 |
+
"dev": {
|
| 15 |
+
"lemmas": 1323,
|
| 16 |
+
"forms": 34109
|
| 17 |
+
},
|
| 18 |
+
"test": {
|
| 19 |
+
"lemmas": 1323,
|
| 20 |
+
"forms": 33919
|
| 21 |
+
}
|
| 22 |
+
},
|
| 23 |
+
"source": "hf.boffire.kabyle-verbs (CC-BY-4.0), normalized under A\u0194BALU standard 1.3.0+rules1.0.0"
|
| 24 |
+
}
|
inflection/dev.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0342069072c23a9a60ac6fd6966342c0a1c448eafe23df6b2df2cba7b236c084
|
| 3 |
+
size 495071
|
inflection/test.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:105fe6ac45491c0263475dac09d68198104bb0b3afdf8eb76eb854b6eafec1a3
|
| 3 |
+
size 490734
|
inflection/train.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:76118afb5eaa7c648d5a66aece48477e741c41766fba38d33eff00bb6134ded6
|
| 3 |
+
size 3459886
|
paradigms/train.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e233e4b40b5acc4b420cf558127896950f54cbf2f439c621fead05e34aaa4b4d
|
| 3 |
+
size 2456801
|