freococo commited on
Commit
86a436b
·
verified ·
1 Parent(s): 01da64c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +49 -0
README.md CHANGED
@@ -21,4 +21,53 @@ configs:
21
  data_files:
22
  - split: train
23
  path: data/train-*
 
 
 
 
 
 
 
 
 
 
 
24
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  data_files:
22
  - split: train
23
  path: data/train-*
24
+ size_categories:
25
+ - 1K<n<10K
26
+ task_categories:
27
+ - image-to-text
28
+ - image-text-to-text
29
+ - image-text-to-image
30
+ language:
31
+ - ar
32
+ tags:
33
+ - arabicbooks
34
+ - shamelabooks
35
  ---
36
+
37
+ # Taqreeb Fatawa wa Rasa'il Ibn Taymiyyah (OCR Dataset)
38
+
39
+ This dataset is a structurally aligned Arabic Optical Character Recognition (OCR) dataset. It represents the first batch of the `ocr_arabic_books` initiative, featuring the book **Taqreeb Fatawa wa Rasa'il Shaykh al-Islam Ibn Taymiyyah** (تقريب فتاوى ورسائل شيخ الإسلام ابن تيمية) compiled by Ahmad bin Nasir al-Tayyar in 5 volumes.
40
+
41
+ All 3,537 pages have been systematically processed, normalized, and mapped sequentially to preserve the physical layout of the printed text.
42
+
43
+ ## Dataset Structure
44
+
45
+ The dataset contains the following fields for each page record:
46
+
47
+ | Field Name | Type | Description |
48
+ | :--- | :--- | :--- |
49
+ | `image` | `Image` | Scanned page image (JPEG format, 150 DPI) |
50
+ | `page_header` | `string` | Spatially aligned running headers containing Eastern Arabic page numbers and active section titles. |
51
+ | `body` | `string` | Clean Arabic main body text (fully stripped of HTML tags, normalized to Unix newlines, and free of database anchors). |
52
+ | `footnotes` | `string` | The corresponding footnotes belonging to the bottom of the page (`null` if none exist). |
53
+
54
+ ---
55
+
56
+ ## How to Use
57
+
58
+ The dataset is stored in native Hugging Face Parquet format with embedded image bytes, allowing you to load or stream it with a single line of Python code:
59
+
60
+ ```python
61
+ from datasets import load_dataset
62
+
63
+ # Load the entire dataset
64
+ dataset = load_dataset("freococo/ocr_arabic_books", split="train")
65
+
66
+ # Access the first page record
67
+ first_page = dataset[0]
68
+ print(first_page["page_header"])
69
+ print(first_page["body"])
70
+
71
+ # The image is automatically decoded as a PIL Image object
72
+ first_page["image"].show()
73
+ ```