{"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/arxiv-2509-17289","title":"Automated Knowledge Graph Construction using Large Language Models and Sentence Complexity Modelling","arxiv_id":"2509.17289","date":"2025-09-22","proceeding":"EMNLP","authors":["Sydney Anuyah","Mehedi Mahmud Kaushik","Krishna Dwarampudi","Rakesh Shiradkar","Arjan Durresi","Sunandan Chakraborty"],"abstract":"We introduce CoDe-KG, an open-source, end-to-end pipeline for extracting sentence-level knowledge graphs by combining robust coreference resolution with syntactic sentence decomposition. Using our model, we contribute a dataset of over 150,000 knowledge triples, which is open source. We also contribute a training corpus of 7248 rows for sentence complexity, 190 rows of gold human annotations for co-reference resolution using open source lung-cancer abstracts from PubMed, 900 rows of gold human annotations for sentence conversion policies, and 398 triples of gold human annotations. We systematically select optimal prompt-model pairs across five complexity categories, showing that hybrid chain-of-thought and few-shot prompting yields up to 99.8% exact-match accuracy on sentence simplification. On relation extraction (RE), our pipeline achieves 65.8% macro-F1 on REBEL, an 8-point gain over the prior state of the art, and 75.7% micro-F1 on WebNLG2, while matching or exceeding performance on Wiki-NRE and CaRB. Ablation studies demonstrate that integrating coreference and decomposition increases recall on rare relations by over 20%. Code and dataset are available at https://github.com/KaushikMahmud/CoDe-KG_EMNLP_2025","url_abs":"https://arxiv.org/abs/2509.17289","url_pdf":"https://arxiv.org/pdf/2509.17289","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2509.17289","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2509.17289"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/KaushikMahmud/CoDe-KG_EMNLP_2025","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":9},"by_repo_kind":{"found_in_text":{"samples":9,"ran":0,"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":0,"samples":[{"code_sha256_prefix":"ec50c014e2ffb4f5","entry":"build_prompt","repo":"KaushikMahmud/CoDe-KG_EMNLP_2025","repo_kind":"found_in_text","path":"CoDe-KG/prompts.py","file_url":"https://github.com/KaushikMahmud/CoDe-KG_EMNLP_2025/blob/HEAD/CoDe-KG/prompts.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ec50c014e2ffb4f5"}},{"code_sha256_prefix":"4c1c276e20a63bf7","entry":"extract_simplified_sentences","repo":"KaushikMahmud/CoDe-KG_EMNLP_2025","repo_kind":"found_in_text","path":"CoDe-KG/simplify_stage.py","file_url":"https://github.com/KaushikMahmud/CoDe-KG_EMNLP_2025/blob/HEAD/CoDe-KG/simplify_stage.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4c1c276e20a63bf7"}},{"code_sha256_prefix":"2301f0553e126272","entry":"extract_triples_regex","repo":"KaushikMahmud/CoDe-KG_EMNLP_2025","repo_kind":"found_in_text","path":"CoDe-KG/relation_extract_stage.py","file_url":"https://github.com/KaushikMahmud/CoDe-KG_EMNLP_2025/blob/HEAD/CoDe-KG/relation_extract_stage.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2301f0553e126272"}},{"code_sha256_prefix":"c6892ba32b539e6f","entry":"format_pairs","repo":"KaushikMahmud/CoDe-KG_EMNLP_2025","repo_kind":"found_in_text","path":"CoDe-KG/tokenize_paper.py","file_url":"https://github.com/KaushikMahmud/CoDe-KG_EMNLP_2025/blob/HEAD/CoDe-KG/tokenize_paper.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c6892ba32b539e6f"}},{"code_sha256_prefix":"93f11ea2806ab826","entry":"parse_coref_output","repo":"KaushikMahmud/CoDe-KG_EMNLP_2025","repo_kind":"found_in_text","path":"CoDe-KG/coref_stage.py","file_url":"https://github.com/KaushikMahmud/CoDe-KG_EMNLP_2025/blob/HEAD/CoDe-KG/coref_stage.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"93f11ea2806ab826"}},{"code_sha256_prefix":"5d7289d845ba85d7","entry":"read_abstracts","repo":"KaushikMahmud/CoDe-KG_EMNLP_2025","repo_kind":"found_in_text","path":"CoDe-KG/run_pipeline.py","file_url":"https://github.com/KaushikMahmud/CoDe-KG_EMNLP_2025/blob/HEAD/CoDe-KG/run_pipeline.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5d7289d845ba85d7"}},{"code_sha256_prefix":"d9ea78a8be7f2476","entry":"split_sentences","repo":"KaushikMahmud/CoDe-KG_EMNLP_2025","repo_kind":"found_in_text","path":"CoDe-KG/sentence_split_stage.py","file_url":"https://github.com/KaushikMahmud/CoDe-KG_EMNLP_2025/blob/HEAD/CoDe-KG/sentence_split_stage.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d9ea78a8be7f2476"}},{"code_sha256_prefix":"f407977ea730a68c","entry":"tokenize","repo":"KaushikMahmud/CoDe-KG_EMNLP_2025","repo_kind":"found_in_text","path":"CoDe-KG/tokenize_paper.py","file_url":"https://github.com/KaushikMahmud/CoDe-KG_EMNLP_2025/blob/HEAD/CoDe-KG/tokenize_paper.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f407977ea730a68c"}},{"code_sha256_prefix":"1074daf6a8a220b4","entry":"tokens_with_indices","repo":"KaushikMahmud/CoDe-KG_EMNLP_2025","repo_kind":"found_in_text","path":"CoDe-KG/tokenize_paper.py","file_url":"https://github.com/KaushikMahmud/CoDe-KG_EMNLP_2025/blob/HEAD/CoDe-KG/tokenize_paper.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1074daf6a8a220b4"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CL","source":"arxiv_api"},"syntology_extracted_results":null}