Upload nle_hf_dataset.py
Browse files- nle_hf_dataset.py +5 -5
nle_hf_dataset.py
CHANGED
@@ -106,12 +106,12 @@ class NleHfDataset(datasets.GeneratorBasedBuilder):
|
|
106 |
)
|
107 |
|
108 |
def _split_generators(self, dl_manager):
|
109 |
-
if self.config.data_files is None:
|
110 |
-
|
111 |
-
else:
|
112 |
-
|
|
|
113 |
|
114 |
-
print(urls)
|
115 |
filepaths = [dl_manager.download(url) for url in urls]
|
116 |
return [
|
117 |
datasets.SplitGenerator(
|
|
|
106 |
)
|
107 |
|
108 |
def _split_generators(self, dl_manager):
|
109 |
+
# if self.config.data_files is None:
|
110 |
+
urls = _URLS[self.config.name]
|
111 |
+
# else:
|
112 |
+
# urls = self.config.data_files["train"]
|
113 |
+
print(self.config.data_files["train"])
|
114 |
|
|
|
115 |
filepaths = [dl_manager.download(url) for url in urls]
|
116 |
return [
|
117 |
datasets.SplitGenerator(
|