Samasāmayik: A Parallel Dataset for Hindi-Sanskrit Machine Translation
Organizations: Indian Institute of Technology Bombay · Geakminds Technologies Private Limited · Indian Institute of Technology Roorkee
Abstract
We release Samasāmayik, a novel, meticulously curated, large-scale Hindi-Sanskrit corpus, comprising 92,196 parallel sentences. Unlike most data available in Sanskrit, which focuses on classical era text and poetry, this corpus aggregates data from diverse sources covering contemporary materials, including spoken tutorials, children's magazines, radio conversations, and instruction materials. We benchmark this new dataset by fine-tuning three complementary models - ByT5, NLLB and IndicTrans-v2, to demonstrate its utility. Our experiments demonstrate that models trained on the Samasamayik corpus achieve significant performance gains on in-domain test data, while achieving comparable performance on other widely used test sets, establishing a strong new performance baseline for contemporary Hindi-Sanskrit translation. Furthermore, a comparative analysis against existing corpora reveals minimal semantic and lexical overlap, confirming the novelty and non-redundancy of our dataset as a robust new resource for low-resource Indic language MT.
Figures & tables
| Hindi | Sanskrit | |
| Total Sentences | 90,016 | 90,016 |
| Total Words | 1,167,555 | 800,704 |
| Unique Words | 97,284 | 180,754 |
| Type–Token Ratio (TTR) | 0.083 | 0.226 |
| Average Sentence Length (words) | 12.97 | 8.90 |
| Median Sentence Length (words) | 11.00 | 8.00 |
| Statistic | Hindi | Sanskrit |
| Total Sentences | 1,839 | 1,839 |
| Total Words | 23,640 | 16,251 |
| Unique Words | 7,199 | 9166 |
| Type–Token Ratio (TTR) | 0.305 | 0.564 |
| Average Sentence Length (words) | 12.85 | 8.84 |
| Median Sentence Length (words) | 11.00 | 8.00 |
| Model | google/byt5-base |
|---|---|
| Architecture | Encoder–Decoder (Seq2Seq) |
| Parameters | 580M |
| Tokenizer | Byte-level (UTF-8) |
| Max Lengths | 1024 (hin), 512 (san) |
| Batch Size | 8 |
| Optimizer | AdamW |
| Model | NLLB-200 Distilled 1.3B |
|---|---|
| Base Architecture | Transformer Encoder-Decoder (Seq2Seq) |
| Parameters | 1.29B |
| Tokenizer | SentencePiece (BPE, 256K vocab) |
| Max Lengths | 256 tokens |
| Batch Size | 8 |
| Optimizer | AdamW |
| Model | indictrans2-indic-indic-1B |
|---|---|
| Architecture | Transformer Encoder–Decoder (Seq2Seq) |
| Parameters | 1B |
| Tokenizer | SentencePiece (ULM, 256k vocab) |
| Max Lengths | 128 tokens |
| Batch Size | 8 |
| Optimizer | AdamW |
| Model | Training Data | Hindi Sanskrit | Sanskrit Hindi | ||||
|---|---|---|---|---|---|---|---|
| BLEU | chrF++ | WER | BLEU | chrF++ | WER | ||
| Samasāmayik (Test Set) | |||||||
| NLLB | BPCC | 5.90 | 36.62 | 1.00 | 9.30 | 33.95 | 0.90 |
| Samasāmayik | 15.83 | 51.29 | 0.81 | 9.51 | 34.24 | 0.89 | |
| IndicTrans | BPCC | 2.16 | 32.37 | 1.09 | 1.98 | 13.48 | 1.04 |
| Samasāmayik | 12.25 | 50.18 | 0.85 | 23.49 | 51.63 | 0.67 | |
| Dataset Pair | Jaccard | Cosine | OOV Rate (%) |
|---|---|---|---|
| BPCC vs. | |||
| Flores | 0.196 | 0.600 | 21.52 |
| IN22 | 0.201 | 0.614 | 25.44 |
| Ours | 0.174 | 0.551 | 55.56 |
| Samasamayik vs. | |||
| Flores | 0.174 | 0.551 | 43.93 |
Machine Translation
Machine translation develops computational methods for converting text, speech, and visual content between languages while preserving meaning and purpose.
See all 259 papers