kwojtasik commited on
Commit
def1ce9
1 Parent(s): 00ea6f2

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
  if "answers" not in qa:
112
  continue
113
  answer_starts = [answer["answer_start"] for answer in qa["answers"]]
114
- answer_ends = [answer["answer_end"] for answer in qa["answers"]]
115
  answers = [answer["text"] for answer in qa["answers"]]
116
  # is_impossible = qa["is_impossible"]
117
  # Features currently used are "context", "question", and "answers".
@@ -125,7 +125,7 @@ class SquadV2(datasets.GeneratorBasedBuilder):
125
  # "paragraph_id": paragraph_id,
126
  "answers": {
127
  "answer_start": answer_starts,
128
- "answer_end": answer_ends,
129
  "text": answers,
130
  },
131
  }
 
111
  if "answers" not in qa:
112
  continue
113
  answer_starts = [answer["answer_start"] for answer in qa["answers"]]
114
+ #answer_ends = [answer["answer_end"] for answer in qa["answers"]]
115
  answers = [answer["text"] for answer in qa["answers"]]
116
  # is_impossible = qa["is_impossible"]
117
  # Features currently used are "context", "question", and "answers".
 
125
  # "paragraph_id": paragraph_id,
126
  "answers": {
127
  "answer_start": answer_starts,
128
+ #"answer_end": answer_ends,
129
  "text": answers,
130
  },
131
  }