Update
Browse files- Custom_SQuAD.py +4 -2
Custom_SQuAD.py
CHANGED
|
@@ -80,7 +80,8 @@ class ShellcodeIA32(datasets.GeneratorBasedBuilder):
|
|
| 80 |
"id": datasets.Value("string"),
|
| 81 |
"title": datasets.Value("string"),
|
| 82 |
"context": datasets.Value("string"),
|
| 83 |
-
"question": datasets.Value("string")
|
|
|
|
| 84 |
}
|
| 85 |
)
|
| 86 |
return datasets.DatasetInfo(
|
|
@@ -159,5 +160,6 @@ class ShellcodeIA32(datasets.GeneratorBasedBuilder):
|
|
| 159 |
"id": row["id"],
|
| 160 |
"title": row["title"],
|
| 161 |
"context": row["context"],
|
| 162 |
-
"question": row["question"]
|
|
|
|
| 163 |
}
|
|
|
|
| 80 |
"id": datasets.Value("string"),
|
| 81 |
"title": datasets.Value("string"),
|
| 82 |
"context": datasets.Value("string"),
|
| 83 |
+
"question": datasets.Value("string"),
|
| 84 |
+
"answers": datasets.Sequence("dict")
|
| 85 |
}
|
| 86 |
)
|
| 87 |
return datasets.DatasetInfo(
|
|
|
|
| 160 |
"id": row["id"],
|
| 161 |
"title": row["title"],
|
| 162 |
"context": row["context"],
|
| 163 |
+
"question": row["question"],
|
| 164 |
+
"answers": row["answers"]
|
| 165 |
}
|