Update NQ_squad_format.py
Browse files- NQ_squad_format.py +2 -2
NQ_squad_format.py
CHANGED
@@ -117,8 +117,8 @@ class Squad(datasets.GeneratorBasedBuilder):
|
|
117 |
key = 0
|
118 |
with open(filepath, encoding="utf-8") as f:
|
119 |
data = json.load(f)
|
120 |
-
print("example data: ", data
|
121 |
-
for line in data:
|
122 |
yield key, {
|
123 |
"context": line['context'],
|
124 |
"question": line["question"],
|
|
|
117 |
key = 0
|
118 |
with open(filepath, encoding="utf-8") as f:
|
119 |
data = json.load(f)
|
120 |
+
print("example data: ", data['data'][0])
|
121 |
+
for line in data['data']:
|
122 |
yield key, {
|
123 |
"context": line['context'],
|
124 |
"question": line["question"],
|