SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · ijcai2022_0632 · IJCAI · 2022

Efficient Document-level Event Extraction via Pseudo-Trigger-aware Pruned Complete Graph

Min Zhang, Xiaoye Qu, Zhefeng Wang, Nicholas Yuan, Baoxing Huai, Wenliang Chen, Tong Zhu

Code that ran

12 of 13 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; 0 honoured the contract we drafted, 0 violated it and 11 have no contract verdict; 1 failure 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/ijcai2022_0632.json · badge: /api/ran/ijcai2022_0632.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
Spico197/DocEE canonical (classifier label)
classifier basis: census
12 ran · 1 no recorded run
FunctionStatusWhere it lives
agg_event_level_tpfpfn_stats Ran
ran on a synthesized input
Spico197/DocEE/dee/metrics.py
code served (permissive licence) · get_code("86afb5f87f0a3603")
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 numpy as np

# Understanding the function:
# - pred_records: list of records, each record is a tuple of role arguments
# - gold_records: list of records, each record is a tuple of role arguments
# - role_num: integer specifying number of roles
# - Each argument in a record can be None or a comparable value (supports == operator)
# - Returns a list of [TP, FP, FN] counts aggregated across all roles

# Create test data
role_num = 3

# Case 1: Both pred and gold records with some matches
pred_records = [
    ("arg1_1", "arg1_2", "arg1_3"),  # Record 1: 3 arguments
    ("arg2_1", None, "arg2_3"),       # Record 2: 2 arguments
]

gold_records = [
    ("arg1_1", "arg1_2", "arg1_3"),  # Perfect match with pred record 1
    (None, "gold2_2", None),          # Partial match
]

ARGS = {
    "pred_records": pred_records,
    "gold_records": gold_records,
    "role_num": role_num,
}
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 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
agg_event_role_tpfpfn_stats Ran
ran on a synthesized input
Spico197/DocEE/dee/metrics.py
code served (permissive licence) · get_code("92e7c72e0bc10790")
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
import numpy as np

# Set random seed for reproducibility
torch.manual_seed(0)

# Construct valid arguments for agg_event_role_tpfpfn_stats

# role_num: number of roles in an event record
role_num = 3

# pred_records: list of predicted records, each record is a tuple of arguments (one per role)
# Each argument can be a string, int, or None
pred_records = [
    ("agent1", "patient1", None),      # Record 1: 2 non-None arguments
    ("agent2", None, "location1"),     # Record 2: 2 non-None arguments
    (None, "patient2", None),          # Record 3: 1 non-None argument
]

# gold_records: list of gold/ground-truth records, same format as pred_records
gold_records = [
    ("agent1", "patient1", None),      # Matches pred_records[0] exactly
    ("agent2", "different_patient", "location1"),  # Partially matches pred_records[1]
    (None, "patient3", None),          # Different from pred_records[2]
]

ARGS = {
    "pred_records": pred_records,
    "gold_records": gold_records,
    "role_num": role_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 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
agg_ins_event_role_tpfpfn_stats Ran
ran on a synthesized input
Spico197/DocEE/dee/metrics.py
code served (permissive licence) · get_code("e0cf80a519aacdb3")
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. 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.

# Setup code for agg_ins_event_role_tpfpfn_stats

# Analyze the function:
# - pred_record_mat: list of lists of tuples (event index -> record index -> role tuple)
# - gold_record_mat: same structure as pred_record_mat
# - event_role_num_list: list of role counts per event
# Each role tuple contains arguments that support '=' operation and can be None

# Create sample data for 2 events
# Event 0: 3 roles, Event 1: 2 roles

# Event 0: 3 roles
# Predicted records: 2 records with 3 roles each
pred_records_event_0 = [
    ("entity1", "rel1", None),      # Record 1: 3 roles, 2 non-None
    ("entity1", None, "arg3"),      # Record 2: 3 roles, 2 non-None
]

# Gold records: 2 records with 3 roles each
gold_records_event_0 = [
    ("entity1", "rel1", "arg3"),    # Record 1: 3 roles, 3 non-None
    ("entity2", "rel2", None),      # Record 2: 3 roles, 2 non-None
]

# Event 1: 2 roles
# Predicted records: 1 record with 2 roles
pred_records_event_1 = [
    ("mention1", "type1"),          # Record 1: 2 roles, 2 non-None
]

# Gold records: 1 record with 2 roles
gold_records_event_1 = [
    ("mention1", "type1"),          # Record 1: 2 roles, 2 non-None
]

# Combine into matrices
pred_record_mat = [
    pred_records_event_0,
    pred_records_event_1,
]

gold_record_mat = [
    gold_records_event_0,
    gold_records_event_1,
]

# Event role number list: [3 roles for event 0, 2 roles for event 1]
event_role_num_list = [3, 2]

ARGS = {
    "pred_record_mat": pred_record_mat,
    "gold_record_mat": gold_record_mat,
    "event_role_num_list": event_role_num_list,
}
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 list — a list 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
create_doc_id2IPO_index Ran
ran on a synthesized input
Spico197/DocEE/dueefin_post_process.py
code served (permissive licence) · get_code("3d617dffd2bf5ed8")
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.

from collections import Counter, defaultdict

# Analyze the function: it expects 'data' to be an iterable of dicts
# Each dict should have:
#   - 'id': a document identifier
#   - 'pred': a dict with a 'label' key
# The function groups labels by id and returns the most common label per id

data = [
    {'id': 'doc1', 'pred': {'label': 'A'}},
    {'id': 'doc1', 'pred': {'label': 'A'}},
    {'id': 'doc1', 'pred': {'label': 'B'}},
    {'id': 'doc2', 'pred': {'label': 'X'}},
    {'id': 'doc2', 'pred': {'label': 'Y'}},
    {'id': 'doc2', 'pred': {'label': 'X'}},
    {'id': 'doc3', 'pred': {'label': 'Z'}},
]

ARGS = {
    'data': data
}
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
create_field2class_index Ran
ran on a synthesized input
Spico197/DocEE/dueefin_post_process.py
code served (permissive licence) · get_code("a3dd585370570f8e")
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 defaultdict. 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.

from collections import Counter, defaultdict

# Construct et_fields_list: a list of tuples where each tuple is (type_name, fields)
# type_name is a string identifier for an entity type
# fields is an iterable of field names

et_fields_list = [
    ("EntityType1", ["field_a", "field_b", "field_c"]),
    ("EntityType2", ["field_b", "field_d"]),
    ("EntityType3", ["field_a", "field_e"]),
    ("EntityType4", ["field_c", "field_d", "field_f"]),
]

ARGS = {
    "et_fields_list": et_fields_list
}
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 defaultdict — a defaultdict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a defaultdict 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_many_key_sent_event Ran
ran on a synthesized input
Spico197/DocEE/dee/models/dcfee.py
code served (permissive licence) · get_code("89fa0d5eb20e5a08")
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 3, 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 defaultdict

# Construct arguments for get_many_key_sent_event

# key_sent_idx: the sentence index we're looking for
key_sent_idx = 0

# num_fields: total number of fields
num_fields = 3

# field_idx2span_token_tup2dranges: a dict mapping field_idx to another dict
# that maps token tuples to lists of (sent_idx, char_start, char_end) tuples
field_idx2span_token_tup2dranges = {
    0: {
        ("token", "a"): [(0, 0, 5), (1, 10, 15)],
        ("token", "b"): [(0, 6, 11)],
    },
    1: {
        ("token", "c"): [(0, 12, 17), (2, 20, 25)],
        ("token", "d"): [(1, 5, 10)],
    },
    2: {
        ("token", "e"): [(0, 18, 23)],
        ("token", "f"): [(0, 24, 29), (1, 30, 35)],
    },
}

ARGS = {
    "key_sent_idx": key_sent_idx,
    "num_fields": num_fields,
    "field_idx2span_token_tup2dranges": field_idx2span_token_tup2dranges,
}
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 list, ndim 3, 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_one_key_sent_event Ran
ran on a synthesized input
Spico197/DocEE/dee/models/dcfee.py
code served (permissive licence) · get_code("f197fec2ba9f70fb")
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

# Analyze the function:
# - key_sent_idx: an integer representing a sentence index
# - num_fields: an integer for the number of fields
# - field_idx2span_token_tup2dranges: a dict where:
#   - keys are field indices (0 to num_fields-1)
#   - values are dicts where:
#     - keys are token_tup (tuples)
#     - values are lists of dranges, where each drange is a tuple of (sent_idx, val2, val3)

# Construct small valid arguments
key_sent_idx = 5

num_fields = 3

# Build field_idx2span_token_tup2dranges
field_idx2span_token_tup2dranges = {}

for field_idx in range(num_fields):
    token_tup2dranges = {}
    
    # Add a few token tuples with their dranges
    token_tup2dranges[("token", "a")] = [
        (2, 0, 1),
        (8, 1, 2),
    ]
    token_tup2dranges[("token", "b")] = [
        (1, 0, 1),
        (10, 1, 2),
    ]
    token_tup2dranges[("token", "c")] = [
        (7, 0, 1),
    ]
    
    field_idx2span_token_tup2dranges[field_idx] = token_tup2dranges

ARGS = {
    "key_sent_idx": key_sent_idx,
    "num_fields": num_fields,
    "field_idx2span_token_tup2dranges": field_idx2span_token_tup2dranges,
}
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
load_evaluate_results Ran
ran on a synthesized input
Spico197/DocEE/print_eval.py
code served (permissive licence) · get_code("0027da302125212c")
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 json
import os
import tempfile
from pathlib import Path

# Create a temporary directory structure to mock the file system
temp_dir = tempfile.mkdtemp()
task_name = "test_task"
model = "test_model"
dataset = "test_dataset"
span_type = "test_span"
epoch = "1"
data_type = "test_data_type"

# Create the nested directory structure
exp_dir = Path(temp_dir) / "Exps" / task_name / "Output"
exp_dir.mkdir(parents=True, exist_ok=True)

# Create a mock results JSON file
mock_results = {
    "test_data_type": {
        "accuracy": 0.95,
        "f1": 0.92,
        "precision": 0.91,
        "recall": 0.93
    }
}

json_file_path = exp_dir / f"dee_eval.{dataset}.{span_type}.{model}.{epoch}.json"
with open(json_file_path, 'w', encoding='utf-8') as f:
    json.dump(mock_results, f)

# Change to the temporary directory so relative paths work
import sys
original_cwd = os.getcwd()
os.chdir(temp_dir)

ARGS = {
    "task_name": task_name,
    "model": model,
    "data_type": data_type,
    "dataset": dataset,
    "span_type": span_type,
    "epoch": epoch
}
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
load_line_json Ran
ran on a synthesized input
Spico197/DocEE/dueefin_post_process.py
code served (permissive licence) · get_code("fc4266f01e1b9cae")
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 json
import tempfile
import os

# Create a temporary directory and a line-delimited JSON file
temp_dir = tempfile.mkdtemp()
filepath = os.path.join(temp_dir, 'test_data.jsonl')

# Write some test data to the file
test_data = [
    {"name": "Alice", "age": 30},
    {"name": "Bob", "age": 25},
    {"name": "Charlie", "age": 35}
]

with open(filepath, 'w', encoding='utf-8') as f:
    for item in test_data:
        f.write(json.dumps(item) + '\n')

ARGS = {
    'filepath': filepath
}
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 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
parse_args Ran
ran; our contract draft was wrong, not the code
Spico197/DocEE/wait.py
code served (permissive licence) · get_code("5f7018b28cf3c813")
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 Namespace. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 argparse

ARGS = {
    'in_args': [
        '--task_name', 'my_task',
        '--cuda', 'cuda:0',
        '--req_gpu_num', '2',
        '--wait', 'schedule'
    ]
}
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 Namespace — a Namespace output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Namespace 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
print_detailed_json Ran
ran on a synthesized input
Spico197/DocEE/print_eval.py
code served (permissive licence) · get_code("be68a42642ab0137")
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

# Analyze what print_detailed_json needs:
# - model: only used as a string value for 'ModelType', so can be a string
# - data: must be a dict with structure:
#   - keys: 'o2o', 'o2m', 'm2m', 'overall'
#   - each value is a dict with measure_type keys like 'classification', 'entity', etc.
#   - each measure_type value has 'MicroPrecision', 'MicroRecall', 'MicroF1' keys with float values

def create_measure_dict():
    """Create a single measure type result with required keys"""
    return {
        'MicroPrecision': 0.85,
        'MicroRecall': 0.78,
        'MicroF1': 0.81
    }

def create_data_type_dict():
    """Create results for one data type (o2o, o2m, m2m, overall)"""
    return {
        'classification': create_measure_dict(),
        'entity': create_measure_dict(),
        'combination': create_measure_dict(),
        'rawCombination': create_measure_dict(),
        'overall': create_measure_dict(),
        'instance': create_measure_dict()
    }

model = "TestModel"

data = {
    'o2o': create_data_type_dict(),
    'o2m': create_data_type_dict(),
    'm2m': create_data_type_dict(),
    'overall': create_data_type_dict()
}

ARGS = {
    'model': model,
    'data': data
}
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
render_results Ran
ran on a synthesized input
Spico197/DocEE/run_dee_task.py
code served (permissive licence) · get_code("a8fb274830e38539")
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 tempfile
import os

# Create a temporary template file
template_content = """
Task: {{ task_name }}
Total Results: {{ total_results }}
SM Results: {{ sm_results }}
Prediction Results: {{ pred_results }}
Gold Results: {{ gold_results }}
"""

with tempfile.NamedTemporaryFile(mode='w', suffix='.html', delete=False, encoding='utf-8') as f:
    f.write(template_content)
    template_filepath = f.name

try:
    data = {
        'task_name': 'sentiment_analysis',
        'total_results': 100,
        'sm_results': 0.95,
        'pred_results': ['positive', 'negative', 'neutral'],
        'gold_results': ['positive', 'negative', 'neutral']
    }
    
    ARGS = {
        'template_filepath': template_filepath,
        'data': data
    }
finally:
    pass
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jinja2 — 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
print_detailed_specified_epoch Not yet run
unverified (harvested, no recorded run)
Spico197/DocEE/print_eval.py
code served (permissive licence) · get_code("410395cf6691e2b4")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 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
parse_args 1 other paper
1 later
2311.05419 (2023-11)
Mirror: A Universal Framework for Various Information Extraction Tasks

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

Most previous studies of document-level event extraction mainly focus on building argument chains in an autoregressive way, which achieves a certain success but is inefficient in both training and inference. In contrast to the previous studies, we propose a fast and lightweight model named as PT-PCG. In our model, we design a novel strategy for event argument combination together with a non-autoregressive decoding algorithm via pruned complete graphs, which are constructed under the guidance of the automatically selected pseudo triggers. Compared to the previous systems, our system achieves competitive results with 19.8% of parameters and much lower resource consumption, taking only 3.8% GPU hours for training and up to 8.5 times faster for inference. Besides, our model shows superior compatibility for the datasets with (or without) triggers and the pseudo triggers can be the supplements for annotated triggers to make further improvements. Codes are available at https: //github.com/Spico197/DocEE .

For agents

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

get_harvested_code_for_paper("ijcai2022_0632")
get_code_for_paper("ijcai2022_0632")
have("ijcai2022_0632")

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

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

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

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

Connect an agent — have() is free.