Datasets:

Sub-tasks:
extractive-qa
Languages:
English
Multilinguality:
monolingual
Size Categories:
10K<n<100K
Language Creators:
found
Annotations Creators:
no-annotation
Source Datasets:
original
ArXiv:
Tags:
License:
jonsaadfalcon commited on
Commit
dd9ca1c
1 Parent(s): 98d6e66

updated file format

Browse files
Files changed (1) hide show
  1. lotte.py +6 -7
lotte.py CHANGED
@@ -176,12 +176,11 @@ class NewDataset(datasets.GeneratorBasedBuilder):
176
  for key, row in enumerate(f):
177
 
178
  data = json.loads(row)
179
-
180
- current_query = data[i]
181
  yield key, {
182
- "qid": current_query["qid"],
183
- "query": current_query["query"],
184
- "score": current_query["score"],
185
- "views": current_query["views"],
186
- "answer_pids": current_query["answer_pids"],
187
  }
 
176
  for key, row in enumerate(f):
177
 
178
  data = json.loads(row)
179
+
 
180
  yield key, {
181
+ "qid": data["qid"],
182
+ "query": data["query"],
183
+ "score": data["score"],
184
+ "views": data["views"],
185
+ "answer_pids": data["answer_pids"],
186
  }