SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2024.findings-acl.760 · ACL Findings · 2024

TEXTEE: Benchmark, Reevaluation, Reflections, and Future Challenges in Event Extraction

Kai-Wei Chang, Nanyun Peng, Heng, Kuan-Hao Huang, I-Hung Hsu, Premkumar Natarajan, Zhiyu Xie, Zixuan Zhang, Tanmay Parekh

Open in the Atlas

Code that ran

11 of 12 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 7 have no contract verdict; 3 failures of our instrument; 1 no recorded run), measured 2026-11-24; 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/2024.findings-acl.760.json · badge: /api/ran/2024.findings-acl.760.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
ej0cl6/TextEE canonical (classifier label)
classifier basis: census
11 ran · 1 no recorded run
FunctionStatusWhere it lives
compute_EAE_scores Ran
ran on a synthesized input
ej0cl6/TextEE/TextEE/scorer.py
code served (permissive licence) · get_code("9e83f20e191971a7")
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.

def compute_f1(predicted, gold, matched):
    precision = (matched / predicted) if predicted > 0 else 0.0
    recall = (matched / gold) if gold > 0 else 0.0
    f1 = (2 * precision * recall / (precision + recall)) if (precision + recall) > 0 else 0.0
    return (precision * 100.0, recall * 100.0, f1 * 100.0)

preds = [
    {
        'doc_id': 'doc_1',
        'wnd_id': 'wnd_1',
        'trigger': ('trigger_start', 'trigger_end', 'trigger_type_1'),
        'arguments': [
            (0, 5, 'arg_type_1'),
            (10, 15, 'arg_type_2'),
        ]
    },
    {
        'doc_id': 'doc_2',
        'wnd_id': 'wnd_2',
        'trigger': ('trigger_start_2', 'trigger_end_2', 'trigger_type_2'),
        'arguments': [
            (2, 8, 'arg_type_1'),
        ]
    }
]

golds = [
    {
        'doc_id': 'doc_1',
        'wnd_id': 'wnd_1',
        'trigger': ('trigger_start', 'trigger_end', 'trigger_type_1'),
        'arguments': [
            (0, 5, 'arg_type_1'),
            (12, 17, 'arg_type_3'),
        ]
    },
    {
        'doc_id': 'doc_2',
        'wnd_id': 'wnd_2',
        'trigger': ('trigger_start_2', 'trigger_end_2', 'trigger_type_2'),
        'arguments': [
            (2, 8, 'arg_type_1'),
            (20, 25, 'arg_type_2'),
        ]
    }
]

metrics = {'argument_id', 'argument_cls', 'argument_attached_id', 'argument_attached_cls'}

ARGS = {
    'preds': preds,
    'golds': golds,
    'metrics': metrics
}
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
compute_ED_scores Ran
ran; our contract draft was wrong, not the code
ej0cl6/TextEE/TextEE/scorer.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from pluslabnlp/clap, is pointer only (licence: NONE) · get_code("c87e701f7fb5b972")
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 pluslabnlp/clap, 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.

generate_global_feature_maps Ran
ran on a synthesized input
ej0cl6/TextEE/TextEE/models/AMRIE/global_feature.py
code served (permissive licence) · get_code("824b3574717f01fd")
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

torch.manual_seed(0)

# Create small vocabulary dictionaries
# Values must be non-zero integers (the code checks "if role and role2", etc.)
event_type_vocab = {
    'pad': 0,
    'event1': 1,
    'event2': 2,
}

entity_type_vocab = {
    'pad': 0,
    'entity1': 1,
    'entity2': 2,
}

role_type_vocab = {
    'pad': 0,
    'role1': 1,
    'role2': 2,
}

relation_type_vocab = {
    'pad': 0,
    'relation1': 1,
    'relation2': 2,
}

vocabs = {
    'event_type': event_type_vocab,
    'entity_type': entity_type_vocab,
    'role_type': role_type_vocab,
    'relation_type': relation_type_vocab,
}

# Create valid_patterns with event_role entries
# event_role format appears to be: event * 1000 + role
event_role = [
    1 * 1000 + 1,  # event1, role1
    1 * 1000 + 2,  # event1, role2
    2 * 1000 + 1,  # event2, role1
    2 * 1000 + 2,  # event2, role2
]

valid_patterns = {
    'event_role': event_role,
}

ARGS = {
    'vocabs': vocabs,
    'valid_patterns': valid_patterns,
}
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 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
generate_global_feature_vector Ran
ran on a synthesized input
ej0cl6/TextEE/TextEE/models/AMRIE/global_feature.py
code served (permissive licence) · get_code("c6e30c4d2f172d4f")
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 1, dtype family float, shape (24,) 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 numpy as np
from collections import Counter

class MockGraph:
    def __init__(self):
        self.entity_num = 4
        self.trigger_num = 3
        # entities: list of tuples where last element is entity type
        self.entities = [
            (0, 1, 2),  # entity 0, type 2
            (1, 2, 3),  # entity 1, type 3
            (2, 3, 4),  # entity 2, type 4
            (3, 4, 5),  # entity 3, type 5
        ]
        # triggers: list of tuples where last element is event type
        self.triggers = [
            (0, 1, 10),  # trigger 0, event type 10
            (1, 2, 11),  # trigger 1, event type 11
            (2, 3, 12),  # trigger 2, event type 12
        ]
        # roles: list of (trigger_idx, entity_idx, role)
        self.roles = [
            (0, 0, 1),
            (0, 1, 2),
            (1, 1, 1),
            (1, 2, 3),
            (2, 2, 1),
            (2, 3, 2),
        ]
        # relations: list of (entity_idx1, entity_idx2, relation)
        self.relations = [
            (0, 1, 5),
            (1, 2, 6),
            (2, 3, 5),
        ]

def create_global_feature_maps():
    """Create minimal global feature maps with expected keys."""
    return {
        'role_role': {101: 0, 102: 1, 203: 2},
        'role_entity': {102: 0, 203: 1, 314: 2},
        'event_role_num': {10011: 0, 10021: 1, 11012: 2},
        'multi_role': {1: 0, 2: 1},
        'event_role_event_role': {10000100011: 0, 10000100012: 1},
        'relation_entity_entity': {50203: 0, 60304: 1},
        'relation_entity': {502: 0, 603: 1},
        'relation_role_role': {50102: 0, 60203: 1},
        'multi_relation': {5: 0, 6: 1},
        'relation_relation': {56: 0},
        'multi_event': {10: 0, 11: 1},
    }

graph = MockGraph()
global_feature_maps = create_global_feature_maps()

ARGS = {
    'graph': graph,
    'global_feature_maps': global_feature_maps,
    'features': None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (24,) — shape (24,) 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
get_entity_labels Ran
ran on a synthesized input
ej0cl6/TextEE/TextEE/models/AMRIE/data.py
code served (permissive licence) · get_code("7ec0809d90de5c2a")
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 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
import numpy as np

# Construct valid arguments for get_entity_labels

# entities: a list of entity mentions, each with 'start', 'end', and optionally 'entity_type'
entities = [
    {'start': 0, 'end': 2, 'entity_type': 'PERSON'},
    {'start': 4, 'end': 6, 'entity_type': 'ORG'},
    {'start': 8, 'end': 9, 'entity_type': 'LOC'}
]

# token_num: the number of tokens in the sequence
token_num = 12

ARGS = {
    'entities': entities,
    'token_num': token_num
}
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 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_trigger_labels Ran
ran on a synthesized input
ej0cl6/TextEE/TextEE/models/AMRIE/data.py
code served (permissive licence) · get_code("c92222981e1a0a3f")
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 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
import numpy as np

ARGS = {
    'events': [
        {
            'trigger': {'start': 0, 'end': 2},
            'event_type': 'Attack'
        },
        {
            'trigger': {'start': 3, 'end': 5},
            'event_type': 'Meeting'
        }
    ],
    'token_num': 7
}
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 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
log_sum_exp Ran
ran; our contract draft was wrong, not the code
ej0cl6/TextEE/TextEE/models/AMRIE/E2Emodel.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from PlusLabNLP/TagPrime, is pointer only (licence: NONE) · get_code("bd9ad74746bdeace")
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 PlusLabNLP/TagPrime, 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.

parse_unknown_args Ran
ran on a synthesized input
ej0cl6/TextEE/TextEE/utils.py
code served (permissive licence) · get_code("3d492ba1ee83be5d")
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 parse_unknown_args(unknown_args):
    args = {}
    key = None
    for unknown_arg in unknown_args:
        if unknown_arg.startswith('--'):
            key = unknown_arg[2:]
        else:
            args[key] = unknown_arg
    return args

ARGS = {
    'unknown_args': ['--learning_rate', '0.001', '--batch_size', '32', '--epochs', '10']
}
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 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
remove_overlap_entities Ran
ran on a synthesized input
ej0cl6/TextEE/TextEE/models/AMRIE/data.py
code served (permissive licence) · get_code("006b8e682f7dfff0")
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

# Construct a list of entity mentions as dictionaries
# Each entity has 'id', 'start', and 'end' keys
entities = [
    {'id': 1, 'start': 0, 'end': 3},
    {'id': 2, 'start': 5, 'end': 8},
    {'id': 3, 'start': 2, 'end': 6},  # overlaps with entity 1
    {'id': 4, 'start': 10, 'end': 12},
]

ARGS = {
    'entities': entities,
}
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 — 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
sequence_mask Ran
ran; our contract draft was wrong, not the code
ej0cl6/TextEE/TextEE/models/AMRIE/E2Emodel.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from PlusLabNLP/TagPrime, is pointer only (licence: NONE) · get_code("f9379a80bc4cfd5a")
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 PlusLabNLP/TagPrime, 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.

token_lens_to_offsets Ran
ran, honoured the contract we drafted
ej0cl6/TextEE/TextEE/models/AMRIE/E2Emodel.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from PlusLabNLP/TagPrime, is pointer only (licence: NONE) · get_code("c5fe6d1a240e86e5")
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 PlusLabNLP/TagPrime, 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.

compute_scores Not yet run
unverified (harvested, no recorded run)
ej0cl6/TextEE/TextEE/scorer.py
code served (permissive licence) · get_code("ebd82851bd00af87")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 0 later) and 6 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
token_lens_to_offsets 3 other papers
3 dated earlier
2203.08929 (2022-03)
An Analysis of Negation in Natural Language Understanding Corpora
2205.12585 (2022-05)
TAGPRIME: A Unified Framework for Relational Structure Extraction
2210.12582 (2022-10)
Language Model Pre-Training with Sparse Latent Typing
log_sum_exp 2 other papers
2 dated earlier
2205.12585 (2022-05)
TAGPRIME: A Unified Framework for Relational Structure Extraction
2210.12582 (2022-10)
Language Model Pre-Training with Sparse Latent Typing
sequence_mask 2 other papers
2 dated earlier
2205.12585 (2022-05)
TAGPRIME: A Unified Framework for Relational Structure Extraction
2210.12582 (2022-10)
Language Model Pre-Training with Sparse Latent Typing
compute_ED_scores 1 other paper
1 dated earlier
2309.08943 (2023-09)
Contextual Label Projection for Cross-Lingual Structured Prediction
get_trigger_labels 1 other paper
1 dated earlier
2210.12582 (2022-10)
Language Model Pre-Training with Sparse Latent Typing
remove_overlap_entities 1 other paper
1 dated earlier
2210.12582 (2022-10)
Language Model Pre-Training with Sparse Latent Typing

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

Repositories linked to this paper

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

Abstract

Event extraction has gained considerable interest due to its wide-ranging applications. However, recent studies draw attention to evaluation issues, suggesting that reported scores may not accurately reflect the true performance. In this work, we identify and address evaluation challenges, including inconsistency due to varying data assumptions or preprocessing steps, the insufficiency of current evaluation frameworks that may introduce dataset or data split bias, and the low reproducibility of some previous approaches. To address these challenges, we present TEXTEE, a standardized, fair, and reproducible benchmark for event extraction. TEXTEE comprises standardized data preprocessing scripts and splits for 16 datasets spanning eight diverse domains and includes 14 recent methodologies, conducting a comprehensive benchmark reevaluation. We also evaluate five varied large language models on our TEXTEE benchmark and demonstrate how they struggle to achieve satisfactory performance. Inspired by our reevaluation results and findings, we discuss the role of event extraction in the current NLP era, as well as future challenges and insights derived from TEXTEE. We believe TEXTEE, the first standardized comprehensive benchmarking tool, will significantly facilitate future event extraction research. 1

For agents

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

get_harvested_code_for_paper("2024.findings-acl.760")
get_code_for_paper("2024.findings-acl.760")
have("2024.findings-acl.760")

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

curl https://syntology.ai/api/ran/2024.findings-acl.760.json

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

[![Syntology run record](https://syntology.ai/api/ran/2024.findings-acl.760.svg)](https://syntology.ai/paper/2024.findings-acl.760)

Connect an agent — have() is free.