Update letras-carnaval-cadiz.py
Browse files- letras-carnaval-cadiz.py +1 -4
letras-carnaval-cadiz.py
CHANGED
@@ -84,10 +84,7 @@ class CadizCarnivalDataset(GeneratorBasedBuilder):
|
|
84 |
elif self.config.name == "midaccurate":
|
85 |
return [SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["midaccurate"]})]
|
86 |
else: # Default is "all"
|
87 |
-
return [
|
88 |
-
SplitGenerator(name=datasets.Split("accurate"), gen_kwargs={"filepath": downloaded_files["accurate"]}),
|
89 |
-
SplitGenerator(name=datasets.Split("midaccurate"), gen_kwargs={"filepath": downloaded_files["midaccurate"]})
|
90 |
-
]
|
91 |
|
92 |
def _generate_examples(self, filepath: str):
|
93 |
with open(filepath, encoding="utf-8") as f:
|
|
|
84 |
elif self.config.name == "midaccurate":
|
85 |
return [SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["midaccurate"]})]
|
86 |
else: # Default is "all"
|
87 |
+
return [SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepaths": [downloaded_files["accurate"], downloaded_files["midaccurate"]]})]
|
|
|
|
|
|
|
88 |
|
89 |
def _generate_examples(self, filepath: str):
|
90 |
with open(filepath, encoding="utf-8") as f:
|