Update README.md
Browse files
README.md
CHANGED
@@ -35,10 +35,19 @@ This dataset is designed for training and evaluating Optical Character Recogniti
|
|
35 |
for Arabic text. It is an extension of an open-source dataset and includes text rendered in multiple Arabic fonts (Amiri, Sakkal Majalla, Arial, Calibri and Scheherazade New).
|
36 |
The dataset simulates real-world book layouts to enhance OCR accuracy.
|
37 |
|
|
|
|
|
|
|
|
|
|
|
38 |
|
39 |
-
|
40 |
|
41 |
-
|
|
|
|
|
|
|
|
|
42 |
from datasets import load_dataset
|
43 |
import base64
|
44 |
from io import BytesIO
|
@@ -72,106 +81,4 @@ for sample in ds["Amiri"]:
|
|
72 |
|
73 |
# Break after one sample for testing
|
74 |
break
|
75 |
-
```
|
76 |
-
|
77 |
-
[More Information Needed]
|
78 |
-
|
79 |
-
### Out-of-Scope Use
|
80 |
-
|
81 |
-
<!-- This section addresses misuse, malicious use, and uses that the dataset will not work well for. -->
|
82 |
-
|
83 |
-
[More Information Needed]
|
84 |
-
|
85 |
-
## Dataset Structure
|
86 |
-
|
87 |
-
<!-- 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. -->
|
88 |
-
|
89 |
-
[More Information Needed]
|
90 |
-
|
91 |
-
## Dataset Creation
|
92 |
-
|
93 |
-
### Curation Rationale
|
94 |
-
|
95 |
-
<!-- Motivation for the creation of this dataset. -->
|
96 |
-
|
97 |
-
[More Information Needed]
|
98 |
-
|
99 |
-
### Source Data
|
100 |
-
|
101 |
-
<!-- This section describes the source data (e.g. news text and headlines, social media posts, translated sentences, ...). -->
|
102 |
-
|
103 |
-
#### Data Collection and Processing
|
104 |
-
|
105 |
-
<!-- This section describes the data collection and processing process such as data selection criteria, filtering and normalization methods, tools and libraries used, etc. -->
|
106 |
-
|
107 |
-
[More Information Needed]
|
108 |
-
|
109 |
-
#### Who are the source data producers?
|
110 |
-
|
111 |
-
<!-- This section describes the people or systems who originally created the data. It should also include self-reported demographic or identity information for the source data creators if this information is available. -->
|
112 |
-
|
113 |
-
[More Information Needed]
|
114 |
-
|
115 |
-
### Annotations [optional]
|
116 |
-
|
117 |
-
<!-- If the dataset contains annotations which are not part of the initial data collection, use this section to describe them. -->
|
118 |
-
|
119 |
-
#### Annotation process
|
120 |
-
|
121 |
-
<!-- This section describes the annotation process such as annotation tools used in the process, the amount of data annotated, annotation guidelines provided to the annotators, interannotator statistics, annotation validation, etc. -->
|
122 |
-
|
123 |
-
[More Information Needed]
|
124 |
-
|
125 |
-
#### Who are the annotators?
|
126 |
-
|
127 |
-
<!-- This section describes the people or systems who created the annotations. -->
|
128 |
-
|
129 |
-
[More Information Needed]
|
130 |
-
|
131 |
-
#### Personal and Sensitive Information
|
132 |
-
|
133 |
-
<!-- State whether the dataset contains data that might be considered personal, sensitive, or private (e.g., data that reveals addresses, uniquely identifiable names or aliases, racial or ethnic origins, sexual orientations, religious beliefs, political opinions, financial or health data, etc.). If efforts were made to anonymize the data, describe the anonymization process. -->
|
134 |
-
|
135 |
-
[More Information Needed]
|
136 |
-
|
137 |
-
## Bias, Risks, and Limitations
|
138 |
-
|
139 |
-
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
140 |
-
|
141 |
-
[More Information Needed]
|
142 |
-
|
143 |
-
### Recommendations
|
144 |
-
|
145 |
-
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
146 |
-
|
147 |
-
Users should be made aware of the risks, biases and limitations of the dataset. More information needed for further recommendations.
|
148 |
-
|
149 |
-
## Citation [optional]
|
150 |
-
|
151 |
-
<!-- If there is a paper or blog post introducing the dataset, the APA and Bibtex information for that should go in this section. -->
|
152 |
-
|
153 |
-
**BibTeX:**
|
154 |
-
|
155 |
-
[More Information Needed]
|
156 |
-
|
157 |
-
**APA:**
|
158 |
-
|
159 |
-
[More Information Needed]
|
160 |
-
|
161 |
-
## Glossary [optional]
|
162 |
-
|
163 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the dataset or dataset card. -->
|
164 |
-
|
165 |
-
[More Information Needed]
|
166 |
-
|
167 |
-
## More Information [optional]
|
168 |
-
|
169 |
-
[More Information Needed]
|
170 |
-
|
171 |
-
## Dataset Card Authors [optional]
|
172 |
-
|
173 |
-
[More Information Needed]
|
174 |
-
|
175 |
-
## Dataset Card Contact
|
176 |
-
|
177 |
-
[More Information Needed]
|
|
|
35 |
for Arabic text. It is an extension of an open-source dataset and includes text rendered in multiple Arabic fonts (Amiri, Sakkal Majalla, Arial, Calibri and Scheherazade New).
|
36 |
The dataset simulates real-world book layouts to enhance OCR accuracy.
|
37 |
|
38 |
+
### Dataset Structure
|
39 |
+
The dataset is divided into five splits based on font name (Sakkal_Majalla, Amiri, Arial, Calibri, and Scheherazade_New).
|
40 |
+
Each split contains data specific to a single font. Within each split, the following attributes are present:
|
41 |
+
- **image_name**: Unique identifier for each image.
|
42 |
+
- **chunk**: The text content associated with the image.
|
43 |
|
44 |
+
- **font_name**: The font used in text rendering.
|
45 |
|
46 |
+
- **image_base64**: Base64-encoded image representation.
|
47 |
+
|
48 |
+
### How to Use
|
49 |
+
|
50 |
+
```python
|
51 |
from datasets import load_dataset
|
52 |
import base64
|
53 |
from io import BytesIO
|
|
|
81 |
|
82 |
# Break after one sample for testing
|
83 |
break
|
84 |
+
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|