Datasets:

Modalities:
Text
Formats:
csv
DOI:
Libraries:
Datasets
pandas
File size: 2,493 Bytes
845fdfe
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2768832
845fdfe
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2768832
845fdfe
 
 
 
 
 
 
 
 
 
 
2768832
845fdfe
 
 
 
 
 
 
 
2768832
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
---
dataset_info:
  pretty_name: Vyakaran
  creators: 
    - SanskritDatasets
  license: Apache-2.0
  language:
    - sa-Deva
  size_categories: 100K<n<1M
  task_categories:
    - token-classification
    - language-modeling
    - text-generation
  tags:
    - sanskrit
    - tokenization
    - morphology
    - classical-literature
---

# Vyakaran  
**616 k blazing Sanskrit sentences—43 classics to supercharge your NLP**

`vyakaran.csv` distils two‑and‑a‑half millennia of Sanskrit wisdom into an analysis‑ready corpus: every line is a sentence from a public‑domain classic, paired with the whitespace‑separated tokens that emerge when you roll back *sandhi* and compounds. The result is a dependable springboard for tokenisers, morphological taggers, and large‑language‑model pre‑training.

---

## At a Glance  

| Metric | Value |
| ------ | ----- |
| Rows (sentence–token pairs) | **616 082** |
| Unique sentences | 607 713 |
| Unique token strings | 604 319 |
| File size | 323 MB (UTF‑8 CSV) |
| Columns | `index` · `sanskrit` · `tokens` |
| Licence | Apache 2.0 |

---

## ✨ Dataset Summary  

> *Because Sanskrit is precision disguised as poetry.*  
> Vyakaran gathers verses, dialogue, and narrative from 43 classics—*Mahābhārata*, *Śiva Purāṇa*, *Tantrāloka*, *Buddha‑Carita*, and more—then hands you both the raw sentence and a token string you can feed straight to SentencePiece or a CRF tagger. Use it to **train segmenters, pre‑train transformers, benchmark morphology**, or just explore the linguistic art of the ancients.

---

## Data Fields  

| Column | Type | Description |
| ------ | ---- | ----------- |
| `index` | `int32` | 0‑based row identifier (primary key). |
| `sanskrit` | `string` | Original sentence in Devanāgarī, NFC‑normalised UTF‑8. |
| `tokens` | `string` | Whitespace‑separated morphological tokens generated by a rule‑based Pāṇinian splitter. |

---



##  Quick Start  

```python
from datasets import load_dataset
ds = load_dataset("snskrt/Vyakaran", split="train")

print(ds[0]["sanskrit"])
# नन्दति लोकः सुकृतैः ...
tokens = ds[0]["tokens"].split()

```
## Bibetext
```
@misc{sanskrit_datasets_2025,
  author    = {Sanskrit Datasets},
  title     = {Vyakaran (Revision ca374f9)},
  year      = {2025},
  url       = {https://huggingface.co/datasets/snskrt/Vyakaran},
  doi       = {10.57967/hf/6073},
  publisher = {Hugging Face}
}

```