XiangBo commited on
Commit
50347c2
β€’
1 Parent(s): b405173

Upload CMB.py

Browse files
Files changed (1) hide show
  1. CMB.py +3 -3
CMB.py CHANGED
@@ -98,7 +98,7 @@ class CMB(datasets.GeneratorBasedBuilder):
98
  url="https://github.com/FreedomIntelligence/CMB",
99
  ),
100
  CMBConfig(
101
- name="paper-exampaper",
102
  description=textwrap.dedent(
103
  """\
104
  εŽ†ε²ηœŸι’˜
@@ -196,7 +196,7 @@ class CMB(datasets.GeneratorBasedBuilder):
196
  )
197
  ]
198
 
199
- if self.config.name == "paper-exampaper":
200
  data_file = dl_manager.extract(self.config.data_url)
201
  main_data_dir = os.path.join(data_file, self.config.data_dir)
202
  return [
@@ -242,7 +242,7 @@ class CMB(datasets.GeneratorBasedBuilder):
242
  vals['id'] = vals.get('id',idx)
243
  yield idx, vals
244
 
245
- if self.config.name == 'paper-exampaper':
246
  examples = json.loads(io.open(data_file, 'r').read())
247
  for idx in range(len(examples)):
248
  vals = examples[idx]
 
98
  url="https://github.com/FreedomIntelligence/CMB",
99
  ),
100
  CMBConfig(
101
+ name="exampaper",
102
  description=textwrap.dedent(
103
  """\
104
  εŽ†ε²ηœŸι’˜
 
196
  )
197
  ]
198
 
199
+ if self.config.name == "exampaper":
200
  data_file = dl_manager.extract(self.config.data_url)
201
  main_data_dir = os.path.join(data_file, self.config.data_dir)
202
  return [
 
242
  vals['id'] = vals.get('id',idx)
243
  yield idx, vals
244
 
245
+ if self.config.name == 'exampaper':
246
  examples = json.loads(io.open(data_file, 'r').read())
247
  for idx in range(len(examples)):
248
  vals = examples[idx]