SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1804.05392 · 2018

Higher-order Coreference Resolution with Coarse-to-fine Inference

arXiv · PDF · Open in the Atlas

Code that ran

17 of 23 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 12 have no contract verdict; 4 failures of our instrument; 6 no recorded run), measured 2026-11-23; 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/1804.05392.json · badge: /api/ran/1804.05392.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
kentonl/e2e-coref canonical (classifier label)
classifier basis: census
5 ran · 1 no recorded run
Filter-Bubble/e2e-Dutch community (classifier label)
classifier basis not recorded on the link
7 ran · 2 no recorded run
bkntr/coref-ee community (classifier label)
classifier basis not recorded on the link
5 ran · 3 no recorded run
FunctionStatusWhere it lives
b_cubed Ran
ran on a synthesized input
kentonl/e2e-coref/metrics.py
code served (permissive licence) · get_code("3643e9b2dc2db0a3")
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, ndim 1, 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.

from collections import Counter

def b_cubed(clusters, mention_to_gold):
    num, dem = (0, 0)
    for c in clusters:
        if len(c) == 1:
            continue
        gold_counts = Counter()
        correct = 0
        for m in c:
            if m in mention_to_gold:
                gold_counts[tuple(mention_to_gold[m])] += 1
        for c2, count in gold_counts.items():
            if len(c2) != 1:
                correct += count * count
        num += correct / float(len(c))
        dem += len(c)
    return (num, dem)


# Setup code
ARGS = {
    "clusters": [
        ["mention_0", "mention_1", "mention_2"],
        ["mention_3", "mention_4"],
        ["mention_5"]
    ],
    "mention_to_gold": {
        "mention_0": ("entity_A", "entity_B"),
        "mention_1": ("entity_A", "entity_B"),
        "mention_2": ("entity_A", "entity_B"),
        "mention_3": ("entity_C", "entity_D"),
        "mention_4": ("entity_C", "entity_D"),
        "mention_5": ("entity_E",),
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple 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
create_example Ran
ran on a synthesized input
Filter-Bubble/e2e-Dutch/e2edutch/util.py
code served (permissive licence) · get_code("ed6c424cfbcc05d2")
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 dict. 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

def create_example(text, doc_key='example'):
    import stanza
    stanza.download('nl')
    nlp = stanza.Pipeline('nl', processors='tokenize')
    doc = nlp(text)
    sentences = [[token['text'] for token in sentence] for sentence in doc.to_dict()]
    return {'doc_key': doc_key, 'clusters': [], 'sentences': sentences}

# Mock stanza to avoid network calls
import sys
from unittest.mock import Mock, MagicMock, patch

class MockToken:
    def __init__(self, text):
        self.data = {'text': text}
    
    def __getitem__(self, key):
        return self.data[key]

class MockSentence:
    def __init__(self, tokens):
        self.tokens = [MockToken(t) for t in tokens]
    
    def __iter__(self):
        return iter(self.tokens)

class MockDoc:
    def __init__(self, sentences_data):
        self.sentences_data = sentences_data
    
    def to_dict(self):
        result = []
        for sent in self.sentences_data:
            result.append([{'text': token} for token in sent])
        return result

class MockPipeline:
    def __init__(self, lang, processors=None):
        pass
    
    def __call__(self, text):
        # Simple mock tokenization
        tokens = text.split()
        return MockDoc([tokens])

mock_stanza = Mock()
mock_stanza.Pipeline = MockPipeline
mock_stanza.download = Mock()

sys.modules['stanza'] = mock_stanza

# Now define ARGS
ARGS = {
    'text': 'Dit is een test zin voor stanza tokenization.',
    'doc_key': 'test_doc'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, stanza, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
encode_sentences Ran
ran on a synthesized input
Filter-Bubble/e2e-Dutch/e2edutch/bert.py
code served (permissive licence) · get_code("611737050d77ba8e")
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 ndarray, ndim 4, dtype family float, shape (2, 2, 4, 1) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 torch.nn as nn
import numpy as np

torch.manual_seed(0)

class SimpleTokenizer:
    def tokenize(self, word):
        # Split word into subword tokens (e.g., "hello" -> ["he", "llo"])
        if len(word) <= 2:
            return [word]
        else:
            return [word[:2], word[2:]]
    
    def convert_tokens_to_ids(self, tokens):
        # Simple mapping: each unique token gets an id
        token_to_id = {
            'he': 1, 'llo': 2, 'wo': 3, 'rld': 4,
            'foo': 5, 'bar': 6, 'ba': 7, 'z': 8,
            '[PAD]': 0
        }
        return [token_to_id.get(tok, 1) for tok in tokens]

class SimpleBertModel(nn.Module):
    def __init__(self, vocab_size=100, hidden_dim=4):
        super(SimpleBertModel, self).__init__()
        self.embedding = nn.Embedding(vocab_size, hidden_dim)
        self.linear = nn.Linear(hidden_dim, hidden_dim)
    
    def forward(self, input_ids):
        # Returns tuple of (output, pooled_output)
        # output shape: (batch_size, seq_len, hidden_dim)
        embedded = self.embedding(input_ids)
        output = self.linear(embedded)
        pooled = output[:, 0, :]
        return output, pooled

tokenizer = SimpleTokenizer()
model = SimpleBertModel(vocab_size=100, hidden_dim=4)
model.eval()

sentences = [
    ["hello", "world"],
    ["foo", "bar"]
]

ARGS = {
    "sentences": sentences,
    "tokenizer": tokenizer,
    "model": model
}
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 ndarray, ndim 4, dtype family float, shape (2, 2, 4, 1) — shape (2, 2, 4, 1) as a later run recorded it
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
f1 Ran
ran, honoured the contract we drafted
kentonl/e2e-coref/metrics.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from sapienzanlp/bookcoref, is pointer only (licence: NONE) · get_code("5dc251a1bb16c94f")
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 sapienzanlp/bookcoref, 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.

filter_embedded_mentions Ran
ran on a synthesized input
bkntr/coref-ee/data.py
code served (permissive licence) · get_code("e1c488c0a12228b0")
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 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

# The function filter_embedded_mentions takes a list of mentions
# Each mention is a tuple/list of (start, end) positions
# The function filters out mentions that are embedded within other mentions

# Create test data: a list of mentions represented as tuples (start_pos, end_pos)
mentions = [
    (0, 10),    # mention 1: spans from 0 to 10
    (2, 5),     # mention 2: embedded within mention 1
    (15, 20),   # mention 3: separate mention
    (16, 18),   # mention 4: embedded within mention 3
    (25, 30),   # mention 5: separate mention
]

ARGS = {
    "mentions": mentions
}
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 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_activation Ran
ran; our contract draft was wrong, not the code
bkntr/coref-ee/modeling.py
code served (permissive licence) · get_code("2dc172f4dc0c745c")
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) and returned function. 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 tensorflow as tf
import six

def gelu(input_tensor):
    """Gaussian Error Linear Unit.

    This is a smoother version of the RELU.
    Original paper: https://arxiv.org/abs/1606.08415

    Args:
      input_tensor: float Tensor to perform activation.

    Returns:
      `input_tensor` with the GELU activation applied.
    """
    cdf = 0.5 * (1.0 + tf.erf(input_tensor / tf.sqrt(2.0)))
    return input_tensor * cdf

def get_activation(activation_string):
    """Maps a string to a Python function, e.g., "relu" => `tf.nn.relu`.

    Args:
      activation_string: String name of the activation function.

    Returns:
      A Python function corresponding to the activation function. If
      `activation_string` is None, empty, or "linear", this will return None.
      If `activation_string` is not a string, it will return `activation_string`.

    Raises:
      ValueError: The `activation_string` does not correspond to a known
        activation.
    """
    if not isinstance(activation_string, six.string_types):
        return activation_string
    if not activation_string:
        return None
    act = activation_string.lower()
    if act == 'linear':
        return None
    elif act == 'relu':
        return tf.nn.relu
    elif act == 'gelu':
        return gelu
    elif act == 'tanh':
        return tf.tanh
    else:
        raise ValueError('Unsupported activation: %s' % act)

ARGS = {
    'activation_string': 'relu'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
six, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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_doc_key Ran
ran; our contract draft was wrong, not the code
kentonl/e2e-coref/conll.py
code served (permissive licence) · get_code("f300a33fe05fc609")
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 str. 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

def get_doc_key(doc_id, part):
    return '{}_{}'.format(doc_id, int(part))

ARGS = {
    'doc_id': 'doc_123',
    'part': 5
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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_doc_key Ran
ran on a synthesized input
Filter-Bubble/e2e-Dutch/e2edutch/conll.py
code served (permissive licence) · get_code("0b3e399d5766581a")
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 str. 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

ARGS = {
    "doc_id": "doc_123",
    "part": None
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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_prediction_map Ran
ran on a synthesized input
Filter-Bubble/e2e-Dutch/e2edutch/conll.py
code served (permissive licence) · get_code("9546e87ba8191ce9")
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 dict. 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 operator
import collections

# The function expects a dictionary where:
# - keys are document identifiers (strings)
# - values are lists of clusters, where each cluster is a list of (start, end) tuples

predictions = {
    "doc_1": [
        [(0, 0), (5, 5)],  # cluster 0: two single-word mentions
        [(1, 2), (7, 8)],  # cluster 1: two multi-word mentions
        [(3, 3)],           # cluster 2: one single-word mention
    ],
    "doc_2": [
        [(0, 1), (4, 5)],  # cluster 0: two multi-word mentions
        [(2, 2), (6, 6)],  # cluster 1: two single-word mentions
    ]
}

ARGS = {
    "predictions": predictions
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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_reverse_doc_key Ran
ran on a synthesized input
Filter-Bubble/e2e-Dutch/e2edutch/conll.py
code served (permissive licence) · get_code("307916bd2f65b4ed")
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, ndim 1, 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

def get_reverse_doc_key(doc_key):
    segments = doc_key.split('.p.')
    if len(segments) > 1:
        part = segments[-1]
        doc_id = '.p.'.join(segments[:-1])
    else:
        doc_id = doc_key
        part = None
    return (doc_id, part)

ARGS = {
    'doc_key': 'document_123.p.part_456'
}
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 tuple, ndim 1, dtype family float — a tuple 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
index_in_mention Ran
ran on a synthesized input
bkntr/coref-ee/data.py
code served (permissive licence) · get_code("1fddeb8edf3b310c")
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 bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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

def index_in_mention(index, mention):
    return mention[0] <= index and mention[1] >= index

# The function checks if an index falls within a mention range
# mention should be a tuple or list with at least 2 elements: [start, end]
# index should be a numeric value

ARGS = {
    "index": 5,
    "mention": [2, 8]
}
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 bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
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
input_fn_builder Ran
ran on a synthesized input
bkntr/coref-ee/extract_features.py
code served (permissive licence) · get_code("fb8d325e40dbff1b")
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 function. 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 numpy as np
import tensorflow as tf


class SimpleTokenizer:
    """Minimal tokenizer for testing."""
    def convert_tokens_to_ids(self, tokens):
        # Map tokens to simple integer IDs
        return [hash(token) % 1000 for token in tokens]


class SimpleExample:
    """Minimal example object with required attributes."""
    def __init__(self, document_index, tokens, bert_to_orig_map):
        self.document_index = document_index
        self.tokens = tokens
        self.bert_to_orig_map = bert_to_orig_map


# Create minimal test data
tokenizer = SimpleTokenizer()

# Create simple examples with small token sequences
examples = [
    SimpleExample(
        document_index=0,
        tokens=["[CLS]", "hello", "world", "test"],
        bert_to_orig_map=[0, 1, 2, 3]  # All tokens are valid (>= 0)
    ),
    SimpleExample(
        document_index=1,
        tokens=["[CLS]", "foo", "bar"],
        bert_to_orig_map=[0, 1, 2]
    )
]

window_size = 3  # Must be odd
stride = 1       # Must be odd

ARGS = {
    "examples": examples,
    "window_size": window_size,
    "stride": stride,
    "tokenizer": tokenizer
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
make_summary Ran
ran; our contract draft was wrong, not the code
Filter-Bubble/e2e-Dutch/e2edutch/util.py
code served (permissive licence) · get_code("01664a0b4c74a36e")
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 Summary. 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 tensorflow.compat.v1 as tf

# Disable eager execution for TensorFlow v1 compatibility
tf.disable_eager_execution()

# The function takes a value_dict parameter which is a dictionary
# It iterates over items() and creates tf.Summary.Value objects with tag (key) and simple_value (value)
# The simple_value expects a numeric value
# So we need a dict with string keys and numeric values

ARGS = {
    "value_dict": {
        "loss": 0.5,
        "accuracy": 0.95,
        "learning_rate": 0.001
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Summary — a Summary output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Summary output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
mention_contains Ran
ran on a synthesized input
bkntr/coref-ee/data.py
code served (permissive licence) · get_code("baf41dd8b65076e6")
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 bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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)

# mention_contains checks if mention1 contains mention2
# by comparing their span positions (start, end)
# mention1 and mention2 are expected to be tuples/lists with at least 2 elements
# where [0] is the start index and [1] is the end index

mention1 = (0, 10)
mention2 = (2, 8)

ARGS = {
    "mention1": mention1,
    "mention2": mention2,
}
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 bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
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
normalize_word Ran
ran; our contract draft was wrong, not the code
Filter-Bubble/e2e-Dutch/e2edutch/minimize.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.

normalize_word Ran
ran on a synthesized input
kentonl/e2e-coref/minimize.py
code served (permissive licence) · get_code("3b625164c1147fcf")
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 str. 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.

ARGS = {
    'word': '/.',
    'language': 'arabic'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
official_conll_eval Ran
ran on a synthesized input
kentonl/e2e-coref/conll.py
code served (permissive licence) · get_code("5712dc7b00cdd758")
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 dict. 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 re
import subprocess
import tempfile
import os

# Create temporary files with mock data
gold_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
predicted_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')

# Write minimal valid CoNLL format data
gold_content = """#begin document (doc1); part 000
doc1	0	0	The	DT	(TOP(S(NP*)	-	-	-	-	*	(0
doc1	0	1	cat	NN	*)	-	-	-	-	*	0)
doc1	0	2	sat	VBD	(VP*)	-	-	-	-	*	-
#end document
"""

predicted_content = """#begin document (doc1); part 000
doc1	0	0	The	DT	(TOP(S(NP*)	-	-	-	-	*	(0
doc1	0	1	cat	NN	*)	-	-	-	-	*	0)
doc1	0	2	sat	VBD	(VP*)	-	-	-	-	*	-
#end document
"""

gold_file.write(gold_content)
gold_file.close()

predicted_file.write(predicted_content)
predicted_file.close()

# Create a mock scorer script that outputs valid coreference results
scorer_dir = tempfile.mkdtemp()
scorer_script = os.path.join(scorer_dir, 'scorer.pl')
os.makedirs(os.path.dirname(scorer_script), exist_ok=True)

with open(scorer_script, 'w') as f:
    f.write("""#!/usr/bin/env perl
print "Coreference: Recall: (1 / 1) 100.0%\\tPrecision: (1 / 1) 100.0%\\tF1: 100.0%\\n";
""")
os.chmod(scorer_script, 0o755)

# Patch the subprocess to handle our mock script
original_popen = subprocess.Popen

class MockPopen:
    def __init__(self, cmd, **kwargs):
        self.returncode = 0
        self.stdout = kwargs.get('stdout')
    
    def communicate(self):
        stdout = b"Coreference: Recall: (1 / 1) 100.0%\tPrecision: (1 / 1) 100.0%\tF1: 100.0%\n"
        return stdout, None
    
    def wait(self):
        return 0

subprocess.Popen = MockPopen

ARGS = {
    'gold_path': gold_file.name,
    'predicted_path': predicted_file.name,
    'metric': 'muc',
    'official_stdout': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
evaluate_conll Not yet run
unverified (harvested, no recorded run)
kentonl/e2e-coref/conll.py
code served (permissive licence) · get_code("926accff13df41f1")
How it ran

no invocation recorded.

evaluate_conll Not yet run
unverified (harvested, no recorded run)
bkntr/coref-ee/conll.py
code served (permissive licence) · get_code("00a3badc95e7a110")
How it ran

no invocation recorded.

evaluate_documents Not yet run
unverified (harvested, no recorded run)
Filter-Bubble/e2e-Dutch/e2edutch/metrics.py
code served (permissive licence) · get_code("fb091f0baeb8754b")
How it ran

no invocation recorded.

gelu Not yet run
unverified (harvested, no recorded run)
bkntr/coref-ee/modeling.py
code served (permissive licence) · get_code("6558b9f62bb65244")
How it ran

no invocation recorded.

get_assignment_map_from_checkpoint Not yet run
unverified (harvested, no recorded run)
bkntr/coref-ee/modeling.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from toggle1995/RIS-DMMI, is pointer only (licence: NONE) · get_code("50958618b65e514e")
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 toggle1995/RIS-DMMI, 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. No invocation recorded.

load_bert Not yet run
unverified (harvested, no recorded run)
Filter-Bubble/e2e-Dutch/e2edutch/bert.py
code served (permissive licence) · get_code("0eb897cb891b4790")
How it ran

no invocation recorded.

Also present in other papers' code

Of 23 samples lifted from this paper's linked repositories, 23 carry a function identity and 0 do not. Of the 22 distinct functions with an identity, 12 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 12 later) and 10 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
get_activation 32 other papers
32 later · 1 only as an assembly brick
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1901.04085 (2019-01)
Passage Re-ranking with BERT
1901.08746 (2019-01)
BioBERT: a pre-trained biomedical language representation model for biomedical text mining
and 29 more not named here
get_assignment_map_from_checkpoint 26 other papers
26 later
1808.09781 (2018-08)
Self-Attentive Sequential Recommendation
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1901.04085 (2019-01)
Passage Re-ranking with BERT
and 23 more not named here
gelu 16 other papers
1 dated earlier, 15 later · 2 only as an assembly brick
1706.03762 (2017-06)
Attention Is All You Need
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1901.04085 (2019-01)
Passage Re-ranking with BERT
and 13 more not named here
f1 12 other papers
12 later
1907.10529 (2019-07)
SpanBERT: Improving Pre-training by Representing and Predicting Spans
2021.naacl-main.125 (2021 (year only))
Incorporating Syntax and Semantics in Coreference Resolution with Heterogeneous Graph Attention Network
2109.04901 (2021-09)
Document-level Entity-based Extraction as Template Generation
and 9 more not named here
get_doc_key 8 other papers
8 later
1907.10529 (2019-07)
SpanBERT: Improving Pre-training by Representing and Predicting Spans
2021.naacl-main.125 (2021 (year only))
Incorporating Syntax and Semantics in Coreference Resolution with Heterogeneous Graph Attention Network
2109.06067 (2021-09)
Packed Levitated Marker for Entity and Relation Extraction
and 5 more not named here
evaluate_documents 4 other papers
4 later
2205.10475 (2022-05)
DEEPSTRUCT: Pretraining of Language Models for Structure Prediction
2310.13774 (2023-10)
Seq2seq is All You Need for Coreference Resolution
2311.03748 (2023-11)
Unified Low-Resource Sequence Labeling by Sample-Aware Dynamic Sparse Finetuning
and 1 more not named here
normalize_word 4 other papers
4 later
1907.10529 (2019-07)
SpanBERT: Improving Pre-training by Representing and Predicting Spans
2021.naacl-main.125 (2021 (year only))
Incorporating Syntax and Semantics in Coreference Resolution with Heterogeneous Graph Attention Network
2202.10710 (2022-02)
Incorporating Constituent Syntax for Coreference Resolution
and 1 more not named here
b_cubed 3 other papers
3 later
2202.10710 (2022-02)
Incorporating Constituent Syntax for Coreference Resolution
2205.12644 (2022-05)
LingMess: Linguistically Informed Multi Expert Scorers for Coreference Resolution
2024.acl-srw.56 (2024 (year only))
Z-coref: Thai Coreference and Zero Pronoun Resolution
input_fn_builder 2 other papers
2 later
2005.07150 (2020-05)
Named Entity Recognition as Dependency Parsing
2022.acl-long.56 (2022 (year only))
Constrained Multi-Task Learning for Bridging Resolution
make_summary 2 other papers
2 later
2005.07150 (2020-05)
Named Entity Recognition as Dependency Parsing
2022.acl-long.56 (2022 (year only))
Constrained Multi-Task Learning for Bridging Resolution
normalize_word 2 other papers
1 dated earlier, 1 later
1707.07045 (2017-07)
End-to-end Neural Coreference Resolution
2009.12626 (2020-09)
DWIE: an entity-centric dataset for multi-task document-level information extraction
official_conll_eval 2 other papers
2 later
1907.10529 (2019-07)
SpanBERT: Improving Pre-training by Representing and Predicting Spans
2202.10710 (2022-02)
Incorporating Constituent Syntax for Coreference Resolution

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-23.

Repositories linked to this paper

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

Abstract

We introduce a fully differentiable approximation to higher-order inference for coreference resolution. Our approach uses the antecedent distribution from a span-ranking architecture as an attention mechanism to iteratively refine span representations. This enables the model to softly consider multiple hops in the predicted clusters. To alleviate the computational cost of this iterative process, we introduce a coarse-to-fine approach that incorporates a less accurate but more efficient bilinear factor, enabling more aggressive pruning without hurting accuracy. Compared to the existing state-of-the-art span-ranking approach, our model significantly improves accuracy on the English OntoNotes benchmark, while being far more computationally efficient.

For agents

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

get_harvested_code_for_paper("1804.05392")
get_code_for_paper("1804.05392")
have("1804.05392")

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

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

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

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

Connect an agent — have() is free.