Datasets:
Tasks:
Question Answering
Modalities:
Text
Sub-tasks:
open-domain-qa
Languages:
Indonesian
Size:
10K - 100K
License:
update dataset source
Browse files- commonsense_qa.py +8 -8
commonsense_qa.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
"""CommonsenseQA dataset."""
|
2 |
|
3 |
|
4 |
import json
|
@@ -9,7 +9,7 @@ import datasets
|
|
9 |
_HOMEPAGE = "https://www.tau-nlp.org/commonsenseqa"
|
10 |
|
11 |
_DESCRIPTION = """\
|
12 |
-
CommonsenseQA is a new multiple-choice question answering dataset that requires different types of commonsense knowledge
|
13 |
to predict the correct answers . It contains 12,102 questions with one correct answer and four distractor answers.
|
14 |
The dataset is provided in two major training/validation/testing set splits: "Random split" which is the main evaluation
|
15 |
split, and "Question token split", see paper for details.
|
@@ -36,16 +36,16 @@ _CITATION = """\
|
|
36 |
}
|
37 |
"""
|
38 |
|
39 |
-
_URL = "https://
|
40 |
_URLS = {
|
41 |
-
"train": f"{_URL}/
|
42 |
-
"validation": f"{_URL}/
|
43 |
-
"test": f"{_URL}/
|
44 |
}
|
45 |
|
46 |
|
47 |
-
class
|
48 |
-
"""CommonsenseQA dataset."""
|
49 |
|
50 |
VERSION = datasets.Version("1.0.0")
|
51 |
|
|
|
1 |
+
"""CommonsenseQA-ID dataset."""
|
2 |
|
3 |
|
4 |
import json
|
|
|
9 |
_HOMEPAGE = "https://www.tau-nlp.org/commonsenseqa"
|
10 |
|
11 |
_DESCRIPTION = """\
|
12 |
+
CommonsenseQA-ID is Indonesian translation version of CommonsenseQA, a new multiple-choice question answering dataset that requires different types of commonsense knowledge
|
13 |
to predict the correct answers . It contains 12,102 questions with one correct answer and four distractor answers.
|
14 |
The dataset is provided in two major training/validation/testing set splits: "Random split" which is the main evaluation
|
15 |
split, and "Question token split", see paper for details.
|
|
|
36 |
}
|
37 |
"""
|
38 |
|
39 |
+
_URL = "https://raw.githubusercontent.com/rizquuula/commonsense_qa-ID/main/dataset"
|
40 |
_URLS = {
|
41 |
+
"train": f"{_URL}/commonsense_qa-id_dev.jsonl",
|
42 |
+
"validation": f"{_URL}/commonsense_qa-id_test_no_answer.jsonl",
|
43 |
+
"test": f"{_URL}/commonsense_qa-id_train.jsonl",
|
44 |
}
|
45 |
|
46 |
|
47 |
+
class CommonsenseQaID(datasets.GeneratorBasedBuilder):
|
48 |
+
"""CommonsenseQA-ID dataset."""
|
49 |
|
50 |
VERSION = datasets.Version("1.0.0")
|
51 |
|