julianschnitzler
commited on
Commit
·
93b6495
1
Parent(s):
acccaf1
fix generator
Browse files- 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
|
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": [{
|