Datasets:
MarieRoald
commited on
Add data card
Browse files
README.md
CHANGED
@@ -76,4 +76,72 @@ configs:
|
|
76 |
path: data/validation-*
|
77 |
- split: test
|
78 |
path: data/test-*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
path: data/validation-*
|
77 |
- split: test
|
78 |
path: data/test-*
|
79 |
+
license: cc-by-3.0
|
80 |
+
task_categories:
|
81 |
+
- image-to-text
|
82 |
+
tags:
|
83 |
+
- OCR
|
84 |
+
- ATR
|
85 |
+
- Sámi
|
86 |
+
- synthetic
|
87 |
+
pretty_name: Synthetic OCR data for North, South, Lule and Inari Sámi
|
88 |
+
size_categories:
|
89 |
+
- 100K<n<1M
|
90 |
+
language:
|
91 |
+
- sma
|
92 |
+
- sme
|
93 |
+
- smj
|
94 |
+
- smn
|
95 |
+
- smi
|
96 |
+
- se
|
97 |
---
|
98 |
+
|
99 |
+
# Synthetic text images for North, South, Lule and Inari Sámi
|
100 |
+
This dataset contains synthetic line images meant for fitting OCR models for North, South, Lule and Inari Sámi.
|
101 |
+
Clean line images are created using Pillow and they are subsequently distorted using Augraphy [[1]].
|
102 |
+
|
103 |
+
## Text sources
|
104 |
+
The text in this dataset comes from [Giellatekno]'s corpus. Specifically, we used the data files of the `converted/`-directories of [[2]][[3]][[4]][[5]] (commit hashes `32f4af263cefae6ab9182638e2451ff151757adc`, `00dac0e9e74b4a89214ad7d34de27b83362b3f3a`, `4303edf80ae5eee2a036663c7b38756a0aa2a189`, `7e3437ce8c7dc7692ccbd2505412c03e9e617be6`).
|
105 |
+
|
106 |
+
## Splits
|
107 |
+
The dataset is split randomly by file so 71 % of the files (307387 lines) are in the training split, 9 % of the files (40765 lines) are in the validation split and 20 % of the files (84534 lines) are in the test split.
|
108 |
+
Each split has a unique set of typefaces and text/background colors.
|
109 |
+
|
110 |
+
## Language distribution
|
111 |
+
The language distribution for the different languages are
|
112 |
+
|
113 |
+
| Language Code | Num train lines | Num val lines | Num test lines |
|
114 |
+
|---------------|-----------------------|---------------------|----------------------|
|
115 |
+
| sma | 76971 | 10992 | 21981 |
|
116 |
+
| sme | 76949 | 10992 | 21990 |
|
117 |
+
| smj | 76970 | 9081 | 20465 |
|
118 |
+
| smn | 76497 | 9700 | 20098 |
|
119 |
+
|
120 |
+
## Code
|
121 |
+
The code to create this dataset is available on our [GitHub Repo] (commit hash `90341bc19d6368c7848dcc2459065058486a89ea`).
|
122 |
+
|
123 |
+
## Referencing the dataset
|
124 |
+
If you use this dataset in your research, then please cite both
|
125 |
+
"Enstad T, Trosterud T, Røsok MI, Beyer Y, Roald M. Comparative analysis of optical character recognition methods for Sámi texts from the National Library of Norway. Accepted for publication in Proceedings of the 25th Nordic Conference on Computational Linguistics (NoDaLiDa) 2025."
|
126 |
+
(see the [paper repository]) and the SIKOR dataset the Sámi text is from:
|
127 |
+
"SIKOR UiT The Arctic University of Norway and the Norwegian Saami Parliament's Saami text collection, http://gtweb.uit.no/korp, Version 01.12.2021 [Data set]."
|
128 |
+
Also note that the SIKOR dataset to get Sámi text for the images is (CC-BY 3.0) licensed.
|
129 |
+
|
130 |
+
## Dataset license
|
131 |
+
The dataset is licensed with a CC-BY 3.0 license.
|
132 |
+
|
133 |
+
[1]: https://github.com/sparkfish/augraphy
|
134 |
+
|
135 |
+
[2]: https://github.com/giellalt/corpus-sma
|
136 |
+
|
137 |
+
[3]: https://github.com/giellalt/corpus-sme
|
138 |
+
|
139 |
+
[4]: https://github.com/giellalt/corpus-smj
|
140 |
+
|
141 |
+
[5]: https://github.com/giellalt/corpus-smn
|
142 |
+
|
143 |
+
[Giellatekno]: https://giellatekno.uit.no/
|
144 |
+
|
145 |
+
[GitHub Repo]: https://github.com/Sprakbanken/synthetic_text_images
|
146 |
+
|
147 |
+
[paper repository]: https://github.com/Sprakbanken/nodalida25_sami_ocr
|