Upload nle_hf_dataset.py
Browse files- nle_hf_dataset.py +1 -3
nle_hf_dataset.py
CHANGED
@@ -45,7 +45,7 @@ _HOMEPAGE = ""
|
|
45 |
|
46 |
_LICENSE = ""
|
47 |
|
48 |
-
print(
|
49 |
_URLS = {
|
50 |
"data": [f"data/{i}.hdf5" for i in range(1, 6)],
|
51 |
"metadata": [f"metadata/{i}.json" for i in range(1, 6)],
|
@@ -119,7 +119,6 @@ class NleHfDataset(datasets.GeneratorBasedBuilder):
|
|
119 |
urls = _URLS[self.config.name]
|
120 |
else:
|
121 |
urls = self.config.data_files["train"]
|
122 |
-
# print(self.config.data_files["train"])
|
123 |
|
124 |
filepaths = [dl_manager.download(url) for url in urls]
|
125 |
return [
|
@@ -128,7 +127,6 @@ class NleHfDataset(datasets.GeneratorBasedBuilder):
|
|
128 |
]
|
129 |
|
130 |
def _generate_examples(self, filepaths):
|
131 |
-
# print(filepaths)
|
132 |
for i, filepath in enumerate(filepaths):
|
133 |
if self.config.name == "metadata":
|
134 |
with open(filepath, "r") as f:
|
|
|
45 |
|
46 |
_LICENSE = ""
|
47 |
|
48 |
+
print(os.listdir("data"))
|
49 |
_URLS = {
|
50 |
"data": [f"data/{i}.hdf5" for i in range(1, 6)],
|
51 |
"metadata": [f"metadata/{i}.json" for i in range(1, 6)],
|
|
|
119 |
urls = _URLS[self.config.name]
|
120 |
else:
|
121 |
urls = self.config.data_files["train"]
|
|
|
122 |
|
123 |
filepaths = [dl_manager.download(url) for url in urls]
|
124 |
return [
|
|
|
127 |
]
|
128 |
|
129 |
def _generate_examples(self, filepaths):
|
|
|
130 |
for i, filepath in enumerate(filepaths):
|
131 |
if self.config.name == "metadata":
|
132 |
with open(filepath, "r") as f:
|