Joanne commited on
Commit
ffc814b
·
verified ·
1 Parent(s): 0b19917

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +304 -0
README.md CHANGED
@@ -1,3 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  pretty_name: Unified Benchmark for Metaphor Identification (UBMI)
3
  license: other
 
1
+ # Unified Benchmark for Metaphor Identification (UBMI)
2
+
3
+ The **Unified Benchmark for Metaphor Identification (UBMI)** gathers a wide range of
4
+ metaphor and idiomaticity datasets into a single, harmonised format. The collected
5
+ datasets were not all created for the automatic identification of metaphors: some come
6
+ from psycholinguistic studies designed to collect human ratings or neurological
7
+ measurements (e.g. CARD, JANK), some were originally created in other languages and
8
+ later manually translated by their authors (e.g. WANG, BAMB), some are collections of
9
+ metaphors obtained with concordancers (e.g. CCM), and others are full documents annotated
10
+ to provide a standard annotation scheme (e.g. VUAC). Even within NLP, the datasets serve
11
+ varied purposes — studying compositionality (GUT), evaluating metaphor generation (CHAK),
12
+ analysing metaphoricity (DUNN), or disambiguating potentially idiomatic expressions.
13
+
14
+ Because of these differences, UBMI is **not** designed to merge all labelled phrases into
15
+ one large dataset. What the collected datasets have in common is that they encode the
16
+ metaphoric or idiomatic properties of expressions in context — or, conversely, their
17
+ absence. UBMI re-encodes them with unified field names to facilitate experiments and
18
+ comparisons across this diversity. In the open benchmark, only datasets with open licences
19
+ are included.
20
+
21
+ ---
22
+
23
+ ## Loading the dataset
24
+
25
+ Each source dataset is exposed as a separate **subset (config)**, named
26
+ `<dataset>_<method>`, where `<method>` is one of `full`, `lexical` or `random`:
27
+
28
+ - **`random`** and **`lexical`** subsets have `train` / `validation` / `test` splits.
29
+ - **`full`** subsets are the whole dataset merged into a single split named `full`
30
+ (no train/test separation — useful as a reference set, but do **not** train on a
31
+ `full` subset and then evaluate on the matching `random`/`lexical` test split).
32
+
33
+ ```python
34
+ from datasets import load_dataset, get_dataset_config_names
35
+ import json
36
+
37
+ # See every available subset name
38
+ configs = get_dataset_config_names("USERNAME/UBMI")
39
+
40
+ # Load one subset
41
+ ds = load_dataset("USERNAME/UBMI", "TroFi_random")
42
+ example = ds["test"][0]
43
+
44
+ # Dataset-specific / optional fields are stored as a JSON string — parse them:
45
+ extra = json.loads(example["additional_information"])
46
+ print(extra["lemma"], extra["pos"])
47
+ ```
48
+
49
+ > **Note on `additional_information`.** Across the benchmark this field holds ~80 different
50
+ > keys with mixed and sometimes incompatible types. To keep every subset loadable with a
51
+ > single, stable schema, it is stored as a **JSON-encoded string**. Decode it with
52
+ > `json.loads(...)` to recover the original nested object.
53
+
54
+ > **Config names vs. abbreviations.** Config names use each dataset's internal id, which
55
+ > occasionally differs from the abbreviation in the table below (e.g. `TSVET_AN` for
56
+ > TSV<sub>A</sub>, `VUAC_MW` for VUAC<sub>BO</sub>, `SE2013_ALL_WORDS` for SE2013<sub>ALL</sub>).
57
+ > Use `get_dataset_config_names(...)` to list the exact names.
58
+
59
+ ---
60
+
61
+ ## One UBMI entry
62
+
63
+ Every example is stored with a unique tagged Potentially Metaphoric Expression (PME) per
64
+ sentence, together with the minimal information needed for a binary classification task
65
+ (the position of the expression in its context and its label), plus optional unified and
66
+ dataset-specific fields kept under `additional_information`.
67
+
68
+ ![Example of one UBMI entry from the CARD_N dataset](media/one-ubmi-example.png)
69
+
70
+ *An example UBMI entry from the CARD\_N dataset (Cardillo et al., 2010). The core fields
71
+ (`ref_id`, `dataset_id`, `id`, `context`, `pme`, `position`, `label`, `split`) locate and
72
+ label the PME, while `additional_information` preserves unified optional fields (e.g.
73
+ `lemma`, `pos`, `mscore`, `tenor`, `tenor_position`, `set_id`, five-fold splits) and the
74
+ original dataset-specific ratings.*
75
+
76
+ ### Top-level fields (columns)
77
+
78
+ | Field | Description |
79
+ |---|---|
80
+ | `ref_id` | Name of the original dataset (first author's abbreviated name if no other name exists). Several UBMI datasets may come from the same reference dataset. |
81
+ | `dataset_id` | Unique id for a UBMI dataset, often composed of the reference id and a split (random, lexical, etc.). |
82
+ | `id` | Entry id for a single example. |
83
+ | `context` | Text containing the PME (most often a sentence). |
84
+ | `pme` | The Potentially Metaphoric Expression: the labelled words in the context. |
85
+ | `position` | Offset `[start, end]` of the labelled expression within `context`. |
86
+ | `label` | Only *metaphorical* (`m`), *literal* (`l`) and *other* (`o`) labels appear here; finer labels are kept in `original_label` inside `additional_information`. |
87
+ | `split` | Whether the example belongs to the train, validation or test set (present in `lexical` / `random` subsets). |
88
+ | `data_split` | The sampling method — random, lexical, original split, etc. (present in `lexical` / `random` subsets). |
89
+ | `additional_information` | **JSON-encoded string** holding the fields below plus any non-unified, dataset-specific fields. |
90
+
91
+ ### Inside `additional_information` (after `json.loads`)
92
+
93
+ | Field | Description |
94
+ |---|---|
95
+ | `lemma` | Lemma(s) of the PME, obtained with spaCy. |
96
+ | `pos` | A single PoS, or a list of PoS for PMEs longer than one word. |
97
+ | `pos_pattern` | The PoS pattern of the PME. |
98
+ | `five_folds` | Train/validation/test membership across 5 folds (for cross-validation). |
99
+ | `long_context` | Additional context when the original dataset provides more than one sentence. |
100
+ | `mscore` | Metaphoricity or confidence score scaled to [0, 1]. |
101
+ | `tenor` / `tenor_lemma` / `tenor_pos` / `tenor_position` | The topic word(s) of the metaphor and their lemma, PoS and position. |
102
+ | `source_domain` / `target_domain` | Conceptual source-to-target domain mapping. |
103
+ | `original_label` | The original (usually more fine-grained) label when it differs from the binary label. |
104
+ | `set_id` | Present when the sentence is grouped with others (usually pairs or triples). |
105
+ | *other* | Non-unified fields are stored here as *original dataset information*. |
106
+
107
+ ---
108
+
109
+ ## Splits
110
+
111
+ All datasets containing both literal and metaphorical labels are split into **training
112
+ (70%)**, **development (10%)** and **test (20%)** sets. Collections of metaphors without
113
+ literal examples are not split. Splits come in two main sampling methods:
114
+
115
+ - **Random splits** — simple random shuffles of the data.
116
+ - **Lexical splits** — ensure a PME present in one split does not appear in the others,
117
+ probing model generalisation.
118
+
119
+ Some datasets contain duplicated sentences (e.g. MIPVU datasets) or duplicated contexts
120
+ where only the tagged expression changes (e.g. CHAK, GUT, TONG); for these, additional
121
+ **context-based splits** keep the same context out of more than one split. Fixed
122
+ **5-fold cross-validation** splits are provided for both random and lexical sampling, and
123
+ any original split shipped with a dataset is preserved.
124
+
125
+ ---
126
+
127
+ ## UBMI datasets
128
+
129
+ The table below lists all datasets in the open benchmark, with the number of entries,
130
+ number/percentage of metaphors, number of distinct expressions and contexts, the context
131
+ span, and the sizes of the random-split train/dev/test sets.
132
+ The **Available?** column indicates whether the dataset is already part of this release
133
+ (✅ Available) or will be added shortly (⏳ Soon).
134
+
135
+ | Dataset Name | Available? | N Entry | N Met (%) | N dist. Expr. | N dist. Ctxt. | Ctxt. Span | Train | Dev | Test |
136
+ |---|---|---|---|---|---|---|---|---|---|
137
+ | **Nominal PME** | | | | | | | | | |
138
+ | CARD<sub>N</sub> | ✅ Available | 512 | 256 (50) | 256 | 511 | sentence | 358 | 51 | 103 |
139
+ | JANK | ✅ Available | 360 | 120 (33) | 120 | 360 | sentence | 252 | 36 | 72 |
140
+ | BAMB | ⏳ Soon | 115 | 115 (100) | 91 | 84 | noun | 0 | 0 | 115 |
141
+ | WANG | ⏳ Soon | 240 | 120 (50) | 120 | 240 | sentence | 128 | 24 | 48 |
142
+ | Fig-QA | ✅ Available | 8922 | 8922 (100) | 6845 | 4454 | sentence | 0 | 0 | 8922 |
143
+ | 2x2Meta | ⏳ Soon | 691 | 329 (48) | 547 | 203 | paragraph | 484 | 69 | 138 |
144
+ | **Adjectival PME** | | | | | | | | | |
145
+ | GUT | ✅ Available | 8591 | 4601 (54) | 23 | 3479 | noun | 6014 | 859 | 1718 |
146
+ | NEU | ✅ Available | 100 | 56 (56) | 5 | 93 | noun | 70 | 10 | 20 |
147
+ | TSV<sub>A</sub> | ✅ Available | 1945 | 979 (50) | 687 | 1072 | noun | 1362 | 195 | 388 |
148
+ | **Verbal PME** | | | | | | | | | |
149
+ | CARD<sub>V</sub> | ✅ Available | 280 | 140 (50) | 140 | 280 | sentence | 196 | 28 | 56 |
150
+ | CHAK | ✅ Available | 468 | 312 (67) | 355 | 155 | sentence | 328 | 47 | 93 |
151
+ | MOH | ✅ Available | 1632 | 407 (25) | 438 | 1630 | sentence | 1142 | 163 | 327 |
152
+ | DUNN | ✅ Available | 60 | 40 (67) | 20 | 60 | sentence | 0 | 0 | 100 |
153
+ | TSV<sub>V</sub> | ⏳ Soon | 222 | 111 (50) | 119 | 222 | sentence | 0 | 0 | 222 |
154
+ | TroFi | ✅ Available | 3642 | 2098 (58) | 50 | 3642 | sentence | 2549 | 364 | 729 |
155
+ | NewsMet | ⏳ Soon | 1205 | 594 (49) | 680 | 1205 | sentence | 844 | 120 | 241 |
156
+ | **Various** | | | | | | | | | |
157
+ | TONG | ⏳ Soon | 1428 | 655 (46) | 1031 | 739 | sentence | 1000 | 142 | 286 |
158
+ | CCM | ✅ Available | 8492 | 8492 (100) | 590 | 8490 | sentence | 0 | 0 | 8492 |
159
+ | GORD | ⏳ Soon | 1771 | 1771 (100) | 574 | 1771 | sentence | 0 | 0 | 1771 |
160
+ | ATT-META-S | ⏳ Soon | 500 | 500 (100) | 500 | 500 | sentence | 0 | 0 | 500 |
161
+ | **PIEs** | | | | | | | | | |
162
+ | VNC | ✅ Available | 2568 | 2017 (79) | 53 | 2534 | 3 sentences | 1798 | 257 | 513 |
163
+ | PVC | ✅ Available | 1348 | 878 (65) | 23 | 1348 | 3 sentences | 944 | 135 | 269 |
164
+ | SE2013<sub>ALL</sub> | ✅ Available | 1969 | 1172 (60) | 55 | 1939 | 3 sentences | 1378 | 197 | 394 |
165
+ | SE2013<sub>LEX</sub> | ✅ Available | 2371 | 1199 (51) | 10 | 2339 | 3 sentences | 1660 | 237 | 474 |
166
+ | PIE | ✅ Available | 3025 | 1434 (47) | 1608 | 2204 | 3 sentences | 2118 | 303 | 604 |
167
+ | MAD | ✅ Available | 4558 | 2190 (48) | 443 | 4554 | 3 sentences | 3191 | 456 | 911 |
168
+ | MAGPIE | ✅ Available | 48395 | 36328 (75) | 9462 | 47280 | 5 sentences | 33876 | 4839 | 9680 |
169
+ | PARSEME | ⏳ Soon | 1114 | 1114 (100) | 530 | 958 | sentence | 0 | 0 | 1114 |
170
+ | **MIPVU** | | | | | | | | | |
171
+ | VUAC<sub>BO</sub> | ✅ Available | 39223 | 20350 (52) | 8722 | 39108 | 3 sentences | 27456 | 3922 | 7845 |
172
+ | VUAC<sub>ST1</sub> | ✅ Available | 23113 | 6554 (28) | 2382 | 22894 | 3 sentences | 16179 | 2311 | 4623 |
173
+ | VUAC<sub>ST2</sub> | ✅ Available | 94807 | 15026 (16) | 13509 | 93382 | 3 sentences | 66365 | 9481 | 18961 |
174
+ | NACEY | ⏳ Soon | 498 | 249 (50) | 244 | 498 | 3 sentences | 349 | 49 | 100 |
175
+ | JUL | ⏳ Soon | 4268 | 2134 (50) | 1649 | 4268 | 3 sentences | 2988 | 426 | 854 |
176
+
177
+ ---
178
+
179
+ ## Dataset descriptions by category
180
+
181
+ The datasets are grouped along two dimensions: the syntactic form of the labelled
182
+ expression, and the granularity of the annotation. The first three groups are organised by
183
+ syntactic form (nominal; adjectival and verbal; mixed), and the last two by the type of
184
+ expression and annotation procedure (multi-word expressions; MIPVU). Each table below lists
185
+ the UBMI datasets of that category with their original reference and original licence.
186
+
187
+ ### Nominal metaphors
188
+
189
+ Datasets designed for the study of the metaphorical usage of nouns or noun phrases (NPs).
190
+ The figurative examples are **direct metaphors**, where the tenor NP and the vehicle NP are
191
+ explicitly related within the sentence (e.g. *Man is a wolf*, *an ocean of happiness*).
192
+ Most were created for psycholinguistic or neurolinguistic studies; two come from NLP
193
+ projects.
194
+
195
+ | Dataset | Reference | Original licence |
196
+ |---|---|---|
197
+ | CARD<sub>N</sub> | Cardillo et al. (2010); Cardillo et al. (2017) | CC BY-NC |
198
+ | JANK | Jankowiak (2020) | CC BY 4.0 |
199
+ | BAMB | Bambini et al. (2014) | CC BY 4.0 |
200
+ | WANG | Wang et al. — Chinese metaphor norms | Open |
201
+ | Fig-QA | Liu et al. (2022) | MIT License — copy, modification and redistribution allowed; must always include the original license: https://github.com/nightingal3/Fig-QA/blob/master/LICENSE |
202
+ | 2x2Meta | Boisson et al. (2025) | CC BY-NC |
203
+
204
+ ### Adjectival and verbal (indirect) metaphors
205
+
206
+ **Indirect metaphors** — the source concept is suggested by the words used metaphorically
207
+ but not explicitly named (e.g. *tasty metaphor*, *pour money*, *economy flourishes*). They
208
+ are the most frequent type of metaphor in natural text, and the datasets were created in
209
+ majority for NLP studies. Adjectival datasets annotate the literal/metaphorical use of an
210
+ adjective in the context of a noun (often adjective-noun pairs); verbal datasets are
211
+ collections of full sentences.
212
+
213
+ **Adjectival PME**
214
+
215
+ | Dataset | Reference | Original licence |
216
+ |---|---|---|
217
+ | GUT | Gutiérrez et al. (2016) | AFL-3.0 |
218
+ | NEU | Turney et al. (2011); Assaf et al. (2013) | CC BY-NC 4.0 |
219
+ | TSV<sub>A</sub> | Tsvetkov et al. (2014) | Redistribution allowed; license at https://github.com/ytsvetko/metaphor/blob/master/LICENSE.md |
220
+
221
+ **Verbal PME**
222
+
223
+ | Dataset | Reference | Original licence |
224
+ |---|---|---|
225
+ | CARD<sub>V</sub> | Cardillo et al. (2010); Cardillo et al. (2017) | CC BY-NC |
226
+ | CHAK | Chakrabarty et al. (2021) | No explicit licence; original data shared on GitHub: https://github.com/tuhinjubcse/MetaphorGenNAACL2021 |
227
+ | MOH | Mohammad et al. (2016) | Redistribution allowed; license at https://saifmohammad.com/WebPages/metaphor.html |
228
+ | DUNN | Dunn (2014) | CC BY-SA 3.0 |
229
+ | TSV<sub>V</sub> | Tsvetkov et al. (2014) | Redistribution allowed; license at https://github.com/ytsvetko/metaphor/blob/master/LICENSE.md |
230
+ | TroFi | Birke & Sarkar (2006) | CC BY-NC 4.0 |
231
+ | NewsMet | Joseph et al. (2023) | Apache-2.0 |
232
+
233
+ ### Mixed metaphors
234
+
235
+ Datasets labelled with **various types of metaphoric expressions**, with (mostly) no
236
+ syntactic constraint on the context or the PME, and expressions that may span more than one
237
+ word. They include collections of metaphors focused on mapping analysis and datasets built
238
+ for metaphor identification. (In the UBMI table these appear under the **Various** group.)
239
+
240
+ | Dataset | Reference | Original licence |
241
+ |---|---|---|
242
+ | TONG | Tong et al. (2024) | CC BY 4.0 |
243
+ | CCM | MacWhinney & Fromm (2014); Levin et al. (2014) | CC BY-NC 4.0 |
244
+ | GORD | Gordon et al. (2015) | Redistribution allowed with required attribution. Any product, report, publication, presentation or document including or referencing the data must contain the text: *"This effort contains or makes use of the IARPA-funded Metaphor Program USC/ISI annotated metaphorical language collection, release iarpa_metaphor_isi.edu_metaphor_corpus_20150403"* |
245
+ | ATT-META-S | ATT-Meta Databank — Barnden et al. | Non-commercial research/instructional use; most pages of the databank may be freely copied for that purpose: https://www.cs.nmsu.edu/atmet/Databank/root.html.OLD |
246
+
247
+ ### Multi-Word Expressions (MWE / PIEs)
248
+
249
+ Datasets where all labelled expressions are **multi-word expressions**. Most are
250
+ **Potentially Idiomatic Expressions (PIEs)** — the same surface form occurs both literally
251
+ and idiomatically — compiled and annotated for binary classification. Some target MWEs with
252
+ specific patterns (noun compounds, verb-preposition compounds); others impose no
253
+ restriction on the compound form. PARSEME 1.3 is an exception: it was created for verbal-MWE
254
+ identification (negative cases are not annotated by default). (In the UBMI table these
255
+ appear under the **PIEs** group.)
256
+
257
+ | Dataset | Reference | Original licence |
258
+ |---|---|---|
259
+ | VNC | Cook et al. (2008) | No specific licence stated (no entry in the licence appendix) |
260
+ | PVC | Tu & Roth (2012) | No explicit licence; original dataset: https://cogcomp.seas.upenn.edu/page/resource_view/26 |
261
+ | SE2013<sub>ALL</sub> | Korkontzelos et al. (2013) | CC BY-SA 4.0; redistribution authorised directly by the authors. Original download: https://www.inf.uni-hamburg.de/en/inst/ab/lt/resources/data.html |
262
+ | SE2013<sub>LEX</sub> | Korkontzelos et al. (2013) | CC BY-SA 4.0; redistribution authorised directly by the authors. Original download: https://www.inf.uni-hamburg.de/en/inst/ab/lt/resources/data.html |
263
+ | PIE | Haagsma et al. (2019) | CC BY 4.0 |
264
+ | MAD | Tayyar Madabushi et al. (2021, 2022) | GPL-3.0 |
265
+ | MAGPIE | Haagsma et al. (2020) | CC BY 4.0 |
266
+ | PARSEME | Savary et al. (2023) | CC BY-SA 4.0 / CC BY-SA 3.0 / CC BY 4.0 |
267
+
268
+ ### MIPVU datasets
269
+
270
+ Datasets annotated with the **MIPVU** procedure (and its extensions): richly annotated
271
+ documents in which each lexical unit is labelled metaphoric or literal. The benchmark
272
+ retains three open-source MIPVU datasets (VUAC, NACEY, JUL); the VUAC is additionally
273
+ sampled and reformatted for binary classification — balanced multi-word sampling
274
+ (VUAC<sub>BO</sub>) and the shared-task samplings (VUAC<sub>ST1</sub>, VUAC<sub>ST2</sub>).
275
+ The licence shown for the VUAC samplings is that of the underlying VUAC corpus.
276
+
277
+ | Dataset | Reference | Original licence |
278
+ |---|---|---|
279
+ | VUAC<sub>BO</sub> | Boisson et al. (2023) sampling of Steen et al. (2010) — VUAC | CC BY-SA 3.0 |
280
+ | VUAC<sub>ST1</sub> | Leong et al. (2020) sampling of Steen et al. (2010) — VUAC | CC BY-SA 3.0 |
281
+ | VUAC<sub>ST2</sub> | Leong et al. (2020) sampling of Steen et al. (2010) — VUAC | CC BY-SA 3.0 |
282
+ | NACEY | Nacey (2019) | CC0 1.0 |
283
+ | JUL | Julich (2022) | CC BY-SA 4.0 |
284
+
285
+ ---
286
+
287
+ ## Licensing
288
+
289
+ UBMI aggregates datasets released under **different original licences** (listed per dataset
290
+ above); only datasets with open licences are included in this benchmark. The repository's
291
+ `license: other` tag reflects this mixture — please consult and respect each dataset's
292
+ individual licence for any redistribution or derivative use.
293
+
294
+ ## Citation
295
+
296
+ <!-- Add your paper/citation here once available. -->
297
+
298
+ ```
299
+ @misc{ubmi,
300
+ title = {Unified Benchmark for Metaphor Identification (UBMI)},
301
+ author = {...},
302
+ year = {2025}
303
+ }
304
+ ```
305
  ---
306
  pretty_name: Unified Benchmark for Metaphor Identification (UBMI)
307
  license: other