rizquuula commited on
Commit
dc20281
1 Parent(s): 1981155

update dataset source

Browse files
Files changed (1) hide show
  1. 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://s3.amazonaws.com/commensenseqa"
40
  _URLS = {
41
- "train": f"{_URL}/train_rand_split.jsonl",
42
- "validation": f"{_URL}/dev_rand_split.jsonl",
43
- "test": f"{_URL}/test_rand_split_no_answers.jsonl",
44
  }
45
 
46
 
47
- class CommonsenseQa(datasets.GeneratorBasedBuilder):
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