A Benchmark and Dataset for Post-OCR text correction in Sanskrit
Not on the map. Why?
Abstract (arXiv)
Sanskrit is a classical language with about 30 million extant manuscripts fit for digitisation, available in written, printed or scannedimage forms. However, it is still considered to be a low-resource language when it comes to available digital resources. In this work, we release a post-OCR text correction dataset containing around 218,000 sentences, with 1.5 million words, from 30 different books. Texts in Sanskrit are known to be diverse in terms of their linguistic and stylistic usage since Sanskrit was the 'lingua franca' for discourse in the Indian subcontinent for about 3 millennia. Keeping this in mind, we release a multi-domain dataset, from areas as diverse as astronomy, medicine and mathematics, with some of them as old as 18 centuries. Further, we release multiple strong baselines as benchmarks for the task, based on pre-trained Seq2Seq language models. We find that our best-performing model, consisting of byte level tokenization in conjunction with phonetic encoding (Byt5+SLP1), yields a 23% point increase over the OCR output in terms of word and character error rates. Moreover, we perform extensive experiments in evaluating these models on their performance and analyse common causes of mispredictions both at the graphemic and lexical levels. Our code and dataset is publicly available at https://github.com/ayushbits/pe-ocr-sanskrit.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Builds on 13 of its 31 references that are in the map. First posted on arXiv 15 Nov 2022.
Builds on
13 of 31 references.
References · 13
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
- 2020mT5: A massively multilingual pre-trained text-to-text transformercited by 1,818
- 2020Multilingual Denoising Pre-training for Neural Machine Translationcited by 1,035
- 2021ByT5: Towards a token-free future with pre-trained byte-to-byte modelscited by 509
- 2020Autoregressive Entity Retrievalcited by 334
- 2020Multilingual Translation with Extensible Multilingual Pretraining and Finetuningcited by 287
- 2016Incorporating Copying Mechanism in Sequence-to-Sequence Learningcited by 218
- 2021Automatic Speech Recognition in Sanskrit: A New Speech Corpus and Modelling Insightscited by 14
- 2021Lexically Aware Semi-Supervised Learning for OCR Post-Correctioncited by 12
- 2018Upcycle Your OCR: Reusing OCRs for Post-OCR Text Correction in Romanised Sanskritcited by 7
- 2016Still not there? Comparing Traditional Sequence-to-Sequence Models to Encoder-Decoder Neural Networks on Monotone String Translation Taskscited by 6
1 more
Built on by
Citing papers per year: 2023: 1; 2024: 3; 2025: 4; 2026: 2.
10 papers.
- 2024One Model is All You Need: ByT5-Sanskrit, a Unified Model for Sanskrit NLP Taskscited by 15
- 2025CHURRO: Making History Readable with an Open-Weight Large Vision-Language Model for High-Accuracy, Low-Cost Historical Text Recognitioncited by 9
- 2024Advancing Post-OCR Correction: A Comparative Study of Synthetic Datacited by 8
- 2025PreP-OCR: A Complete Pipeline for Document Image Restoration and Enhanced OCR Accuracycited by 5
- 2023S=amayik: A Benchmark and Dataset for English-Sanskrit Translationcited by 3
- 2025ParamBench: A Graduate-Level Benchmark for Evaluating LLM Understanding on Indic Subjectscited by 3
- 2025Vision Language Models Are Not (Yet) Spelling Correctorscited by 1
- 2026BhashaSutra: A Task-Centric Unified Survey of Indian NLP Datasets, Corpora, and Resourcescited by 1
- 2024Revealing Trends in Datasets from the 2022 ACL and EMNLP Conferencescited by 0
- 2026Evaluating In-Context Learning and Retrieval Strategies for Devanagari Post-OCR Correctioncited by 0
- 2026Evaluating In-Context Learning and Retrieval Strategies for Devanagari Post-OCR Correction18 Sep 2026
- 2026BhashaSutra: A Task-Centric Unified Survey of Indian NLP Datasets, Corpora, and Resources20 Apr 2026
- 2025CHURRO: Making History Readable with an Open-Weight Large Vision-Language Model for High-Accuracy, Low-Cost Historical Text Recognition24 Sep 2025
- 2025Vision Language Models Are Not (Yet) Spelling Correctors22 Sep 2025
- 2025ParamBench: A Graduate-Level Benchmark for Evaluating LLM Understanding on Indic Subjects22 Aug 2025
- 2025PreP-OCR: A Complete Pipeline for Document Image Restoration and Enhanced OCR Accuracy26 May 2025
- 2024One Model is All You Need: ByT5-Sanskrit, a Unified Model for Sanskrit NLP Tasks20 Sep 2024
- 2024Advancing Post-OCR Correction: A Comparative Study of Synthetic Data5 Aug 2024
- 2024Revealing Trends in Datasets from the 2022 ACL and EMNLP Conferences31 Mar 2024
- 2023S=amayik: A Benchmark and Dataset for English-Sanskrit Translation23 May 2023