Research in practice

SanskritEval: A Benchmark for Linguistic Generalisation in Sanskrit NLP

Benchmark suite for evaluating language models on Sanskrit sandhi segmentation and morphological case agreement using mBERT, XLM-R, IndicBERT, and MuRIL.

CompletedLM Evaluation · Low-resource NLP · Morphology · Benchmark Design

Benchmark composition from the project dataset; counts are not performance scores.

The question & approach

A benchmark for probing whether multilingual transformers learn genuine linguistic abstraction or surface-level patterns in Sanskrit. Built on 701 verses from the Bhagavad Gita with sandhi segmentation tasks (701 silver + 200 gold examples) and morphological acceptability contrast sets (500 minimal pairs over 8 cases × 3 numbers × 3 genders). Evaluates five transformer backbones and reports against a rule-based baseline.

Methods

Sandhi segmentation, morphological acceptability minimal pairs, transformer fine-tuning, rule-based baselines.

Evidence & evaluation

How it was assessed

Rule-based baseline reaches 1.000 F1; transformer models evaluated under controlled splits.

Project-reported evaluation. See the source repository for implementation and experimental context.

Contributions

  • Sandhi segmentation task with P/R/F1 metrics on silver and gold splits.
  • Morphological acceptability with 500 minimal pairs over case/number/gender.
  • Multi-model evaluation across mBERT, XLM-R Base/Large, IndicBERT, and MuRIL.
  • Rule-based baseline for grounding transformer evaluation.
  • Paper-style automated reporting and CSV summary export.

The hard parts

  • Constructing high-quality sandhi gold annotations requiring expert linguistic input.
  • Designing minimal-pair contrast sets that isolate morphological structure.
  • Comparing models with vastly different pretraining corpora on a fair footing.

Follow another question

More to explore.

Back to research