Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
json
Sub-tasks:
semantic-similarity-classification
Languages:
English
Size:
1K - 10K
ArXiv:
Tags:
arxiv:2609.20593
word-in-context
wic
word-sense-disambiguation
lexical-semantics
lexical-ambiguity
License:
Add coarse-grained and fine-grained WiC datasets (WiC is Not WSD)
Browse files- README.md +181 -0
- data/coarse_grained/test.jsonl +0 -0
- data/fine_grained/test.jsonl +0 -0
- raw/coarse_grained_WiC.tsv +0 -0
- raw/fine_grained_WiC.tsv +0 -0
README.md
ADDED
|
@@ -0,0 +1,181 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
pretty_name: "WiC is Not WSD: Coarse-Grained and Fine-Grained WiC"
|
| 5 |
+
task_categories:
|
| 6 |
+
- text-classification
|
| 7 |
+
task_ids:
|
| 8 |
+
- semantic-similarity-classification
|
| 9 |
+
tags:
|
| 10 |
+
- word-in-context
|
| 11 |
+
- wic
|
| 12 |
+
- word-sense-disambiguation
|
| 13 |
+
- lexical-semantics
|
| 14 |
+
- lexical-ambiguity
|
| 15 |
+
- wordnet
|
| 16 |
+
- coarsewsd-20
|
| 17 |
+
size_categories:
|
| 18 |
+
- 1K<n<10K
|
| 19 |
+
configs:
|
| 20 |
+
- config_name: coarse_grained
|
| 21 |
+
data_files:
|
| 22 |
+
- split: test
|
| 23 |
+
path: data/coarse_grained/test.jsonl
|
| 24 |
+
- config_name: fine_grained
|
| 25 |
+
data_files:
|
| 26 |
+
- split: test
|
| 27 |
+
path: data/fine_grained/test.jsonl
|
| 28 |
+
---
|
| 29 |
+
|
| 30 |
+
# WiC is Not WSD: Coarse-Grained and Fine-Grained Word-in-Context Datasets
|
| 31 |
+
|
| 32 |
+
Two Word-in-Context (WiC) evaluation datasets from the paper
|
| 33 |
+
**"WiC is Not WSD: A Study on LLMs and Lexical Ambiguity Resolution"**
|
| 34 |
+
(Yi Zhou, Kiamehr Rezaee, Danushka Bollegala, Mohammad Taher Pilehvar, Jose Camacho-Collados).
|
| 35 |
+
|
| 36 |
+
Given two sentences that both contain the same target word, the task is to decide whether the
|
| 37 |
+
word is used with the **same meaning** in both sentences (`True`) or with **different meanings** (`False`).
|
| 38 |
+
|
| 39 |
+
The two datasets differ in the granularity of the sense distinctions they encode:
|
| 40 |
+
|
| 41 |
+
| Config | Instances | Target words | Distinct senses | Unique sentences | True | False |
|
| 42 |
+
|---|---|---|---|---|---|---|
|
| 43 |
+
| `coarse_grained` | 2,798 | 20 | 53 | 5,594 | 1,399 | 1,399 |
|
| 44 |
+
| `fine_grained` | 1,185 | 924 | 1,655 | 2,266 | 594 | 591 |
|
| 45 |
+
|
| 46 |
+
Both datasets are intended for **evaluation only** and are provided as a single `test` split.
|
| 47 |
+
|
| 48 |
+
## Loading
|
| 49 |
+
|
| 50 |
+
```python
|
| 51 |
+
from datasets import load_dataset
|
| 52 |
+
|
| 53 |
+
coarse = load_dataset("JodieChou/wic-llms", "coarse_grained", split="test")
|
| 54 |
+
fine = load_dataset("JodieChou/wic-llms", "fine_grained", split="test")
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
## Configs
|
| 58 |
+
|
| 59 |
+
### `coarse_grained`
|
| 60 |
+
|
| 61 |
+
Constructed automatically from **CoarseWSD-20** (Loureiro et al., 2021), a coarse-grained WSD dataset
|
| 62 |
+
covering 20 ambiguous nouns. Sentences containing the same target word are paired and the WiC label
|
| 63 |
+
is derived by comparing their coarse-grained sense labels: same sense label gives `True`, otherwise `False`.
|
| 64 |
+
The label distribution is exactly balanced.
|
| 65 |
+
|
| 66 |
+
| Field | Type | Description |
|
| 67 |
+
|---|---|---|
|
| 68 |
+
| `id` | int | Row index (0-based). |
|
| 69 |
+
| `word` | string | Target word (one of 20 nouns). |
|
| 70 |
+
| `pair_id` | string | Instance identifier carried over from the CoarseWSD-20 conversion (format `x-y`). |
|
| 71 |
+
| `sentence1` | string | First context. Tokenised, lower-cased text from CoarseWSD-20 (Wikipedia). |
|
| 72 |
+
| `sentence2` | string | Second context. |
|
| 73 |
+
| `label` | string | `"True"` if the target word has the same coarse sense in both sentences, else `"False"`. |
|
| 74 |
+
|
| 75 |
+
Per-word statistics (from the paper, Table 8):
|
| 76 |
+
|
| 77 |
+
| Word | Senses | Pairs | True | False |
|
| 78 |
+
|---|---|---|---|---|
|
| 79 |
+
| apple | 2 | 424 | 212 | 212 |
|
| 80 |
+
| arm | 2 | 70 | 35 | 35 |
|
| 81 |
+
| bank | 2 | 46 | 23 | 23 |
|
| 82 |
+
| bass | 3 | 508 | 254 | 254 |
|
| 83 |
+
| bow | 3 | 106 | 53 | 53 |
|
| 84 |
+
| chair | 2 | 40 | 20 | 20 |
|
| 85 |
+
| club | 3 | 96 | 48 | 48 |
|
| 86 |
+
| crane | 2 | 78 | 39 | 39 |
|
| 87 |
+
| deck | 2 | 14 | 7 | 7 |
|
| 88 |
+
| digit | 2 | 10 | 5 | 5 |
|
| 89 |
+
| hood | 3 | 38 | 19 | 19 |
|
| 90 |
+
| java | 2 | 824 | 412 | 412 |
|
| 91 |
+
| mole | 5 | 70 | 35 | 35 |
|
| 92 |
+
| pitcher | 2 | 26 | 13 | 13 |
|
| 93 |
+
| pound | 2 | 20 | 10 | 10 |
|
| 94 |
+
| seal | 4 | 108 | 54 | 54 |
|
| 95 |
+
| spring | 3 | 182 | 91 | 91 |
|
| 96 |
+
| square | 4 | 82 | 41 | 41 |
|
| 97 |
+
| trunk | 3 | 38 | 19 | 19 |
|
| 98 |
+
| yard | 2 | 18 | 9 | 9 |
|
| 99 |
+
| **Total** | **53** | **2,798** | **1,399** | **1,399** |
|
| 100 |
+
|
| 101 |
+
Example:
|
| 102 |
+
|
| 103 |
+
```json
|
| 104 |
+
{"word": "apple", "pair_id": "6-18",
|
| 105 |
+
"sentence1": "the local economy includes forestry , apple orchard and sheep and dairy farming .",
|
| 106 |
+
"sentence2": "symbol is one of the four standard fonts available on all postscript - based printers , starting with apple 's original laserwriter ( 1985 ) .",
|
| 107 |
+
"label": "False"}
|
| 108 |
+
```
|
| 109 |
+
|
| 110 |
+
### `fine_grained`
|
| 111 |
+
|
| 112 |
+
A newly constructed WiC-style dataset that follows the construction of the original WiC benchmark
|
| 113 |
+
(Pilehvar and Camacho-Collados, 2019) but is built from **WordNet 3.1** noun and verb entries, with
|
| 114 |
+
modifications intended to limit the effect of memorisation by language models. Each target word is
|
| 115 |
+
paired with its WordNet gloss, and sentence pairs are built from the usage examples of the senses.
|
| 116 |
+
Unlike standard WiC, each instance also carries the **sense definition** of the target word in each
|
| 117 |
+
sentence, so the dataset can be used both with and without explicit sense information.
|
| 118 |
+
|
| 119 |
+
| Field | Type | Description |
|
| 120 |
+
|---|---|---|
|
| 121 |
+
| `id` | int | Row index (0-based). |
|
| 122 |
+
| `word` | string | Target word (noun or verb lemma). |
|
| 123 |
+
| `sentence1` | string | First context (WordNet usage example). |
|
| 124 |
+
| `sentence2` | string | Second context (WordNet usage example). |
|
| 125 |
+
| `definition1` | string | WordNet definition of the target word's sense in `sentence1`. |
|
| 126 |
+
| `definition2` | string | WordNet definition of the target word's sense in `sentence2`. |
|
| 127 |
+
| `label` | string | `"True"` if `definition1` and `definition2` are the same sense, else `"False"`. |
|
| 128 |
+
|
| 129 |
+
Example:
|
| 130 |
+
|
| 131 |
+
```json
|
| 132 |
+
{"word": "absence",
|
| 133 |
+
"sentence1": "he was surprised by the absence of any explanation",
|
| 134 |
+
"sentence2": "he visited during my absence",
|
| 135 |
+
"definition1": "the state of being absent",
|
| 136 |
+
"definition2": "the time interval during which something or somebody is away",
|
| 137 |
+
"label": "False"}
|
| 138 |
+
```
|
| 139 |
+
|
| 140 |
+
## Files
|
| 141 |
+
|
| 142 |
+
```
|
| 143 |
+
data/coarse_grained/test.jsonl # 2,798 rows
|
| 144 |
+
data/fine_grained/test.jsonl # 1,185 rows
|
| 145 |
+
raw/coarse_grained_WiC.tsv # original release file, no header: word, pair_id, sentence1, sentence2, label
|
| 146 |
+
raw/fine_grained_WiC.tsv # original release file, with header; labels are T / F
|
| 147 |
+
```
|
| 148 |
+
|
| 149 |
+
The JSONL files are the recommended entry point. They add a header, an `id` column, and normalise
|
| 150 |
+
labels in both configs to the strings `"True"` / `"False"` (the raw fine-grained file uses `T` / `F`).
|
| 151 |
+
The raw TSV files are the original release files and are otherwise unchanged.
|
| 152 |
+
|
| 153 |
+
## Notes
|
| 154 |
+
|
| 155 |
+
- Sentences in `coarse_grained` are lower-cased and tokenised (punctuation separated by spaces), as in CoarseWSD-20.
|
| 156 |
+
- `coarse_grained` contains one exact duplicate pair (`bank`, `pair_id` `12-5`). It is kept so that the
|
| 157 |
+
counts match the paper.
|
| 158 |
+
- These are evaluation sets. There is no training split.
|
| 159 |
+
|
| 160 |
+
## Source datasets
|
| 161 |
+
|
| 162 |
+
- **CoarseWSD-20**: Daniel Loureiro, Kiamehr Rezaee, Mohammad Taher Pilehvar, and Jose Camacho-Collados. 2021.
|
| 163 |
+
*Analysis and Evaluation of Language Models for Word Sense Disambiguation.* Computational Linguistics, 47(2):387–443.
|
| 164 |
+
- **WordNet 3.1**: George A. Miller. 1995. *WordNet: A Lexical Database for English.* Communications of the ACM;
|
| 165 |
+
Christiane Fellbaum (ed.). 1998. *WordNet: An Electronic Lexical Database.* MIT Press.
|
| 166 |
+
- **WiC** (construction procedure): Mohammad Taher Pilehvar and Jose Camacho-Collados. 2019.
|
| 167 |
+
*WiC: the Word-in-Context Dataset for Evaluating Context-Sensitive Meaning Representations.* NAACL-HLT 2019.
|
| 168 |
+
|
| 169 |
+
## Citation
|
| 170 |
+
|
| 171 |
+
If you use these datasets, please cite the paper:
|
| 172 |
+
|
| 173 |
+
```bibtex
|
| 174 |
+
@article{zhou2026wicnotwsd,
|
| 175 |
+
title = {WiC is Not WSD: A Study on LLMs and Lexical Ambiguity Resolution},
|
| 176 |
+
author = {Zhou, Yi and Rezaee, Kiamehr and Bollegala, Danushka and Pilehvar, Mohammad Taher and Camacho-Collados, Jose},
|
| 177 |
+
year = {2026}
|
| 178 |
+
}
|
| 179 |
+
```
|
| 180 |
+
|
| 181 |
+
Please also cite CoarseWSD-20 when using the `coarse_grained` config, and WordNet when using the `fine_grained` config.
|
data/coarse_grained/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/fine_grained/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
raw/coarse_grained_WiC.tsv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
raw/fine_grained_WiC.tsv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|