Datasets:
Tasks:
Question Answering
Modalities:
Text
Formats:
parquet
Sub-tasks:
extractive-qa
Languages:
Vietnamese
Size:
10K - 100K
License:
Add VIMQA: Vietnamese multi-hop QA, default + gold_only configs
Browse files
README.md
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- vi
|
| 4 |
+
license: cc-by-nc-sa-4.0
|
| 5 |
+
size_categories:
|
| 6 |
+
- 10K<n<100K
|
| 7 |
+
task_categories:
|
| 8 |
+
- question-answering
|
| 9 |
+
task_ids:
|
| 10 |
+
- extractive-qa
|
| 11 |
+
pretty_name: VIMQA
|
| 12 |
+
tags:
|
| 13 |
+
- multi-hop
|
| 14 |
+
- vietnamese
|
| 15 |
+
- explainable-qa
|
| 16 |
+
configs:
|
| 17 |
+
- config_name: default
|
| 18 |
+
data_files:
|
| 19 |
+
- split: train
|
| 20 |
+
path: data/train-*
|
| 21 |
+
- split: validation
|
| 22 |
+
path: data/validation-*
|
| 23 |
+
- split: test
|
| 24 |
+
path: data/test-*
|
| 25 |
+
- config_name: gold_only
|
| 26 |
+
data_files:
|
| 27 |
+
- split: validation
|
| 28 |
+
path: gold_only/validation-*
|
| 29 |
+
- split: test
|
| 30 |
+
path: gold_only/test-*
|
| 31 |
+
---
|
| 32 |
+
|
| 33 |
+
# VIMQA
|
| 34 |
+
|
| 35 |
+
VIMQA is a Vietnamese dataset for advanced reasoning and explainable multi-hop
|
| 36 |
+
question answering. Each question requires combining facts from two different
|
| 37 |
+
Vietnamese Wikipedia articles, and every example ships with sentence-level
|
| 38 |
+
supporting facts so a model's reasoning chain can be evaluated, not just its
|
| 39 |
+
final answer.
|
| 40 |
+
|
| 41 |
+
The schema follows the [HotpotQA](https://huggingface.co/datasets/hotpotqa/hotpot_qa)
|
| 42 |
+
convention, so tooling written for HotpotQA transfers with minimal changes.
|
| 43 |
+
|
| 44 |
+
## Usage
|
| 45 |
+
|
| 46 |
+
```python
|
| 47 |
+
from datasets import load_dataset
|
| 48 |
+
|
| 49 |
+
# Full distractor setting: 10 paragraphs per question, 2 of them gold.
|
| 50 |
+
ds = load_dataset("nguyenlab/vimqa")
|
| 51 |
+
|
| 52 |
+
# Gold-only setting: just the supporting paragraphs.
|
| 53 |
+
gold = load_dataset("nguyenlab/vimqa", "gold_only")
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
## Configs and splits
|
| 57 |
+
|
| 58 |
+
| Config | Split | Rows | Paragraphs per question |
|
| 59 |
+
|---|---|---|---|
|
| 60 |
+
| `default` | `train` | 8,041 | 10 |
|
| 61 |
+
| `default` | `validation` | 1,003 | 10 |
|
| 62 |
+
| `default` | `test` | 1,003 | 10 |
|
| 63 |
+
| `gold_only` | `validation` | 1,003 | 1–2 |
|
| 64 |
+
| `gold_only` | `test` | 1,003 | 1–2 |
|
| 65 |
+
|
| 66 |
+
The `default` config is the distractor setting: each question comes with 10
|
| 67 |
+
candidate paragraphs, of which only the supporting ones are relevant. The
|
| 68 |
+
`gold_only` config contains the same questions with distractors removed, which
|
| 69 |
+
is useful for isolating reading-comprehension ability from retrieval.
|
| 70 |
+
|
| 71 |
+
## Fields
|
| 72 |
+
|
| 73 |
+
| Field | Type | Description |
|
| 74 |
+
|---|---|---|
|
| 75 |
+
| `id` | `string` | Unique example identifier |
|
| 76 |
+
| `question` | `string` | The Vietnamese question |
|
| 77 |
+
| `answer` | `string` | The answer span, or a yes/no answer (`đúng` / `không`) |
|
| 78 |
+
| `type` | `string` | Reasoning type of the question |
|
| 79 |
+
| `context.title` | `list[string]` | Titles of the candidate paragraphs |
|
| 80 |
+
| `context.sentences` | `list[list[string]]` | Each paragraph, split into sentences |
|
| 81 |
+
| `supporting_facts.title` | `list[string]` | Titles of paragraphs containing supporting facts |
|
| 82 |
+
| `supporting_facts.sent_id` | `list[int32]` | Index into that paragraph's `sentences` list |
|
| 83 |
+
|
| 84 |
+
A supporting fact is the pair (`title`, `sent_id`): it points at one specific
|
| 85 |
+
sentence inside one specific context paragraph.
|
| 86 |
+
|
| 87 |
+
### Example
|
| 88 |
+
|
| 89 |
+
```python
|
| 90 |
+
{
|
| 91 |
+
"id": "aebce1bf-35a3-4e0c-85c1-e59b24dfb48b",
|
| 92 |
+
"question": "Diego Maradona nhỏ tuổi hơn Rutherford B. Hayes phải không?",
|
| 93 |
+
"answer": "đúng",
|
| 94 |
+
"type": "bridge",
|
| 95 |
+
"context": {
|
| 96 |
+
"title": ["PH", "Diego Maradona", "Rutherford B. Hayes", ...],
|
| 97 |
+
"sentences": [["Các dung dịch nước có giá trị pH nhỏ hơn 7 ..."], [...], [...]]
|
| 98 |
+
},
|
| 99 |
+
"supporting_facts": {
|
| 100 |
+
"title": ["Diego Maradona", "Rutherford B. Hayes"],
|
| 101 |
+
"sent_id": [0, 0]
|
| 102 |
+
}
|
| 103 |
+
}
|
| 104 |
+
```
|
| 105 |
+
|
| 106 |
+
To recover the text of the supporting sentences:
|
| 107 |
+
|
| 108 |
+
```python
|
| 109 |
+
def supporting_sentences(example):
|
| 110 |
+
lookup = dict(zip(example["context"]["title"], example["context"]["sentences"]))
|
| 111 |
+
return [
|
| 112 |
+
lookup[title][sent_id]
|
| 113 |
+
for title, sent_id in zip(
|
| 114 |
+
example["supporting_facts"]["title"],
|
| 115 |
+
example["supporting_facts"]["sent_id"],
|
| 116 |
+
)
|
| 117 |
+
]
|
| 118 |
+
```
|
| 119 |
+
|
| 120 |
+
## Source data
|
| 121 |
+
|
| 122 |
+
Contexts are drawn from Vietnamese Wikipedia. Questions and supporting-fact
|
| 123 |
+
annotations were written by human annotators.
|
| 124 |
+
|
| 125 |
+
## Citation
|
| 126 |
+
|
| 127 |
+
```bibtex
|
| 128 |
+
@inproceedings{le-etal-2022-vimqa,
|
| 129 |
+
title = "{VIMQA}: A {V}ietnamese Dataset for Advanced Reasoning and Explainable Multi-hop Question Answering",
|
| 130 |
+
author = "Le, Khang and Nguyen, Hien and Le Thanh, Tung and Nguyen, Minh",
|
| 131 |
+
booktitle = "Proceedings of the Thirteenth Language Resources and Evaluation Conference",
|
| 132 |
+
month = jun,
|
| 133 |
+
year = "2022",
|
| 134 |
+
address = "Marseille, France",
|
| 135 |
+
publisher = "European Language Resources Association",
|
| 136 |
+
url = "https://aclanthology.org/2022.lrec-1.700",
|
| 137 |
+
pages = "6521--6529",
|
| 138 |
+
}
|
| 139 |
+
```
|
data/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7073151393be3e468729bc59de1d4b5f40f337f6fdfc2826f5bb5130cd33b2df
|
| 3 |
+
size 2828021
|
data/train-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f7b7b7799179f6a63a54a50742c133fc6eb31982d5275b2283d065c0217f3582
|
| 3 |
+
size 27682114
|
data/validation-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:513691e3ef702f1ca9f7b9b944ed14751a5a0b71ed284f8bec48c8992fd1e709
|
| 3 |
+
size 2820483
|
gold_only/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d96de2128d1fa4ab3de6a0ebe93d00f4d2bbe40263f8a9862051fbc790ff7f29
|
| 3 |
+
size 609151
|
gold_only/validation-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:36bb01f12cd11f7f19aa47d6dd59cbacbc69939c7f87793f364264c5aa657da6
|
| 3 |
+
size 598452
|