Add data and README
Browse files- AnatEM/test-00000-of-00001.parquet +3 -0
- JNLPBA-Rare/test-00000-of-00001.parquet +3 -0
- JNLPBA/test-00000-of-00001.parquet +3 -0
- MedMentions-Rare/test-00000-of-00001.parquet +3 -0
- README.md +259 -0
- bc2gm/test-00000-of-00001.parquet +3 -0
- bc4chemd/test-00000-of-00001.parquet +3 -0
- bc5cdr/test-00000-of-00001.parquet +3 -0
- biored/test-00000-of-00001.parquet +3 -0
- ncbi/test-00000-of-00001.parquet +3 -0
AnatEM/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fc2e3af3ed841c6d344db4e9304608a640e2a86b04d49abe19921ec76775dbbd
|
| 3 |
+
size 810311
|
JNLPBA-Rare/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:90f357e7c7d7ab44bd764c422c10dc98f42043fdb1a98d7c98b3be17f2c13188
|
| 3 |
+
size 793419
|
JNLPBA/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dce7bf7d21f694b1ed40f8e913837c5dbdcf603827f83aa4651733cd852040a2
|
| 3 |
+
size 878155
|
MedMentions-Rare/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6e5ba638dbe15a375e36d1160f9ab06d265da65831c6cd3875459c1cb312eb11
|
| 3 |
+
size 957555
|
README.md
ADDED
|
@@ -0,0 +1,259 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
task_categories:
|
| 4 |
+
- token-classification
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- biomedical
|
| 9 |
+
- ner
|
| 10 |
+
- evaluation
|
| 11 |
+
pretty_name: BioNER Fixed Evaluation Subset
|
| 12 |
+
dataset_info:
|
| 13 |
+
- config_name: AnatEM
|
| 14 |
+
features:
|
| 15 |
+
- name: raw_text
|
| 16 |
+
dtype: string
|
| 17 |
+
- name: messages
|
| 18 |
+
list:
|
| 19 |
+
- name: content
|
| 20 |
+
dtype: string
|
| 21 |
+
- name: role
|
| 22 |
+
dtype: string
|
| 23 |
+
splits:
|
| 24 |
+
- name: test
|
| 25 |
+
num_bytes: 845972
|
| 26 |
+
num_examples: 500
|
| 27 |
+
download_size: 810311
|
| 28 |
+
dataset_size: 845972
|
| 29 |
+
- config_name: JNLPBA
|
| 30 |
+
features:
|
| 31 |
+
- name: raw_text
|
| 32 |
+
dtype: string
|
| 33 |
+
- name: messages
|
| 34 |
+
list:
|
| 35 |
+
- name: content
|
| 36 |
+
dtype: string
|
| 37 |
+
- name: role
|
| 38 |
+
dtype: string
|
| 39 |
+
splits:
|
| 40 |
+
- name: test
|
| 41 |
+
num_bytes: 926265
|
| 42 |
+
num_examples: 500
|
| 43 |
+
download_size: 878155
|
| 44 |
+
dataset_size: 926265
|
| 45 |
+
- config_name: JNLPBA-Rare
|
| 46 |
+
features:
|
| 47 |
+
- name: raw_text
|
| 48 |
+
dtype: string
|
| 49 |
+
- name: messages
|
| 50 |
+
list:
|
| 51 |
+
- name: content
|
| 52 |
+
dtype: string
|
| 53 |
+
- name: role
|
| 54 |
+
dtype: string
|
| 55 |
+
splits:
|
| 56 |
+
- name: test
|
| 57 |
+
num_bytes: 846431
|
| 58 |
+
num_examples: 465
|
| 59 |
+
download_size: 793419
|
| 60 |
+
dataset_size: 846431
|
| 61 |
+
- config_name: MedMentions-Rare
|
| 62 |
+
features:
|
| 63 |
+
- name: raw_text
|
| 64 |
+
dtype: string
|
| 65 |
+
- name: messages
|
| 66 |
+
list:
|
| 67 |
+
- name: content
|
| 68 |
+
dtype: string
|
| 69 |
+
- name: role
|
| 70 |
+
dtype: string
|
| 71 |
+
splits:
|
| 72 |
+
- name: test
|
| 73 |
+
num_bytes: 1003553
|
| 74 |
+
num_examples: 500
|
| 75 |
+
download_size: 957555
|
| 76 |
+
dataset_size: 1003553
|
| 77 |
+
- config_name: bc2gm
|
| 78 |
+
features:
|
| 79 |
+
- name: raw_text
|
| 80 |
+
dtype: string
|
| 81 |
+
- name: messages
|
| 82 |
+
list:
|
| 83 |
+
- name: content
|
| 84 |
+
dtype: string
|
| 85 |
+
- name: role
|
| 86 |
+
dtype: string
|
| 87 |
+
splits:
|
| 88 |
+
- name: test
|
| 89 |
+
num_bytes: 856838
|
| 90 |
+
num_examples: 500
|
| 91 |
+
download_size: 824467
|
| 92 |
+
dataset_size: 856838
|
| 93 |
+
- config_name: bc4chemd
|
| 94 |
+
features:
|
| 95 |
+
- name: raw_text
|
| 96 |
+
dtype: string
|
| 97 |
+
- name: messages
|
| 98 |
+
list:
|
| 99 |
+
- name: content
|
| 100 |
+
dtype: string
|
| 101 |
+
- name: role
|
| 102 |
+
dtype: string
|
| 103 |
+
splits:
|
| 104 |
+
- name: test
|
| 105 |
+
num_bytes: 859680
|
| 106 |
+
num_examples: 500
|
| 107 |
+
download_size: 826591
|
| 108 |
+
dataset_size: 859680
|
| 109 |
+
- config_name: bc5cdr
|
| 110 |
+
features:
|
| 111 |
+
- name: raw_text
|
| 112 |
+
dtype: string
|
| 113 |
+
- name: messages
|
| 114 |
+
list:
|
| 115 |
+
- name: content
|
| 116 |
+
dtype: string
|
| 117 |
+
- name: role
|
| 118 |
+
dtype: string
|
| 119 |
+
splits:
|
| 120 |
+
- name: test
|
| 121 |
+
num_bytes: 873716
|
| 122 |
+
num_examples: 500
|
| 123 |
+
download_size: 832306
|
| 124 |
+
dataset_size: 873716
|
| 125 |
+
- config_name: biored
|
| 126 |
+
features:
|
| 127 |
+
- name: raw_text
|
| 128 |
+
dtype: string
|
| 129 |
+
- name: messages
|
| 130 |
+
list:
|
| 131 |
+
- name: content
|
| 132 |
+
dtype: string
|
| 133 |
+
- name: role
|
| 134 |
+
dtype: string
|
| 135 |
+
splits:
|
| 136 |
+
- name: test
|
| 137 |
+
num_bytes: 981688
|
| 138 |
+
num_examples: 500
|
| 139 |
+
download_size: 923900
|
| 140 |
+
dataset_size: 981688
|
| 141 |
+
- config_name: ncbi
|
| 142 |
+
features:
|
| 143 |
+
- name: raw_text
|
| 144 |
+
dtype: string
|
| 145 |
+
- name: messages
|
| 146 |
+
list:
|
| 147 |
+
- name: content
|
| 148 |
+
dtype: string
|
| 149 |
+
- name: role
|
| 150 |
+
dtype: string
|
| 151 |
+
splits:
|
| 152 |
+
- name: test
|
| 153 |
+
num_bytes: 849093
|
| 154 |
+
num_examples: 500
|
| 155 |
+
download_size: 808006
|
| 156 |
+
dataset_size: 849093
|
| 157 |
+
configs:
|
| 158 |
+
- config_name: AnatEM
|
| 159 |
+
data_files:
|
| 160 |
+
- split: test
|
| 161 |
+
path: AnatEM/test-*
|
| 162 |
+
- config_name: JNLPBA
|
| 163 |
+
data_files:
|
| 164 |
+
- split: test
|
| 165 |
+
path: JNLPBA/test-*
|
| 166 |
+
- config_name: JNLPBA-Rare
|
| 167 |
+
data_files:
|
| 168 |
+
- split: test
|
| 169 |
+
path: JNLPBA-Rare/test-*
|
| 170 |
+
- config_name: MedMentions-Rare
|
| 171 |
+
data_files:
|
| 172 |
+
- split: test
|
| 173 |
+
path: MedMentions-Rare/test-*
|
| 174 |
+
- config_name: bc2gm
|
| 175 |
+
data_files:
|
| 176 |
+
- split: test
|
| 177 |
+
path: bc2gm/test-*
|
| 178 |
+
- config_name: bc4chemd
|
| 179 |
+
data_files:
|
| 180 |
+
- split: test
|
| 181 |
+
path: bc4chemd/test-*
|
| 182 |
+
- config_name: bc5cdr
|
| 183 |
+
data_files:
|
| 184 |
+
- split: test
|
| 185 |
+
path: bc5cdr/test-*
|
| 186 |
+
- config_name: biored
|
| 187 |
+
data_files:
|
| 188 |
+
- split: test
|
| 189 |
+
path: biored/test-*
|
| 190 |
+
- config_name: ncbi
|
| 191 |
+
data_files:
|
| 192 |
+
- split: test
|
| 193 |
+
path: ncbi/test-*
|
| 194 |
+
---
|
| 195 |
+
|
| 196 |
+
# BioNER Fixed Evaluation Subset
|
| 197 |
+
|
| 198 |
+
A **fixed, pre-built evaluation subset** for 9 standard biomedical Named
|
| 199 |
+
Entity Recognition (NER) benchmarks, created for reproducible pre/post
|
| 200 |
+
fine-tuning comparisons of MedGemma-4B (`google/medgemma-1.5-4b-it`) as
|
| 201 |
+
part of an internship project at DISI, University of Bologna.
|
| 202 |
+
|
| 203 |
+
## Why this exists
|
| 204 |
+
|
| 205 |
+
Comparing a model before and after fine-tuning — and later against a
|
| 206 |
+
further CoT-distilled version — is only meaningful if every evaluation
|
| 207 |
+
uses **exactly the same examples, in exactly the same prompt form**. The
|
| 208 |
+
underlying entity-distractor sampling used when converting IOB spans into
|
| 209 |
+
prompts is itself randomized (see
|
| 210 |
+
[disi-unibo-nlp's BioNER Datasets collection](https://huggingface.co/collections/disi-unibo-nlp/bioner-datasets)
|
| 211 |
+
and the SFT data pipeline this project builds on), so re-running the
|
| 212 |
+
conversion script twice on the "same" rows can silently produce two
|
| 213 |
+
different prompts. This dataset freezes that randomness once, so every
|
| 214 |
+
future evaluation — today, and months from now — compares models on
|
| 215 |
+
identical inputs.
|
| 216 |
+
|
| 217 |
+
## What's in it
|
| 218 |
+
|
| 219 |
+
Nine configs, one per source dataset, each already converted into a
|
| 220 |
+
ready-to-use chat-format prompt:
|
| 221 |
+
|
| 222 |
+
| Config | Source | Rows |
|
| 223 |
+
|---|---|---|
|
| 224 |
+
| `ncbi` | [disi-unibo-nlp/ncbi](https://huggingface.co/datasets/disi-unibo-nlp/ncbi) | 500 |
|
| 225 |
+
| `bc5cdr` | [disi-unibo-nlp/bc5cdr](https://huggingface.co/datasets/disi-unibo-nlp/bc5cdr) | 500 |
|
| 226 |
+
| `bc2gm` | [disi-unibo-nlp/bc2gm](https://huggingface.co/datasets/disi-unibo-nlp/bc2gm) | 500 |
|
| 227 |
+
| `bc4chemd` | [disi-unibo-nlp/bc4chemd](https://huggingface.co/datasets/disi-unibo-nlp/bc4chemd) | 500 |
|
| 228 |
+
| `AnatEM` | [disi-unibo-nlp/AnatEM](https://huggingface.co/datasets/disi-unibo-nlp/AnatEM) | 500 |
|
| 229 |
+
| `JNLPBA` | [disi-unibo-nlp/JNLPBA](https://huggingface.co/datasets/disi-unibo-nlp/JNLPBA) | 500 |
|
| 230 |
+
| `JNLPBA-Rare` | [disi-unibo-nlp/JNLPBA-Rare](https://huggingface.co/datasets/disi-unibo-nlp/JNLPBA-Rare) | 465 (full test set — smaller than 500) |
|
| 231 |
+
| `MedMentions-Rare` | [disi-unibo-nlp/MedMentions-Rare](https://huggingface.co/datasets/disi-unibo-nlp/MedMentions-Rare) | 500 |
|
| 232 |
+
| `biored` | [disi-unibo-nlp/biored](https://huggingface.co/datasets/disi-unibo-nlp/biored) | 500 |
|
| 233 |
+
|
| 234 |
+
Each row is a single split (`test`) with one column, `messages`: a
|
| 235 |
+
3-turn chat (`system`, `user`, `assistant`) in the exact format expected
|
| 236 |
+
by MedGemma's chat template. The `assistant` turn holds the gold-standard
|
| 237 |
+
answer (JSON object mapping entity types to verbatim text spans) used as
|
| 238 |
+
ground truth during evaluation — **not** meant to be shown to the model
|
| 239 |
+
at inference time (drop the last turn before generating).
|
| 240 |
+
|
| 241 |
+
## How the subset was built
|
| 242 |
+
|
| 243 |
+
- 500 rows sampled per dataset (or the full test set, if smaller — see
|
| 244 |
+
`JNLPBA-Rare` above), using a fixed random seed (`42`) over row indices.
|
| 245 |
+
- For datasets without pre-existing validation/test splits, an 95/5
|
| 246 |
+
train/test split was applied (same seed), matching the split logic used
|
| 247 |
+
during the model's own fine-tuning.
|
| 248 |
+
- Prompts were built with the same `SFTDataProcessor` / `IOBSpanExtractor`
|
| 249 |
+
/ entity-distractor-sampling logic used to prepare the SFT training
|
| 250 |
+
data — reused verbatim, not reimplemented, to avoid any drift between
|
| 251 |
+
training-time and evaluation-time prompt construction.
|
| 252 |
+
|
| 253 |
+
## Licensing note
|
| 254 |
+
|
| 255 |
+
This is a derived subset of the datasets listed above, each carrying its
|
| 256 |
+
own original license and citation requirements (see each source repo's
|
| 257 |
+
own dataset card). No license is asserted over the source data itself
|
| 258 |
+
here — check the original repos before reuse for anything beyond
|
| 259 |
+
reproducing this project's own evaluation.
|
bc2gm/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e91cddad3c45d92ae30851f1b845f226cb37d86297a2683af9ee2cc59b219ef0
|
| 3 |
+
size 824467
|
bc4chemd/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ec27bd120202dd16290db0f3c02ea298882040314e3ce340cee7cab290b533e9
|
| 3 |
+
size 826591
|
bc5cdr/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8b9238f26dd7194947cb0f3484786d9475518a3eba68118817c472e42cd2340e
|
| 3 |
+
size 832306
|
biored/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eaf6280a2d2d13d09c7b6abeb9e089fc96cabad809293782fbfd0472f0930617
|
| 3 |
+
size 923900
|
ncbi/test-00000-of-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6093ef21011590c4580e1e2f6478f914356d984e30ddc99e8e321f3b6be2229d
|
| 3 |
+
size 808006
|