Skip to content
Showcase/DWIE Document-Level Entity Annotation and Linking
advancedtext

DWIE Document-Level Entity Annotation and Linking

Document-level entity mention annotation with knowledge-base linking based on DWIE (Zaporojets, Deleu, Develder, and Demeester, Information Processing & Management 2021). Annotators mark every entity mention in a full news article, assign an entity type, and link mentions to Wikipedia/Wikidata entries, leaving NIL entities unlinked. Complements the mention-level AIDA CoNLL-YAGO task (text/entity-linking/aida-conll-entity-disambiguation): AIDA presents one pre-marked mention at a time for disambiguation, whereas DWIE is entity-centric and document-level — annotators find all mentions themselves and keep links consistent across each entity's coreferent mentions.

About this dataset

DWIE (Deutsche Welle corpus for Information Extraction) is an entity-centric, document-level information extraction dataset built from 802 Deutsche Welle news articles. Unlike sentence- or mention-level datasets, DWIE annotates whole documents jointly for named entity recognition, coreference resolution, relation extraction, and entity linking.

Its defining design choice is that annotations attach to entities rather than to isolated mentions: all coreferent mentions of an entity form a cluster, and the cluster as a whole receives a single Wikipedia link (version 2018-11-15). Entities not present in the knowledge base are marked NIL. The corpus was built in three passes — an exploratory pass in which annotators proposed types freely, a schema-driven pass with a consolidated hierarchical tag set, and an inter-annotator refinement pass in which a second expert re-annotated 100 articles.

The full schema contains 311 multi-label entity types organized under top-level branches (entity, value, other) and 65 relation types. This Potato config reproduces the mention-finding and linking portion of the workflow with a span scheme plus Potato's entity_linking modal backed by Wikidata: annotators highlight mentions, choose one of seven top-level types, and search the knowledge base for the referent, keeping the same link across all mentions of an entity.

Two simplifications are deliberate: the 311 fine-grained multi-label types are collapsed to seven top-level types, and links are stored per mention rather than per cluster, with cluster consistency maintained by convention. Relation extraction, the fourth DWIE task, is out of scope here.

Released
2021 (Information Processing & Management 58(4))
Documents
802 Deutsche Welle news articles
Entity mentions
43,373
Entity clusters
23,130
Entity types
311 (hierarchical, multi-label)
Relation types
65
Knowledge base
Wikipedia (2018-11-15), NIL allowed
Tasks
NER, coreference, relation extraction, entity linking
PERORGLOCPERORGLOCDATESelect text to annotate

Configuration Fileconfig.yaml

This Potato config reproduces the annotation task. Save it as config.yaml and run potato start config.yaml to try it.

yaml
# DWIE: Document-Level Entity Mention Annotation and Linking
# Based on: Klim Zaporojets, Johannes Deleu, Chris Develder, and Thomas
#   Demeester (2021), "DWIE: An entity-centric dataset for multi-task
#   document-level information extraction." Information Processing &
#   Management 58(4), 102563.
#   DOI: 10.1016/j.ipm.2021.102563 — arXiv: https://arxiv.org/abs/2009.12626
#   Dataset: https://github.com/klimzaporojets/DWIE
#
# Task: mark every entity mention in a full news article, assign an entity
# type, and link the mention to its Wikipedia/Wikidata entry via the entity
# search modal. In DWIE, links are assigned at the level of entity clusters
# (all coreferent mentions of an entity share one KB link, Wikipedia version
# 2018-11-15), and entities absent from the knowledge base are left as NIL.
# Deliberate simplifications: DWIE's 311 hierarchical, multi-label entity
# types are collapsed to seven top-level types, and linking is performed per
# mention (annotators keep cluster consistency by linking every mention of
# the same entity to the same KB entry, or leaving all of them unlinked for
# NIL entities).
#
# Annotation instructions adapted from Section 3 of the paper; the paper does
# not publish the verbatim annotator guidelines.

annotation_task_name: "DWIE Document-Level Entity Linking"
task_dir: "."

data_files:
  - sample-data.json

item_properties:
  id_key: "id"
  text_key: "text"

output_annotation_dir: "annotation_output/"
output_annotation_format: "json"

port: 8000
server_name: localhost

annotation_instructions: |
  You are shown a complete news article. Mark **every mention** of an entity in
  the article — an entity can be any physical or abstract object, typically
  denoted by a proper noun (people, organizations, locations, events,
  ethnicities and nationalities, numeric values, and other named objects).

  For each mention:

  1. Highlight the mention text and assign the entity type that best describes
     it (PERSON, ORGANIZATION, LOCATION, EVENT, ETHNICITY, VALUE, or MISC).
  2. Open the link icon on the span and search Wikidata for the entity the
     mention refers to. Link the mention to the matching entry.
  3. Annotate at the level of the underlying entity, not the surface string:
     all mentions of the same real-world entity (e.g. "Angela Merkel", "the
     chancellor", "Merkel") must be linked to the **same** knowledge-base
     entry.
  4. If the entity does not exist in the knowledge base, leave the mention
     unlinked (a NIL entity). Do this consistently for every mention of that
     entity.

  Judge each mention in the context of the whole document — earlier mentions
  often disambiguate later, shorter ones.

annotation_schemes:
  - annotation_type: span
    name: entity_mentions
    description: "Mark every entity mention, assign its type, and link it to the knowledge base"
    labels:
      - name: PERSON
        tooltip: "Individual people, named or referred to by role"
      - name: ORGANIZATION
        tooltip: "Companies, institutions, governments, agencies, teams"
      - name: LOCATION
        tooltip: "Countries, cities, regions, geographic features, facilities"
      - name: EVENT
        tooltip: "Named events such as elections, wars, tournaments, disasters"
      - name: ETHNICITY
        tooltip: "Ethnic groups, nationalities, and peoples"
      - name: VALUE
        tooltip: "Numeric and temporal values: money, quantities, dates"
      - name: MISC
        tooltip: "Other named entities: products, works, laws, languages, etc."
    entity_linking:
      enabled: true
      auto_search: true
      required: false
      knowledge_bases:
        - name: wikidata
          type: wikidata
          language: en

html_layout: |
  <div style="padding: 15px; max-width: 860px; margin: auto;">
    <div style="background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 8px; padding: 6px 12px; margin-bottom: 8px; font-size: 13px; color: #475569;">
      <strong>Article:</strong> {{title}}
    </div>
    <div style="font-size: 16px; line-height: 1.8;">{{text}}</div>
  </div>

allow_all_users: true
instances_per_annotator: 30
annotation_per_instance: 2
allow_skip: true

Sample Datasample-data.json

json
[
  {
    "id": "dwie_001",
    "title": "EU ministers meet in Brussels over energy prices",
    "text": "Energy ministers from the European Union gathered in Brussels on Tuesday to discuss a joint response to rising electricity prices. The German delegation, led by Economy Minister Petra Hoffmann, pushed for a temporary cap on wholesale gas prices, a measure that France has supported since September. Hoffmann told reporters that Berlin would not accept a solution that undermines the single market. The European Commission is expected to present a formal proposal within two weeks."
  },
  {
    "id": "dwie_002",
    "title": "Nairobi hosts climate adaptation summit",
    "text": "Delegates from more than forty African nations opened a three-day summit in Nairobi on Monday to coordinate climate adaptation funding. Kenyan President Daniel Otieno said in his opening address that the continent receives less than a tenth of the financing it needs. The African Development Bank pledged an additional two billion dollars for drought resilience projects in the Sahel. Representatives of the United Nations Environment Programme, which is headquartered in the Kenyan capital, will chair the technical sessions."
  }
]

// ... and 8 more items

Get This Design

View on GitHub

Clone or download from the repository

Quick start:

git clone https://github.com/davidjurgens/potato-showcase.git
cd potato-showcase/text/entity-linking/dwie-document-entity-linking
potato start config.yaml

Dataset & paper

Klim Zaporojets, Johannes Deleu, Chris Develder, and Thomas Demeester. 2021. DWIE: An entity-centric dataset for multi-task document-level information extraction. Information Processing & Management, 58(4), 102563.

Citation (BibTeX)

bibtex
@article{zaporojets2021dwie,
    title = "{DWIE}: An entity-centric dataset for multi-task document-level information extraction",
    author = "Zaporojets, Klim and Deleu, Johannes and Develder, Chris and Demeester, Thomas",
    journal = "Information Processing \& Management",
    volume = "58",
    number = "4",
    pages = "102563",
    year = "2021",
    publisher = "Elsevier",
    doi = "10.1016/j.ipm.2021.102563",
    url = "https://arxiv.org/abs/2009.12626"
}

Details

Annotation Types

span

Domain

NLPInformation ExtractionNews

Use Cases

Entity LinkingNamed Entity RecognitionKnowledge Graph Construction

Tags

entity-linkingnamed-entity-recognitiondocument-levelwikidataknowledge-baseNIL-entitiesDWIE

Found an issue or want to improve this design?

Open an Issue