Skip to content

vis-nlp/ChartQAPro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

ChartQAPro: A More Diverse and Challenging Benchmark for Chart Question Answering

🤗Dataset | 🖥️Code | 📄Paper

question_types_crop_3-1 Screenshot 2025-04-17 205316

Dataset

You can find our dataset on huggingface: 🤗ChartQAPro Dataset

Evaluation Results

Screenshot 2025-04-17 205443

✅ Evaluation Instructions

To evaluate your model on ChartQAPro, follow the steps below:

1. Format Your Predictions

Save your model's predictions in a .json file that contains a list of dictionaries.
Each dictionary should include the following keys (first three keys taken from the original huggingface dataset):

  • "Answer": the ground truth answer
  • "Question Type": the type of the question (e.g., Factoid, MCQ, etc.)
  • "Year": useful for evaluating year-based answers
  • "prediction": your model’s predicted answer

📝 Example Format

[
  {
    "Answer": ["2016"]
    "Question Type": "Factoid",
    "Year": ["YES"]
    "prediction": "2016"
  },
  ...
]

2. Install Required Dependencies

pip install anls pandas

3. Run the Evaluation Script

python evaluate_predictions.py --predictions-file path/to/your/predictions.json

This will print your model’s performance across different question types and the overall score, following the official evaluation metrics used in the paper. 📊

💬 Contact

If you have any questions about this work, please contact Ahmed Masry using the following email addresses: [email protected], [email protected], or [email protected].

📚 Citation

If you use ChartQAPro in your research, please cite:

@misc{masry2025chartqaprodiversechallengingbenchmark,
      title={ChartQAPro: A More Diverse and Challenging Benchmark for Chart Question Answering}, 
      author={Ahmed Masry and Mohammed Saidul Islam and Mahir Ahmed and Aayush Bajaj and Firoz Kabir and Aaryaman Kartha and Md Tahmid Rahman Laskar and Mizanur Rahman and Shadikur Rahman and Mehrad Shahmohammadi and Megh Thakkar and Md Rizwan Parvez and Enamul Hoque and Shafiq Joty},
      year={2025},
      eprint={2504.05506},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2504.05506}, 
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages