document_id string | entity_ids list | aliases list | index list | entity_count int64 |
|---|---|---|---|---|
Q2996102 | [
"Q2996102"
] | [
"Achaean Range"
] | [
[
0,
13
]
] | 1 |
Q4668053 | [
"Q4668053"
] | [
"Ablation Valley"
] | [
[
0,
15
]
] | 1 |
Q12247301 | [
"Q12247301"
] | [
"Al-Suqaylabiyah Subdistrict"
] | [
[
0,
27
]
] | 1 |
Q488109 | [
"Q488109"
] | [
"Aprilov Point"
] | [
[
0,
13
]
] | 1 |
Q4791546 | [
"Q4791546",
"Q4791546",
"Q4791546",
"Q4791546"
] | [
"Arjoun",
"Arjoun",
"Arjoun",
"Arjoun"
] | [
[
0,
6
],
[
407,
413
],
[
552,
558
],
[
912,
918
]
] | 1 |
Q827409 | [
"Q827409",
"Q827409"
] | [
"Bert Lown",
"Bert Lown"
] | [
[
0,
9
],
[
1006,
1015
]
] | 1 |
Q1099218 | [
"Q1099218"
] | [
"Cape Evensen"
] | [
[
0,
12
]
] | 1 |
Q372065 | [
"Q372065"
] | [
"Avitohol Point"
] | [
[
0,
14
]
] | 1 |
Q5170010 | [
"Q5170010",
"Q5170010",
"Q5170010"
] | [
"Cordiner Peaks",
"Cordiner Peaks",
"Cordiner Peaks"
] | [
[
4,
18
],
[
271,
285
],
[
891,
905
]
] | 1 |
Q4902388 | [
"Q4902388"
] | [
"Bi Ribeiro"
] | [
[
43,
53
]
] | 1 |
Q4816363 | [
"Q4816363",
"Q4816363"
] | [
"Atlantic Club Ridge",
"Atlantic Club Ridge"
] | [
[
4,
23
],
[
638,
657
]
] | 1 |
Q2648317 | [
"Q2648317",
"Q2648317",
"Q2648317",
"Q2648317",
"Q2648317"
] | [
"Byers Peninsula",
"Byers Peninsula",
"Byers Peninsula",
"Byers Peninsula",
"Byers Peninsula"
] | [
[
0,
15
],
[
404,
419
],
[
2179,
2194
],
[
2947,
2962
],
[
3427,
3442
]
] | 1 |
Q1097945 | [
"Q1097945"
] | [
"Claudine Clark"
] | [
[
0,
14
]
] | 1 |
Q2874275 | [
"Q2874275",
"Q2874275",
"Q2874275",
"Q2874275",
"Q2874275",
"Q2874275",
"Q2874275",
"Q2874275"
] | [
"Aviastroitel",
"Aviastroitel",
"Aviastroitel",
"Aviastroitel",
"Aviastroitel",
"Aviastroitel",
"Aviastroitel",
"Aviastroitel"
] | [
[
0,
12
],
[
2238,
2250
],
[
2591,
2603
],
[
2633,
2645
],
[
2851,
2863
],
[
3110,
3122
],
[
3206,
3218
],
[
4024,
4036
]
] | 1 |
Q4754548 | [
"Q4754548",
"Q4754548",
"Q4754548",
"Q4754548",
"Q4754548",
"Q4754548",
"Q4754548"
] | [
"Andor Toth",
"Andor Toth",
"Andor Toth",
"Andor Toth",
"Andor Toth",
"Andor Toth",
"Andor Toth"
] | [
[
2835,
2845
],
[
7246,
7256
],
[
7315,
7325
],
[
7424,
7434
],
[
7493,
7503
],
[
7620,
7630
],
[
7689,
7699
]
] | 1 |
Q1873018 | [
"Q1873018"
] | [
"Antonio Comi"
] | [
[
0,
12
]
] | 1 |
Q1100932 | [
"Q1100932",
"Q1100932",
"Q1100932"
] | [
"Cape Jeremy",
"Cape Jeremy",
"Cape Jeremy"
] | [
[
0,
11
],
[
559,
570
],
[
966,
977
]
] | 1 |
Q4754994 | [
"Q4754994"
] | [
"Andrea Byrne"
] | [
[
0,
12
]
] | 1 |
Q573776 | [
"Q573776"
] | [
"Albert Chamberland"
] | [
[
0,
18
]
] | 1 |
Q4865966 | [
"Q4865966",
"Q4865966",
"Q4865966",
"Q4865966",
"Q4865966",
"Q4865966",
"Q4850813",
"Q4850813"
] | [
"Barwick Valley",
"Barwick Valley",
"Barwick Valley",
"Barwick Valley",
"Barwick Valley",
"Barwick Valley",
"Balham Valley",
"Balham Valley"
] | [
[
0,
14
],
[
302,
316
],
[
626,
640
],
[
1154,
1168
],
[
1672,
1686
],
[
2124,
2138
],
[
777,
790
],
[
1704,
1717
]
] | 2 |
Q4850813 | [
"Q4865966",
"Q4865966",
"Q4850813",
"Q4850813",
"Q4850813",
"Q4850813",
"Q4850813"
] | [
"Barwick Valley",
"Barwick Valley",
"Balham Valley",
"Balham Valley",
"Balham Valley",
"Balham Valley",
"Balham Valley"
] | [
[
724,
738
],
[
830,
844
],
[
0,
13
],
[
157,
170
],
[
424,
437
],
[
485,
498
],
[
799,
812
]
] | 2 |
Q85633 | [
"Q85633",
"Q85633"
] | [
"Anton Walter",
"Anton Walter"
] | [
[
8,
20
],
[
806,
818
]
] | 1 |
Q522541 | [
"Q522541",
"Q522541",
"Q522541",
"Q522541",
"Q522541"
] | [
"Bad Schwalbach",
"Bad Schwalbach",
"Bad Schwalbach",
"Bad Schwalbach",
"Bad Schwalbach"
] | [
[
0,
14
],
[
142,
156
],
[
1342,
1356
],
[
1862,
1876
],
[
1990,
2004
]
] | 1 |
Q960240 | [
"Q960240"
] | [
"Alberto Prebisch"
] | [
[
0,
16
]
] | 1 |
Q3703355 | [
"Q3703355"
] | [
"David Tree"
] | [
[
0,
10
]
] | 1 |
Q74200 | [
"Q74200"
] | [
"Barbara Hund"
] | [
[
0,
12
]
] | 1 |
Q921895 | [
"Q921895",
"Q921895",
"Q921895",
"Q921895",
"Q921895"
] | [
"BBeB",
"BBeB",
"BBeB",
"BBeB",
"BBeB"
] | [
[
0,
4
],
[
193,
197
],
[
314,
318
],
[
383,
387
],
[
868,
872
]
] | 1 |
Q4185813 | [
"Q4185813",
"Q4185813",
"Q4185813"
] | [
"Blackrock Castle",
"Blackrock Castle",
"Blackrock Castle"
] | [
[
0,
16
],
[
794,
810
],
[
2347,
2363
]
] | 1 |
Q5253560 | [
"Q5253560",
"Q5253560",
"Q5253560"
] | [
"Delchev Ridge",
"Delchev Ridge",
"Delchev Ridge"
] | [
[
0,
13
],
[
565,
578
],
[
894,
907
]
] | 1 |
Q5303809 | [
"Q5303809",
"Q5303809"
] | [
"Doyran Heights",
"Doyran Heights"
] | [
[
0,
14
],
[
834,
848
]
] | 1 |
Q5322866 | [
"Q5322866",
"Q5322866",
"Q5322866"
] | [
"EDP Renewables North America",
"EDP Renewables North America",
"EDP Renewables North America"
] | [
[
0,
28
],
[
276,
304
],
[
1421,
1449
]
] | 1 |
Q2935247 | [
"Q2935247",
"Q2935247",
"Q2935247"
] | [
"Canjuers",
"Canjuers",
"Canjuers"
] | [
[
0,
8
],
[
345,
353
],
[
598,
606
]
] | 1 |
Q2646770 | [
"Q2646770",
"Q2646770",
"Q2646770"
] | [
"Canisteo Peninsula",
"Canisteo Peninsula",
"Canisteo Peninsula"
] | [
[
0,
18
],
[
279,
297
],
[
560,
578
]
] | 1 |
Q431146 | [
"Q431146"
] | [
"Christine Boisson"
] | [
[
0,
17
]
] | 1 |
Q654993 | [
"Q654993",
"Q654993"
] | [
"Breege",
"Breege"
] | [
[
0,
6
],
[
137,
143
]
] | 1 |
platovec — Wikipedia entities, documents, linearity triples & ZELDA links
A dataset for studying entity representations in LLMs: how entities are encoded, how those representations form, and their causal effects.
Built from a seed entity list (the factual relations of Hernandez et al. 2024, by title, plus
ZELDA mention targets, by Wikipedia page id) by joining wikimedia/structured-wikipedia
(text + links) and the Wikidata API (labels / aliases / properties).
Configs
| config | granularity | description |
|---|---|---|
entities |
one row / entity | the entity, its text, abstract, aliases, properties, links |
documents |
one row / document | mention positions of entities within a document |
triples |
one row / linearity fact | (subject, object) + chosen template + QIDs + Wikidata property |
templates |
one row / relation | candidate prompt templates per relation (best-first) |
links |
one row / ZELDA document | entity-linking mentions for retrieval eval (split test) |
from datasets import load_dataset
entities = load_dataset("ykolo/entityconcepts", "entities", split="train")
documents = load_dataset("ykolo/entityconcepts", "documents", split="train")
triples = load_dataset("ykolo/entityconcepts", "triples", split="train")
links = load_dataset("ykolo/entityconcepts", "links", split="test")
entities
| column | type | description |
|---|---|---|
qid |
str | Wikidata QID (row key) |
label |
str | entity name (Wikipedia article title) |
description |
str | one-line description |
alias |
list[str] | alternative names (Wikidata "also known as", English) |
wikidata_url |
str | |
wikipedia_url |
str | |
what_links_here |
list[str] | QIDs of seed entities whose article links to this one |
properties |
list[{property_id, value}] | Wikidata claims (value = QID for items, rendered text otherwise) |
text |
str | flat article text (reconstructed from structured-wikipedia sections) |
abstract |
str | null | article lead/abstract (from structured-wikipedia) |
page_id |
int | null | English Wikipedia page id (structured-wikipedia identifier) |
n_characters |
int | null | article length (structured-wikipedia version.number_of_characters) |
origin |
list[str] | seed origin(s): linearity and/or zelda |
n_mentions |
int | total mention occurrences across the documents table |
documents
One row = one document (an entity's Wikipedia article). Lists are aligned by position:
entity_ids[i] ↔ aliases[i] ↔ index[i]. The document text is entities[document_id].text
(not duplicated here). Use it to extract an entity's activations at its mention positions
across several documents (self-mention ⇔ document_id ∈ entity_ids).
| column | type | description |
|---|---|---|
document_id |
str | QID of the entity whose article is this document (→ entities.qid) |
entity_ids |
list[str] | QID of each mentioned entity (repeats for multiple mentions) |
aliases |
list[str] | surface form found in the text for each mention |
index |
list[[int, int]] | character [start, end] offsets in the document's text |
entity_count |
int | number of distinct entities mentioned in the document |
triples
Facts from the factual linearity relations (one row per (subject, object) sample).
| column | type | description |
|---|---|---|
id |
int | |
relation_id |
str | null | mapped Wikidata property, e.g. P36 (null if unmapped) |
relation_name |
str | human-readable name, e.g. "country capital city" |
template |
str | prompt template with {} as the subject placeholder |
template_id |
int | null | index of the template used in templates.templates[] (best-first ⇒ 0) |
subject |
str | subject |
subject_qid |
str|null | qid of subject |
object |
str | object |
object_qid |
str|null | qid of object |
links
Entity-linking documents from the ZELDA dataset, for retrieval evaluation. One row = one
document; each mention's ZELDA wikipedia_id is matched to the page_id column of entities
to recover its QID. Split test (the source column gives the ZELDA subset, e.g. aida-b;
train is available too if built). Lists aligned by position:
entity_ids[i] ↔ index[i] ↔ wikipedia_ids[i] ↔ wikipedia_titles[i].
| column | type | description |
|---|---|---|
source |
str | split origin (train, or test set name e.g. aida-b) |
document_id |
str | null | QID of the document's own Wikipedia page (train only; via entities.page_id) |
entity_ids |
list[str] | QID of each mention's gold entity |
index |
list[[int, int]] | character [start, end] offsets in text |
text |
str | document text |
wikipedia_ids |
list[int] | raw ZELDA Wikipedia page ids of the mentions (traceability) |
wikipedia_titles |
list[str] | ZELDA Wikipedia titles of the mentions (traceability) |
Mentions whose wikipedia_id is not present in entities (entity not scraped) are dropped (logged).
Construction
- seed entities: subjects + objects of the factual relations (by title) + ZELDA mention
targets (by
page_id).originrecords which source(s) each entity came from. entities/documents: text + link graph from hugging facewikimedia/structured-wikipedia(enwiki); aliases & properties from the Wikidata API;abstract/textfrom structured-wikipedia; disambiguation pages filtered out;triples: linearity relations;relation_idis the Wikidata P-id from a static mapping;templateis the best prompt per relation (max partial-match in generation).links: ZELDA entity-linking documents; mentionwikipedia_idmatched toentities.page_id→ QID.
- Downloads last month
- 14