Update CMB.py
Browse files
CMB.py
CHANGED
@@ -77,9 +77,7 @@ class CMB(datasets.GeneratorBasedBuilder):
|
|
77 |
"id": datasets.Value("string"),
|
78 |
"exam_type": datasets.Value("string"),
|
79 |
"exam_class": datasets.Value("string"),
|
80 |
-
"chapter": datasets.Value("string"),
|
81 |
"exam_subject": datasets.Value("string"),
|
82 |
-
"exercise": datasets.Value("string"),
|
83 |
"question": datasets.Value("string"),
|
84 |
"question_type": datasets.Value("string"),
|
85 |
"option": datasets.Value("string"),
|
@@ -235,8 +233,6 @@ class CMB(datasets.GeneratorBasedBuilder):
|
|
235 |
for idx in range(len(examples)):
|
236 |
vals = examples[idx]
|
237 |
vals['explanation'] = vals.get('explanation','')
|
238 |
-
vals['exercise'] = vals.get('exercise','')
|
239 |
-
vals['chapter'] = vals.get('chapter','')
|
240 |
vals['answer'] = vals.get('answer','')
|
241 |
vals['id'] = vals.get('id',idx)
|
242 |
yield idx, vals
|
|
|
77 |
"id": datasets.Value("string"),
|
78 |
"exam_type": datasets.Value("string"),
|
79 |
"exam_class": datasets.Value("string"),
|
|
|
80 |
"exam_subject": datasets.Value("string"),
|
|
|
81 |
"question": datasets.Value("string"),
|
82 |
"question_type": datasets.Value("string"),
|
83 |
"option": datasets.Value("string"),
|
|
|
233 |
for idx in range(len(examples)):
|
234 |
vals = examples[idx]
|
235 |
vals['explanation'] = vals.get('explanation','')
|
|
|
|
|
236 |
vals['answer'] = vals.get('answer','')
|
237 |
vals['id'] = vals.get('id',idx)
|
238 |
yield idx, vals
|