Datasets:

Modalities:
Text
Formats:
json
Languages:
Chinese
Size:
< 1K
ArXiv:
Libraries:
Datasets
pandas
License:
XiangBo commited on
Commit
9f3759e
β€’
1 Parent(s): 0020d3b

Update CMB.py

Browse files
Files changed (1) hide show
  1. CMB.py +1 -2
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
- vals['source'] = vals.get('source','')
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