kwojtasik commited on
Commit
86b94d5
1 Parent(s): f008060

Update poquad.py

Browse files
Files changed (1) hide show
  1. poquad.py +2 -2
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 = 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
@@ -119,7 +119,7 @@ class SquadV2(datasets.GeneratorBasedBuilder):
119
  "title": title,
120
  "context": context,
121
  "question": question,
122
- "is_impossible" : is_impossible,
123
  "paragraph_id": paragraph_id,
124
  "answers": {
125
  "answer_start": answer_starts,
 
111
 
112
  answer_starts = [answer["answer_start"] for answer in qa["answers"]]
113
  answers = [answer["text"] for answer in qa["answers"]]
114
+ # is_impossible = qa["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
 
119
  "title": title,
120
  "context": context,
121
  "question": question,
122
+ #"is_impossible" : is_impossible,
123
  "paragraph_id": paragraph_id,
124
  "answers": {
125
  "answer_start": answer_starts,