Howuhh commited on
Commit
25f63f3
·
1 Parent(s): a317130

Upload nle_hf_dataset.py

Browse files
Files changed (1) hide show
  1. nle_hf_dataset.py +1 -4
nle_hf_dataset.py CHANGED
@@ -110,7 +110,7 @@ class NleHfDataset(datasets.GeneratorBasedBuilder):
110
  urls = _URLS[self.config.name]
111
  filepaths = [dl_manager.download(url) for url in urls]
112
  else:
113
- filepaths = [dl_manager.download(url) for url in self.config.data_files]
114
 
115
  return [
116
  datasets.SplitGenerator(
@@ -118,9 +118,6 @@ class NleHfDataset(datasets.GeneratorBasedBuilder):
118
  ]
119
 
120
  def _generate_examples(self, filepaths):
121
- print(filepaths)
122
- print(self.config.data_files)
123
-
124
  for i, filepath in enumerate(filepaths):
125
  if self.config.name == "metadata":
126
  with open(filepath, "r") as f:
 
110
  urls = _URLS[self.config.name]
111
  filepaths = [dl_manager.download(url) for url in urls]
112
  else:
113
+ filepaths = [dl_manager.download(url) for url in self.config.data_files["train"]]
114
 
115
  return [
116
  datasets.SplitGenerator(
 
118
  ]
119
 
120
  def _generate_examples(self, filepaths):
 
 
 
121
  for i, filepath in enumerate(filepaths):
122
  if self.config.name == "metadata":
123
  with open(filepath, "r") as f: