Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,43 +1,113 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
dataset_info:
|
| 3 |
features:
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
splits:
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
- name: test
|
| 30 |
-
num_bytes: 2924514076
|
| 31 |
-
num_examples: 44000
|
| 32 |
-
download_size: 23771758065
|
| 33 |
-
dataset_size: 26006714247
|
| 34 |
-
configs:
|
| 35 |
-
- config_name: default
|
| 36 |
-
data_files:
|
| 37 |
-
- split: train
|
| 38 |
-
path: data/train-*
|
| 39 |
-
- split: validation
|
| 40 |
-
path: data/validation-*
|
| 41 |
-
- split: test
|
| 42 |
-
path: data/test-*
|
| 43 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- visual-question-answering
|
| 5 |
+
- image-to-text
|
| 6 |
+
language:
|
| 7 |
+
- bn
|
| 8 |
+
- en
|
| 9 |
+
- gu
|
| 10 |
+
- hi
|
| 11 |
+
- kn
|
| 12 |
+
- ml
|
| 13 |
+
- mr
|
| 14 |
+
- ne
|
| 15 |
+
- pa
|
| 16 |
+
- ta
|
| 17 |
+
- te
|
| 18 |
+
tags:
|
| 19 |
+
- chart-qa
|
| 20 |
+
- multilingual
|
| 21 |
+
- indic
|
| 22 |
+
- vqa
|
| 23 |
+
- chart-understanding
|
| 24 |
+
size_categories:
|
| 25 |
+
- 100K<n<1M
|
| 26 |
dataset_info:
|
| 27 |
features:
|
| 28 |
+
- name: image_id
|
| 29 |
+
dtype: string
|
| 30 |
+
- name: image
|
| 31 |
+
dtype: image
|
| 32 |
+
- name: chart_type
|
| 33 |
+
dtype: string
|
| 34 |
+
- name: language
|
| 35 |
+
dtype: string
|
| 36 |
+
- name: split
|
| 37 |
+
dtype: string
|
| 38 |
+
- name: question_ids
|
| 39 |
+
sequence: int64
|
| 40 |
+
- name: questions
|
| 41 |
+
sequence: string
|
| 42 |
+
- name: answers
|
| 43 |
+
sequence: string
|
| 44 |
+
- name: question_types
|
| 45 |
+
sequence: string
|
| 46 |
splits:
|
| 47 |
+
- name: train
|
| 48 |
+
num_examples: 352000
|
| 49 |
+
- name: validation
|
| 50 |
+
num_examples: 44000
|
| 51 |
+
- name: test
|
| 52 |
+
num_examples: 44000
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
---
|
| 54 |
+
|
| 55 |
+
# MLCQA v1
|
| 56 |
+
|
| 57 |
+
**M**ultilingual **L**anguage **C**hart **Q**uestion **A**nswering — A large-scale
|
| 58 |
+
multilingual Chart VQA dataset covering **11 languages** and **8 chart types**.
|
| 59 |
+
|
| 60 |
+
## Dataset Summary
|
| 61 |
+
|
| 62 |
+
| Metric | Count |
|
| 63 |
+
|---|---|
|
| 64 |
+
| **Total Images** | 440,000 |
|
| 65 |
+
| **Total QA Pairs** | 4,400,000 |
|
| 66 |
+
| **Languages** | 11 (bn, en, gu, hi, kn, ml, mr, ne, pa, ta, te) |
|
| 67 |
+
| **Chart Types** | 8 (area, donut, grouped_bar, horizontal_bar, line, pie, stacked_bar, vertical_bar) |
|
| 68 |
+
| **Questions per Image** | 10 |
|
| 69 |
+
| **Random Seed** | 22 |
|
| 70 |
+
|
| 71 |
+
### Splits
|
| 72 |
+
|
| 73 |
+
| Split | Images | QA Pairs |
|
| 74 |
+
|---|---|---|
|
| 75 |
+
| Train | 352,000 | 3,520,000 |
|
| 76 |
+
| Validation | 44,000 | 440,000 |
|
| 77 |
+
| Test | 44,000 | 440,000 |
|
| 78 |
+
|
| 79 |
+
## Data Format
|
| 80 |
+
|
| 81 |
+
The dataset is stored in Parquet format with **one row per image**. Each row
|
| 82 |
+
contains the chart image and a list of 10 question–answer pairs.
|
| 83 |
+
|
| 84 |
+
### Usage
|
| 85 |
+
|
| 86 |
+
```python
|
| 87 |
+
from datasets import load_dataset
|
| 88 |
+
|
| 89 |
+
ds = load_dataset("MLCQA/MLCQA-dataset")
|
| 90 |
+
|
| 91 |
+
# Access data
|
| 92 |
+
example = ds["train"][0]
|
| 93 |
+
print(example["image_id"]) # "train_en_bar_0101"
|
| 94 |
+
print(example["image"]) # PIL Image
|
| 95 |
+
print(example["questions"]) # list of 10 questions
|
| 96 |
+
print(example["answers"]) # list of 10 answers
|
| 97 |
+
print(example["chart_type"]) # "vertical_bar"
|
| 98 |
+
print(example["language"]) # "en"
|
| 99 |
+
```
|
| 100 |
+
|
| 101 |
+
### Schema
|
| 102 |
+
|
| 103 |
+
| Field | Type | Description |
|
| 104 |
+
|---|---|---|
|
| 105 |
+
| `image_id` | string | Unique image identifier (`{split}_{lang}_{chart}_{num}`) |
|
| 106 |
+
| `image` | image | Chart image (PNG embedded as bytes) |
|
| 107 |
+
| `chart_type` | string | Type of chart (area, donut, grouped_bar, etc.) |
|
| 108 |
+
| `language` | string | ISO 639-1 language code |
|
| 109 |
+
| `split` | string | Dataset split (train/validation/test) |
|
| 110 |
+
| `question_ids` | list[int] | List of 10 globally unique question IDs |
|
| 111 |
+
| `questions` | list[string] | List of 10 natural language questions |
|
| 112 |
+
| `answers` | list[string] | List of 10 ground-truth answers |
|
| 113 |
+
| `question_types` | list[string] | List of 10 question categories |
|