File size: 4,625 Bytes
e9ffa70
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
language:
- en
task_categories:
- text-retrieval
size_categories:
- 10K<n<100K
dataset_info:
- config_name: documents
  features:
  - name: chunk_id
    dtype: string
  - name: chunk
    dtype: string
  - name: source_url
    dtype: string
  - name: title
    dtype: string
  - name: chunk_idx
    dtype: int64
  - name: chunk_start_char
    dtype: int64
  - name: chunk_end_char
    dtype: int64
  splits:
  - name: test
    num_bytes: 137244943
    num_examples: 70140
  download_size: 78083409
  dataset_size: 137244943
- config_name: queries
  features:
  - name: original_query
    dtype: string
  - name: query
    dtype: string
  - name: answer
    list: string
  - name: score
    list: int64
  - name: source_url
    list: string
  - name: frag_start_char
    list: int64
  - name: frag_end_char
    list: int64
  - name: n_gold
    dtype: int64
  splits:
  - name: test
    num_bytes: 211299459
    num_examples: 10000
  download_size: 95617096
  dataset_size: 211299459
configs:
- config_name: documents
  data_files:
  - split: test
    path: documents/test-*
- config_name: queries
  data_files:
  - split: test
    path: queries/test-*
---

# ZeShEL — Entity-Linking Chunk-level Retrieval Eval

Contextualized chunk-level (query2chunk) retrieval eval for **entity linking**, built from
the **ZeShEL** (Zero-Shot Entity Linking) dataset
([Logeswaran et al., ACL 2019](https://arxiv.org/abs/1906.07348); via
[`naist-nlp/zeshel`](https://huggingface.co/datasets/naist-nlp/zeshel)).

Reformatted into the schema used across the
[Chunk-level Retrieval Eval](https://huggingface.co/collections/bowang0911/chunk-level-retrieval-eval)
collection.

## Task

Entity linking as retrieval: given a **mention in context**, retrieve the correct
**entity's description** from a corpus of entity descriptions. Unlike the QA benchmarks
in this collection, the query is a mention (marked inline with `[START_ENT] … [END_ENT]`)
and the gold "chunk" is the linked entity's description.

Because entity linking's target is an *entity* (represented by a whole description), each
entity description is kept as **one chunk** — so every mention resolves to **exactly one
gold chunk**. This is the natural EL unit and avoids arbitrary sub-entity chunking.

## Scope

Restricted to ZeShEL's **held-out test domains** (the standard zero-shot eval): `star_trek`,
`forgotten_realms`, `lego`, `yugioh`. Source: Wikia/Fandom.

| | count |
| --- | --- |
| entity descriptions (corpus) | 70,140 |
| query mentions (test) | 10,000 |
| test domains | 4 |

## Configs

### `documents` (one chunk per entity)
| field | type | notes |
| --- | --- | --- |
| `chunk_id` | string | ZeShEL entity id |
| `chunk` | string | entity description text |
| `source_url` | string | entity id (identity of the entity) |
| `title` | string | entity name |
| `chunk_idx` | int64 | always 0 (one chunk per entity) |
| `chunk_start_char` / `chunk_end_char` | int64 | `0` .. `len(description)` |

### `queries`
| field | type | notes |
| --- | --- | --- |
| `original_query` | string | raw mention context (unmarked) |
| `query` | string | context with the mention wrapped in `[START_ENT] … [END_ENT]` |
| `answer` | list[string] | gold entity name(s) |
| `score` | list[int64] | `1` per gold |
| `source_url` | list[string] | gold entity id(s) |
| `frag_start_char` / `frag_end_char` | list[int64] | span of the gold entity description (`0 .. len`) |
| `n_gold` | int64 | number of gold entities (almost always 1) |

## Gold matching

A chunk is gold if it shares `source_url` (entity id) with a gold fragment and overlaps its
`[frag_start_char, frag_end_char)`. Since each entity is one chunk and the gold fragment is
the whole description, every mention maps to **exactly one** gold chunk (verified:
10,000 / 10,000).

## Provenance

Built from `naist-nlp/zeshel` `dictionary` (entity descriptions → corpus, filtered to the 4
test domains) and `data/test` (mentions → queries). Records containing multiple mention
spans are expanded to one query per span (10,000 total, matching ZeShEL's canonical test
set). Mentions are marked using the dataset's char offsets.

## Citation

```bibtex
@inproceedings{logeswaran2019zeshel,
    title  = "Zero-Shot Entity Linking by Reading Entity Descriptions",
    author = "Logeswaran, Lajanugen and Chang, Ming-Wei and Lee, Kenton and
              Toutanova, Kristina and Devlin, Jacob and Lee, Honglak",
    booktitle = "Proceedings of the 57th Annual Meeting of the Association for
                 Computational Linguistics (ACL)",
    year   = "2019",
    url    = "https://arxiv.org/abs/1906.07348"
}
```