ks-pret-5m: a 5 million word, 12 million token kashmiri pretraining dataset
Abstract
We present KS-PRET-5M, the largest publicly available pretraining dataset for the Kashmiri language, comprising 5,090,244 (5.09M) words, 27,692,959 (27.6M) characters, and a vocabulary of 295,433 (295.4K) unique word types. We assembled the dataset from two source classes: digitized archival and literary material, encompassing literature, news, biographies, novels, poetry, religious scholarship, and academic writing, recovered from the proprietary InPage desktop-publishing format using the converter of Malik~\cite{malik2024inpage}, and Unicode-native text collected from Kashmiri-language web sources. All text was processed through an eleven-stage cleaning pipeline that achieves a mean Kashmiri script ratio of 0.9965, reducing Devanagari contamination to 146 characters across the full dataset. We tokenized the dataset empirically using google/muril-base-cased, yielding a subword ratio of 2.383 tokens per word and a total of approximately 12.13 million subword tokens, substantially higher than prior estimates derived from non-Kashmiri Perso-Arabic analogues. KS-PRET-5M is released as a single continuous text stream under CCBY4.0 to support language model pretraining, tokenizer training, and computational linguistic research for Kashmiri.
Figures & tables
| Stage | Operation |
|---|---|
| 1 | Encoding repair ( ftfy ): mojibake and broken Unicode |
| 2 | Markup removal: Markdown, inline code, HTML/XML tags |
| 3 | URL and email address removal |
| 4 | Phone number removal (international and local formats) |
| 5 | Latin script removal: all English and Roman-script tokens |
| 6 | Noise symbol removal: emoji, control characters, box-drawing |
| Range | Content |
|---|---|
| U+0600–U+06FF | Kashmiri Nastaliq (core Arabic block) |
| U+FB50–U+FDFF | Arabic Presentation Forms-A |
| U+FE70–U+FEFF | Arabic Presentation Forms-B |
| U+0750–U+077F | Arabic Supplement |
| U+0900–U+097F | Devanagari Kashmiri |
| U+0660–U+06F9 | Arabic-Indic digits |
| Metric | Value |
|---|---|
| Total characters | 27,692,959 |
| Total words | 5,090,244 |
| Vocabulary size | 295,433 unique types |
| Type-token ratio (TTR) | 0.0580 |
| Hapax legomena | 140,063 |
| Avg. word frequency | 17.23 |
| Category | Count | Share |
|---|---|---|
| Nastaliq / Arabic script | 22,510,292 | 81.3% |
| Kashmiri punctuation | 156,544 | 0.57% |
| Arabic-Indic numerals | 78,626 | 0.28% |
| Devanagari script | 146 | 0.001% |
| Whitespace and other | remainder | – |
Low-Resource Language Processing
Low-resource language processing builds and evaluates language technologies for languages with limited data, tools, or digital representation.
See all 565 papers