Datasets:
Update poquad.py
Browse files
poquad.py
CHANGED
@@ -111,7 +111,7 @@ class SquadV2(datasets.GeneratorBasedBuilder):
|
|
111 |
|
112 |
answer_starts = [answer["answer_start"] for answer in qa["answers"]]
|
113 |
answers = [answer["text"] for answer in qa["answers"]]
|
114 |
-
is_impossible =
|
115 |
# Features currently used are "context", "question", and "answers".
|
116 |
# Others are extracted here for the ease of future expansions.
|
117 |
id_ += 1
|
|
|
111 |
|
112 |
answer_starts = [answer["answer_start"] for answer in qa["answers"]]
|
113 |
answers = [answer["text"] for answer in qa["answers"]]
|
114 |
+
is_impossible = question["is_impossible"]
|
115 |
# Features currently used are "context", "question", and "answers".
|
116 |
# Others are extracted here for the ease of future expansions.
|
117 |
id_ += 1
|