leonleyang commited on
Commit
4660efc
·
verified ·
1 Parent(s): 23f08f0

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +80 -0
README.md ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 70,000 Arabic handwritten digits, written by 700 participants. It is intended for Arabic digit recognition tasks using machine learning. The dataset is split into a training set of 60,000 images and a test set of 10,000 images, covering 10 Arabic digits (labeled 0–9). Each digit was written ten times by each writer. The images are in grayscale, 28×28 pixels, and were collected from different institutions to ensure diversity in handwriting styles. The dataset is derived from the MADBase database.
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-Digits-Dataset
26
+ - **Paper:** El-Sawy, A., El-Bakry, H., & Loey, M. (2017). CNN for handwritten arabic digits recognition based on LeNet-5. In Proceedings of the International Conference on Advanced Intelligent Systems and Informatics 2016 2 (pp. 566-575). Springer International Publishing.
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: 70,000
33
+
34
+ Train: 60,000 images (85.7%)
35
+
36
+ Test: 10,000 images (14.3%)
37
+
38
+ Classes (labels): 10 (Arabic digits), labeled 0–9
39
+
40
+ Image specs: PNG format, 28×28 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
48
+ dataset = load_dataset("randall-lab/arabic-digits", split="train", trust_remote_code=True)
49
+ # dataset = load_dataset("randall-lab/arabic-digits", 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
+ @inproceedings{el2017cnn,
67
+
68
+ title={CNN for handwritten arabic digits recognition based on LeNet-5},
69
+
70
+ author={El-Sawy, Ahmed and El-Bakry, Hazem and Loey, Mohamed},
71
+
72
+ booktitle={Proceedings of the International Conference on Advanced Intelligent Systems and Informatics 2016 2},
73
+
74
+ pages={566--575},
75
+
76
+ year={2017},
77
+
78
+ organization={Springer}
79
+
80
+ }