Update README.md
#1
by
aymaheshwari
- opened
README.md
CHANGED
|
@@ -1,165 +1,134 @@
|
|
| 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 |
-
- text
|
| 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 |
-
### Data
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
The
|
| 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 |
-
|
| 134 |
-
|
| 135 |
-
- Focused on specific classical texts
|
| 136 |
-
- May not cover all types of OCR errors
|
| 137 |
-
|
| 138 |
-
## Additional Information
|
| 139 |
-
|
| 140 |
-
### Dataset Curators
|
| 141 |
-
|
| 142 |
-
- Ayush Maheshwari
|
| 143 |
-
- Nikhil Singh
|
| 144 |
-
- Amrith Krishna
|
| 145 |
-
- Ganesh Ramakrishnan
|
| 146 |
-
|
| 147 |
-
### Licensing Information
|
| 148 |
-
|
| 149 |
-
MIT License
|
| 150 |
-
|
| 151 |
-
### Citation Information
|
| 152 |
-
|
| 153 |
-
```bibtex
|
| 154 |
-
@inproceedings{maheshwari2022benchmark,
|
| 155 |
-
title={A Benchmark and Dataset for Post-OCR text correction in Sanskrit},
|
| 156 |
-
author={Maheshwari, Ayush and Singh, Nikhil and Krishna, Amrith and Ramakrishnan, Ganesh},
|
| 157 |
-
booktitle={Findings of the Association for Computational Linguistics: EMNLP 2022},
|
| 158 |
-
pages={6258--6265},
|
| 159 |
-
year={2022}
|
| 160 |
-
}
|
| 161 |
-
```
|
| 162 |
-
|
| 163 |
-
### Contributions
|
| 164 |
-
|
| 165 |
-
Thanks to the authors for creating this valuable resource for Sanskrit NLP research.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
- text-classification
|
| 6 |
+
language:
|
| 7 |
+
- sa
|
| 8 |
+
tags:
|
| 9 |
+
- post-ocr-correction
|
| 10 |
+
- post-editing
|
| 11 |
+
- text-correction
|
| 12 |
+
pretty_name: sanskrit-postocr
|
| 13 |
+
size_categories:
|
| 14 |
+
- 100K<n<1M
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# Sanskrit OCR Post-Correction Dataset
|
| 18 |
+
|
| 19 |
+
## Dataset Description
|
| 20 |
+
|
| 21 |
+
- **Homepage:** https://github.com/ayushbits/pe-ocr-sanskrit
|
| 22 |
+
- **Repository:** https://github.com/ayushbits/pe-ocr-sanskrit
|
| 23 |
+
- **Paper:** [A Benchmark and Dataset for Post-OCR text correction in Sanskrit](http://arxiv.org/abs/2211.07980)
|
| 24 |
+
|
| 25 |
+
### Dataset Summary
|
| 26 |
+
|
| 27 |
+
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.
|
| 28 |
+
|
| 29 |
+
### Supported Tasks and Leaderboards
|
| 30 |
+
|
| 31 |
+
- **Text Correction**: The primary task is to correct OCR errors in Sanskrit text
|
| 32 |
+
- **Post-Editing**: Can be used for training post-editing models for OCR outputs
|
| 33 |
+
- **Text Generation**: Can be framed as a sequence-to-sequence text generation task
|
| 34 |
+
|
| 35 |
+
### Languages
|
| 36 |
+
|
| 37 |
+
- Sanskrit (Devanagari script)
|
| 38 |
+
|
| 39 |
+
## Dataset Structure
|
| 40 |
+
|
| 41 |
+
The dataset is stored in efficient Parquet format for faster loading and processing.
|
| 42 |
+
|
| 43 |
+
### Data Instances
|
| 44 |
+
|
| 45 |
+
Each instance contains an OCR output text and its manually corrected version:
|
| 46 |
+
|
| 47 |
+
```json
|
| 48 |
+
{
|
| 49 |
+
"input_text": "ज्योतिष्ठोमेन स्वर्गकामो यजेतेति वाक्ये स्वर्गका-मपदश्रवणेन तस्याधिकारविधित्वनिर्णयादिति भावः ।",
|
| 50 |
+
"target_text": "ज्योतिट्षोमेन स्वर्गकामो यजेतेति वाक्ये स्वर्गका- मपदश्रवणेन तस्याधिकारविधित्वनिर्णयादिति भावः ।"
|
| 51 |
+
}
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
### Data Fields
|
| 55 |
+
|
| 56 |
+
- `input_text` (string): The OCR output text containing errors
|
| 57 |
+
- `target_text` (string): The manually corrected ground truth text
|
| 58 |
+
|
| 59 |
+
### Data Splits
|
| 60 |
+
|
| 61 |
+
The dataset contains four splits:
|
| 62 |
+
|
| 63 |
+
| Split | Number of Examples |
|
| 64 |
+
|-------|-------------------|
|
| 65 |
+
| train | 208,138 |
|
| 66 |
+
| validation | 23,126 |
|
| 67 |
+
| test | 34,691 |
|
| 68 |
+
| ood_test | 500 |
|
| 69 |
+
|
| 70 |
+
The `ood_test` split contains out-of-domain test examples as described in Section 4.1 of the paper.
|
| 71 |
+
|
| 72 |
+
## Dataset Creation
|
| 73 |
+
|
| 74 |
+
### Curation Rationale
|
| 75 |
+
|
| 76 |
+
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.
|
| 77 |
+
|
| 78 |
+
### Source Data
|
| 79 |
+
|
| 80 |
+
#### Initial Data Collection and Normalization
|
| 81 |
+
|
| 82 |
+
The dataset is derived from OCR outputs of classical Sanskrit texts including:
|
| 83 |
+
- **BHS**: Brahmasutra Bhashyam
|
| 84 |
+
- **GG**: Grahalaghava of Ganesh Daivajna
|
| 85 |
+
- **GOS**: Goladhyaya
|
| 86 |
+
|
| 87 |
+
Refer paper for complete list of texts.
|
| 88 |
+
|
| 89 |
+
The OCR outputs were manually corrected by Sanskrit experts to create the ground truth.
|
| 90 |
+
|
| 91 |
+
### Personal and Sensitive Information
|
| 92 |
+
|
| 93 |
+
The dataset contains classical Sanskrit texts and does not include any personal or sensitive information.
|
| 94 |
+
|
| 95 |
+
## Considerations for Using the Data
|
| 96 |
+
|
| 97 |
+
### Social Impact of Dataset
|
| 98 |
+
|
| 99 |
+
This dataset can help preserve and digitize Sanskrit literature by improving OCR accuracy for Sanskrit texts.
|
| 100 |
+
|
| 101 |
+
### Discussion of Biases
|
| 102 |
+
|
| 103 |
+
The dataset is focused on classical Sanskrit texts and may not generalize well to modern Sanskrit usage or informal texts.
|
| 104 |
+
|
| 105 |
+
### Other Known Limitations
|
| 106 |
+
|
| 107 |
+
- Limited to Devanagari script
|
| 108 |
+
- Focused on specific classical texts
|
| 109 |
+
- May not cover all types of OCR errors
|
| 110 |
+
|
| 111 |
+
## Additional Information
|
| 112 |
+
|
| 113 |
+
### Dataset Curators
|
| 114 |
+
|
| 115 |
+
- Ayush Maheshwari
|
| 116 |
+
- Nikhil Singh
|
| 117 |
+
- Amrith Krishna
|
| 118 |
+
- Ganesh Ramakrishnan
|
| 119 |
+
|
| 120 |
+
### Licensing Information
|
| 121 |
+
|
| 122 |
+
MIT License
|
| 123 |
+
|
| 124 |
+
### Citation Information
|
| 125 |
+
|
| 126 |
+
```bibtex
|
| 127 |
+
@inproceedings{maheshwari2022benchmark,
|
| 128 |
+
title={A Benchmark and Dataset for Post-OCR text correction in Sanskrit},
|
| 129 |
+
author={Maheshwari, Ayush and Singh, Nikhil and Krishna, Amrith and Ramakrishnan, Ganesh},
|
| 130 |
+
booktitle={Findings of the Association for Computational Linguistics: EMNLP 2022},
|
| 131 |
+
pages={6258--6265},
|
| 132 |
+
year={2022}
|
| 133 |
+
}
|
| 134 |
+
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|