djstrong commited on
Commit
25e1f63
1 Parent(s): 41f8023

Update poquad.py

Browse files
Files changed (1) hide show
  1. poquad.py +4 -2
poquad.py CHANGED
@@ -54,14 +54,16 @@ class SquadV2(datasets.GeneratorBasedBuilder):
54
  # datasets.features.FeatureConnectors
55
  features=datasets.Features(
56
  {
57
- "idX": datasets.Value("string"),
58
  "title": datasets.Value("string"),
59
  "context": datasets.Value("string"),
60
  "question": datasets.Value("string"),
 
61
  "answers": datasets.features.Sequence(
62
  {
63
  "text": datasets.Value("string"),
64
  "answer_start": datasets.Value("int32"),
 
65
  }
66
  ),
67
  # These are the features of your dataset like images, labels ...
@@ -125,7 +127,7 @@ class SquadV2(datasets.GeneratorBasedBuilder):
125
  # Others are extracted here for the ease of future expansions.
126
  id_ += 1
127
  yield str(id_), {
128
- "idY": str(id_),
129
  "title": title,
130
  "context": context,
131
  "question": question,
 
54
  # datasets.features.FeatureConnectors
55
  features=datasets.Features(
56
  {
57
+ "id": datasets.Value("string"),
58
  "title": datasets.Value("string"),
59
  "context": datasets.Value("string"),
60
  "question": datasets.Value("string"),
61
+ "is_impossible": datasets.Value("bool"),
62
  "answers": datasets.features.Sequence(
63
  {
64
  "text": datasets.Value("string"),
65
  "answer_start": datasets.Value("int32"),
66
+ "generative_answer": datasets.Value("string"),
67
  }
68
  ),
69
  # These are the features of your dataset like images, labels ...
 
127
  # Others are extracted here for the ease of future expansions.
128
  id_ += 1
129
  yield str(id_), {
130
+ "id": str(id_),
131
  "title": title,
132
  "context": context,
133
  "question": question,