Datasets:
GEM
/

Languages:
English
License:
Abinaya Mahendiran commited on
Commit
1073aa7
1 Parent(s): a985f6d

Minor fix to data loader script

Browse files
Files changed (1) hide show
  1. xsum.py +1 -1
xsum.py CHANGED
@@ -117,7 +117,7 @@ class Xsum(datasets.GeneratorBasedBuilder):
117
  exple["gem_parent_id"] = exple["gem_id"]
118
  exple["gem_id"] = f"{self.config.name}-{split}-{id_}"
119
  yield id_, exple
120
- else:
121
  with open(filepath, "r", encoding="utf-8") as f:
122
  split_ids = json.load(f)
123
  for id_, i in enumerate(split_ids[split]):
 
117
  exple["gem_parent_id"] = exple["gem_id"]
118
  exple["gem_id"] = f"{self.config.name}-{split}-{id_}"
119
  yield id_, exple
120
+ else:
121
  with open(filepath, "r", encoding="utf-8") as f:
122
  split_ids = json.load(f)
123
  for id_, i in enumerate(split_ids[split]):