Papers › TAGPRIME: A Unified Framework for Relational Structure Extraction

TAGPRIME: A Unified Framework for Relational Structure Extraction

25 May 2022arXiv:2205.12585archive 2025-07-28

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

Many tasks in natural language processing require the extraction of relationship information for a given condition, such as event argument extraction, relation extraction, and task-oriented 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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2205.12585")

Code

Syntology Ran 10 of 11 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 2 ran · honoured contract; 6 ran · our draft was wrong; 2 ran with no contract checked.

By repository: community (archive-listed): 11 samples from 1 repository, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

pluslabnlp/tagprime mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 10 ran; 2 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
6ran · our draft was wrong
2ran
1unverified

Licence: 11 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from PlusLabNLP/TagPrime. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

CRF PlusLabNLP/TagPrime/src/model.py community (archive-listed) ran · metamorphic tier: deterministic no licence file found · pointer only · 9661bf4c1d4e5550 · report
Linears PlusLabNLP/TagPrime/src/model.py community (archive-listed) ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · 4ceefcc9c5efee7d · report
filter_use_ner PlusLabNLP/TagPrime/src/model.py community (archive-listed) ran · honoured contract no licence file found · pointer only · 16faab3d1fc6b3a7 · report
get_role_seqlabels PlusLabNLP/TagPrime/src/model.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 4eea3a93ec802bce · report
get_trigger_embedding PlusLabNLP/TagPrime/src/model.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 22e2a4f510c03c94 · report
log_sum_exp PlusLabNLP/TagPrime/src/model.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · bd9ad74746bdeace · report
sequence_mask PlusLabNLP/TagPrime/src/model.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · f9379a80bc4cfd5a · report
tag_paths_to_spans PlusLabNLP/TagPrime/src/model.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · d1b34439451f81a9 · report
token_lens_to_idxs PlusLabNLP/TagPrime/src/model.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 10e0364289f9bd33 · report
token_lens_to_offsets PlusLabNLP/TagPrime/src/model.py community (archive-listed) ran · honoured contract no licence file found · pointer only · c5fe6d1a240e86e5 · report
EAELateBind PlusLabNLP/TagPrime/src/model.py community (archive-listed) unverified no licence file found · pointer only · c7de10d51a2753bf · report

Tasks

Event Argument ExtractionLanguage ModellingRelation ExtractionSemantic Parsing

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections