freococo commited on
Commit
dd4bf14
·
verified ·
1 Parent(s): 0f278b3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +98 -3
README.md CHANGED
@@ -1,3 +1,98 @@
1
- ---
2
- license: cc-by-nc-sa-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-sa-4.0
3
+ task_categories:
4
+ - translation
5
+ - summarization
6
+ - question-answering
7
+ - text-classification
8
+ language:
9
+ - ar
10
+ - en
11
+ tags:
12
+ - islam
13
+ - hadith
14
+ - religion
15
+ - arabic
16
+ - multi-lingual
17
+ pretty_name: Sunnah.com Comprehensive Dataset (freococo)
18
+ size_categories:
19
+ - 10K<n<100K
20
+ ---
21
+
22
+ # Sunnah.com Comprehensive Dataset (freococo)
23
+
24
+ ## Dataset Summary
25
+ This dataset is a high-quality, professional-grade collection of **39,318 Hadiths** meticulously scraped and structured from [Sunnah.com](https://sunnah.com). It represents one of the most complete and multi-faceted Hadith databases available in the open-data community, covering the primary sources of Islamic tradition (The Kutub al-Sittah) as well as several essential secondary compilations.
26
+
27
+ **Creator:** [freococo](https://huggingface.co/freococo)
28
+ **Source Data:** [Sunnah.com](https://sunnah.com)
29
+ **Total Rows:** 39,318
30
+
31
+ ## Books Included
32
+ The dataset contains the following 11 collections, ordered by their traditional importance:
33
+ 1. **Sahih al-Bukhari** (7,563 Hadiths)
34
+ 2. **Sahih Muslim** (3,033+ narrations)
35
+ 3. **Sunan an-Nasa'i** (5,758 Hadiths)
36
+ 4. **Sunan Abi Dawud** (5,274 Hadiths)
37
+ 5. **Jami` at-Tirmidhi** (3,956 Hadiths)
38
+ 6. **Sunan Ibn Majah** (4,341 Hadiths)
39
+ 7. **Mishkat al-Masabih** (5,945+ Hadiths)
40
+ 8. **Riyad as-Salihin** (1,896 Hadiths)
41
+ 9. **Al-Adab Al-Mufrad** (1,322 Hadiths)
42
+ 10. **Ash-Shama'il Al-Muhammadiyah** (417 Hadiths)
43
+ 11. **Bulugh al-Maram** (1,596+ Hadiths)
44
+
45
+ ## Field Definitions
46
+
47
+ | Field Name | Description |
48
+ | :--- | :--- |
49
+ | `freococo_id` | **Primary Key**: A unique unique incrementing ID for this dataset version. |
50
+ | `arabic_full` | The complete Arabic text including narrators (Sanad) and the statement (Matn). |
51
+ | `english_full` | The complete English text (Narrator + Body text) normalized for readability. |
52
+ | `gradings` | **JSON formatted string** containing authenticity verdicts (Sahih, Hasan, Da'if) and the specific scholar who provided the grading (e.g., Al-Albani, Darussalam). |
53
+ | `collection` | The English name of the source book. |
54
+ | `hadith_id` | The global unique serial number used in the source URL (Web ID). |
55
+ | `hadith_no_in_book` | The canonical number as found in physical, printed editions. |
56
+ | `book_no` | The book/volume index within the collection. |
57
+ | `book_en` / `book_ar` | English and Arabic names of the "Book" (e.g., "The Book of Faith"). |
58
+ | `chapter_no` | The specific chapter index within the book. |
59
+ | `chapter_en` / `chapter_ar` | English and Arabic names of the chapter. |
60
+ | `url` | Direct URL to verify the source at Sunnah.com. |
61
+ | `sunnah_id` | The hidden internal database ID used by the Sunnah.com platform. |
62
+ | `narrator_en` / `text_en` | Raw split components of the English translation. |
63
+ | `arabic_sanad` / `arabic_matn` | Raw split components of the Arabic chain and core text. |
64
+ | `trans_vol` / `trans_book_no` | Legacy numbering for compatibility with USC-MSA web references. |
65
+
66
+ ## How to Load in Python
67
+
68
+ You can load this dataset easily using the `datasets` library or `pandas`:
69
+
70
+ ### Using `datasets` (Recommended)
71
+ ```python
72
+ from datasets import load_dataset
73
+
74
+ dataset = load_dataset("freococo/sunnah_dataset")
75
+ print(dataset['train'][0])
76
+ ```
77
+
78
+ ### Using `pandas`
79
+ ```python
80
+ import pandas as pd
81
+
82
+ df = pd.read_parquet("https://huggingface.co/datasets/freococo/sunnah_dataset/resolve/main/sunnah_com_dataset.parquet")
83
+ # To see only Sahih hadiths
84
+ sahih_df = df[df['gradings'].str.contains('Sahih', na=False)]
85
+ ```
86
+
87
+ ## Credits and Attribution
88
+ This dataset would not be possible without the massive efforts of:
89
+ - **Source Platform:** [Sunnah.com](https://sunnah.com), who have provided a vital service to the Muslim Ummah by digitizing these texts.
90
+ - **Scholars & Gradings:** Sheikh Muhammad Nasiruddin al-Albani, the team at Darussalam, Sheikh Zubair Ali Za'i, and many others who provided the *Takhrij* (verdicts).
91
+ - **Translators:** Dr. Muhammad Muhsin Khan (Bukhari), Siddiqui (Muslim), and the Darussalam team for their tireless work in translating these narrations into English.
92
+
93
+ ## License & Usage
94
+ This dataset is shared under the **Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)**.
95
+ - **Attribution:** You must credit **Sunnah.com** and the creator **freococo**.
96
+ - **Non-Commercial:** This data should not be sold or used for commercial profit.
97
+ - **Share Alike:** If you remix or build upon this data, you must distribute your contributions under the same license.
98
+ ```