Upload nle_hf_dataset.py
Browse files- nle_hf_dataset.py +1 -1
nle_hf_dataset.py
CHANGED
|
@@ -115,7 +115,7 @@ class NleHfDataset(datasets.GeneratorBasedBuilder):
|
|
| 115 |
]
|
| 116 |
|
| 117 |
def _generate_examples(self, filepaths):
|
| 118 |
-
for filepath in filepaths:
|
| 119 |
if self.config.name == "metadata":
|
| 120 |
with open(filepath, encoding="utf-8") as f:
|
| 121 |
data = json.loads(f.read())
|
|
|
|
| 115 |
]
|
| 116 |
|
| 117 |
def _generate_examples(self, filepaths):
|
| 118 |
+
for i, filepath in enumerate(filepaths):
|
| 119 |
if self.config.name == "metadata":
|
| 120 |
with open(filepath, encoding="utf-8") as f:
|
| 121 |
data = json.loads(f.read())
|