Datasets:

Modalities:
Text
Formats:
parquet
ArXiv:
Libraries:
Datasets
pandas
License:
File size: 10,870 Bytes
6af4abb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8ca3e1c
 
 
 
 
 
 
 
38dfecc
6af4abb
88b4057
76e8afc
 
8ca3e1c
88b4057
e02b3ba
88b4057
8ca3e1c
 
 
76e8afc
 
8ca3e1c
 
88b4057
 
76e8afc
88b4057
76e8afc
88b4057
 
 
 
 
 
 
 
 
 
 
 
8ca3e1c
 
76e8afc
8ca3e1c
a544450
8ca3e1c
a17bf5c
 
 
 
8ca3e1c
 
 
 
 
76e8afc
a17bf5c
a544450
a17bf5c
 
 
a544450
 
a17bf5c
 
64e66e0
a17bf5c
76e8afc
dac214b
 
 
 
 
 
 
 
a17bf5c
76e8afc
a17bf5c
b4a3513
 
44d0592
b4a3513
44d0592
a17bf5c
76e8afc
7c6b0f6
3fb107c
52d2a8d
76e8afc
52d2a8d
 
 
c6c6525
 
 
 
52d2a8d
 
c6c6525
 
 
 
 
 
52d2a8d
 
 
 
64fecd2
52d2a8d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3fb107c
 
 
 
 
 
 
 
 
 
 
 
 
52d2a8d
 
 
5b5bd5f
 
 
 
 
 
52d2a8d
 
 
7c6b0f6
52d2a8d
 
 
5b5bd5f
 
 
 
 
055fdf0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
---
dataset_info:
  features:
  - name: arabic
    dtype: string
  - name: english
    dtype: string
  splits:
  - name: train
    num_bytes: 27878710
    num_examples: 65043
  - name: test
    num_bytes: 430500
    num_examples: 1000
  download_size: 14722818
  dataset_size: 28309210
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
  - split: test
    path: data/test-*
task_categories:
- translation
language:
- ar
- en
pretty_name: ATHAR
size_categories:
- 10K<n<100K
license: cc-by-sa-4.0
---


<!-- 
# Dataset Card for "ATHAR"

# ATHAR: A High-Quality and Diverse Dataset for Classical Arabic to English Translation

> Welcome to ATHAR Dataset

<p align="center">
<img src="https://cdn-uploads.huggingface.co/production/uploads/64af7c627ab7586520ed8688/SwkKk3Z6kT5VZ3Oj-bVMC.jpeg" width = "150px"/>
  <p align="center"> [ <a href="https://arxiv.org/abs/2407.19835">Paper</a> ]<!-- - <a href="https://github.com/ARBML/CIDAR">GitHub</a> ]</p>

</p>


![image/jpeg](https://cdn-uploads.huggingface.co/production/uploads/64af7c627ab7586520ed8688/SwkKk3Z6kT5VZ3Oj-bVMC.jpeg) 

<div align="center">
    <picture>
        <source 
        srcset="https://cdn-uploads.huggingface.co/production/uploads/64af7c627ab7586520ed8688/SwkKk3Z6kT5VZ3Oj-bVMC.jpeg"
        media="(prefers-color-scheme: dark)"
        />
        <source
        srcset="https://cdn-uploads.huggingface.co/production/uploads/64af7c627ab7586520ed8688/SwkKk3Z6kT5VZ3Oj-bVMC.jpeg"
        media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)"
        />
        <img src="https://cdn-uploads.huggingface.co/production/uploads/64af7c627ab7586520ed8688/SwkKk3Z6kT5VZ3Oj-bVMC.jpeg" width="100%" height="350px" />
    </picture>
</div>


## Datasets Summary

The ATHAR dataset is divided into two main subsets: test data and training data.

   | Name             | Description                                                                                                             |
   |------------------|-------------------------------------------------------------------------------------------------------------------------|
   | `Training Data`  | Contains 65,043 rows of classical Arabic texts and their English translations, used for training translation models.    |
   | `Test Data`      | Contains 1,000 rows of classical Arabic texts and their English translations, reserved for evaluating model performance.|





## Dataset Structure

Each entry in the dataset is represented by a row with the following fields:

   | Field     | Description                                                                                                 |
   |-----------|-------------------------------------------------------------------------------------------------------------|
   | `Arabic(str)`  | The original text in classical Arabic.                                                                 |
   | `English(str)` | The English translation of the classical Arabic text.                                                  |




## Loading The Dataset
You can download the dataset directly from HuggingFace or use the following code:

```python
from datasets import load_dataset

athar = load_dataset("mohamed-khalil/ATHAR")
```


## Sample From The Dataset:

Below is a sample from the ATHAR dataset, showcasing a classical Arabic text and its English translation.

 **`Arabic`**: ููŽู„ู… ูŠุฒู„ ุงู„ู’ูู„ุณ ูŠุนุจุฏ ุญูŽุชู‘ูŽู‰ ุธู‡ุฑุช ุฏูŽุนู’ูˆูŽุฉ ุงู„ู†ู‘ูŽุจููŠ ุนูŽู„ูŽูŠู’ู‡ู ุงู„ุณู‘ูŽู„ูŽุงู… ููŽุจุนุซ ุฅูู„ูŽูŠู’ู‡ู ุนู„ู‰ ุงุจู’ู† ุฃูŽุจููŠ ุทูŽุงู„ูุจู ููŽู‡ูŽุฏูŽู…ูŽู‡ู ูˆูŽุฃูŽุฎูŽุฐูŽ ุณูŽูŠู’ููŽูŠู’ู†ู ูƒูŽุงู†ูŽ ุงู„ู’ุญูŽุงุฑูุซู ุจู† ุฃุจูŠ ุดู…ุฑู ุงู„ุบุณุงู†ูŠ, ู…ู„ูƒ ุบูŽุณู‘ูŽุงู† ู‚ูŽู„ู‘ูŽุฏูŽู‡ู ุฅููŠู‘ูŽุงู‡ูู…ูŽุง, ูŠูู‚ูŽุงู„ู ู„ูŽู‡ูู…ูŽุง ู…ูุฎู’ุฐูŽู…ูŒ ูˆูŽุฑูŽุณููˆุจูŒ(ูˆูŽู‡ูู…ูŽุง ุงู„ุณู‘ูŽูŠู’ููŽุงู†ู ุงู„ู„ู‘ูŽุฐูŽุงู†ู ุฐูŽูƒูŽุฑูŽู‡ูู…ูŽุง ุนูŽู„ู’ู‚ูŽู…ูŽุฉู ุจู’ู†ู ุนูŽุจู’ุฏูŽุฉูŽ ูููŠ ุดูุนู’ุฑูู‡ู). ููŽู‚ูŽุฏูู…ูŽ ุจูู‡ูู…ูŽุง ุนูŽู„ููŠู‘ู ุจู’ู†ู ุฃูŽุจููŠ ุทูŽุงู„ูุจู ุนูŽู„ูŽู‰ ุงู„ู†ู‘ูŽุจููŠู‘ู ุตูŽู„ู‘ูŽู‰ ุงู„ู„ู‘ูŽู‡ู ุนูŽู„ูŽูŠู’ู‡ู ูˆูŽุณูŽู„ู‘ูŽู…ูŽ ููŽุชูŽู‚ูŽู„ู‘ูŽุฏูŽ ุฃูŽุญูŽุฏูŽู‡ูู…ูŽุง ุซูู…ู‘ูŽ ุฏูŽููŽุนูŽู‡ู ุฅูู„ูŽู‰ ุนูŽู„ููŠู‘ู ุจู’ู†ู ุฃูŽุจููŠ ุทูŽุงู„ูุจู, ููŽู‡ููˆูŽ ุณูŽูŠู’ููู‡ู ุงู„ู‘ูŽุฐููŠ ูƒูŽุงู†ูŽ ูŠูŽุชูŽู‚ูŽู„ู‘ูŽุฏูู‡ู

 **`English`**: Al-Fals continued to be worshipped until the advent of the Prophet, at which time โ€˜Ali ibn-abi-Talib was dispatched to destroy it. โ€˜Ali destroyed the idol and carried away therefrom two swords called Mikhdham and Rasub (the same two swords which โ€˜Alqamah ibn-โ€™Abadah had mentioned in his poetry), which al-Harith ibn-abi-Shamir, king of Ghassan, had presented al-Fals. โ€˜Ali brought them to the Prophet who wore one of them and gave it back to him. It was the sword which โ€˜Ali was always wont to wear

 -->



# Dataset card

## Description

### ATHAR: A High-Quality and Diverse Dataset for Classical Arabic to English Translation

> Welcome to ATHAR Dataset

The ATHAR dataset is a comprehensive collection of classical Arabic texts translated into English. This dataset contains approximately 66,000 rows of translated texts, including the original Classical Arabic texts and their English translations.

<p align="center">
<!-- <img src="https://cdn-uploads.huggingface.co/production/uploads/64af7c627ab7586520ed8688/SwkKk3Z6kT5VZ3Oj-bVMC.jpeg" width = "150px"/> -->
  <p align="center"> [ <a href="https://arxiv.org/abs/2407.19835">Paper</a> ]<!-- - <a href="https://github.com/ARBML/CIDAR">GitHub</a> ]</p> -->

</p>



## License

The ATHAR dataset and weight diffs are licensed under **CC BY NC 4.0**
[Creative Commons NonCommercial (CC BY-NC 4.0)](https://creativecommons.org/licenses/by-nc/4.0/deed.en).



## Attribution

```bibtex
@misc{khalil2024atharhighqualitydiversedataset,
      title={ATHAR: A High-Quality and Diverse Dataset for Classical Arabic to English Translation}, 
      author={Mohammed Khalil and Mohammed Sabry},
      year={2024},
      eprint={2407.19835},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2407.19835}, 
}
```

## Language codes

### Arabic 

* ISO 639-3: eng
* ISO 15924: Arab
* Glottocode: arab1395	 <!-- Classical Arabic Code: clas1259 -->

### English

* ISO 639-3: ara
* ISO 15924: Latn
* Glottocode: stan1293



## Additional language information

<!-- Any relevant additional information on the language, such as:
* A list of reference publications and software (dictionaries, grammars, spellcheckers).
* If applicable, any additional information about dialectal variation that is not captured by the Glottocode.
* If relevant, the orthography used in your contribution. --> 



## Workflow

The ATHAR dataset comprises 66K sentences extracted from seminal Classical Arabic texts, expertly translated into English. These texts are cornerstone works spanning diverse genres and historical periods, providing profound insights into Islamic and world history, philosophy, science, medicine, and culture. This rich literary heritage is showcased in our dataset, sourced from the Rasaif website at [rasaif.com](https://rasaif.com/) At the time of data collection and publication of this work, there were no restrictions on scraping and using resources from this website.


## Additional guidelines

<!-- Were any additional guidelines agreed upon? 
Examples might include style guidelines, 
the use of particular grammatical forms or sentence structures, 
specific spelling or punctuation rules to be followed, etc. -->


## Datasets Summary

The ATHAR dataset is divided into two main subsets: test data and training data.

   | Name             | Description                                                                                                             |
   |------------------|-------------------------------------------------------------------------------------------------------------------------|
   | `Training Data`  | Contains 65,043 rows of classical Arabic texts and their English translations, used for training translation models.    |
   | `Test Data`      | Contains 1,000 rows of classical Arabic texts and their English translations, reserved for evaluating model performance.|





## Dataset Structure

Each entry in the dataset is represented by a row with the following fields:

   | Field     | Description                                                                                                 |
   |-----------|-------------------------------------------------------------------------------------------------------------|
   | `Arabic(str)`  | The original text in classical Arabic.                                                                 |
   | `English(str)` | The English translation of the classical Arabic text.                                                  |




## Loading The Dataset
You can download the dataset directly from HuggingFace or use the following code:

```python
from datasets import load_dataset

athar = load_dataset("mohamed-khalil/ATHAR")
```


## Sample From The Dataset:

Below is a sample from the ATHAR dataset, showcasing a classical Arabic text and its English translation.

 **`Arabic`**: ููŽู„ู… ูŠุฒู„ ุงู„ู’ูู„ุณ ูŠุนุจุฏ ุญูŽุชู‘ูŽู‰ ุธู‡ุฑุช ุฏูŽุนู’ูˆูŽุฉ ุงู„ู†ู‘ูŽุจููŠ ุนูŽู„ูŽูŠู’ู‡ู ุงู„ุณู‘ูŽู„ูŽุงู… ููŽุจุนุซ ุฅูู„ูŽูŠู’ู‡ู ุนู„ู‰ ุงุจู’ู† ุฃูŽุจููŠ ุทูŽุงู„ูุจู ููŽู‡ูŽุฏูŽู…ูŽู‡ู ูˆูŽุฃูŽุฎูŽุฐูŽ ุณูŽูŠู’ููŽูŠู’ู†ู ูƒูŽุงู†ูŽ ุงู„ู’ุญูŽุงุฑูุซู ุจู† ุฃุจูŠ ุดู…ุฑู ุงู„ุบุณุงู†ูŠ, ู…ู„ูƒ ุบูŽุณู‘ูŽุงู† ู‚ูŽู„ู‘ูŽุฏูŽู‡ู ุฅููŠู‘ูŽุงู‡ูู…ูŽุง, ูŠูู‚ูŽุงู„ู ู„ูŽู‡ูู…ูŽุง ู…ูุฎู’ุฐูŽู…ูŒ ูˆูŽุฑูŽุณููˆุจูŒ(ูˆูŽู‡ูู…ูŽุง ุงู„ุณู‘ูŽูŠู’ููŽุงู†ู ุงู„ู„ู‘ูŽุฐูŽุงู†ู ุฐูŽูƒูŽุฑูŽู‡ูู…ูŽุง ุนูŽู„ู’ู‚ูŽู…ูŽุฉู ุจู’ู†ู ุนูŽุจู’ุฏูŽุฉูŽ ูููŠ ุดูุนู’ุฑูู‡ู). ููŽู‚ูŽุฏูู…ูŽ ุจูู‡ูู…ูŽุง ุนูŽู„ููŠู‘ู ุจู’ู†ู ุฃูŽุจููŠ ุทูŽุงู„ูุจู ุนูŽู„ูŽู‰ ุงู„ู†ู‘ูŽุจููŠู‘ู ุตูŽู„ู‘ูŽู‰ ุงู„ู„ู‘ูŽู‡ู ุนูŽู„ูŽูŠู’ู‡ู ูˆูŽุณูŽู„ู‘ูŽู…ูŽ ููŽุชูŽู‚ูŽู„ู‘ูŽุฏูŽ ุฃูŽุญูŽุฏูŽู‡ูู…ูŽุง ุซูู…ู‘ูŽ ุฏูŽููŽุนูŽู‡ู ุฅูู„ูŽู‰ ุนูŽู„ููŠู‘ู ุจู’ู†ู ุฃูŽุจููŠ ุทูŽุงู„ูุจู, ููŽู‡ููˆูŽ ุณูŽูŠู’ููู‡ู ุงู„ู‘ูŽุฐููŠ ูƒูŽุงู†ูŽ ูŠูŽุชูŽู‚ูŽู„ู‘ูŽุฏูู‡ู

 **`English`**: Al-Fals continued to be worshipped until the advent of the Prophet, at which time โ€˜Ali ibn-abi-Talib was dispatched to destroy it. โ€˜Ali destroyed the idol and carried away therefrom two swords called Mikhdham and Rasub (the same two swords which โ€˜Alqamah ibn-โ€™Abadah had mentioned in his poetry), which al-Harith ibn-abi-Shamir, king of Ghassan, had presented al-Fals. โ€˜Ali brought them to the Prophet who wore one of them and gave it back to him. It was the sword which โ€˜Ali was always wont to wear