File size: 4,141 Bytes
8187cbd
0d4b1e2
 
 
da047d1
8187cbd
865a472
8187cbd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
865a472
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b0c0577
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e9c823f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
09ef77d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8187cbd
 
 
 
 
865a472
 
 
 
b0c0577
 
 
 
e9c823f
 
 
 
09ef77d
 
 
 
8187cbd
0d4b1e2
da047d1
c63c93b
da047d1
0d4b1e2
 
da047d1
0d4b1e2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
da047d1
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
---
license: apache-2.0
language: [en]
tags: [ner, crossner, evaluation]
pretty_name: CrossNER Evaluation Subsets (First-Phase Protocol)
dataset_info:
- config_name: crossner_ai
  features:
  - name: id
    dtype: string
  - name: all_gold
    dtype: string
  - name: raw_text
    dtype: string
  - name: messages
    list:
    - name: role
      dtype: string
    - name: content
      dtype: string
  splits:
  - name: test
    num_bytes: 875895
    num_examples: 431
  download_size: 822581
  dataset_size: 875895
- config_name: crossner_literature
  features:
  - name: id
    dtype: string
  - name: all_gold
    dtype: string
  - name: raw_text
    dtype: string
  - name: messages
    list:
    - name: role
      dtype: string
    - name: content
      dtype: string
  splits:
  - name: test
    num_bytes: 876843
    num_examples: 416
  download_size: 824394
  dataset_size: 876843
- config_name: crossner_music
  features:
  - name: id
    dtype: string
  - name: all_gold
    dtype: string
  - name: raw_text
    dtype: string
  - name: messages
    list:
    - name: role
      dtype: string
    - name: content
      dtype: string
  splits:
  - name: test
    num_bytes: 1029965
    num_examples: 465
  download_size: 959633
  dataset_size: 1029965
- config_name: crossner_politics
  features:
  - name: id
    dtype: string
  - name: all_gold
    dtype: string
  - name: raw_text
    dtype: string
  - name: messages
    list:
    - name: role
      dtype: string
    - name: content
      dtype: string
  splits:
  - name: test
    num_bytes: 1468856
    num_examples: 651
  download_size: 1339861
  dataset_size: 1468856
- config_name: crossner_science
  features:
  - name: id
    dtype: string
  - name: all_gold
    dtype: string
  - name: raw_text
    dtype: string
  - name: messages
    list:
    - name: role
      dtype: string
    - name: content
      dtype: string
  splits:
  - name: test
    num_bytes: 1163146
    num_examples: 543
  download_size: 1089724
  dataset_size: 1163146
configs:
- config_name: crossner_ai
  data_files:
  - split: test
    path: crossner_ai/test-*
- config_name: crossner_literature
  data_files:
  - split: test
    path: crossner_literature/test-*
- config_name: crossner_music
  data_files:
  - split: test
    path: crossner_music/test-*
- config_name: crossner_politics
  data_files:
  - split: test
    path: crossner_politics/test-*
- config_name: crossner_science
  data_files:
  - split: test
    path: crossner_science/test-*
---

# CrossNER 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.

The five CrossNER target domains ([DFKI-SLT/cross_ner](https://huggingface.co/datasets/DFKI-SLT/cross_ner),
Liu et al., 2021) in exactly the format of `bioner-eval-subset`, so the same
evaluation code scores them: same system and user prompt, same construction of the requested types
(up to 6: a random number of the row's present types plus absent distractors drawn with inverse
frequency from the domain's train split), plus `raw_text` and `all_gold`.

| Config | Rows (full test set) |
|---|---|
| `crossner_ai` | 431 |
| `crossner_literature` | 416 |
| `crossner_music` | 465 |
| `crossner_politics` | 651 |
| `crossner_science` | 543 |

- Labels converted to the evaluation's UPPER_SNAKE style (`programlang` → `PROGRAMMING_LANGUAGE`,
  `musicalartist` → `MUSICAL_ARTIST`, ...).
- `misc` is never requested and is not in the prompt gold (as in UniversalNER's benchmark); its spans
  remain in `all_gold` under `MISC`.
- The system prompt is the benchmarks' one verbatim (it mentions biomedical text), so the dataset is the
  only thing that changes with respect to the biomedical evaluation.

Built with `04_evaluation/build_crossner_eval.py`. The second phase of the project uses a different query protocol on the same sentences (all gold types plus 1-3 distractors): see `free-vs-structured-cot-eval`.