Commit
·
dc8bb77
1
Parent(s):
eb0e28b
update
Browse files
finqa.py
CHANGED
|
@@ -38,6 +38,7 @@ class FinQA(datasets.GeneratorBasedBuilder):
|
|
| 38 |
"pre_text": datasets.features.Sequence(datasets.Value("string")),
|
| 39 |
"question": datasets.Value("string"),
|
| 40 |
"answers": datasets.Value("string"),
|
|
|
|
| 41 |
"table": datasets.features.Sequence(datasets.features.Sequence(datasets.Value("string"))),
|
| 42 |
}
|
| 43 |
)
|
|
@@ -80,6 +81,7 @@ class FinQA(datasets.GeneratorBasedBuilder):
|
|
| 80 |
"post_text": example['post_text'],
|
| 81 |
"pre_text": example['pre_text'],
|
| 82 |
"question": example['qa']['question'],
|
| 83 |
-
"
|
| 84 |
"table": example['table'],
|
|
|
|
| 85 |
}
|
|
|
|
| 38 |
"pre_text": datasets.features.Sequence(datasets.Value("string")),
|
| 39 |
"question": datasets.Value("string"),
|
| 40 |
"answers": datasets.Value("string"),
|
| 41 |
+
"gold_evidence": datasets.features.Sequence(datasets.Value("string")),
|
| 42 |
"table": datasets.features.Sequence(datasets.features.Sequence(datasets.Value("string"))),
|
| 43 |
}
|
| 44 |
)
|
|
|
|
| 81 |
"post_text": example['post_text'],
|
| 82 |
"pre_text": example['pre_text'],
|
| 83 |
"question": example['qa']['question'],
|
| 84 |
+
"answer": example['qa']['answer'],
|
| 85 |
"table": example['table'],
|
| 86 |
+
"gold_evidence": list(example['qa']['gold_inds'].values())
|
| 87 |
}
|