Datasets:

Languages:
English
ArXiv:
License:
julianschnitzler commited on
Commit
93b6495
·
1 Parent(s): acccaf1

fix generator

Browse files
Files changed (1) hide show
  1. morehopqa.py +1 -1
morehopqa.py CHANGED
@@ -46,7 +46,7 @@ class MoreHopQA(datasets.GeneratorBasedBuilder):
46
  """Yields examples."""
47
  with open(filepath, encoding="utf-8") as f:
48
  data = json.load(f)
49
- for item in enumerate(data):
50
  yield item['_id'], {
51
  "question": item["question"],
52
  "context": [{
 
46
  """Yields examples."""
47
  with open(filepath, encoding="utf-8") as f:
48
  data = json.load(f)
49
+ for item in data:
50
  yield item['_id'], {
51
  "question": item["question"],
52
  "context": [{