Datasets:
File size: 4,120 Bytes
7791855 |
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 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 |
---
license: cc-by-4.0
task_categories:
- image-to-text
language:
- ti
tags:
- ocr
- tigrinya
- geez-script
- text-recognition
- geezlab
size_categories:
- 100K<n<1M
pretty_name: GLOCR - GeezLab OCR Dataset
configs:
- config_name: news
data_files:
- split: train
path: data/news/train.parquet
- split: validation
path: data/news/validation.parquet
- split: test
path: data/news/test.parquet
- config_name: bible
data_files:
- split: train
path: data/bible/train.parquet
- split: validation
path: data/bible/validation.parquet
- split: test
path: data/bible/test.parquet
- config_name: top150k
data_files:
- split: train
path: data/top150k/train.parquet
- split: validation
path: data/top150k/validation.parquet
- split: test
path: data/top150k/test.parquet
- config_name: characters
data_files:
- split: train
path: data/characters/train.parquet
- split: validation
path: data/characters/validation.parquet
- split: test
path: data/characters/test.parquet
- config_name: unsegmented
data_files:
- split: train
path: data/unsegmented/train.parquet
- config_name: all
data_files:
- split: train
path: data/*/train.parquet
- split: validation
path: data/*/validation.parquet
- split: test
path: data/*/test.parquet
default: true
---
# GLOCR: GeezLab OCR Dataset
## Overview
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.
### Dataset Summary
- **Total samples**: ~661K image-label pairs
- **Total size**: >1.3GB (tar.gz archives)
- **DOI**: [10.7910/DVN/RQTSD2](https://doi.org/10.7910/DVN/RQTSD2)
### Dataset Subsets
| Config | Description | Train | Validation | Test |
|--------|-------------|------:|-----------:|-----:|
| `news` | Newspaper text-lines | 200K | 15K | 15K |
| `bible` | Biblical text-lines | 80K | 10K | 10K |
| `top150k` | Word trigrams | 150K | 15K | 15K |
| `characters` | Single characters | 120K | 15K | 15K |
| `unsegmented` | Full-page scans | 506 | - | - |
## Usage
### Loading a specific subset
```python
from datasets import load_dataset
# Load a specific subset, one of: news, bible, top150k, characters, unsegmented
news = load_dataset("fgaim/GLOCR-Tigrinya", "news")
# Access samples
sample = news["train"][0]
print(sample["text"])
sample["image"].show()
```
### Loading a specific split
```python
# Load a specific split of a subset
bible_test = load_dataset("fgaim/GLOCR-Tigrinya", "bible", split="test")
# Access samples
print(bible_test["text"][0])
bible_test["image"][0].show()
```
### Loading all text-line data combined
```python
# Load all text-line data combined
all_data = load_dataset("fgaim/GLOCR-Tigrinya", "all")
# Access samples
sample = all_data["train"][0]
print(sample["text"])
sample["image"].show()
```
## Links
- [Harvard Dataverse](https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/RQTSD2)
- [GitHub Repository](https://github.com/fgaim/GLOCR)
## Citation
```bibtex
@data{gaim-2021-glocr,
title = {{GLOCR: GeezLab OCR Dataset}},
author = {Fitsum Gaim},
year = {2021},
month = {April},
publisher = {Harvard Dataverse},
version = {1.0},
doi = {10.7910/DVN/RQTSD2},
url = {https://doi.org/10.7910/DVN/RQTSD2},
dataverse = {https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/RQTSD2}
}
```
## License
This work is licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/).
<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>
|