Dataset Viewer
The dataset viewer is not available for this dataset.
Cannot get the config names for the dataset.
Error code:   ConfigNamesError
Exception:    RuntimeError
Message:      Dataset scripts are no longer supported, but found sanskrit-ocr-post-correction.py
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/dataset/config_names.py", line 66, in compute_config_names_response
                  config_names = get_dataset_config_names(
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/.venv/lib/python3.12/site-packages/datasets/inspect.py", line 161, in get_dataset_config_names
                  dataset_module = dataset_module_factory(
                                   ^^^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/.venv/lib/python3.12/site-packages/datasets/load.py", line 1031, in dataset_module_factory
                  raise e1 from None
                File "/src/services/worker/.venv/lib/python3.12/site-packages/datasets/load.py", line 989, in dataset_module_factory
                  raise RuntimeError(f"Dataset scripts are no longer supported, but found {filename}")
              RuntimeError: Dataset scripts are no longer supported, but found sanskrit-ocr-post-correction.py

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

Sanskrit OCR Post-Correction Dataset

Dataset Summary

This dataset provides a benchmark for post-OCR text correction in Sanskrit. It contains manually post-edited OCR data from classical Sanskrit texts written in Devanagari script. The dataset is designed to help develop and evaluate models for correcting errors introduced during the OCR process of Sanskrit documents.

Supported Tasks and Leaderboards

  • Text Correction: The primary task is to correct OCR errors in Sanskrit text
  • Post-Editing: Can be used for training post-editing models for OCR outputs
  • Text Generation: Can be framed as a sequence-to-sequence text generation task

Languages

  • Sanskrit (Devanagari script)

Dataset Structure

The dataset is stored in efficient Parquet format for faster loading and processing.

Data Instances

Each instance contains an OCR output text and its manually corrected version:

{
  "input_text": "ज्योतिष्ठोमेन स्वर्गकामो यजेतेति वाक्ये स्वर्गका-मपदश्रवणेन तस्याधिकारविधित्वनिर्णयादिति भावः ।",
  "target_text": "ज्योतिट्षोमेन स्वर्गकामो यजेतेति वाक्ये स्वर्गका- मपदश्रवणेन तस्याधिकारविधित्वनिर्णयादिति भावः ।"
}

Data Fields

  • input_text (string): The OCR output text containing errors
  • target_text (string): The manually corrected ground truth text

Data Splits

The dataset contains four splits:

Split Number of Examples
train 208,138
validation 23,126
test 34,691
ood_test 500

The ood_test split contains out-of-domain test examples as described in Section 4.1 of the paper.

Dataset Creation

Curation Rationale

This dataset was created to address the lack of resources for post-OCR correction in Sanskrit, a low-resource language with significant historical and cultural texts that need digitization.

Source Data

Initial Data Collection and Normalization

The dataset is derived from OCR outputs of classical Sanskrit texts including:

  • BHS: Brahmasutra Bhashyam
  • GG: Grahalaghava of Ganesh Daivajna
  • GOS: Goladhyaya

Refer paper for complete list of texts.

The OCR outputs were manually corrected by Sanskrit experts to create the ground truth.

Personal and Sensitive Information

The dataset contains classical Sanskrit texts and does not include any personal or sensitive information.

Considerations for Using the Data

Social Impact of Dataset

This dataset can help preserve and digitize Sanskrit literature by improving OCR accuracy for Sanskrit texts.

Discussion of Biases

The dataset is focused on classical Sanskrit texts and may not generalize well to modern Sanskrit usage or informal texts.

Other Known Limitations

  • Limited to Devanagari script
  • Focused on specific classical texts
  • May not cover all types of OCR errors

Additional Information

Dataset Curators

  • Ayush Maheshwari
  • Nikhil Singh
  • Amrith Krishna
  • Ganesh Ramakrishnan

Licensing Information

MIT License

Citation Information

@inproceedings{maheshwari2022benchmark,
  title={A Benchmark and Dataset for Post-OCR text correction in Sanskrit},
  author={Maheshwari, Ayush and Singh, Nikhil and Krishna, Amrith and Ramakrishnan, Ganesh},
  booktitle={Findings of the Association for Computational Linguistics: EMNLP 2022},
  pages={6258--6265},
  year={2022}
}
Downloads last month
31