Lexi commited on
Commit
22b5382
·
1 Parent(s): e47bd49

Update NQ_squad_format.py

Browse files
Files changed (1) hide show
  1. 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.keys())
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"],