File size: 4,171 Bytes
493a8f9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
---
license: mit
task_categories:
- text-classification
- text-generation
language:
- sa
tags:
- text-generation
- post-editing
pretty_name: sanskrit-postocr
size_categories:
- 100K<n<1M
---

# Sanskrit OCR Post-Correction Dataset

## Dataset Description

- **Homepage:** https://github.com/ayushbits/pe-ocr-sanskrit
- **Repository:** https://github.com/ayushbits/pe-ocr-sanskrit
- **Paper:** [A Benchmark and Dataset for Post-OCR text correction in Sanskrit](http://arxiv.org/abs/2211.07980)

### 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:

```json
{
  "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

```bibtex
@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}
}
```