Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -53,10 +53,6 @@ dataset_info:
|
|
| 53 |
dtype: string
|
| 54 |
- name: abc_notation
|
| 55 |
dtype: string
|
| 56 |
-
- name: pdf
|
| 57 |
-
dtype: binary
|
| 58 |
-
- name: images
|
| 59 |
-
sequence: image
|
| 60 |
- name: level
|
| 61 |
dtype: int32
|
| 62 |
- name: question
|
|
@@ -110,30 +106,30 @@ The dataset is available in two configurations:
|
|
| 110 |
|
| 111 |
### `flat` (default) — 1 question per row, 1,800 rows
|
| 112 |
|
| 113 |
-
Each row contains a single question-answer pair
|
| 114 |
|
| 115 |
| Column | Type | Description |
|
| 116 |
|--------|------|-------------|
|
| 117 |
| `song_id` | `string` | Unique identifier derived from the score filename |
|
| 118 |
| `abc_notation` | `string` | Full ABC notation (text-based symbolic representation) |
|
| 119 |
-
| `pdf` | `binary` | The original rendered PDF of the score |
|
| 120 |
-
| `images` | `list[image]` | Individual page images (PNG), 1–35 pages per score |
|
| 121 |
| `level` | `int32` | Difficulty level (1–4) |
|
| 122 |
| `question` | `string` | The question text |
|
| 123 |
| `answer` | `string` | The reference answer |
|
| 124 |
|
| 125 |
### `nested` — 12 questions per score, 150 rows
|
| 126 |
|
| 127 |
-
Each row contains one complete score with all 12 questions nested
|
| 128 |
|
| 129 |
| Column | Type | Description |
|
| 130 |
|--------|------|-------------|
|
| 131 |
| `song_id` | `string` | Unique identifier |
|
| 132 |
| `abc_notation` | `string` | Full ABC notation |
|
| 133 |
| `pdf` | `binary` | The original rendered PDF |
|
| 134 |
-
| `images` | `list[image]` | Individual page images (PNG) |
|
| 135 |
| `questions` | `struct{level, question, answer}` | 12 questions (3 per difficulty level) with reference answers |
|
| 136 |
|
|
|
|
|
|
|
| 137 |
### Modalities for Evaluation
|
| 138 |
|
| 139 |
| Modality | Input | Target Models |
|
|
@@ -155,7 +151,6 @@ The benchmark covers 150 scores from the Western art music canon, spanning:
|
|
| 155 |
```python
|
| 156 |
from datasets import load_dataset
|
| 157 |
|
| 158 |
-
# Default config: flat (1 question per row)
|
| 159 |
ds = load_dataset("Krinos/MSU-Bench", split="test")
|
| 160 |
print(len(ds)) # 1800
|
| 161 |
|
|
@@ -167,11 +162,10 @@ print(f"Level {sample['level']}: {sample['question']} -> {sample['answer']}")
|
|
| 167 |
### Loading the Nested Config
|
| 168 |
|
| 169 |
```python
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
print(len(ds)) # 150
|
| 173 |
|
| 174 |
-
sample =
|
| 175 |
for lvl, q, a in zip(
|
| 176 |
sample["questions"]["level"],
|
| 177 |
sample["questions"]["question"],
|
|
@@ -183,11 +177,26 @@ for lvl, q, a in zip(
|
|
| 183 |
### Visual QA with Page Images
|
| 184 |
|
| 185 |
```python
|
| 186 |
-
|
|
|
|
| 187 |
for i, img in enumerate(sample["images"]):
|
| 188 |
img.save(f"page_{i}.png")
|
| 189 |
```
|
| 190 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 191 |
## Citation
|
| 192 |
|
| 193 |
```bibtex
|
|
|
|
| 53 |
dtype: string
|
| 54 |
- name: abc_notation
|
| 55 |
dtype: string
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
- name: level
|
| 57 |
dtype: int32
|
| 58 |
- name: question
|
|
|
|
| 106 |
|
| 107 |
### `flat` (default) — 1 question per row, 1,800 rows
|
| 108 |
|
| 109 |
+
Each row contains a single question-answer pair with the score's ABC notation. Best for evaluation pipelines.
|
| 110 |
|
| 111 |
| Column | Type | Description |
|
| 112 |
|--------|------|-------------|
|
| 113 |
| `song_id` | `string` | Unique identifier derived from the score filename |
|
| 114 |
| `abc_notation` | `string` | Full ABC notation (text-based symbolic representation) |
|
|
|
|
|
|
|
| 115 |
| `level` | `int32` | Difficulty level (1–4) |
|
| 116 |
| `question` | `string` | The question text |
|
| 117 |
| `answer` | `string` | The reference answer |
|
| 118 |
|
| 119 |
### `nested` — 12 questions per score, 150 rows
|
| 120 |
|
| 121 |
+
Each row contains one complete score with all 12 questions nested, plus the PDF and page images. Best for per-score or visual analysis.
|
| 122 |
|
| 123 |
| Column | Type | Description |
|
| 124 |
|--------|------|-------------|
|
| 125 |
| `song_id` | `string` | Unique identifier |
|
| 126 |
| `abc_notation` | `string` | Full ABC notation |
|
| 127 |
| `pdf` | `binary` | The original rendered PDF |
|
| 128 |
+
| `images` | `list[image]` | Individual page images (PNG), 1–35 pages per score |
|
| 129 |
| `questions` | `struct{level, question, answer}` | 12 questions (3 per difficulty level) with reference answers |
|
| 130 |
|
| 131 |
+
> **Note:** PDF and page images are only stored in the `nested` config to avoid duplication. Use `song_id` to join with `flat` if needed.
|
| 132 |
+
|
| 133 |
### Modalities for Evaluation
|
| 134 |
|
| 135 |
| Modality | Input | Target Models |
|
|
|
|
| 151 |
```python
|
| 152 |
from datasets import load_dataset
|
| 153 |
|
|
|
|
| 154 |
ds = load_dataset("Krinos/MSU-Bench", split="test")
|
| 155 |
print(len(ds)) # 1800
|
| 156 |
|
|
|
|
| 162 |
### Loading the Nested Config
|
| 163 |
|
| 164 |
```python
|
| 165 |
+
ds_nested = load_dataset("Krinos/MSU-Bench", "nested", split="test")
|
| 166 |
+
print(len(ds_nested)) # 150
|
|
|
|
| 167 |
|
| 168 |
+
sample = ds_nested[0]
|
| 169 |
for lvl, q, a in zip(
|
| 170 |
sample["questions"]["level"],
|
| 171 |
sample["questions"]["question"],
|
|
|
|
| 177 |
### Visual QA with Page Images
|
| 178 |
|
| 179 |
```python
|
| 180 |
+
ds_nested = load_dataset("Krinos/MSU-Bench", "nested", split="test")
|
| 181 |
+
sample = ds_nested[0]
|
| 182 |
for i, img in enumerate(sample["images"]):
|
| 183 |
img.save(f"page_{i}.png")
|
| 184 |
```
|
| 185 |
|
| 186 |
+
### Joining Flat + Nested for Visual Evaluation
|
| 187 |
+
|
| 188 |
+
```python
|
| 189 |
+
ds_flat = load_dataset("Krinos/MSU-Bench", split="test")
|
| 190 |
+
ds_nested = load_dataset("Krinos/MSU-Bench", "nested", split="test")
|
| 191 |
+
|
| 192 |
+
# Build a lookup from song_id to images
|
| 193 |
+
images_lookup = {row["song_id"]: row["images"] for row in ds_nested}
|
| 194 |
+
|
| 195 |
+
# Get images for a flat row
|
| 196 |
+
sample = ds_flat[0]
|
| 197 |
+
images = images_lookup[sample["song_id"]]
|
| 198 |
+
```
|
| 199 |
+
|
| 200 |
## Citation
|
| 201 |
|
| 202 |
```bibtex
|