ChartFact is a chart fact-checking dataset with 100K fact-checking data entries and ___ charts created using ChartQA (Masry et al., 2022), FigureQA (Kahou et al., 2017), and PlotQA (Methani et al., 2020) as seed datasets.
The dataset includes chart images, their underlying tables and titles (translated through DePlot for FigureQA and PlotQA charts), and JSON files containing claims, labels ('supports', 'refutes', and 'not enough information'), and explanations.
ChartFact is thus a mixture of synthetic and real-world chart images, and contains a diverse range of chart types including: vertical and horizontal bar charts, line graphs, dot-line plots, pie charts, and scatter plots. The real-world data within the dataset is extracted from sources such as Pew, the World Bank, and Statista (Masry et al., 2022; Methani et al., 2020).
To download the dataset, click here.
The pipeline for creating the ChartFact dataset includes the following steps:
All pipeline-related source code lives in the root directory ChartFact:
data_extraction/random_extraction.py: Script for extracting a subset of data entries.data_preprocessing/file-data_standardisation.py: Script for standardising the extracted data.data_translation/deplot.py: Script for generating underlying tables and titles (if available) using the DePlot model.data_translation/deplot_CSV_format.py: Script for formatting the translated data tables into CSV files and titles (if available) into TXT files.data_prompting/main.py: Script for generating claims and explanations using OpenAI's GPT-3.5-turbo.final_dataset_creation/combine_datasets.py: Script for combining all processed data into the final dataset.pip install -r requirements.txtQA_datasets
├── ChartQA
│ ├── train
│ ├── val
│ └── test
├── FigureQA
│ ├── train
│ ├── val
│ └── test
└── PlotQA
├── train
├── val
└── test
Make sure to manually adjust the path to the folder of the downloaded QA datasets in the first step of the pipeline (data extraction).
python main_pipeline.pycd ChartFactpython data_extraction/random_extraction.py /path/to/QA_datasets seed_datasets_{#}/1_extracted_data_{#}python data_preprocessing/file-data_standardisation.py seed_datasets_{#}/1_extracted_data_{#} seed_datasets_{#}/2_preprocessed_data_{#}python data_translation/deplot.py seed_datasets_{#}/2_preprocessed_data_{#} seed_datasets_{#}/3_translated_data_{#}python data_translation/deplot_CSV_format.py seed_datasets_{#}/3_translated_data_{#} seed_datasets_{#}/3_translated_data_{#}python data_prompting/main.py seed_datasets_{#}/3_translated_data_{#} seed_datasets_{#}/4_prompted_data_{#} python final_dataset_creation/combine_datasets.py seed_datasets_{#}/4_prompted_data_{#} seed_datasets_{#}/5_final_dataset_{#}The ChartFact dataset has the following structure:
├── ChartFact
│ ├── train
│ │ ├── fc_entries.json # Contains generated claims with corresponding labels and explanations
│ │ ├── png # Folder containing chart images
│ │ │ ├── chartQA_{ID}-train.png
│ │ │ ├── figureQA_{ID}-train.png
│ │ │ ├── plotQA_{ID}-train.png
│ │ │ ├── ...
│ │ ├── tables # Folder containing underlying data tables and titles (if available)
│ │ │ ├── chartQA_{ID}-train.csv
│ │ │ ├── figureQA_{ID}-train.csv
│ │ │ ├── plotQA_{ID}-train.csv # Table file
│ │ │ ├── plotQA_{ID}-train.txt # Title file
│ │ │ ├── ...
│ └── val
│ │ │ ...
│ │ │ ...
│ └── test
│ │ │ ...
│ │ │ ...
│ │ | ...
If you have any questions about this work, please contact Evie Stergiopoulou at [email protected] or Angeline Wang at [email protected].
If you use our dataset or code, please cite our paper: ChartFact: An Explainable Three-Way Labelled Fact-Checking Dataset for Chart Images.
@article{,
author = {Evie Stergiopoulou and
Angeline Wang and
Mubashara Akhtar},
title = {ChartFact: An Explainable Three-Way Labelled Fact-Checking Dataset for Chart Images},
journal = {},
volume = {},
year = {},
url = {},
doi = {},
eprinttype = {},
eprint = {},
timestamp = {},
biburl = {},
bibsource = {}
}
ChartFact is a chart fact-checking dataset with 100K fact-checking data entries and ___ charts created using ChartQA (Masry et al., 2022), FigureQA (Kahou et al., 2017), and PlotQA (Methani et al., 2020) as seed datasets.
The dataset includes chart images, their underlying tables and titles (translated through DePlot for FigureQA and PlotQA charts), and JSON files containing claims, labels ('supports', 'refutes', and 'not enough information'), and explanations.
ChartFact is thus a mixture of synthetic and real-world chart images, and contains a diverse range of chart types including: vertical and horizontal bar charts, line graphs, dot-line plots, pie charts, and scatter plots. The real-world data within the dataset is extracted from sources such as Pew, the World Bank, and Statista (Masry et al., 2022; Methani et al., 2020).
To download the dataset, click here.
The pipeline for creating the ChartFact dataset includes the following steps:
All pipeline-related source code lives in the root directory ChartFact:
data_extraction/random_extraction.py: Script for extracting a subset of data entries.data_preprocessing/file-data_standardisation.py: Script for standardising the extracted data.data_translation/deplot.py: Script for generating underlying tables and titles (if available) using the DePlot model.data_translation/deplot_CSV_format.py: Script for formatting the translated data tables into CSV files and titles (if available) into TXT files.data_prompting/main.py: Script for generating claims and explanations using OpenAI's GPT-3.5-turbo.final_dataset_creation/combine_datasets.py: Script for combining all processed data into the final dataset.pip install -r requirements.txtQA_datasets
├── ChartQA
│ ├── train
│ ├── val
│ └── test
├── FigureQA
│ ├── train
│ ├── val
│ └── test
└── PlotQA
├── train
├── val
└── test
Make sure to manually adjust the path to the folder of the downloaded QA datasets in the first step of the pipeline (data extraction).
python main_pipeline.pycd ChartFactpython data_extraction/random_extraction.py /path/to/QA_datasets seed_datasets_{#}/1_extracted_data_{#}python data_preprocessing/file-data_standardisation.py seed_datasets_{#}/1_extracted_data_{#} seed_datasets_{#}/2_preprocessed_data_{#}python data_translation/deplot.py seed_datasets_{#}/2_preprocessed_data_{#} seed_datasets_{#}/3_translated_data_{#}python data_translation/deplot_CSV_format.py seed_datasets_{#}/3_translated_data_{#} seed_datasets_{#}/3_translated_data_{#}python data_prompting/main.py seed_datasets_{#}/3_translated_data_{#} seed_datasets_{#}/4_prompted_data_{#} python final_dataset_creation/combine_datasets.py seed_datasets_{#}/4_prompted_data_{#} seed_datasets_{#}/5_final_dataset_{#}The ChartFact dataset has the following structure:
├── ChartFact
│ ├── train
│ │ ├── fc_entries.json # Contains generated claims with corresponding labels and explanations
│ │ ├── png # Folder containing chart images
│ │ │ ├── chartQA_{ID}-train.png
│ │ │ ├── figureQA_{ID}-train.png
│ │ │ ├── plotQA_{ID}-train.png
│ │ │ ├── ...
│ │ ├── tables # Folder containing underlying data tables and titles (if available)
│ │ │ ├── chartQA_{ID}-train.csv
│ │ │ ├── figureQA_{ID}-train.csv
│ │ │ ├── plotQA_{ID}-train.csv # Table file
│ │ │ ├── plotQA_{ID}-train.txt # Title file
│ │ │ ├── ...
│ └── val
│ │ │ ...
│ │ │ ...
│ └── test
│ │ │ ...
│ │ │ ...
│ │ | ...
If you have any questions about this work, please contact Evie Stergiopoulou at [email protected] or Angeline Wang at [email protected].
If you use our dataset or code, please cite our paper: ChartFact: An Explainable Three-Way Labelled Fact-Checking Dataset for Chart Images.
@article{,
author = {Evie Stergiopoulou and
Angeline Wang and
Mubashara Akhtar},
title = {ChartFact: An Explainable Three-Way Labelled Fact-Checking Dataset for Chart Images},
journal = {},
volume = {},
year = {},
url = {},
doi = {},
eprinttype = {},
eprint = {},
timestamp = {},
biburl = {},
bibsource = {}
}