SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2205.12585 · ACL · 2023

TAGPRIME: A Unified Framework for Relational Structure Extraction

Kai-Wei Chang, Nanyun Peng, Kuan-Hao Huang, Shuning Zhang, I-Hung Hsu, Premkumar Natarajan, Wenxin Cheng

arXiv · PDF · Open in the Atlas

Code that ran

10 of 11 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (2 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 6 failures of our instrument; 1 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/2205.12585.json · badge: /api/ran/2205.12585.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
PlusLabNLP/TagPrime community
Papers with Code archive
10 ran · 1 no recorded run
FunctionStatusWhere it lives
CRF Ran
ran on a synthesized input · constructed an object; no result was computed
PlusLabNLP/TagPrime/src/model.py
pointer only (licence: NONE) · get_code("9661bf4c1d4e5550")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PlusLabNLP/TagPrime 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.

Linears Ran
ran on a synthesized input · constructed an object; no result was computed
PlusLabNLP/TagPrime/src/model.py
pointer only (licence: NONE) · get_code("4ceefcc9c5efee7d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PlusLabNLP/TagPrime 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_use_ner Ran
ran, honoured the contract we drafted
PlusLabNLP/TagPrime/src/model.py
pointer only (licence: NONE) · get_code("16faab3d1fc6b3a7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PlusLabNLP/TagPrime 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.

get_role_seqlabels Ran
ran; our contract draft was wrong, not the code
PlusLabNLP/TagPrime/src/model.py
pointer only (licence: NONE) · get_code("4eea3a93ec802bce")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PlusLabNLP/TagPrime 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.

get_trigger_embedding Ran
ran; our contract draft was wrong, not the code
PlusLabNLP/TagPrime/src/model.py
pointer only (licence: NONE) · get_code("22e2a4f510c03c94")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PlusLabNLP/TagPrime 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.

log_sum_exp Ran
ran; our contract draft was wrong, not the code
PlusLabNLP/TagPrime/src/model.py
pointer only (licence: NONE) · get_code("bd9ad74746bdeace")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PlusLabNLP/TagPrime 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.

sequence_mask Ran
ran; our contract draft was wrong, not the code
PlusLabNLP/TagPrime/src/model.py
pointer only (licence: NONE) · get_code("f9379a80bc4cfd5a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PlusLabNLP/TagPrime 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.

tag_paths_to_spans Ran
ran; our contract draft was wrong, not the code
PlusLabNLP/TagPrime/src/model.py
pointer only (licence: NONE) · get_code("d1b34439451f81a9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PlusLabNLP/TagPrime 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_idxs Ran
ran; our contract draft was wrong, not the code
PlusLabNLP/TagPrime/src/model.py
pointer only (licence: NONE) · get_code("10e0364289f9bd33")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PlusLabNLP/TagPrime 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
PlusLabNLP/TagPrime/src/model.py
pointer only (licence: NONE) · get_code("c5fe6d1a240e86e5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PlusLabNLP/TagPrime 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.

EAELateBind Not yet run
unverified (harvested, no recorded run)
PlusLabNLP/TagPrime/src/model.py
pointer only (licence: NONE) · get_code("c7de10d51a2753bf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PlusLabNLP/TagPrime 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.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 4 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 3 later) and 7 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
brick of this paper's assembly: helper
3 other papers
1 dated earlier, 2 later
2203.08929 (2022-03)
An Analysis of Negation in Natural Language Understanding Corpora
2210.12582 (2022-10)
Language Model Pre-Training with Sparse Latent Typing
2024.findings-acl.760 (2024 (year only))
TEXTEE: Benchmark, Reevaluation, Reflections, and Future Challenges in Event Extraction
log_sum_exp
brick of this paper's assembly: helper
2 other papers
2 later
2210.12582 (2022-10)
Language Model Pre-Training with Sparse Latent Typing
2024.findings-acl.760 (2024 (year only))
TEXTEE: Benchmark, Reevaluation, Reflections, and Future Challenges in Event Extraction
sequence_mask
brick of this paper's assembly: helper
2 other papers
2 later
2210.12582 (2022-10)
Language Model Pre-Training with Sparse Latent Typing
2024.findings-acl.760 (2024 (year only))
TEXTEE: Benchmark, Reevaluation, Reflections, and Future Challenges in Event Extraction
token_lens_to_idxs
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2203.08929 (2022-03)
An Analysis of Negation in Natural Language Understanding Corpora

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

Many tasks in natural language processing require the extraction of relationship information for a given condition, such as event argument extraction, relation extraction, and taskoriented semantic parsing. Recent works usually propose sophisticated models for each task independently and pay less attention to the commonality of these tasks and to have a unified framework for all the tasks. In this work, we propose to take a unified view of all these tasks and introduce TAGPRIME to address relational structure extraction problems. TAGPRIME is a sequence tagging model that appends priming words about the information of the given condition (such as an event trigger) to the input text. With the self-attention mechanism in pre-trained language models, the priming words make the output contextualized representations contain more information about the given condition, and hence become more suitable for extracting specific relationships for the condition. Extensive experiments and analyses on three different tasks that cover ten datasets across five different languages demonstrate the generality and effectiveness of TAGPRIME.

For agents

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

get_harvested_code_for_paper("2205.12585")
get_code_for_paper("2205.12585")
have("2205.12585")

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

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

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

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

Connect an agent — have() is free.