Training products derived from islamlab/islamic-sciences
Browse files- README.md +130 -0
- attribution/train-00000.parquet +3 -0
- cpt/train-00000.parquet +3 -0
- eval_attribution/test-00000.parquet +3 -0
- eval_retrieval/test-00000.parquet +3 -0
- retrieval/train-00000.parquet +3 -0
README.md
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-sa-4.0
|
| 3 |
+
pretty_name: "islamlab — Islamic Sciences Training Sets"
|
| 4 |
+
language:
|
| 5 |
+
- ar
|
| 6 |
+
task_categories:
|
| 7 |
+
- text-generation
|
| 8 |
+
- text-retrieval
|
| 9 |
+
- question-answering
|
| 10 |
+
size_categories:
|
| 11 |
+
- 1M<n<10M
|
| 12 |
+
tags:
|
| 13 |
+
- islam
|
| 14 |
+
- arabic
|
| 15 |
+
- classical-arabic
|
| 16 |
+
- continued-pretraining
|
| 17 |
+
- retrieval
|
| 18 |
+
- citation
|
| 19 |
+
- rag
|
| 20 |
+
configs:
|
| 21 |
+
- config_name: cpt
|
| 22 |
+
default: true
|
| 23 |
+
data_files:
|
| 24 |
+
- split: train
|
| 25 |
+
path: cpt/train-*.parquet
|
| 26 |
+
- config_name: retrieval
|
| 27 |
+
data_files:
|
| 28 |
+
- split: train
|
| 29 |
+
path: retrieval/train-*.parquet
|
| 30 |
+
- config_name: attribution
|
| 31 |
+
data_files:
|
| 32 |
+
- split: train
|
| 33 |
+
path: attribution/train-*.parquet
|
| 34 |
+
- config_name: eval_retrieval
|
| 35 |
+
data_files:
|
| 36 |
+
- split: test
|
| 37 |
+
path: eval_retrieval/test-*.parquet
|
| 38 |
+
- config_name: eval_attribution
|
| 39 |
+
data_files:
|
| 40 |
+
- split: test
|
| 41 |
+
path: eval_attribution/test-*.parquet
|
| 42 |
+
---
|
| 43 |
+
|
| 44 |
+
# islamlab — Islamic Sciences Training Sets
|
| 45 |
+
|
| 46 |
+
Training data derived from
|
| 47 |
+
[`islamlab/islamic-sciences`](https://huggingface.co/datasets/islamlab/islamic-sciences):
|
| 48 |
+
text for domain adaptation, retrieval pairs with hard negatives, and citation
|
| 49 |
+
questions whose answers are read out of the corpus rather than written by a
|
| 50 |
+
model.
|
| 51 |
+
|
| 52 |
+
> **Nothing here is generated.** Questions come from a fixed set of templates
|
| 53 |
+
> and every answer is a field already present in the corpus. That buys a
|
| 54 |
+
> narrow dataset in exchange for one that cannot teach a model a fact the
|
| 55 |
+
> sources do not contain.
|
| 56 |
+
|
| 57 |
+
## Subsets
|
| 58 |
+
|
| 59 |
+
| config | split | rows | what it is |
|
| 60 |
+
|---|---|---:|---|
|
| 61 |
+
| `cpt` | train | 380,866 | Apparatus-free, deduplicated text with a provenance header — 1.55B characters |
|
| 62 |
+
| `retrieval` | train | 414,573 | A section heading as the query, a passage from that section as the positive, and hard negatives drawn from elsewhere in the same book |
|
| 63 |
+
| `attribution` | train | 64,915 | Citation questions with exact answers |
|
| 64 |
+
| `eval_retrieval` | test | 14,369 | Same shape, held-out works only |
|
| 65 |
+
| `eval_attribution` | test | 16,895 | Same shape, held-out works only |
|
| 66 |
+
|
| 67 |
+
## The held-out split
|
| 68 |
+
|
| 69 |
+
The holdout is at the level of the **work**, not the row: 76 of the
|
| 70 |
+
2,607 works are assigned to evaluation by a hash of their identifier,
|
| 71 |
+
and no line of their text appears in `cpt`, `retrieval` or `attribution`. A
|
| 72 |
+
model trained on the train configs has therefore never read the books it is
|
| 73 |
+
evaluated on. The assignment is deterministic, so it is the same for everyone.
|
| 74 |
+
|
| 75 |
+
## The tasks in `attribution`
|
| 76 |
+
|
| 77 |
+
| task | question | rows (train) |
|
| 78 |
+
|---|---|---:|
|
| 79 |
+
| `author` | من مؤلف هذا النص؟ | 12,983 |
|
| 80 |
+
| `title` | من أي كتاب أُخذ هذا النص؟ | 12,983 |
|
| 81 |
+
| `science` | في أي علم يُصنَّف هذا الكتاب؟ | 12,983 |
|
| 82 |
+
| `century` | في أي قرن هجري توفي المؤلف؟ | 12,983 |
|
| 83 |
+
| `locus` | في أي جزء وصفحة يقع هذا النص؟ | 12,983 |
|
| 84 |
+
|
| 85 |
+
`messages` is a JSON-encoded chat turn — parse it with `json.loads`. `answer`
|
| 86 |
+
holds the exact expected string. The `locus` task deliberately includes the
|
| 87 |
+
honest negative: where the source records no pagination, the answer is
|
| 88 |
+
*لم تُثبَت الصفحة في هذه النسخة* rather than an invented page.
|
| 89 |
+
|
| 90 |
+
## Retrieval negatives
|
| 91 |
+
|
| 92 |
+
Negatives come from **the same book** as the positive, which is what makes
|
| 93 |
+
them hard: a chapter of al-Ḥāwī al-Kabīr is separated from another chapter of
|
| 94 |
+
al-Ḥāwī al-Kabīr by subject alone, not by vocabulary, register or period.
|
| 95 |
+
`negatives` is a JSON-encoded list of strings.
|
| 96 |
+
|
| 97 |
+
```python
|
| 98 |
+
import json
|
| 99 |
+
from datasets import load_dataset
|
| 100 |
+
|
| 101 |
+
d = load_dataset("islamlab/islamic-sciences-training", "retrieval", split="train")
|
| 102 |
+
row = d[0]
|
| 103 |
+
negatives = json.loads(row["negatives"])
|
| 104 |
+
```
|
| 105 |
+
|
| 106 |
+
## Where this sits
|
| 107 |
+
|
| 108 |
+
| Dataset | What it holds |
|
| 109 |
+
|---|---|
|
| 110 |
+
| [`islamlab/islamic-sciences`](https://huggingface.co/datasets/islamlab/islamic-sciences) | The corpus itself — eight sciences, 2,607 works |
|
| 111 |
+
| **`islamlab/islamic-sciences-training`** | The training products above |
|
| 112 |
+
| [`quranlab/*`](https://huggingface.co/quranlab) · [`risaleinur/*`](https://huggingface.co/risaleinur) | Qur'an and hadith; the Risale-i Nur corpus |
|
| 113 |
+
|
| 114 |
+
## License
|
| 115 |
+
|
| 116 |
+
Derived from a corpus licensed **CC BY-NC-SA 4.0**, and carries the same
|
| 117 |
+
terms. Credits are in
|
| 118 |
+
[`SOURCES.md`](https://huggingface.co/datasets/islamlab/islamic-sciences/blob/main/SOURCES.md)
|
| 119 |
+
on the corpus, which is where the works themselves are acknowledged.
|
| 120 |
+
|
| 121 |
+
## Citation
|
| 122 |
+
|
| 123 |
+
```bibtex
|
| 124 |
+
@misc{islamlab_islamic_sciences_training,
|
| 125 |
+
title = {islamlab — Islamic Sciences Training Sets},
|
| 126 |
+
author = {islamlab contributors},
|
| 127 |
+
year = {2026},
|
| 128 |
+
howpublished = {Hugging Face Datasets}
|
| 129 |
+
}
|
| 130 |
+
```
|
attribution/train-00000.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:045231ff830411b4c05970dd62d85db2502e71fc2cf8d5ae45903b149074f169
|
| 3 |
+
size 6519353
|
cpt/train-00000.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b21be7cb6ce5817ef7a82d2ee0423a45f8505d3a4f374fb1e2c1a87fae0b5c41
|
| 3 |
+
size 641674092
|
eval_attribution/test-00000.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c0d30830a9e4000d63c173344458497ace9f5ea9d31850ce0acf470fc467c0c2
|
| 3 |
+
size 1752677
|
eval_retrieval/test-00000.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:61b48c9529f181f77124ae81cac418fc10c8657baaaf420dcdbd2b689cc44731
|
| 3 |
+
size 24294598
|
retrieval/train-00000.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:02451d5ed7834751f61528f989f072202a63c5963ff3dcb7f700ee8f1b0bfaa6
|
| 3 |
+
size 571101390
|