Logo Lanfrica

fgaim/GLOCR

Domain:

natural language processing

Record type:

dataset
Creator:
fga
Host:
A Text Recognition (TR) and Optical Character Recognition (OCR) dataset for the Tigrinya language. # 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 ### Examples ### Download Dataset The GLOCR dataset is available on 🤗 Datasets hub. The raw dataset (>1.3GB) is published on Harvard Dataverse and can be downloaded from there. ### Components - News text-lines dataset: - Subset name: `news` - Samples: train (200k), dev (15k), and test (15k) - Download - Bible text-lines dataset: - Subset name: `bible` - Samples: train (80k), dev (10k), and test (10k) - Download - Top 150k text-lines dataset: - Subset name: `top150k` - Samples: train (150k), dev (15k), and test (15k) - Download - Characters dataset: - Subset name: `characters` - Samples: train (120k), dev (15k), and test (15k) - Download - Unsegmented full-page scanned dataset: - Subset name: `unsegmented` - Samples: 506 scanned pages with the corresponding text - Download ## Usage of HF Dataset ### 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 …