add dataset card
Browse files
README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: mit
|
| 5 |
+
task_categories:
|
| 6 |
+
- question-answering
|
| 7 |
+
- table-question-answering
|
| 8 |
+
tags:
|
| 9 |
+
- finance
|
| 10 |
+
- conversational-qa
|
| 11 |
+
- numerical-reasoning
|
| 12 |
+
- financial-tables
|
| 13 |
+
- 10-k
|
| 14 |
+
pretty_name: ConvFinQA (Tomoro pre-cleaned)
|
| 15 |
+
size_categories:
|
| 16 |
+
- 1K<n<10K
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# ConvFinQA (Tomoro pre-cleaned)
|
| 20 |
+
|
| 21 |
+
Re-host of the pre-cleaned ConvFinQA dataset distributed as part of Tomoro AI's "Applied AI Solution Engineer" take-home exercise. ConvFinQA itself is the conversational QA benchmark over single-page financial documents from Chen et al. (EMNLP 2022).
|
| 22 |
+
|
| 23 |
+
The data is a single JSON file with two splits, `train` (3,037 records) and `dev` (421 records). Each record carries:
|
| 24 |
+
|
| 25 |
+
- `id`: stable per-record identifier
|
| 26 |
+
- `doc`: a 10-K page split into `pre_text`, `post_text`, and a column-keyed `table` (nested dict: column header → row header → cell value)
|
| 27 |
+
- `dialogue`: `conv_questions`, `conv_answers`, `turn_program` (FinQA DSL), `executed_answers` (the dataset's gold executed values, numeric or `'yes'`/`'no'`), and `qa_split` (origin flag for hybrid two-source dialogues)
|
| 28 |
+
- `features`: precomputed flags (`num_dialogue_turns`, `has_type2_question`, `has_duplicate_columns`, `has_non_numeric_values`)
|
| 29 |
+
|
| 30 |
+
## Loading
|
| 31 |
+
|
| 32 |
+
```python
|
| 33 |
+
import json
|
| 34 |
+
from huggingface_hub import hf_hub_download
|
| 35 |
+
|
| 36 |
+
path = hf_hub_download(
|
| 37 |
+
repo_id="sharick008/convfinqa",
|
| 38 |
+
filename="convfinqa_dataset.json",
|
| 39 |
+
repo_type="dataset",
|
| 40 |
+
)
|
| 41 |
+
data = json.load(open(path))
|
| 42 |
+
print(len(data["train"]), len(data["dev"]))
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
## Citation
|
| 46 |
+
|
| 47 |
+
> Chen, Z., Li, S., Smiley, C., Ma, Z., Shah, S., & Wang, W. Y. (2022). ConvFinQA: Exploring the Chain of Numerical Reasoning in Conversational Finance Question Answering. EMNLP.
|
| 48 |
+
|
| 49 |
+
## Licence
|
| 50 |
+
|
| 51 |
+
ConvFinQA upstream is MIT-licensed. This re-host preserves that licence and the original attribution to the ConvFinQA authors. Tomoro's pre-cleaning passes (column disambiguation, scale normalisation, numeric coercion) are applied on top.
|