SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2009.12626 · 2020

DWIE: an entity-centric dataset for multi-task document-level information extraction

arXiv · PDF · Open in the Atlas

Code that ran

11 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 6 have no contract verdict; 4 failures of our instrument; 3 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, measured 2026-11-21; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2009.12626.json · badge: /api/ran/2009.12626.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
klimzaporojets/DWIE canonical (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
klimzaporojets/consistent-el community (classifier label)
classifier basis not recorded on the link
8 ran · 3 no recorded run
FunctionStatusWhere it lives
flatten Ran
ran, honoured the contract we drafted
klimzaporojets/consistent-el/src/data_processing/bert_preprocessing.py
code served (permissive licence) · get_code("20922c79a0929bbf")
How it ran

Ran in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned list, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-04T22:50:02Z). If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# The function flatten takes a list of lists and flattens it into a single list
# It iterates through sublists and extracts items from each

# Create a simple nested list structure
nested_list = [
    [1, 2, 3],
    [4, 5],
    [6, 7, 8, 9]
]

ARGS = {
    "l": nested_list
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
exclude_links Ran
ran on a synthesized input
klimzaporojets/consistent-el/src/metrics/linker.py
code served (permissive licence) · get_code("c9abe1390899bf09")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function exclude_links filters a list of links, keeping only those where
# the third element (index 2) equals 'NILL'
# links should be a list of tuples/lists where each has at least 3 elements

links = [
    ('link1', 'data1', 'NILL'),
    ('link2', 'data2', 'OTHER'),
    ('link3', 'data3', 'NILL'),
    ('link4', 'data4', 'DIFFERENT'),
    ('link5', 'data5', 'NILL'),
]

ARGS = {
    'links': links
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
exclude_nills Ran
ran on a synthesized input
klimzaporojets/consistent-el/src/metrics/linker.py
code served (permissive licence) · get_code("f8f43e943c125d80")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function exclude_nills filters a list of links, keeping only those
# where the third element (index 2) is not equal to 'NILL'
# Each link appears to be a tuple/list with at least 3 elements

links = [
    ('source1', 'target1', 'RELATION'),
    ('source2', 'target2', 'NILL'),
    ('source3', 'target3', 'OTHER'),
    ('source4', 'target4', 'NILL'),
]

ARGS = {
    'links': links
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_gold_clusters Ran
ran on a synthesized input
klimzaporojets/consistent-el/src/metrics/coref.py
code served (permissive licence) · get_code("f4df55d79bfc8dc1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

# Construct valid arguments for get_gold_clusters
# The function expects gold_clusters to be an iterable of iterables of mentions
# Each mention should be a tuple or tuple-like structure
# The function converts mentions to tuples and creates a mapping

# Create sample gold clusters with mentions as tuples
# Each mention is represented as a tuple (e.g., (start, end) positions)
mention1 = (0, 5)
mention2 = (10, 15)
mention3 = (20, 25)
mention4 = (30, 35)

# Create gold clusters - list of lists where each inner list contains mentions
gold_clusters_input = [
    [mention1, mention2],  # First cluster with 2 mentions
    [mention3, mention4]   # Second cluster with 2 mentions
]

ARGS = {
    "gold_clusters": gold_clusters_input
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_sentence_map Ran
ran on a synthesized input
klimzaporojets/consistent-el/src/data_processing/bert_preprocessing.py
code served (permissive licence) · get_code("4e343394ad073c52")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Analyze the function:
# - segments: a list of lists/sequences, each segment has length >= 2
# - sentence_end: a flat list/array where len(sentence_end) == sum([len(seg) - 2 for seg in segments])
# - The function iterates through segments and uses len(segment) - 2 to index into sentence_end
# - sentence_end values are converted to int, suggesting they are numeric (0 or 1)

# Create valid test data
# Let's say we have 2 segments
# segment 1: length 4 -> contributes 4 - 2 = 2 elements
# segment 2: length 3 -> contributes 3 - 2 = 1 element
# Total sentence_end should have 2 + 1 = 3 elements

segments = [
    [0, 1, 2, 3],      # length 4, contributes 2 to sentence_end
    [4, 5, 6],         # length 3, contributes 1 to sentence_end
]

# sentence_end has 3 elements (binary indicators: 0 or 1)
sentence_end = [1, 0, 1]

ARGS = {
    "segments": segments,
    "sentence_end": sentence_end,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_token_buckets Ran
ran on a synthesized input
klimzaporojets/consistent-el/src/data_processing/tokenizer.py
code served (permissive licence) · get_code("cd2e4269e0d4741c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

# Analyze the function: get_token_buckets takes a list of tokens (strings)
# and returns their indices based on a token-to-index mapping built from lowercased tokens

tokens = ["Hello", "world", "hello", "WORLD", "test"]

ARGS = {
    "tokens": tokens
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_data Ran
ran; our contract draft was wrong, not the code
klimzaporojets/DWIE/src/dwie_evaluation.py
pointer only (licence: GPL-3.0) · get_code("47534b76005be430")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, klimzaporojets/DWIE, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_json Ran
ran; our contract draft was wrong, not the code
klimzaporojets/DWIE/src/dwie_evaluation.py
pointer only (licence: GPL-3.0) · get_code("c767859799a51b24")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, klimzaporojets/DWIE, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_jsonl Ran
ran; our contract draft was wrong, not the code
klimzaporojets/DWIE/src/dwie_evaluation.py
pointer only (licence: GPL-3.0) · get_code("7f7d1c199331fe6c")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, klimzaporojets/DWIE, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

m2i_to_clusters Ran
ran on a synthesized input
klimzaporojets/consistent-el/src/metrics/coref.py
code served (permissive licence) · get_code("3cb74b9eea1966e1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - m2i_to_clusters takes a single parameter: m2i
# - m2i is expected to be a list of integers
# - The function iterates through enumerate(m2i), treating each element as a cluster index
# - It builds clusters by grouping indices by their cluster values

# Based on the docstring example: [36, 4, 36, 14, 36, 4, 4, 4, 32]
# m2i is a list of cluster assignments where each index represents a member
# and the value represents which cluster it belongs to

m2i_example = [36, 4, 36, 14, 36, 4, 4, 4, 32]

ARGS = {
    "m2i": m2i_example
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
normalize_word Ran
ran; our contract draft was wrong, not the code
klimzaporojets/consistent-el/src/data_processing/bert_preprocessing.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Achint08/e2e-coref-keras, is pointer only (licence: NONE) · get_code("67b9b442fafaf135")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from Achint08/e2e-coref-keras, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

convert_to_json Not yet run
unverified (harvested, no recorded run)
klimzaporojets/consistent-el/src/data_processing/predictions_serializer.py
code served (permissive licence) · get_code("e852643db27db477")
How it ran

no invocation recorded.

decode_m2i Not yet run
unverified (harvested, no recorded run)
klimzaporojets/consistent-el/src/metrics/coref.py
code served (permissive licence) · get_code("b004dddaa40dc224")
How it ran

no invocation recorded.

get_tokenizer Not yet run
unverified (harvested, no recorded run)
klimzaporojets/consistent-el/src/main_bert_processor_dwie.py
code served (permissive licence) · get_code("7a641c71a3209a70")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 1 later) and 12 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
flatten 21 other papers
9 dated earlier, 12 later
1609.08675 (2016-09)
YouTube-8M: A Large-Scale Video Classification Benchmark
1802.04821 (2018-02)
Evolved Policy Gradients
1811.05014 (2018-11)
NeXtVLAD: An Efficient Neural Network to Aggregate Frame-level Features for Large-scale Video Classification
and 18 more not named here
normalize_word 2 other papers
2 dated earlier
1707.07045 (2017-07)
End-to-end Neural Coreference Resolution
1804.05392 (2018-04)
Higher-order Coreference Resolution with Coarse-to-fine Inference

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-21.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

This paper presents DWIE, the 'Deutsche Welle corpus for Information Extraction', a newly created multi-task dataset that combines four main Information Extraction (IE) annotation subtasks: (i) Named Entity Recognition (NER), (ii) Coreference Resolution, (iii) Relation Extraction (RE), and (iv) Entity Linking. DWIE is conceived as an entity-centric dataset that describes interactions and properties of conceptual entities on the level of the complete document. This contrasts with currently dominant mention-driven approaches that start from the detection and classification of named entity mentions in individual sentences. Further, DWIE presented two main challenges when building and evaluating IE models for it. First, the use of traditional mention-level evaluation metrics for NER and RE tasks on entity-centric DWIE dataset can result in measurements dominated by predictions on more frequently mentioned entities. We tackle this issue by proposing a new entity-driven metric that takes into account the number of mentions that compose each of the predicted and ground truth entities. Second, the document-level multi-task annotations require the models to transfer information between entity mentions located in different parts of the document, as well as between different tasks, in a joint learning setting. To realize this, we propose to use graph-based neural message passing techniques between document-level mention spans. Our experiments show an improvement of up to 5.5 F1 percentage points when incorporating neural graph propagation into our joint model. This demonstrates DWIE's potential to stimulate further research in graph neural networks for representation learning in multi-task IE. We make DWIE publicly available at https://github.com/klimzaporojets/DWIE.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2009.12626")
get_code_for_paper("2009.12626")
have("2009.12626")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2009.12626.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2009.12626.svg)](https://syntology.ai/paper/2009.12626)

Connect an agent — have() is free.