Improve dataset card: document schema, measured stats and limitations
Browse files
README.md
CHANGED
|
@@ -22,3 +22,87 @@ configs:
|
|
| 22 |
- split: test
|
| 23 |
path: data/test-*
|
| 24 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
- split: test
|
| 23 |
path: data/test-*
|
| 24 |
---
|
| 25 |
+
|
| 26 |
+
# Script normalization CKB — noisy → standard Sorani (script_normalization_ckb)
|
| 27 |
+
|
| 28 |
+
Nearly 6M sentence pairs: the `text` column holds Central Kurdish written with
|
| 29 |
+
non-standard or distorted characters, `summary` holds the same sentence in standard
|
| 30 |
+
Sorani orthography. Use it for text normalisation, spell correction, or to learn the
|
| 31 |
+
character-level mapping rules.
|
| 32 |
+
|
| 33 |
+
## At a glance
|
| 34 |
+
|
| 35 |
+
| | |
|
| 36 |
+
|---|---|
|
| 37 |
+
| Rows | 5,997,025 — `train` 5,330,689 / `test` 666,336 |
|
| 38 |
+
| Columns | `text` (noisy input), `summary` (normalised target) |
|
| 39 |
+
| Parquet on disk | 904.5 MB (1.57 GB uncompressed) |
|
| 40 |
+
| Row groups | 667 in the test shard, ~1,000 rows each |
|
| 41 |
+
| Language | Central Kurdish / Sorani (ckb) |
|
| 42 |
+
|
| 43 |
+
> **Naming note:** despite the column name, `summary` is **not** a summary — it is
|
| 44 |
+
> the normalised rewrite of `text`. Both sides carry the same content.
|
| 45 |
+
|
| 46 |
+
## How the two sides differ
|
| 47 |
+
|
| 48 |
+
Measured on 1,000 rows of the `test` split:
|
| 49 |
+
|
| 50 |
+
| | |
|
| 51 |
+
|---|---|
|
| 52 |
+
| Rows where `text` == `summary` | 20 (2%) |
|
| 53 |
+
| Mean character-level edit distance | 21.5 |
|
| 54 |
+
| Max edit distance | 85 |
|
| 55 |
+
| Mean length `text` / `summary` | 69.3 / 67.3 chars |
|
| 56 |
+
|
| 57 |
+
Which characters get fixed (rows affected out of 1,000):
|
| 58 |
+
|
| 59 |
+
| Change | Rows |
|
| 60 |
+
|---|---|
|
| 61 |
+
| `ي` (U+064A Arabic yeh) → `ی` (U+06CC Farsi yeh) | 682 |
|
| 62 |
+
| `ة` (U+0629 teh marbuta) → `ە` (U+06D5) | 384 |
|
| 63 |
+
| `ه` (U+0647) → `ە` (U+06D5) | 397 |
|
| 64 |
+
| `ث` (U+062B) → `س` (U+0633) | 114 |
|
| 65 |
+
| `ذ` (U+0630) → `ز` (U+0632) | 68 |
|
| 66 |
+
|
| 67 |
+
Example pair:
|
| 68 |
+
|
| 69 |
+
```
|
| 70 |
+
text : يابان بؤ خؤي بش ئه و قه يرانه طه نگوجه له مه ي ئابووري هه ره فراواني ...
|
| 71 |
+
summary : یابان بۆ خۆی پێش ئەو قەیڕانە تەنگوچەلەمەی ئابووری هەرەفراوانی ...
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
Some rows are far noisier than character substitution:
|
| 75 |
+
|
| 76 |
+
```
|
| 77 |
+
text : اهي اهگهر پئشمهرگه نهبايه حكمهطي بهعث عثهي پاقلاه ...
|
| 78 |
+
summary : ئەی ئەگەر پێشمەرگە نەبووایە حکومەتی بەعس عوسەی پاقلاوەو ...
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
## Usage
|
| 82 |
+
|
| 83 |
+
```python
|
| 84 |
+
from datasets import load_dataset
|
| 85 |
+
|
| 86 |
+
ds = load_dataset("razhan/script_normalization_ckb", split="test")
|
| 87 |
+
print(ds[0]["text"]) # noisy
|
| 88 |
+
print(ds[0]["summary"]) # standard
|
| 89 |
+
|
| 90 |
+
# fine-tune any encoder-decoder for normalisation, or mine substitution rules:
|
| 91 |
+
pairs = ds.select(range(200_000))
|
| 92 |
+
```
|
| 93 |
+
|
| 94 |
+
## Known limitations
|
| 95 |
+
|
| 96 |
+
- The corpus is synthetic in construction: noise was introduced into clean text, so
|
| 97 |
+
the error distribution reflects the generator, not real user typos.
|
| 98 |
+
- `summary` is the target and the column name is misleading (left in place for
|
| 99 |
+
backwards compatibility).
|
| 100 |
+
- Only character/orthography-level repair is targeted; it does not correct grammar
|
| 101 |
+
or word choice, and heavily distorted rows can still normalise to a different
|
| 102 |
+
token sequence.
|
| 103 |
+
- Rows are single sentences — no document context.
|
| 104 |
+
|
| 105 |
+
## Related
|
| 106 |
+
|
| 107 |
+
- `razhan/riste` — line-by-line Sorani sentences (a likely source pool).
|
| 108 |
+
- `razhan/kteb`, `razhan/kteb-dataset` — book text in mixed orthography.
|