Upload CMB.py
Browse files
CMB.py
CHANGED
@@ -98,7 +98,7 @@ class CMB(datasets.GeneratorBasedBuilder):
|
|
98 |
url="https://github.com/FreedomIntelligence/CMB",
|
99 |
),
|
100 |
CMBConfig(
|
101 |
-
name="
|
102 |
description=textwrap.dedent(
|
103 |
"""\
|
104 |
εε²ηι’
|
@@ -196,7 +196,7 @@ class CMB(datasets.GeneratorBasedBuilder):
|
|
196 |
)
|
197 |
]
|
198 |
|
199 |
-
if self.config.name == "
|
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 == '
|
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]
|