Datasets:
Modalities:
Text
Size:
10K - 100K
update
Browse files
testcm.py
CHANGED
@@ -64,12 +64,13 @@ class CodeMMLU(datasets.GeneratorBasedBuilder):
|
|
64 |
"task_id": datasets.Value("string"),
|
65 |
"question": datasets.Value("string"),
|
66 |
"choices": datasets.features.Sequence(datasets.Value("string")),
|
67 |
-
"answer": datasets.Value("string"),
|
68 |
}
|
69 |
)
|
70 |
|
71 |
if self.config.name == "fill_in_the_middle":
|
72 |
features["problem_description"] = datasets.Value("string")
|
|
|
|
|
73 |
|
74 |
return datasets.DatasetInfo(
|
75 |
description=_DESCRIPTION,
|
@@ -99,10 +100,10 @@ class CodeMMLU(datasets.GeneratorBasedBuilder):
|
|
99 |
"task_id": data['task_id'],
|
100 |
"question": data['question'],
|
101 |
"choices": data['choices'],
|
102 |
-
"answer": data['answer'],
|
103 |
}
|
104 |
|
105 |
if "fill_in_the_middle" in data_path:
|
106 |
return_dict['problem_description'] = data['problem_description']
|
107 |
|
|
|
108 |
yield idx, return_dict
|
|
|
64 |
"task_id": datasets.Value("string"),
|
65 |
"question": datasets.Value("string"),
|
66 |
"choices": datasets.features.Sequence(datasets.Value("string")),
|
|
|
67 |
}
|
68 |
)
|
69 |
|
70 |
if self.config.name == "fill_in_the_middle":
|
71 |
features["problem_description"] = datasets.Value("string")
|
72 |
+
|
73 |
+
features["answer"] = datasets.Value("string")
|
74 |
|
75 |
return datasets.DatasetInfo(
|
76 |
description=_DESCRIPTION,
|
|
|
100 |
"task_id": data['task_id'],
|
101 |
"question": data['question'],
|
102 |
"choices": data['choices'],
|
|
|
103 |
}
|
104 |
|
105 |
if "fill_in_the_middle" in data_path:
|
106 |
return_dict['problem_description'] = data['problem_description']
|
107 |
|
108 |
+
return_dict['answer'] = data['answer']
|
109 |
yield idx, return_dict
|