Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
# For reference on dataset card metadata, see the spec: https://github.com/huggingface/hub-docs/blob/main/datasetcard.md?plain=1
|
| 3 |
+
# Doc / guide: https://huggingface.co/docs/hub/datasets-cards
|
| 4 |
+
{}
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
# Dataset Card for Arabic Characters
|
| 8 |
+
|
| 9 |
+
<!-- Provide a quick summary of the dataset. -->
|
| 10 |
+
|
| 11 |
+
## Dataset Details
|
| 12 |
+
|
| 13 |
+
### Dataset Description
|
| 14 |
+
|
| 15 |
+
<!-- Provide a longer summary of what this dataset is. -->
|
| 16 |
+
This dataset contains 16,800 Arabic handwritten characters, written by 60 participants. It is intended for Arabic character recognition tasks using machine learning. The dataset is split into a training set of 13,440 images and a test set of 3,360 images, with 28 Arabic characters (labeled 0–27). Each image is 32×32 pixels in grayscale, scanned at 300 dpi and preprocessed. The original source is the Arabic Handwritten Characters Dataset.
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
- **License:** Open Database License (ODbL)
|
| 20 |
+
|
| 21 |
+
### Dataset Sources
|
| 22 |
+
|
| 23 |
+
<!-- Provide the basic links for the dataset. -->
|
| 24 |
+
|
| 25 |
+
- **Repository:** https://github.com/mloey/Arabic-Handwritten-Characters-Dataset
|
| 26 |
+
- **Paper:** El-Sawy, Ahmed, Loey, Mohamed, & El-Bakry, Hazem (2017). Arabic handwritten characters recognition using convolutional neural network. WSEAS Transactions on Computer Research, 5, 11–19.
|
| 27 |
+
|
| 28 |
+
## Dataset Structure
|
| 29 |
+
|
| 30 |
+
<!-- This section provides a description of the dataset fields, and additional information about the dataset structure such as criteria used to create the splits, relationships between data points, etc. -->
|
| 31 |
+
|
| 32 |
+
Total images: 16,800
|
| 33 |
+
|
| 34 |
+
Train: 13,440 images (80%)
|
| 35 |
+
|
| 36 |
+
Test: 3,360 images (20%)
|
| 37 |
+
|
| 38 |
+
Classes (labels): 28 (Arabic letters), labeled 0–27
|
| 39 |
+
|
| 40 |
+
Image specs: PNG format, 32×32 pixels, grayscale
|
| 41 |
+
|
| 42 |
+
## Example Usage
|
| 43 |
+
Below is a quick example of how to load this dataset via the Hugging Face Datasets library.
|
| 44 |
+
```
|
| 45 |
+
from datasets import load_dataset
|
| 46 |
+
|
| 47 |
+
# Load the dataset (replace "username_or_org/arabic-characters" with the actual repo)
|
| 48 |
+
dataset = load_dataset("randall-lab/arabic-characters", split="train", trust_remote_code=True)
|
| 49 |
+
# dataset = load_dataset("randall-lab/arabic-characters", split="test", trust_remote_code=True)
|
| 50 |
+
|
| 51 |
+
# Access a sample from the training set
|
| 52 |
+
example = dataset["train"][0]
|
| 53 |
+
image = example["image"]
|
| 54 |
+
label = example["label"]
|
| 55 |
+
|
| 56 |
+
image.show() # Display the image
|
| 57 |
+
print(f"Label: {label}")
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
## Citation
|
| 61 |
+
|
| 62 |
+
<!-- If there is a paper or blog post introducing the dataset, the APA and Bibtex information for that should go in this section. -->
|
| 63 |
+
|
| 64 |
+
**BibTeX:**
|
| 65 |
+
|
| 66 |
+
@article{el2017arabic,
|
| 67 |
+
title={Arabic handwritten characters recognition using convolutional neural network},
|
| 68 |
+
author={El-Sawy, Ahmed and Loey, Mohamed and El-Bakry, Hazem},
|
| 69 |
+
journal={WSEAS Transactions on Computer Research},
|
| 70 |
+
volume={5},
|
| 71 |
+
pages={11--19},
|
| 72 |
+
year={2017}
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
**APA:**
|
| 76 |
+
|
| 77 |
+
El-Sawy, A., Loey, M., & El-Bakry, H. (2017). Arabic handwritten characters recognition using convolutional neural network. WSEAS Transactions on Computer Research, 5, 11–19.
|
| 78 |
+
|