{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/a-simple-and-unified-tagging-model-with","title":"TAGPRIME: A Unified Framework for Relational Structure Extraction","arxiv_id":"2205.12585","date":"2022-05-25","proceeding":null,"authors":["I-Hung Hsu","Kuan-Hao Huang","Shuning Zhang","Wenxin Cheng","Premkumar Natarajan","Kai-Wei Chang","Nanyun Peng"],"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 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.","url_abs":"https://arxiv.org/abs/2205.12585v2","url_pdf":"https://arxiv.org/pdf/2205.12585v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"a-simple-and-unified-tagging-model-with","repo_url":"https://github.com/pluslabnlp/tagprime","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"event-argument-extraction","task_name":"Event Argument Extraction"},{"task_slug":"language-modelling","task_name":"Language Modelling"},{"task_slug":"relation-extraction","task_name":"Relation Extraction"},{"task_slug":"semantic-parsing","task_name":"Semantic Parsing"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2205.12585","atlas_url":"https://app.syntology.ai/?focus=2205.12585","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2205.12585"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/PlusLabNLP/TagPrime","reach":null}],"summary":{"ran":2,"ran_honours":2,"ran_draft_wrong":6,"unverified":1},"by_repo_kind":{"listed":{"samples":11,"ran":10,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":11,"samples":[{"code_sha256_prefix":"9661bf4c1d4e5550","entry":"CRF","repo":"PlusLabNLP/TagPrime","repo_kind":"listed","path":"src/model.py","file_url":"https://github.com/PlusLabNLP/TagPrime/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9661bf4c1d4e5550"}},{"code_sha256_prefix":"4ceefcc9c5efee7d","entry":"Linears","repo":"PlusLabNLP/TagPrime","repo_kind":"listed","path":"src/model.py","file_url":"https://github.com/PlusLabNLP/TagPrime/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4ceefcc9c5efee7d"}},{"code_sha256_prefix":"16faab3d1fc6b3a7","entry":"filter_use_ner","repo":"PlusLabNLP/TagPrime","repo_kind":"listed","path":"src/model.py","file_url":"https://github.com/PlusLabNLP/TagPrime/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"16faab3d1fc6b3a7"}},{"code_sha256_prefix":"4eea3a93ec802bce","entry":"get_role_seqlabels","repo":"PlusLabNLP/TagPrime","repo_kind":"listed","path":"src/model.py","file_url":"https://github.com/PlusLabNLP/TagPrime/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4eea3a93ec802bce"}},{"code_sha256_prefix":"22e2a4f510c03c94","entry":"get_trigger_embedding","repo":"PlusLabNLP/TagPrime","repo_kind":"listed","path":"src/model.py","file_url":"https://github.com/PlusLabNLP/TagPrime/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"22e2a4f510c03c94"}},{"code_sha256_prefix":"bd9ad74746bdeace","entry":"log_sum_exp","repo":"PlusLabNLP/TagPrime","repo_kind":"listed","path":"src/model.py","file_url":"https://github.com/PlusLabNLP/TagPrime/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bd9ad74746bdeace"}},{"code_sha256_prefix":"f9379a80bc4cfd5a","entry":"sequence_mask","repo":"PlusLabNLP/TagPrime","repo_kind":"listed","path":"src/model.py","file_url":"https://github.com/PlusLabNLP/TagPrime/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f9379a80bc4cfd5a"}},{"code_sha256_prefix":"d1b34439451f81a9","entry":"tag_paths_to_spans","repo":"PlusLabNLP/TagPrime","repo_kind":"listed","path":"src/model.py","file_url":"https://github.com/PlusLabNLP/TagPrime/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d1b34439451f81a9"}},{"code_sha256_prefix":"10e0364289f9bd33","entry":"token_lens_to_idxs","repo":"PlusLabNLP/TagPrime","repo_kind":"listed","path":"src/model.py","file_url":"https://github.com/PlusLabNLP/TagPrime/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"10e0364289f9bd33"}},{"code_sha256_prefix":"c5fe6d1a240e86e5","entry":"token_lens_to_offsets","repo":"PlusLabNLP/TagPrime","repo_kind":"listed","path":"src/model.py","file_url":"https://github.com/PlusLabNLP/TagPrime/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c5fe6d1a240e86e5"}},{"code_sha256_prefix":"c7de10d51a2753bf","entry":"EAELateBind","repo":"PlusLabNLP/TagPrime","repo_kind":"listed","path":"src/model.py","file_url":"https://github.com/PlusLabNLP/TagPrime/blob/HEAD/src/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c7de10d51a2753bf"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}