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
509fd32
1 Parent(s): 336d9fe

updated lotte.py

Browse files
Files changed (2) hide show
  1. .DS_Store +0 -0
  2. lotte.py +6 -1
.DS_Store CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
lotte.py CHANGED
@@ -192,10 +192,15 @@ class NewDataset(datasets.GeneratorBasedBuilder):
192
 
193
  answers.update({"answer_pids": data['answer_pids']})
194
 
 
 
 
 
 
195
 
196
  yield key, {
197
  "qid": data["qid"],
198
  "query": data["query"],
199
- "author": data["question_author"],
200
  "answers": answers
201
  }
192
 
193
  answers.update({"answer_pids": data['answer_pids']})
194
 
195
+ if "question_author" in data.keys():
196
+ author = data['question_author']
197
+ else:
198
+ author = ""
199
+
200
 
201
  yield key, {
202
  "qid": data["qid"],
203
  "query": data["query"],
204
+ "author": author,
205
  "answers": answers
206
  }