Datasets:
Update poquad.py
Browse files
poquad.py
CHANGED
@@ -102,7 +102,7 @@ class SquadV2(datasets.GeneratorBasedBuilder):
|
|
102 |
id_ = 0
|
103 |
for example in squad["data"]:
|
104 |
title = example.get("title", "")
|
105 |
-
paragraph_id = example["id"]
|
106 |
for paragraph in example["paragraphs"]:
|
107 |
context = paragraph["context"] # do not strip leading blank spaces GH-2585
|
108 |
for qa in paragraph["qas"]:
|
@@ -120,7 +120,7 @@ class SquadV2(datasets.GeneratorBasedBuilder):
|
|
120 |
"context": context,
|
121 |
"question": question,
|
122 |
#"is_impossible" : is_impossible,
|
123 |
-
"paragraph_id": paragraph_id,
|
124 |
"answers": {
|
125 |
"answer_start": answer_starts,
|
126 |
"text": answers,
|
|
|
102 |
id_ = 0
|
103 |
for example in squad["data"]:
|
104 |
title = example.get("title", "")
|
105 |
+
# paragraph_id = example["id"]
|
106 |
for paragraph in example["paragraphs"]:
|
107 |
context = paragraph["context"] # do not strip leading blank spaces GH-2585
|
108 |
for qa in paragraph["qas"]:
|
|
|
120 |
"context": context,
|
121 |
"question": question,
|
122 |
#"is_impossible" : is_impossible,
|
123 |
+
# "paragraph_id": paragraph_id,
|
124 |
"answers": {
|
125 |
"answer_start": answer_starts,
|
126 |
"text": answers,
|