Files changed (1) hide show
  1. README.md +134 -165
README.md CHANGED
@@ -1,165 +1,134 @@
1
- ---
2
- language:
3
- - sa
4
- license: mit
5
- size_categories:
6
- - 100K<n<1M
7
- task_categories:
8
- - text2text-generation
9
- - text-generation
10
- pretty_name: Sanskrit OCR Post-Correction
11
- dataset_info:
12
- features:
13
- - name: input_text
14
- dtype: string
15
- - name: target_text
16
- dtype: string
17
- splits:
18
- - name: train
19
- num_examples: 208138
20
- - name: validation
21
- num_examples: 23126
22
- - name: test
23
- num_examples: 34691
24
- - name: ood_test
25
- num_examples: 500
26
- tags:
27
- - ocr
28
- - post-editing
29
- - sanskrit
30
- - devanagari
31
- - text-correction
32
- - nlp
33
- ---
34
-
35
- # Sanskrit OCR Post-Correction Dataset
36
-
37
- ## Dataset Description
38
-
39
- - **Homepage:** https://github.com/ayushbits/pe-ocr-sanskrit
40
- - **Repository:** https://github.com/ayushbits/pe-ocr-sanskrit
41
- - **Paper:** [A Benchmark and Dataset for Post-OCR text correction in Sanskrit](http://arxiv.org/abs/2211.07980)
42
- - **Point of Contact:** Ayush Maheshwari
43
-
44
- ### Dataset Summary
45
-
46
- 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.
47
-
48
- ### Supported Tasks and Leaderboards
49
-
50
- - **Text Correction**: The primary task is to correct OCR errors in Sanskrit text
51
- - **Post-Editing**: Can be used for training post-editing models for OCR outputs
52
- - **Text Generation**: Can be framed as a sequence-to-sequence text generation task
53
-
54
- ### Languages
55
-
56
- - Sanskrit (Devanagari script)
57
-
58
- ## Dataset Structure
59
-
60
- The dataset is stored in efficient Parquet format for faster loading and processing.
61
-
62
- ### Data Instances
63
-
64
- Each instance contains an OCR output text and its manually corrected version:
65
-
66
- ```json
67
- {
68
- "input_text": "ज्योतिष्ठोमेन स्वर्गकामो यजेतेति वाक्ये स्वर्गका-मपदश्रवणेन तस्याधिकारविधित्वनिर्णयादिति भावः ।",
69
- "target_text": "ज्योतिट्षोमेन स्वर्गकामो यजेतेति वाक्ये स्वर्गका- मपदश्रवणेन तस्याधिकारविधित्वनिर्णयादिति भावः ।"
70
- }
71
- ```
72
-
73
- ### Data Fields
74
-
75
- - `input_text` (string): The OCR output text containing errors
76
- - `target_text` (string): The manually corrected ground truth text
77
-
78
- ### Data Splits
79
-
80
- The dataset contains four splits:
81
-
82
- | Split | Number of Examples |
83
- |-------|-------------------|
84
- | train | 208,138 |
85
- | validation | 23,126 |
86
- | test | 34,691 |
87
- | ood_test | 500 |
88
-
89
- The `ood_test` split contains out-of-domain test examples as described in Section 4.1 of the paper.
90
-
91
- ## Dataset Creation
92
-
93
- ### Curation Rationale
94
-
95
- 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.
96
-
97
- ### Source Data
98
-
99
- #### Initial Data Collection and Normalization
100
-
101
- The dataset is derived from OCR outputs of classical Sanskrit texts including:
102
- - **BHS**: Brahmasutra Bhashyam
103
- - **GG**: Grahalaghava of Ganesh Daivajna
104
- - **GOS**: Goladhyaya
105
-
106
- The OCR outputs were manually corrected by Sanskrit experts to create the ground truth.
107
-
108
- ### Annotations
109
-
110
- #### Annotation process
111
-
112
- Expert annotators with knowledge of Sanskrit manually corrected the OCR outputs to create the target texts.
113
-
114
- #### Who are the annotators?
115
-
116
- Sanskrit language experts familiar with classical texts and Devanagari script.
117
-
118
- ### Personal and Sensitive Information
119
-
120
- The dataset contains classical Sanskrit texts and does not include any personal or sensitive information.
121
-
122
- ## Considerations for Using the Data
123
-
124
- ### Social Impact of Dataset
125
-
126
- This dataset can help preserve and digitize Sanskrit literature by improving OCR accuracy for Sanskrit texts.
127
-
128
- ### Discussion of Biases
129
-
130
- The dataset is focused on classical Sanskrit texts and may not generalize well to modern Sanskrit usage or informal texts.
131
-
132
- ### Other Known Limitations
133
-
134
- - Limited to Devanagari script
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
+ ```