yuvalkirstain commited on
Commit
0592565
1 Parent(s): 959d23e

bug fix - add unique idx per question

Browse files
Files changed (1) hide show
  1. mrqa.py +1 -1
mrqa.py CHANGED
@@ -202,7 +202,7 @@ class MRQA(datasets.GeneratorBasedBuilder):
202
  header = next(f)
203
  subset = json.loads(header)["header"]["dataset"]
204
  idx = 0
205
- for row in enumerate(f):
206
  paragraph = json.loads(row)
207
  context = paragraph["context"].strip()
208
  if subset == "HotpotQA":
 
202
  header = next(f)
203
  subset = json.loads(header)["header"]["dataset"]
204
  idx = 0
205
+ for row in f:
206
  paragraph = json.loads(row)
207
  context = paragraph["context"].strip()
208
  if subset == "HotpotQA":