Datasets:
Tasks:
Question Answering
Sub-tasks:
extractive-qa
Languages:
English
Size:
1M<n<10M
ArXiv:
License:
jonsaadfalcon
commited on
Commit
•
2ba010d
1
Parent(s):
64d4080
updated lotte_passages.py
Browse files- .DS_Store +0 -0
- lotte_passages.py +6 -5
.DS_Store
CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
|
|
lotte_passages.py
CHANGED
@@ -171,14 +171,15 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
171 |
|
172 |
data = json.loads(row)
|
173 |
|
174 |
-
if "author" in data.keys():
|
175 |
-
author = data['author']
|
176 |
-
else:
|
177 |
-
author = ""
|
178 |
-
|
179 |
for i in range(0, len(data)):
|
180 |
|
181 |
current_query = data[i]
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
yield i, {
|
183 |
"doc_id": current_query["doc_id"],
|
184 |
"author": author,
|
|
|
171 |
|
172 |
data = json.loads(row)
|
173 |
|
|
|
|
|
|
|
|
|
|
|
174 |
for i in range(0, len(data)):
|
175 |
|
176 |
current_query = data[i]
|
177 |
+
|
178 |
+
if "author" in current_query.keys():
|
179 |
+
author = current_query['author']
|
180 |
+
else:
|
181 |
+
author = ""
|
182 |
+
|
183 |
yield i, {
|
184 |
"doc_id": current_query["doc_id"],
|
185 |
"author": author,
|