Update README.md
Browse files
README.md
CHANGED
|
@@ -34,3 +34,80 @@ configs:
|
|
| 34 |
- split: train
|
| 35 |
path: uncleaned/train-*
|
| 36 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
- split: train
|
| 35 |
path: uncleaned/train-*
|
| 36 |
---
|
| 37 |
+
|
| 38 |
+
# Burmese OCR Dataset (Hugging Face Format)
|
| 39 |
+
|
| 40 |
+
This is a reformatted version of [alexbeatson/burmese_ocr_data](https://huggingface.co/datasets/alexbeatson/burmese_ocr_data) converted into the native Hugging Face datasets format for easier loading and integration with modern OCR training pipelines.
|
| 41 |
+
|
| 42 |
+
## Dataset Description
|
| 43 |
+
|
| 44 |
+
This dataset contains Burmese text images and their corresponding ground truth text extracted from real-life documents, suitable for training Optical Character Recognition (OCR) models.
|
| 45 |
+
|
| 46 |
+
### Source
|
| 47 |
+
|
| 48 |
+
The original data was curated from the [Burma Library](https://www.burmalibrary.org/) archive, which collects and preserves government and NGO documents. Documents were processed using Google Document AI to extract text and bounding boxes, then cropped into single-line text images.
|
| 49 |
+
|
| 50 |
+
## Dataset Structure
|
| 51 |
+
|
| 52 |
+
The dataset consists of two subsets:
|
| 53 |
+
|
| 54 |
+
| Subset | Samples | Description |
|
| 55 |
+
|--------|---------|-------------|
|
| 56 |
+
| `cleaned` | 9,065 | Manually validated by two individuals. Some errors may still be present. |
|
| 57 |
+
| `uncleaned` | 162,863 | Raw images from Google Document AI output, without manual review. |
|
| 58 |
+
|
| 59 |
+
### Features
|
| 60 |
+
|
| 61 |
+
- `image`: Single-line text image in PNG format (RGB)
|
| 62 |
+
- `text`: Corresponding ground truth text
|
| 63 |
+
|
| 64 |
+
## Usage
|
| 65 |
+
```python
|
| 66 |
+
from datasets import load_dataset
|
| 67 |
+
|
| 68 |
+
# Load the cleaned subset
|
| 69 |
+
cleaned = load_dataset("chuuhtetnaing/burmese_ocr_dataset_hf", "cleaned")
|
| 70 |
+
|
| 71 |
+
# Load the uncleaned subset
|
| 72 |
+
uncleaned = load_dataset("chuuhtetnaing/burmese_ocr_dataset_hf", "uncleaned")
|
| 73 |
+
|
| 74 |
+
# Load both subsets
|
| 75 |
+
dataset = load_dataset("chuuhtetnaing/burmese_ocr_dataset_hf")
|
| 76 |
+
|
| 77 |
+
# Access samples
|
| 78 |
+
sample = cleaned["train"][0]
|
| 79 |
+
print(sample["text"])
|
| 80 |
+
sample["image"].show()
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
## Specifications
|
| 84 |
+
|
| 85 |
+
- Images are in PNG format with RGB color encoding
|
| 86 |
+
- Character range includes any characters supported by Google Document AI that appear in Burmese documents
|
| 87 |
+
- May contain mixed scripts (Burmese with occasional English/numbers)
|
| 88 |
+
|
| 89 |
+
## Training Recommendations
|
| 90 |
+
|
| 91 |
+
For curriculum learning, consider training in the following order:
|
| 92 |
+
1. Synthetic data (if available)
|
| 93 |
+
2. `uncleaned` subset
|
| 94 |
+
3. `cleaned` subset
|
| 95 |
+
|
| 96 |
+
## Citation
|
| 97 |
+
|
| 98 |
+
If you use this dataset, please cite the original source:
|
| 99 |
+
```bibtex
|
| 100 |
+
@dataset{burmese_ocr_data,
|
| 101 |
+
author = {Alex Beatson},
|
| 102 |
+
title = {Burmese OCR Data},
|
| 103 |
+
year = {2024},
|
| 104 |
+
publisher = {Hugging Face},
|
| 105 |
+
url = {https://huggingface.co/datasets/alexbeatson/burmese_ocr_data}
|
| 106 |
+
}
|
| 107 |
+
```
|
| 108 |
+
|
| 109 |
+
## Acknowledgments
|
| 110 |
+
|
| 111 |
+
- Original dataset by [alexbeatson](https://huggingface.co/alexbeatson)
|
| 112 |
+
- Data sourced from [Burma Library](https://www.burmalibrary.org/)
|
| 113 |
+
- Text extraction powered by Google Document AI
|