Datasets:
Tasks:
Question Answering
Modalities:
Text
Sub-tasks:
extractive-qa
Languages:
English
Size:
10K - 100K
ArXiv:
License:
Commit
·
509fd32
1
Parent(s):
336d9fe
updated lotte.py
Browse files
.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":
|
| 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 |
}
|