Datasets:
Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,151 @@
|
|
1 |
-
---
|
2 |
-
license: cc-by-nc-sa-3.0
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: cc-by-nc-sa-3.0
|
3 |
+
task_categories:
|
4 |
+
- question-answering
|
5 |
+
language:
|
6 |
+
- en
|
7 |
+
- fr
|
8 |
+
- de
|
9 |
+
- it
|
10 |
+
- es
|
11 |
+
- pt
|
12 |
+
pretty_name: mASNQ
|
13 |
+
size_categories:
|
14 |
+
- 100M<n<1B
|
15 |
+
configs:
|
16 |
+
- config_name: default
|
17 |
+
data_files:
|
18 |
+
- split: train_en
|
19 |
+
path: "eng-train.jsonl"
|
20 |
+
- split: train_de
|
21 |
+
path: "deu-train.jsonl"
|
22 |
+
- split: train_fr
|
23 |
+
path: "fra-train.jsonl"
|
24 |
+
- split: train_it
|
25 |
+
path: "ita-train.jsonl"
|
26 |
+
- split: train_po
|
27 |
+
path: "por-train.jsonl"
|
28 |
+
- split: train_sp
|
29 |
+
path: "spa-train.jsonl"
|
30 |
+
- split: validation_en
|
31 |
+
path: "eng-dev.jsonl"
|
32 |
+
- split: validation_de
|
33 |
+
path: "deu-dev.jsonl"
|
34 |
+
- split: validation_fr
|
35 |
+
path: "fra-dev.jsonl"
|
36 |
+
- split: validation_it
|
37 |
+
path: "ita-dev.jsonl"
|
38 |
+
- split: validation_po
|
39 |
+
path: "por-dev.jsonl"
|
40 |
+
- split: validation_sp
|
41 |
+
path: "spa-dev.jsonl"
|
42 |
+
- config_name: en
|
43 |
+
data_files:
|
44 |
+
- split: train
|
45 |
+
path: "eng-train.jsonl"
|
46 |
+
- split: validation
|
47 |
+
path: "eng-dev.jsonl"
|
48 |
+
- config_name: de
|
49 |
+
data_files:
|
50 |
+
- split: train
|
51 |
+
path: "deu-train.jsonl"
|
52 |
+
- split: validation
|
53 |
+
path: "deu-dev.jsonl"
|
54 |
+
- config_name: fr
|
55 |
+
data_files:
|
56 |
+
- split: train
|
57 |
+
path: "fra-train.jsonl"
|
58 |
+
- split: validation
|
59 |
+
path: "fra-dev.jsonl"
|
60 |
+
- config_name: it
|
61 |
+
data_files:
|
62 |
+
- split: train
|
63 |
+
path: "ita-train.jsonl"
|
64 |
+
- split: validation
|
65 |
+
path: "ita-dev.jsonl"
|
66 |
+
- config_name: po
|
67 |
+
data_files:
|
68 |
+
- split: train
|
69 |
+
path: "por-train.jsonl"
|
70 |
+
- split: validation
|
71 |
+
path: "por-dev.jsonl"
|
72 |
+
- config_name: sp
|
73 |
+
data_files:
|
74 |
+
- split: train
|
75 |
+
path: "spa-train.jsonl"
|
76 |
+
- split: validation
|
77 |
+
path: "spa-dev.jsonl"
|
78 |
+
---
|
79 |
+
## Dataset Description
|
80 |
+
|
81 |
+
**mASNQ** is a translated version of ASNQ which is an AS2 dataset created by adapting the Natural Question corpus from Machine Reading (MR) to the AS2 task.
|
82 |
+
|
83 |
+
The dataset has been translated into five European languages: French, German, Italian, Portuguese, and Spanish, as described in this paper: [Datasets for Multilingual Answer Sentence Selection](https://arxiv.org/abs/2406.10172 'Datasets for Multilingual Answer Sentence Selection').
|
84 |
+
|
85 |
+
## Splits:
|
86 |
+
|
87 |
+
For each language (English, French, German, Italian, Portuguese, and Spanish), we provide:
|
88 |
+
|
89 |
+
- **train** split
|
90 |
+
- **validation** split
|
91 |
+
|
92 |
+
### How to load them:
|
93 |
+
To use these splits, you can use the following snippet of code replacing ``[LANG]`` with a language identifier (en, fr, de, it, po, sp).
|
94 |
+
|
95 |
+
```
|
96 |
+
from datasets import load_dataset
|
97 |
+
|
98 |
+
# if you want the whole corpora
|
99 |
+
corpora = load_dataset("matteogabburo/mASNQ")
|
100 |
+
|
101 |
+
"""
|
102 |
+
if you want the default splits of a specific language, replace [LANG] with an identifier in: en, fr, de, it, po, sp
|
103 |
+
dataset = load_dataset("matteogabburo/mASNQ", "[LANG]")
|
104 |
+
"""
|
105 |
+
# example:
|
106 |
+
italian_dataset = load_dataset("matteogabburo/mASNQ", "it")
|
107 |
+
|
108 |
+
```
|
109 |
+
|
110 |
+
|
111 |
+
## Format:
|
112 |
+
Each example has the following format:
|
113 |
+
|
114 |
+
```
|
115 |
+
{
|
116 |
+
'eid': 1214,
|
117 |
+
'qid': 141,
|
118 |
+
'cid': 0,
|
119 |
+
'label': 1,
|
120 |
+
'question': 'Was bedeutet Karma im Buddhismus?',
|
121 |
+
'candidate': 'Karma (Sanskrit, auch karman, Pali: Kamma) bedeutet "Handlung" oder "Tun"; was auch immer man tut, sagt oder denkt, ist ein Karma.'
|
122 |
+
}
|
123 |
+
```
|
124 |
+
|
125 |
+
Where:
|
126 |
+
|
127 |
+
- **eid**: is the unique id of the example (question, candidate)
|
128 |
+
- **qid**: is the unique id of the question
|
129 |
+
- **cid**: is the unique id of the answer candidate
|
130 |
+
- **label**: identifies whether the answer candidate ``candidate`` is correct for the ``question`` (1 if correct, 0 otherwise)
|
131 |
+
- **question**: the question
|
132 |
+
- **candidate**: the answer candidate
|
133 |
+
|
134 |
+
|
135 |
+
|
136 |
+
## Citation
|
137 |
+
|
138 |
+
If you find this dataset useful, please cite the following paper:
|
139 |
+
|
140 |
+
**BibTeX:**
|
141 |
+
```
|
142 |
+
@misc{gabburo2024datasetsmultilingualanswersentence,
|
143 |
+
title={Datasets for Multilingual Answer Sentence Selection},
|
144 |
+
author={Matteo Gabburo and Stefano Campese and Federico Agostini and Alessandro Moschitti},
|
145 |
+
year={2024},
|
146 |
+
eprint={2406.10172},
|
147 |
+
archivePrefix={arXiv},
|
148 |
+
primaryClass={cs.CL},
|
149 |
+
url={https://arxiv.org/abs/2406.10172},
|
150 |
+
}
|
151 |
+
```
|