Howuhh commited on
Commit
d610bb0
·
1 Parent(s): b6d0687

Upload nle_hf_dataset.py

Browse files
Files changed (1) hide show
  1. nle_hf_dataset.py +1 -1
nle_hf_dataset.py CHANGED
@@ -118,7 +118,7 @@ class NleHfDataset(datasets.GeneratorBasedBuilder):
118
  def _generate_examples(self, filepaths):
119
  for i, filepath in enumerate(filepaths):
120
  if self.config.name == "metadata":
121
- with open(filepath, encoding="utf-8") as f:
122
  data = json.loads(f.read())
123
  yield i, data
124
  else:
 
118
  def _generate_examples(self, filepaths):
119
  for i, filepath in enumerate(filepaths):
120
  if self.config.name == "metadata":
121
+ with open(filepath, "r") as f:
122
  data = json.loads(f.read())
123
  yield i, data
124
  else: