Update README.md
Browse files
README.md
CHANGED
|
@@ -7,13 +7,60 @@ dataset_info:
|
|
| 7 |
dtype: string
|
| 8 |
splits:
|
| 9 |
- name: train
|
| 10 |
-
num_bytes: 1759539306
|
| 11 |
num_examples: 2160000
|
| 12 |
download_size: 1866820804
|
| 13 |
-
dataset_size: 1759539306
|
| 14 |
configs:
|
| 15 |
- config_name: default
|
| 16 |
data_files:
|
| 17 |
- split: train
|
| 18 |
path: data/train-*
|
|
|
|
|
|
|
| 19 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
dtype: string
|
| 8 |
splits:
|
| 9 |
- name: train
|
| 10 |
+
num_bytes: 1759539306
|
| 11 |
num_examples: 2160000
|
| 12 |
download_size: 1866820804
|
| 13 |
+
dataset_size: 1759539306
|
| 14 |
configs:
|
| 15 |
- config_name: default
|
| 16 |
data_files:
|
| 17 |
- split: train
|
| 18 |
path: data/train-*
|
| 19 |
+
language:
|
| 20 |
+
- ar
|
| 21 |
---
|
| 22 |
+
# Arabic OCR Dataset
|
| 23 |
+
|
| 24 |
+
## Overview
|
| 25 |
+
The Arabic OCR Dataset is a comprehensive resource aimed at enhancing Optical Character Recognition (OCR) capabilities for the Arabic language. The dataset consists of over 2 million labeled images of Arabic text extracted from diverse sources, ideal for training and benchmarking Arabic OCR models.
|
| 26 |
+
|
| 27 |
+
## Dataset Details
|
| 28 |
+
- **Dataset Size**: ~2.16 million labeled samples
|
| 29 |
+
- **Total File Size**: 1.87 GB
|
| 30 |
+
- **Format**: Parquet
|
| 31 |
+
- **Modalities**: Images and Text
|
| 32 |
+
- **Languages**: Arabic
|
| 33 |
+
|
| 34 |
+
## Structure
|
| 35 |
+
Each entry in the dataset includes:
|
| 36 |
+
- `image`: An image file containing Arabic text.
|
| 37 |
+
- `text`: Corresponding Arabic text as ground truth.
|
| 38 |
+
|
| 39 |
+
The images vary in width from 29px to 222px, containing text samples ranging from 7 to 10 characters in length.
|
| 40 |
+
|
| 41 |
+
## Intended Uses
|
| 42 |
+
This dataset is designed for:
|
| 43 |
+
- Training state-of-the-art Arabic OCR models.
|
| 44 |
+
- Evaluating performance of OCR systems.
|
| 45 |
+
- Research in Arabic Natural Language Processing (NLP).
|
| 46 |
+
|
| 47 |
+
## Limitations
|
| 48 |
+
- Text length is limited to short to medium-length Arabic text snippets.
|
| 49 |
+
- Variability in image quality may affect OCR performance.
|
| 50 |
+
|
| 51 |
+
## How to Use
|
| 52 |
+
### Loading the Dataset
|
| 53 |
+
```python
|
| 54 |
+
from datasets import load_dataset
|
| 55 |
+
|
| 56 |
+
# Load Arabic OCR Dataset
|
| 57 |
+
dataset = load_dataset("mssqapi/Arabic-OCR-Dataset")
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
### Accessing Data Samples
|
| 61 |
+
```python
|
| 62 |
+
# Example of accessing data sample
|
| 63 |
+
sample = dataset['train'][0]
|
| 64 |
+
print(sample['text'])
|
| 65 |
+
display(sample['image'])
|
| 66 |
+
```
|