Datasets:
Tasks:
Question Answering
Sub-tasks:
extractive-qa
Languages:
Korean
Size:
10K<n<100K
ArXiv:
License:
Commit
·
76a62c8
1
Parent(s):
e01442f
Update squad_kor_v1_512.py
Browse files- squad_kor_v1_512.py +1 -6
squad_kor_v1_512.py
CHANGED
@@ -91,16 +91,11 @@ class SquadKorV1(datasets.GeneratorBasedBuilder):
|
|
91 |
with open(filepath, "rb") as f:
|
92 |
squad = pickle.load(f)
|
93 |
for data in squad:
|
94 |
-
answer_starts = [answer["answer_start"] for answer in data["answers"]]
|
95 |
-
answers = [answer["text"].strip() for answer in data["answers"]]
|
96 |
|
97 |
yield data["id"], {
|
98 |
"title": data["title"],
|
99 |
"context": data["context"],
|
100 |
"question": data["context"],
|
101 |
"id": data["id"],
|
102 |
-
"answers":
|
103 |
-
"answer_start": answer_starts,
|
104 |
-
"text": answers,
|
105 |
-
},
|
106 |
}
|
|
|
91 |
with open(filepath, "rb") as f:
|
92 |
squad = pickle.load(f)
|
93 |
for data in squad:
|
|
|
|
|
94 |
|
95 |
yield data["id"], {
|
96 |
"title": data["title"],
|
97 |
"context": data["context"],
|
98 |
"question": data["context"],
|
99 |
"id": data["id"],
|
100 |
+
"answers": data["answers"]
|
|
|
|
|
|
|
101 |
}
|