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|
| 5 |
+
language:
|
| 6 |
+
- ti
|
| 7 |
+
tags:
|
| 8 |
+
- ocr
|
| 9 |
+
- tigrinya
|
| 10 |
+
- geez-script
|
| 11 |
+
- text-recognition
|
| 12 |
+
- geezlab
|
| 13 |
+
size_categories:
|
| 14 |
+
- 100K<n<1M
|
| 15 |
+
pretty_name: GLOCR - GeezLab OCR Dataset
|
| 16 |
+
configs:
|
| 17 |
+
- config_name: news
|
| 18 |
+
data_files:
|
| 19 |
+
- split: train
|
| 20 |
+
path: data/news/train.parquet
|
| 21 |
+
- split: validation
|
| 22 |
+
path: data/news/validation.parquet
|
| 23 |
+
- split: test
|
| 24 |
+
path: data/news/test.parquet
|
| 25 |
+
- config_name: bible
|
| 26 |
+
data_files:
|
| 27 |
+
- split: train
|
| 28 |
+
path: data/bible/train.parquet
|
| 29 |
+
- split: validation
|
| 30 |
+
path: data/bible/validation.parquet
|
| 31 |
+
- split: test
|
| 32 |
+
path: data/bible/test.parquet
|
| 33 |
+
- config_name: top150k
|
| 34 |
+
data_files:
|
| 35 |
+
- split: train
|
| 36 |
+
path: data/top150k/train.parquet
|
| 37 |
+
- split: validation
|
| 38 |
+
path: data/top150k/validation.parquet
|
| 39 |
+
- split: test
|
| 40 |
+
path: data/top150k/test.parquet
|
| 41 |
+
- config_name: characters
|
| 42 |
+
data_files:
|
| 43 |
+
- split: train
|
| 44 |
+
path: data/characters/train.parquet
|
| 45 |
+
- split: validation
|
| 46 |
+
path: data/characters/validation.parquet
|
| 47 |
+
- split: test
|
| 48 |
+
path: data/characters/test.parquet
|
| 49 |
+
- config_name: unsegmented
|
| 50 |
+
data_files:
|
| 51 |
+
- split: train
|
| 52 |
+
path: data/unsegmented/train.parquet
|
| 53 |
+
- config_name: all
|
| 54 |
+
data_files:
|
| 55 |
+
- split: train
|
| 56 |
+
path: data/*/train.parquet
|
| 57 |
+
- split: validation
|
| 58 |
+
path: data/*/validation.parquet
|
| 59 |
+
- split: test
|
| 60 |
+
path: data/*/test.parquet
|
| 61 |
+
default: true
|
| 62 |
+
---
|
| 63 |
+
|
| 64 |
+
# GLOCR: GeezLab OCR Dataset
|
| 65 |
+
|
| 66 |
+
## Overview
|
| 67 |
+
|
| 68 |
+
GLOCR is a Text Recognition (TR) and Optical Character Recognition (OCR) dataset for the **Tigrinya language**. The dataset contains a total of 661K image-label pairs from multiple data sources. In addition to the characters-only data, the major part of the dataset is a collection of multi-word text images with labels from three categories: News (from Haddas Ertra newspaper), the Bible, and random-trigrams of the 150k most common words in Tigrinya.
|
| 69 |
+
|
| 70 |
+
### Dataset Summary
|
| 71 |
+
|
| 72 |
+
- **Total samples**: ~661K image-label pairs
|
| 73 |
+
- **Total size**: >1.3GB (tar.gz archives)
|
| 74 |
+
- **DOI**: [10.7910/DVN/RQTSD2](https://doi.org/10.7910/DVN/RQTSD2)
|
| 75 |
+
|
| 76 |
+
### Dataset Subsets
|
| 77 |
+
|
| 78 |
+
| Config | Description | Train | Validation | Test |
|
| 79 |
+
|--------|-------------|------:|-----------:|-----:|
|
| 80 |
+
| `news` | Newspaper text-lines | 200K | 15K | 15K |
|
| 81 |
+
| `bible` | Biblical text-lines | 80K | 10K | 10K |
|
| 82 |
+
| `top150k` | Word trigrams | 150K | 15K | 15K |
|
| 83 |
+
| `characters` | Single characters | 120K | 15K | 15K |
|
| 84 |
+
| `unsegmented` | Full-page scans | 506 | - | - |
|
| 85 |
+
|
| 86 |
+
## Usage
|
| 87 |
+
|
| 88 |
+
### Loading a specific subset
|
| 89 |
+
|
| 90 |
+
```python
|
| 91 |
+
from datasets import load_dataset
|
| 92 |
+
|
| 93 |
+
# Load a specific subset, one of: news, bible, top150k, characters, unsegmented
|
| 94 |
+
news = load_dataset("fgaim/GLOCR-Tigrinya", "news")
|
| 95 |
+
|
| 96 |
+
# Access samples
|
| 97 |
+
sample = news["train"][0]
|
| 98 |
+
print(sample["text"])
|
| 99 |
+
sample["image"].show()
|
| 100 |
+
```
|
| 101 |
+
|
| 102 |
+
### Loading a specific split
|
| 103 |
+
|
| 104 |
+
```python
|
| 105 |
+
# Load a specific split of a subset
|
| 106 |
+
bible_test = load_dataset("fgaim/GLOCR-Tigrinya", "bible", split="test")
|
| 107 |
+
|
| 108 |
+
# Access samples
|
| 109 |
+
print(bible_test["text"][0])
|
| 110 |
+
bible_test["image"][0].show()
|
| 111 |
+
```
|
| 112 |
+
|
| 113 |
+
### Loading all text-line data combined
|
| 114 |
+
|
| 115 |
+
```python
|
| 116 |
+
# Load all text-line data combined
|
| 117 |
+
all_data = load_dataset("fgaim/GLOCR-Tigrinya", "all")
|
| 118 |
+
|
| 119 |
+
# Access samples
|
| 120 |
+
sample = all_data["train"][0]
|
| 121 |
+
print(sample["text"])
|
| 122 |
+
sample["image"].show()
|
| 123 |
+
```
|
| 124 |
+
|
| 125 |
+
## Links
|
| 126 |
+
|
| 127 |
+
- [Harvard Dataverse](https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/RQTSD2)
|
| 128 |
+
- [GitHub Repository](https://github.com/fgaim/GLOCR)
|
| 129 |
+
|
| 130 |
+
## Citation
|
| 131 |
+
|
| 132 |
+
```bibtex
|
| 133 |
+
@data{gaim-2021-glocr,
|
| 134 |
+
title = {{GLOCR: GeezLab OCR Dataset}},
|
| 135 |
+
author = {Fitsum Gaim},
|
| 136 |
+
year = {2021},
|
| 137 |
+
month = {April},
|
| 138 |
+
publisher = {Harvard Dataverse},
|
| 139 |
+
version = {1.0},
|
| 140 |
+
doi = {10.7910/DVN/RQTSD2},
|
| 141 |
+
url = {https://doi.org/10.7910/DVN/RQTSD2},
|
| 142 |
+
dataverse = {https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/RQTSD2}
|
| 143 |
+
}
|
| 144 |
+
```
|
| 145 |
+
|
| 146 |
+
## License
|
| 147 |
+
|
| 148 |
+
This work is licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/).
|
| 149 |
+
|
| 150 |
+
<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://licensebuttons.net/l/by-sa/4.0/88x31.png" /></a>
|