Datasets:
akbargherbal
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -1,32 +1,54 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Hadith Alpaca Dataset
|
2 |
+
|
3 |
+
## Overview
|
4 |
+
|
5 |
+
This repository contains the **Hadith Alpaca Dataset**, comprising 4,592 meticulously processed Hadiths.
|
6 |
+
The dataset removes the initial chain of transmission in Arabic and extraneous commentary, focusing on the core Hadith text.
|
7 |
+
It's designed for training and evaluating language models, particularly in understanding and processing Islamic religious texts.
|
8 |
+
|
9 |
+
## Data Format
|
10 |
+
|
11 |
+
The dataset is structured for ease of use and clarity. Each Hadith entry is encapsulated within markers, simplifying parsing and extraction.
|
12 |
+
|
13 |
+
**Markers:**
|
14 |
+
- `HADITH_START|` - Denotes the beginning of a Hadith entry.
|
15 |
+
- `|HADITH_END` - Denotes the end of a Hadith entry.
|
16 |
+
|
17 |
+
**Fields:**
|
18 |
+
- **`HADITH_NO`**: A unique identifier for each Hadith.
|
19 |
+
- **`ENGLISH_TEXT`**: The Hadith text in English.
|
20 |
+
- **`ARABIC_TEXT`**: The Hadith text in Arabic.
|
21 |
+
|
22 |
+
Each field is on a separate line after the starting marker.
|
23 |
+
|
24 |
+
## Examples
|
25 |
+
|
26 |
+
### Example 1
|
27 |
+
|
28 |
+
```python
|
29 |
+
"""HADITH_START|
|
30 |
+
HADITH_NO: 1234
|
31 |
+
ENGLISH_TEXT: Abu Hurayrah reported that the Prophet (ﷺ) said, 'The best charity is that which is practiced by a wealthy person.'
|
32 |
+
ARABIC_TEXT: عن أبي هريرة، أن رسول الله صلى الله عليه وسلم قال 'أفضل الصدقة ما كان عن ظهر غنى'
|
33 |
+
|HADITH_END"""
|
34 |
+
```
|
35 |
+
|
36 |
+
### Example 2
|
37 |
+
|
38 |
+
```python
|
39 |
+
"""HADITH_START|
|
40 |
+
HADITH_NO: 5678
|
41 |
+
ENGLISH_TEXT: Narrated Anas: The Prophet (ﷺ) said, 'Facilitate things to people and do not make it hard for them and give them good tidings and do not make them run away (from Islam).'
|
42 |
+
ARABIC_TEXT: عن أنس، عن النبي صلى الله عليه وسلم قال 'يسروا ولا تعسروا، وبشروا ولا تنفروا'
|
43 |
+
|HADITH_END"""
|
44 |
+
```
|
45 |
+
|
46 |
+
## Use Cases
|
47 |
+
|
48 |
+
- **Language Modeling:** Fine-tuning language models to enhance their comprehension of Hadith texts.
|
49 |
+
- **Text Summarization:** Developing models capable of generating concise summaries of Hadiths.
|
50 |
+
- **Machine Translation:** Improving machine translation accuracy between English and Arabic for Hadith content.
|
51 |
+
- **Sentiment Analysis:** Analyzing the sentiment expressed within Hadiths.
|
52 |
+
- **Question Answering:** Building systems capable of retrieving information and answering questions based on Hadith texts.
|
53 |
+
|
54 |
+
|