Datasets:
File size: 1,913 Bytes
b2ed3a6 f69f094 b9064b2 9847751 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | ---
license: mit
configs:
- config_name: default
data_files:
- split: train
path: data/train-*
dataset_info:
features:
- name: pdf
dtype: pdf
- name: html
dtype: string
- name: question
dtype: string
- name: answer
dtype: string
- name: title
dtype: string
splits:
- name: train
num_bytes: 5833510
num_examples: 300
download_size: 27811899
dataset_size: 5833510
task_categories:
- table-question-answering
language:
- ru
size_categories:
- n<1K
---
# rosstat-table-qa
`rosstat-table-qa` is a Russian-language dataset for question answering over statistical tables from Rosstat (Federal State Statistics Service of Russia).
The dataset contains real-world statistical tables from official Rosstat Excel reports. Each worksheet was converted into a separate table sample represented as both PDF and HTML.
Each sample includes:
- the original PDF table (`pdf`),
- an HTML representation of the table (`html`),
- the table title (`title`),
- a natural language question (`question`),
- and the corresponding answer (`answer`).
## Dataset Structure
Each sample has the following structure:
```python
{
"pdf": PDF,
"html": str,
"title": str,
"question": str,
"answer": str
}
```
## Usage
```python
from datasets import load_dataset
dataset = load_dataset("gu1show/rosstat-table-qa")
print(dataset["train"][0])
```
Output:
```
{'pdf': <pdfplumber.pdf.PDF at 0x15115ff3e30>,
'html': '<table>...</table>',
'question': 'Какое количество гектаров лесов обработали биологическими препаратами для уничтожения вредных организмов наземным способом в 2021 году?',
'answer': '60,4 тысяч гектаров',
'title': 'Защита лесов в Российской Федерации (тысяч гектаров)'}
``` |