File size: 6,443 Bytes
8573a92
 
 
 
 
 
 
 
 
 
f3ebaee
8573a92
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f3ebaee
8573a92
f3ebaee
8573a92
671032b
 
8573a92
 
 
 
 
 
 
 
 
671032b
8573a92
 
 
671032b
 
 
 
 
 
 
 
 
8573a92
671032b
 
 
 
 
8573a92
671032b
f3ebaee
8573a92
671032b
8573a92
671032b
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
---
license: other
task_categories:
- token-classification
language:
- en
tags:
- biomedical
- ner
- evaluation
pretty_name: Biomedical Evaluation Subsets (First-Phase Protocol)
dataset_info:
- config_name: AnatEM
  features:
  - name: raw_text
    dtype: string
  - name: messages
    list:
    - name: content
      dtype: string
    - name: role
      dtype: string
  splits:
  - name: test
    num_bytes: 845972
    num_examples: 500
  download_size: 810311
  dataset_size: 845972
- config_name: JNLPBA
  features:
  - name: raw_text
    dtype: string
  - name: messages
    list:
    - name: content
      dtype: string
    - name: role
      dtype: string
  splits:
  - name: test
    num_bytes: 926265
    num_examples: 500
  download_size: 878155
  dataset_size: 926265
- config_name: JNLPBA-Rare
  features:
  - name: raw_text
    dtype: string
  - name: messages
    list:
    - name: content
      dtype: string
    - name: role
      dtype: string
  splits:
  - name: test
    num_bytes: 846431
    num_examples: 465
  download_size: 793419
  dataset_size: 846431
- config_name: MedMentions-Rare
  features:
  - name: raw_text
    dtype: string
  - name: messages
    list:
    - name: content
      dtype: string
    - name: role
      dtype: string
  splits:
  - name: test
    num_bytes: 1003553
    num_examples: 500
  download_size: 957555
  dataset_size: 1003553
- config_name: bc2gm
  features:
  - name: raw_text
    dtype: string
  - name: messages
    list:
    - name: content
      dtype: string
    - name: role
      dtype: string
  splits:
  - name: test
    num_bytes: 856838
    num_examples: 500
  download_size: 824467
  dataset_size: 856838
- config_name: bc4chemd
  features:
  - name: raw_text
    dtype: string
  - name: messages
    list:
    - name: content
      dtype: string
    - name: role
      dtype: string
  splits:
  - name: test
    num_bytes: 859680
    num_examples: 500
  download_size: 826591
  dataset_size: 859680
- config_name: bc5cdr
  features:
  - name: raw_text
    dtype: string
  - name: messages
    list:
    - name: content
      dtype: string
    - name: role
      dtype: string
  splits:
  - name: test
    num_bytes: 873716
    num_examples: 500
  download_size: 832306
  dataset_size: 873716
- config_name: biored
  features:
  - name: raw_text
    dtype: string
  - name: messages
    list:
    - name: content
      dtype: string
    - name: role
      dtype: string
  splits:
  - name: test
    num_bytes: 981688
    num_examples: 500
  download_size: 923900
  dataset_size: 981688
- config_name: ncbi
  features:
  - name: raw_text
    dtype: string
  - name: messages
    list:
    - name: content
      dtype: string
    - name: role
      dtype: string
  splits:
  - name: test
    num_bytes: 849093
    num_examples: 500
  download_size: 808006
  dataset_size: 849093
configs:
- config_name: AnatEM
  data_files:
  - split: test
    path: AnatEM/test-*
- config_name: JNLPBA
  data_files:
  - split: test
    path: JNLPBA/test-*
- config_name: JNLPBA-Rare
  data_files:
  - split: test
    path: JNLPBA-Rare/test-*
- config_name: MedMentions-Rare
  data_files:
  - split: test
    path: MedMentions-Rare/test-*
- config_name: bc2gm
  data_files:
  - split: test
    path: bc2gm/test-*
- config_name: bc4chemd
  data_files:
  - split: test
    path: bc4chemd/test-*
- config_name: bc5cdr
  data_files:
  - split: test
    path: bc5cdr/test-*
- config_name: biored
  data_files:
  - split: test
    path: biored/test-*
- config_name: ncbi
  data_files:
  - split: test
    path: ncbi/test-*
---

# Biomedical Evaluation Subsets (First-Phase Protocol)

Part of the code, data and models of the bachelor thesis *Structuring Universal Chain-of-thought for Named Entity Recognition* (Department of Computer Science and Engineering, University of Bologna, 2026). All the repositories cited by name belong to the same organization.

A fixed evaluation subset of nine biomedical NER benchmarks, used to compare every model of the project on exactly
the same sentences and the same prompts.

| Config | Source | Rows |
|---|---|---|
| `ncbi` | [disi-unibo-nlp/ncbi](https://huggingface.co/datasets/disi-unibo-nlp/ncbi) | 500 |
| `bc5cdr` | [disi-unibo-nlp/bc5cdr](https://huggingface.co/datasets/disi-unibo-nlp/bc5cdr) | 500 |
| `bc2gm` | [disi-unibo-nlp/bc2gm](https://huggingface.co/datasets/disi-unibo-nlp/bc2gm) | 500 |
| `bc4chemd` | [disi-unibo-nlp/bc4chemd](https://huggingface.co/datasets/disi-unibo-nlp/bc4chemd) | 500 |
| `AnatEM` | [disi-unibo-nlp/AnatEM](https://huggingface.co/datasets/disi-unibo-nlp/AnatEM) | 500 |
| `JNLPBA` | [disi-unibo-nlp/JNLPBA](https://huggingface.co/datasets/disi-unibo-nlp/JNLPBA) | 500 |
| `JNLPBA-Rare` | [disi-unibo-nlp/JNLPBA-Rare](https://huggingface.co/datasets/disi-unibo-nlp/JNLPBA-Rare) | 465 (full test set) |
| `MedMentions-Rare` | [disi-unibo-nlp/MedMentions-Rare](https://huggingface.co/datasets/disi-unibo-nlp/MedMentions-Rare) | 500 |
| `biored` | [disi-unibo-nlp/biored](https://huggingface.co/datasets/disi-unibo-nlp/biored) | 500 |

## Construction

- 500 test sentences per dataset (all of them when fewer), drawn once with a fixed seed (42) over the row indices.
- Each row lists up to six requested entity types: a random number of the types present in the sentence, plus
  absent types sampled with probability inversely proportional to their frequency, answered with an empty list.
- The sampling of the requested types is itself random, so building the prompts again could change them; freezing
  the prompts here guarantees that every evaluation, at any time, uses identical inputs.

## Fields

- `raw_text`: the sentence (tokens joined and detokenized with Moses).
- `all_gold`: every annotated span of the sentence, by type (JSON string).
- `messages`: the chat used for evaluation: a `system` message with the answer format, a `user` message with the
  text and the requested types, and an `assistant` message with the gold answer for the requested types. The last
  turn is the reference answer and must be removed before generation.

The second phase of the project re-uses the same 500 sentences with a different query protocol (all gold types plus
1-3 distractors of the same dataset): see `free-vs-structured-cot-eval`.

## License

Derived from the datasets listed above, each with its own license and citation requirements (see their dataset
cards); no license is asserted here over the source data.