Datasets:
Tasks:
Question Answering
Modalities:
Text
Sub-tasks:
open-domain-qa
Languages:
English
Size:
100K - 1M
ArXiv:
License:
Use dl_manager to download files
Browse files- KQA-Pro.py +6 -5
KQA-Pro.py
CHANGED
|
@@ -22,6 +22,11 @@ A large-scale, diverse, challenging dataset of complex question answering over k
|
|
| 22 |
|
| 23 |
_URL = "https://thukeg.gitee.io/kqa-pro/"
|
| 24 |
_DOWNLOAD_URL = "https://cloud.tsinghua.edu.cn/f/df54ff66d1dc4ca7823e/?dl=1"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
_TRAIN_CONFIG_NAME = "train_val"
|
| 27 |
_TEST_CONFIG_NAME = "test"
|
|
@@ -93,11 +98,7 @@ class KQAPro(datasets.GeneratorBasedBuilder):
|
|
| 93 |
|
| 94 |
|
| 95 |
def _split_generators(self, dl_manager):
|
| 96 |
-
downloaded_files =
|
| 97 |
-
"train": "train.json",
|
| 98 |
-
"val": "val.json",
|
| 99 |
-
"test": "test.json"
|
| 100 |
-
}
|
| 101 |
|
| 102 |
if self.config.name == _TEST_CONFIG_NAME:
|
| 103 |
return [
|
|
|
|
| 22 |
|
| 23 |
_URL = "https://thukeg.gitee.io/kqa-pro/"
|
| 24 |
_DOWNLOAD_URL = "https://cloud.tsinghua.edu.cn/f/df54ff66d1dc4ca7823e/?dl=1"
|
| 25 |
+
_URLS = {
|
| 26 |
+
"train": "train.json",
|
| 27 |
+
"val": "val.json",
|
| 28 |
+
"test": "test.json"
|
| 29 |
+
}
|
| 30 |
|
| 31 |
_TRAIN_CONFIG_NAME = "train_val"
|
| 32 |
_TEST_CONFIG_NAME = "test"
|
|
|
|
| 98 |
|
| 99 |
|
| 100 |
def _split_generators(self, dl_manager):
|
| 101 |
+
downloaded_files = dl_manager.download_and_extract(_URLS)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
|
| 103 |
if self.config.name == _TEST_CONFIG_NAME:
|
| 104 |
return [
|