File size: 2,990 Bytes
d79c8be
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# 📜 Epics Dataset (Cleaned CSV Format)

This repository contains cleaned and structured CSV datasets of major **Hindu Itihasa (Epics)** texts, originally sourced from  
**GRETIL – Göttingen Register of Electronic Texts in Indian Languages**.

🔗 Original Source: https://gretil.sub.uni-goettingen.de/gretil.html

The raw Sanskrit texts were extracted from GRETIL and processed into machine-readable CSV format for research, NLP, and data science applications.

---

## 📚 About the Source

**GRETIL (Göttingen Register of Electronic Texts in Indian Languages)**  
Maintained by the University of Göttingen, Germany.

GRETIL provides digitized classical Indian texts, primarily in transliterated Sanskrit (IAST format).

This repository does **not** claim ownership of the original texts.  
It provides cleaned and structured CSV versions strictly for research and educational purposes.

---

## 🧹 Data Cleaning & Processing Steps

The following preprocessing steps were applied:

- Removed header and footer metadata
- Cleaned encoding inconsistencies
- Standardized chapter and verse formatting
- Removed irregular spacing and special symbols
- Normalized verse numbering
- Structured text into tabular format
- Added Devanagari script (where applicable)
- Exported into CSV format

---

## 📂 Available Epics

The dataset includes cleaned CSV files for:

- Bhagavad Gita  
- Harivamsa  
- Mahabharata (Narayaniya section)  
- Valmiki Ramayana  

Each text is segmented at verse level for structured analysis.

---

## 🗂 Dataset Structure

Each CSV file typically contains the following columns:

| Column Name        | Description |
|--------------------|------------|
| Book / Parva / Kanda | Major division of the epic |
| Chapter / Adhyaya  | Chapter number |
| Verse Number       | Verse index |
| Verse Code         | Unique verse identifier |
| Text (IAST)        | Sanskrit text in transliteration |
| Text (Devanagari)  | Sanskrit text in Devanagari script |

> Note: Column names may vary slightly depending on the specific epic.

---

## 🎯 Possible Use Cases

- Sanskrit NLP research  
- LLM pretraining or fine-tuning  
- Retrieval-Augmented Generation (RAG)  
- Semantic search systems  
- Knowledge graph construction  
- Story structure analysis  
- Digital humanities research  
- Comparative scriptural studies  

---

## ⚠️ Disclaimer

- The original texts are sourced from GRETIL.
- This repository provides cleaned and structured datasets for educational and research purposes only.
- For authoritative versions, please refer to GRETIL.

---

## 📌 Citation

If you use this dataset in academic or research work, please cite:

**GRETIL – Göttingen Register of Electronic Texts in Indian Languages**  
https://gretil.sub.uni-goettingen.de/gretil.html

and reference this repository accordingly.

---

## 👤 Maintainer

Maintained by: **dataspoof**

For issues, improvements, or collaboration, feel free to open an issue or pull request.