dont delete arguments
Browse files
zenodo.py
CHANGED
@@ -39,7 +39,7 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
39 |
filepath = dl_manager.download([url])[0]
|
40 |
shutil.copy(filepath, os.getcwd())
|
41 |
os.rename(os.path.basename(filepath), self.filename)
|
42 |
-
|
43 |
return [
|
44 |
datasets.SplitGenerator(
|
45 |
name=datasets.Split.TRAIN,
|
@@ -49,5 +49,5 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
49 |
),
|
50 |
]
|
51 |
|
52 |
-
def _generate_examples(self):
|
53 |
yield 0, {"path": filepath}
|
|
|
39 |
filepath = dl_manager.download([url])[0]
|
40 |
shutil.copy(filepath, os.getcwd())
|
41 |
os.rename(os.path.basename(filepath), self.filename)
|
42 |
+
|
43 |
return [
|
44 |
datasets.SplitGenerator(
|
45 |
name=datasets.Split.TRAIN,
|
|
|
49 |
),
|
50 |
]
|
51 |
|
52 |
+
def _generate_examples(self, filepath):
|
53 |
yield 0, {"path": filepath}
|