Datasets:
Tasks:
Question Answering
Sub-tasks:
open-domain-qa
Languages:
English
Multilinguality:
monolingual
Size Categories:
10K<n<100K
Language Creators:
crowdsourced
Annotations Creators:
crowdsourced
Source Datasets:
extended|commonsense_qa
ArXiv:
Tags:
License:
Update files from the datasets library (from 1.2.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.2.0
cos_e.py
CHANGED
@@ -19,7 +19,6 @@
|
|
19 |
from __future__ import absolute_import, division, print_function
|
20 |
|
21 |
import json
|
22 |
-
import os
|
23 |
|
24 |
import datasets
|
25 |
|
@@ -50,9 +49,9 @@ _CQA_V1_11_URL_TRAIN = "https://s3.amazonaws.com/commensenseqa/train_rand_split.
|
|
50 |
_CQA_V1_11_URL_DEV = "https://s3.amazonaws.com/commensenseqa/dev_rand_split.jsonl"
|
51 |
_CQA_V1_11_URL_TEST = "https://s3.amazonaws.com/commensenseqa/test_rand_split_no_answers.jsonl"
|
52 |
|
53 |
-
_CQA_V1_0_URL_TRAIN =
|
54 |
-
_CQA_V1_0_URL_DEV =
|
55 |
-
_CQA_V1_0_URL_TEST =
|
56 |
|
57 |
|
58 |
def _download_and_index_cqa(dl_manager, name):
|
@@ -151,16 +150,16 @@ class CosE(datasets.GeneratorBasedBuilder):
|
|
151 |
if self.config.name == "v1.11":
|
152 |
files = dl_manager.download_and_extract(
|
153 |
{
|
154 |
-
"dev": [
|
155 |
-
"train": [
|
156 |
}
|
157 |
)
|
158 |
|
159 |
elif self.config.name == "v1.0":
|
160 |
files = dl_manager.download_and_extract(
|
161 |
{
|
162 |
-
"dev": [
|
163 |
-
"train": [
|
164 |
}
|
165 |
)
|
166 |
else:
|
19 |
from __future__ import absolute_import, division, print_function
|
20 |
|
21 |
import json
|
|
|
22 |
|
23 |
import datasets
|
24 |
|
49 |
_CQA_V1_11_URL_DEV = "https://s3.amazonaws.com/commensenseqa/dev_rand_split.jsonl"
|
50 |
_CQA_V1_11_URL_TEST = "https://s3.amazonaws.com/commensenseqa/test_rand_split_no_answers.jsonl"
|
51 |
|
52 |
+
_CQA_V1_0_URL_TRAIN = _COS_E_URL + "v1.0/train_rand_split.jsonl"
|
53 |
+
_CQA_V1_0_URL_DEV = _COS_E_URL + "v1.0/dev_rand_split.jsonl"
|
54 |
+
_CQA_V1_0_URL_TEST = _COS_E_URL + "v1.0/test_rand_split_no_answers.jsonl"
|
55 |
|
56 |
|
57 |
def _download_and_index_cqa(dl_manager, name):
|
150 |
if self.config.name == "v1.11":
|
151 |
files = dl_manager.download_and_extract(
|
152 |
{
|
153 |
+
"dev": [_COS_E_URL + "v1.11/cose_dev_v1.11_processed.jsonl"],
|
154 |
+
"train": [_COS_E_URL + "v1.11/cose_train_v1.11_processed.jsonl"],
|
155 |
}
|
156 |
)
|
157 |
|
158 |
elif self.config.name == "v1.0":
|
159 |
files = dl_manager.download_and_extract(
|
160 |
{
|
161 |
+
"dev": [_COS_E_URL + "v1.0/cose_dev_v1.0_processed.jsonl"],
|
162 |
+
"train": [_COS_E_URL + "v1.0/cose_train_v1.0_processed.jsonl"],
|
163 |
}
|
164 |
)
|
165 |
else:
|