preetammukherjee commited on
Commit
6385015
·
verified ·
1 Parent(s): 705c5f0

Add dataset card (README.md)

Browse files
Files changed (1) hide show
  1. README.md +55 -0
README.md ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit # Or choose another appropriate license, e.g., cc-by-sa-4.0
3
+ language:
4
+ - sa # Sanskrit
5
+ tags:
6
+ - sanskrit
7
+ - morphology
8
+ - prakriya
9
+ - vidyut
10
+ - generative-grammar
11
+ - sequence-to-sequence
12
+ ---
13
+
14
+ # Vidyut-Prakriya Tinanta Dataset for Morphological Rendering
15
+
16
+ This dataset contains pairs of Sanskrit morphological metadata and their corresponding surface forms,
17
+ _generated_ and _verified_ using the `vidyut-prakriya` library.
18
+
19
+ ## Dataset Structure
20
+
21
+ The dataset is provided in JSON Lines (`.jsonl`) format. Each line is a JSON object with the following fields:
22
+
23
+ - `llm_input` (string): A textual representation of the morphological metadata. This serves as the input for a sequence-to-sequence LLM tasked with morphological rendering.
24
+ Example: `"Dhātu: BU (BvAdi), Lakāra: la~w, Prayoga: kartari, Puruṣa: praTama, Vacana: eka"`
25
+ - `surface_form_vidyut` (string): The Sanskrit surface form derived by `vidyut-prakriya` for the given metadata.
26
+ Example: `"Bavati"`
27
+
28
+ ## Generation Process
29
+
30
+ 1. **Dhātu Lexicon**: Dhātus (verb roots) are sourced from the `dhatupatha.tsv` provided with `vidyut-prakriya` (version 0.4.0 data).
31
+ 2. **Metadata Combination**: For each dhātu, combinations of the following morphological features are generated:
32
+ - `Lakāra` (tense/mood)
33
+ - `Prayoga` (voice: kartari, karmani, bhave)
34
+ - `Puruṣa` (person: prathama, madhyama, uttama)
35
+ - `Vacana` (number: eka, dvi, bahu)
36
+ 3. **Derivation & Verification**: The `vidyut.prakriya.Vyakarana.derive()` method is used to generate the surface form for each metadata combination. Only combinations that yield a valid surface form are included in the dataset.
37
+ 4. **LLM Input Format**: The `llm_input` string is formatted to be human-readable and suitable for sequence-to-sequence models. Enum values (Lakāra, Prayoga, etc.) are represented by their SLP1 strings (e.g., `la~w` for `Lakāra.Lat`).
38
+
39
+ ## Intended Use
40
+
41
+ This dataset is primarily intended for training and evaluating language models on the task of Sanskrit morphological rendering (i.e., generating a surface form from its underlying grammatical specification).
42
+
43
+ It can also be used for:
44
+ - Analyzing the coverage of `vidyut-prakriya`.
45
+ - Studies in Sanskrit computational linguistics.
46
+
47
+ ## Project Context
48
+
49
+ This dataset was generated as part of a project inspired by Rohan Pandey's call for RL projects for Sanskrit. The goal is to use this data to train a model for morphological rendering and subsequently evaluate its impact on English-to-Sanskrit translation quality.
50
+
51
+ ## Citation
52
+
53
+ If you use this dataset, please consider citing the `vidyut-prakriya` library and/or this repository (once created).
54
+
55
+ ```