ieasybooks commited on
Commit
ff75060
·
verified ·
1 Parent(s): 5d40e58

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +94 -3
README.md CHANGED
@@ -1,3 +1,94 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - image-to-text
5
+ language:
6
+ - ar
7
+ pretty_name: Shamela Waqfeya Library
8
+ size_categories:
9
+ - 1K<n<10K
10
+ configs:
11
+ - config_name: index
12
+ data_files:
13
+ - split: index
14
+ path: index.tsv
15
+ ---
16
+
17
+ # Waqfeya Library
18
+
19
+ ## 📖 Overview
20
+ Shamela Waqfeya is one of the primary online resources for Islamic books, similar to [Shamela](https://shamela.ws). It hosts more than 4,500 PDF books across over 40 categories.
21
+
22
+ In this dataset, we processed the original PDF files using Google Document AI APIs and extracted their contents into two additional formats: TXT and DOCX.
23
+
24
+ ## 📊 Dataset Contents
25
+ The dataset includes 12,877 PDF files (spanning 5,138,027 pages) representing 4,661 Islamic books. Each book is provided in three formats:
26
+ - PDF files are located in the `pdf` directory.
27
+ - TXT files are located in the `txt` directory.
28
+ - DOCX files are located in the `docx` directory.
29
+
30
+ All three directories (`pdf`, `txt`, and `docx`) share the same folder structure.
31
+
32
+ For example, a book located at `pdf/category/book/file.pdf` will have its corresponding TXT and DOCX versions at `txt/category/book/file.txt` and `docx/category/book/file.docx`, respectively.
33
+
34
+ The `index.tsv` file contains the following information about each book in the dataset:
35
+ - `category`: One of the 83 book categories available in the dataset.
36
+ - `author`: Book author.
37
+ - `title`: Book title.
38
+ - `pages`: Total number of book pages.
39
+ - `volumes`: Number of book volumes.
40
+ - `pdf_paths`: Array of PDF files paths as each book can be splitted into multiple files (e.g. Books with multiple volumes).
41
+ - `txt_paths`: Array of TXT files paths as each book can be splitted into multiple files (e.g. Books with multiple volumes).
42
+ - `docx_paths`: Array of DOCX files paths as each book can be splitted into multiple files (e.g. Books with multiple volumes).
43
+
44
+ The books are organized into 83 categories, as listed below:
45
+ |Category |Percentage|Number of Books|
46
+ |---------------------------|----------|---------------|
47
+ |أصول الفقه والقواعد الفقهية|4.14% |193 |
48
+ |الأجزاء الحديثية |8.54% |398 |
49
+ |الأدب والبلاغة |4.72% |220 |
50
+ |الأنساب |0.51% |24 |
51
+ |البلدان والجغرافيا والرحلات|0.92% |43 |
52
+ |التاريخ |3.22% |150 |
53
+ |التجويد والقراءات |0.51% |24 |
54
+ |التراجم والطبقات |8.28% |386 |
55
+ |التفاسير |3.05% |142 |
56
+ |الجوامع والمجلات ونحوها |0.79% |37 |
57
+ |الدعوة وأحوال المسلمين |3.00% |140 |
58
+ |الدواوين الشعرية |0.09% |4 |
59
+ |الرقاق والآداب والأذكار |4.76% |222 |
60
+ |السياسة الشرعية والقضاء |1.20% |56 |
61
+ |السيرة والشمائل |2.32% |108 |
62
+ |العقيدة |8.58% |400 |
63
+ |العلل والسؤالات |1.35% |63 |
64
+ |الغريب والمعاجم ولغة الفقه |2.12% |99 |
65
+ |الفتاوى |0.82% |38 |
66
+ |الفرق والردود |1.39% |65 |
67
+ |النحو والصرف |2.30% |107 |
68
+ |بحوث ومسائل |4.23% |197 |
69
+ |شروح الحديث |2.96% |138 |
70
+ |علوم أخرى |0.26% |12 |
71
+ |علوم الحديث |3.82% |178 |
72
+ |علوم القرآن |4.78% |223 |
73
+ |فقه حنبلي |1.74% |81 |
74
+ |فقه حنفي |0.75% |35 |
75
+ |فقه شافعي |1.01% |47 |
76
+ |فقه عام |1.46% |68 |
77
+ |فقه مالكي |1.27% |59 |
78
+ |فهارس الكتب والأدلة |1.46% |68 |
79
+ |كتب إسلامية عامة |0.06% |3 |
80
+ |كتب ابن أبي الدنيا |1.16% |54 |
81
+ |كتب ابن القيم |0.99% |46 |
82
+ |كتب ابن تيمية |1.54% |72 |
83
+ |كتب الألباني |1.57% |73 |
84
+ |كتب التخريج والزوائد |2.47% |115 |
85
+ |كتب اللغة |0.84% |39 |
86
+ |متون الحديث |5.13% |239 |
87
+ |محاضرات مفرغة |0.02% |1 |
88
+ |مخطوطات حديثية |0.00% |0 |
89
+
90
+ ### 📄 TXT Format
91
+ Each TXT file contains the raw text extracted by Google Document AI from the corresponding PDF. Pages are separated by the special marker: `\nPAGE_SEPARATOR\n`.
92
+
93
+ ### 📝 DOCX Format
94
+ DOCX files also contain text extracted via Google Document AI. However, all consecutive whitespace characters have been replaced with a single space character (`' '`) to help maintain a consistent 1:1 alignment with the original PDF layout.