Update CMB.py
Browse files
CMB.py
CHANGED
@@ -107,7 +107,6 @@ class CMB(datasets.GeneratorBasedBuilder):
|
|
107 |
features=datasets.Features(
|
108 |
{
|
109 |
"id": datasets.Value("string"),
|
110 |
-
"source": datasets.Value("string"),
|
111 |
"exam_type": datasets.Value("string"),
|
112 |
"exam_class": datasets.Value("string"),
|
113 |
"exam_subject": datasets.Value("string"),
|
@@ -247,7 +246,7 @@ class CMB(datasets.GeneratorBasedBuilder):
|
|
247 |
for idx in range(len(examples)):
|
248 |
vals = examples[idx]
|
249 |
vals['answer'] = vals.get('answer','')
|
250 |
-
|
251 |
vals['id'] = vals.get('id',idx)
|
252 |
yield idx, vals
|
253 |
|
|
|
107 |
features=datasets.Features(
|
108 |
{
|
109 |
"id": datasets.Value("string"),
|
|
|
110 |
"exam_type": datasets.Value("string"),
|
111 |
"exam_class": datasets.Value("string"),
|
112 |
"exam_subject": datasets.Value("string"),
|
|
|
246 |
for idx in range(len(examples)):
|
247 |
vals = examples[idx]
|
248 |
vals['answer'] = vals.get('answer','')
|
249 |
+
|
250 |
vals['id'] = vals.get('id',idx)
|
251 |
yield idx, vals
|
252 |
|