Datasets:

Modalities:
Text
Formats:
csv
Languages:
Arabic
ArXiv:
Libraries:
Datasets
pandas
License:
Omartificial-Intelligence-Space commited on
Commit
5b20dad
·
verified ·
1 Parent(s): 0d8efdb

Update readme.md

Browse files
Files changed (1) hide show
  1. README.md +84 -3
README.md CHANGED
@@ -1,3 +1,84 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - feature-extraction
5
+ - sentence-similarity
6
+ language:
7
+ - ar
8
+ size_categories:
9
+ - 10K<n<100K
10
+ ---
11
+
12
+ # Arabic Triplet with Multi Negatives
13
+
14
+ ## Dataset Summary
15
+
16
+ This dataset is a modified version of the Arabic subset of the [Mr. TyDi dataset](https://huggingface.co/datasets/castorini/mr-tydi), tailored for retrieval and re-ranking tasks. The original dataset has been restructured by splitting the negative passages into separate fields (`negative1`, `negative2`, ..., `negativeN`) for each query. This modification allows more flexibility for training and evaluating retrieval and re-ranking models.
17
+
18
+ The dataset retains the original intent of Mr. Tydi, focusing on monolingual retrieval for the Arabic language while offering a new structure for ease of use in ranking-based learning tasks.
19
+
20
+ ## Dataset Structure
21
+
22
+ The dataset includes train split only where each query is paired with a set of positive passages and multiple individually enumerated negative passages (up to 30).
23
+
24
+ ### Example Data
25
+
26
+ #### Train Set
27
+
28
+ ```json
29
+ {
30
+ "query_id": "1",
31
+ "query": "متى تم تطوير نظرية الحقل الكمي؟",
32
+ "positive_passages": [
33
+ {
34
+ "text": "بدأت نظرية الحقل الكمي بشكل طبيعي بدراسة التفاعلات الكهرومغناطيسية ..."
35
+ }
36
+ ],
37
+ "negative1": {
38
+ "text": "تم تنفيذ النهج مؤخرًا ليشمل نسخة جبرية من الحقل الكمي ..."
39
+ },
40
+ "negative2": {
41
+ "text": "تتناول هذه المقالة الخلفية التاريخية لتطوير نظرية الحقل ..."
42
+ },
43
+ ...
44
+ }
45
+ ```
46
+
47
+ ### Language Coverage
48
+ The dataset focuses exclusively on the **Arabic** subset of Mr. TyDi.
49
+
50
+ ### Loading the Dataset
51
+
52
+ You can load the dataset using the **datasets** library from Hugging Face:
53
+
54
+ ```python
55
+ from datasets import load_dataset
56
+
57
+ dataset = load_dataset('NAMAA-Space/Arabic-Triplet-With-Multi-Negatives')
58
+ dataset
59
+ ```
60
+
61
+ ### Dataset Usage
62
+
63
+ The new format facilitates training retrieval and re-ranking models by providing explicit negative passage fields. This structure simplifies the handling of negative examples during model training and evaluation.
64
+
65
+ ### Citation Information
66
+
67
+ If you use this dataset in your research, please cite the original Mr. TyDi paper and this dataset as follows:
68
+
69
+ ```
70
+ @article{mrtydi,
71
+ title={{Mr. TyDi}: A Multi-lingual Benchmark for Dense Retrieval},
72
+ author={Xinyu Zhang and Xueguang Ma and Peng Shi and Jimmy Lin},
73
+ year={2021},
74
+ journal={arXiv:2108.08787},
75
+ }
76
+
77
+ @dataset{Namaa,
78
+ title={Arabic Triplet With Multi Negatives},
79
+ author={Omer Nacar},
80
+ year={2024},
81
+ note={Hugging Face Dataset Repository}
82
+ }
83
+ ```
84
+