--- license: cc-by-4.0 task_categories: - image-to-text language: - ti tags: - ocr - tigrinya - geez-script - text-recognition - geezlab size_categories: - 100K1.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/). Creative Commons License