Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- README.md +161 -0
- dataset.stats.json +20 -0
- lexicon/train.jsonl +3 -0
- pronunciations/train.jsonl +0 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
lexicon/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
- token-classification
|
| 11 |
+
- text2text-generation
|
| 12 |
+
task_ids:
|
| 13 |
+
- lemmatization
|
| 14 |
+
- part-of-speech
|
| 15 |
+
pretty_name: KabLex — Kabyle lexicon and pronunciation dictionary
|
| 16 |
+
tags:
|
| 17 |
+
- kabyle
|
| 18 |
+
- taqbaylit
|
| 19 |
+
- berber
|
| 20 |
+
- tamazight
|
| 21 |
+
- low-resource
|
| 22 |
+
- lexicon
|
| 23 |
+
- morphology
|
| 24 |
+
- grapheme-to-phoneme
|
| 25 |
+
configs:
|
| 26 |
+
- config_name: lexicon
|
| 27 |
+
data_files:
|
| 28 |
+
- split: train
|
| 29 |
+
path: lexicon/train.jsonl
|
| 30 |
+
- config_name: pronunciations
|
| 31 |
+
data_files:
|
| 32 |
+
- split: train
|
| 33 |
+
path: pronunciations/train.jsonl
|
| 34 |
+
---
|
| 35 |
+
|
| 36 |
+
# KabLex
|
| 37 |
+
|
| 38 |
+
A lexical layer for Kabyle (Taqbaylit, `kab`, Latin script), from the
|
| 39 |
+
[AƔBALU](https://huggingface.co/agbalu) project.
|
| 40 |
+
|
| 41 |
+
**366,892 lexical entries** merged from three permissively licensed sources and normalised to
|
| 42 |
+
one orthography, plus **25,642 word–pronunciation pairs** aligned from sentence-level
|
| 43 |
+
grapheme-to-phoneme data.
|
| 44 |
+
|
| 45 |
+
```python
|
| 46 |
+
from datasets import load_dataset
|
| 47 |
+
|
| 48 |
+
lex = load_dataset("agbalu/KabLex", "lexicon", split="train")
|
| 49 |
+
ipa = load_dataset("agbalu/KabLex", "pronunciations", split="train")
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
## `lexicon`
|
| 53 |
+
|
| 54 |
+
366,892 entries — 234,936 distinct surface forms over 17,090 lemmas, 2,408 of them multiword.
|
| 55 |
+
|
| 56 |
+
| field | |
|
| 57 |
+
|---|---|
|
| 58 |
+
| `form` | the surface form, normalised |
|
| 59 |
+
| `lemma` | its lemma, where the source gives one |
|
| 60 |
+
| `upos` | Universal POS tag, where the source gives one |
|
| 61 |
+
| `feats` | morphological or domain features, UD-style, where present |
|
| 62 |
+
| `glosses` | list of `{lang, text}` — 9,658 entries carry at least one |
|
| 63 |
+
| `source` | the registry id this entry came from |
|
| 64 |
+
| `licence` | that source's licence |
|
| 65 |
+
|
| 66 |
+
| POS | entries |
|
| 67 |
+
|---|---|
|
| 68 |
+
| `VERB` | 345,057 |
|
| 69 |
+
| unlabelled | 15,357 |
|
| 70 |
+
| `NOUN` | 5,603 |
|
| 71 |
+
| `PROPN` | 287 |
|
| 72 |
+
| `PART` | 249 |
|
| 73 |
+
| `ADJ`, `ADV`, `INTJ`, others | 246 |
|
| 74 |
+
|
| 75 |
+
**The distribution is a property of the sources, not of Kabyle.** 94% of the entries are
|
| 76 |
+
verb forms because the largest contributing source is an inflected verb list. Treat this as
|
| 77 |
+
a wide verbal paradigm resource with a thin nominal layer, not as a balanced dictionary.
|
| 78 |
+
|
| 79 |
+
### Composition
|
| 80 |
+
|
| 81 |
+
| source | entries | licence |
|
| 82 |
+
|---|---|---|
|
| 83 |
+
| `hf.boffire.kabyle-verbs` | 342,257 | CC-BY-4.0 |
|
| 84 |
+
| `hf.boffire.hunspell-kab` | 20,967 | MIT |
|
| 85 |
+
| `hf.agurzil.tafsut-maths-lexicon` | 3,668 | CC-BY-4.0 |
|
| 86 |
+
|
| 87 |
+
### What was excluded, and why
|
| 88 |
+
|
| 89 |
+
The built lexicon holds 395,834 entries. **28,942 are not published here**, and the cut is
|
| 90 |
+
made by code from each source's licence rather than by hand:
|
| 91 |
+
|
| 92 |
+
- **8,554 entries** from an **ODbL** toponym source. ODbL §4.4 obliges a publicly used
|
| 93 |
+
derivative database to be offered under ODbL too, so including them would impose
|
| 94 |
+
share-alike on this whole release. ODbL is share-alike, not permissive — a distinction
|
| 95 |
+
that is easy to get wrong and that changes what a downstream user is allowed to do.
|
| 96 |
+
- **20,388 entries** whose upstream licence could not be established. An unresolved licence
|
| 97 |
+
is not a permissive one. That source is independently available on the Hub.
|
| 98 |
+
|
| 99 |
+
Anyone who wants the full set can rebuild it from the registry; the exclusions are
|
| 100 |
+
mechanical and reproducible, not editorial.
|
| 101 |
+
|
| 102 |
+
## `pronunciations`
|
| 103 |
+
|
| 104 |
+
25,642 distinct words with an IPA pronunciation, aligned from 59,185 sentence-level pairs
|
| 105 |
+
(99.53% alignment rate) over a 41-phoneme inventory.
|
| 106 |
+
|
| 107 |
+
| field | |
|
| 108 |
+
|---|---|
|
| 109 |
+
| `word` | the orthographic word, normalised |
|
| 110 |
+
| `ipa` | its most frequent pronunciation |
|
| 111 |
+
| `variants` | list of `{ipa, count}` — every attested pronunciation with its frequency |
|
| 112 |
+
|
| 113 |
+
**Ambiguity is 0.0%**: no word in this set has two pronunciations attested at comparable
|
| 114 |
+
frequency. That is a property of the source, which is single-annotator, and not evidence
|
| 115 |
+
that Kabyle has no heterophonic homographs.
|
| 116 |
+
|
| 117 |
+
Source: `boffire/kabyle-g2p-training-data`, **CC0-1.0**.
|
| 118 |
+
|
| 119 |
+
## Orthography
|
| 120 |
+
|
| 121 |
+
Everything is normalised to one documented orthography — normaliser `1.3.0+rules1.0.0`, 81
|
| 122 |
+
rules, zero idempotence violations over 931,342 sentences.
|
| 123 |
+
|
| 124 |
+
This matters more for Kabyle than the phrase usually suggests. Two seed corpora in this
|
| 125 |
+
project carry **2.60% and 3.19% homoglyph-corrupted rows** — Greek `ε` U+03B5 written for
|
| 126 |
+
Latin `ɛ` U+025B — and published Kabyle tokenizer vocabularies have that corruption baked
|
| 127 |
+
into their merges, at a measured **+17.8–21.3% token cost**.
|
| 128 |
+
|
| 129 |
+
Kabyle legitimately uses `ɣ ɛ ḥ ḍ ṣ ṭ ẓ ṛ č ǧ ţ`, and the emphatic and spirantised
|
| 130 |
+
distinctions carry meaning. Do not "clean" them away.
|
| 131 |
+
|
| 132 |
+
## Known limits
|
| 133 |
+
|
| 134 |
+
- **Not a balanced dictionary.** See the POS distribution above.
|
| 135 |
+
- **`upos` is absent for 15,357 entries** and is the source's tag where present, not a
|
| 136 |
+
reviewed annotation.
|
| 137 |
+
- Two upstream defects are known and *not* silently patched here: one source maps `ţ`→`ṭ`
|
| 138 |
+
against corpus evidence, and another tags `i` as `isem`. Both are owed as upstream reports.
|
| 139 |
+
- **Glosses are mostly French**, reflecting the sources.
|
| 140 |
+
- Nothing here is human-reviewed at scale. It is a merged, normalised, provenance-carrying
|
| 141 |
+
union of existing resources — which is exactly what did not exist before, and is not the
|
| 142 |
+
same thing as a curated dictionary.
|
| 143 |
+
|
| 144 |
+
## Citation
|
| 145 |
+
|
| 146 |
+
```bibtex
|
| 147 |
+
@misc{agbalu_kablex,
|
| 148 |
+
title = {KabLex: a Kabyle lexicon and pronunciation dictionary},
|
| 149 |
+
author = {AƔBALU},
|
| 150 |
+
year = {2026},
|
| 151 |
+
url = {https://huggingface.co/datasets/agbalu/KabLex}
|
| 152 |
+
}
|
| 153 |
+
```
|
| 154 |
+
|
| 155 |
+
Please also cite the upstream sources listed under Composition.
|
| 156 |
+
|
| 157 |
+
## Licence
|
| 158 |
+
|
| 159 |
+
**CC-BY-4.0.** Every published entry is CC-BY-4.0 or MIT; CC-BY-4.0 is the more restrictive
|
| 160 |
+
of the two and governs the release. The pronunciation config is CC0-1.0 upstream. Each row
|
| 161 |
+
carries its own `licence` field, so a stricter subset can be cut by code.
|
dataset.stats.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"repo": "KabLex",
|
| 3 |
+
"files": [
|
| 4 |
+
{
|
| 5 |
+
"config": "lexicon",
|
| 6 |
+
"split": "train",
|
| 7 |
+
"rows": 366892,
|
| 8 |
+
"path": "lexicon/train.jsonl",
|
| 9 |
+
"bytes": 68150726
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"config": "pronunciations",
|
| 13 |
+
"split": "train",
|
| 14 |
+
"rows": 25642,
|
| 15 |
+
"path": "pronunciations/train.jsonl",
|
| 16 |
+
"bytes": 2397970
|
| 17 |
+
}
|
| 18 |
+
],
|
| 19 |
+
"rows": 392534
|
| 20 |
+
}
|
lexicon/train.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ce4466c60ef5be4dc1399c73d3368200f55838d5232b17a84c12abf5f95a5a92
|
| 3 |
+
size 68150726
|
pronunciations/train.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|