{"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/sparqa-skeleton-based-semantic-parsing-for","title":"SPARQA: Skeleton-based Semantic Parsing for Complex Questions over Knowledge Bases","arxiv_id":"2003.13956","date":"2020-03-31","proceeding":null,"authors":["Yawei Sun","Lingling Zhang","Gong Cheng","Yuzhong Qu"],"abstract":"Semantic parsing transforms a natural language question into a formal query over a knowledge base. Many existing methods rely on syntactic parsing like dependencies. However, the accuracy of producing such expressive formalisms is not satisfying on long complex questions. In this paper, we propose a novel skeleton grammar to represent the high-level structure of a complex question. This dedicated coarse-grained formalism with a BERT-based parsing algorithm helps to improve the accuracy of the downstream fine-grained semantic parsing. Besides, to align the structure of a question with the structure of a knowledge base, our multi-strategy method combines sentence-level and word-level semantics. Our approach shows promising performance on several datasets.","url_abs":"https://arxiv.org/abs/2003.13956v1","url_pdf":"https://arxiv.org/pdf/2003.13956v1.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":"sparqa-skeleton-based-semantic-parsing-for","repo_url":"https://github.com/nju-websoft/SPARQA","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"semantic-parsing","task_name":"Semantic Parsing"},{"task_slug":"sentence","task_name":"Sentence"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2003.13956","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2003.13956"}},"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":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/nju-websoft/SPARQA","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":7},"by_repo_kind":{"official":{"samples":7,"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":"a14a18b3b64cf58c","entry":"findPath","repo":"nju-websoft/SPARQA","repo_kind":"official","path":"code/common_structs/find_path.py","file_url":"https://github.com/nju-websoft/SPARQA/blob/HEAD/code/common_structs/find_path.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":"a14a18b3b64cf58c"}},{"code_sha256_prefix":"0681c15b3b982808","entry":"get_args","repo":"nju-websoft/SPARQA","repo_kind":"official","path":"code/common/globals_args.py","file_url":"https://github.com/nju-websoft/SPARQA/blob/HEAD/code/common/globals_args.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":"0681c15b3b982808"}},{"code_sha256_prefix":"dfcbed3d1e891f85","entry":"get_gold_entity_or_class","repo":"nju-websoft/SPARQA","repo_kind":"official","path":"code/common/utils.py","file_url":"https://github.com/nju-websoft/SPARQA/blob/HEAD/code/common/utils.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":"dfcbed3d1e891f85"}},{"code_sha256_prefix":"70615211dd730b38","entry":"get_gold_entity_or_class_by_json","repo":"nju-websoft/SPARQA","repo_kind":"official","path":"code/common/utils.py","file_url":"https://github.com/nju-websoft/SPARQA/blob/HEAD/code/common/utils.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":"70615211dd730b38"}},{"code_sha256_prefix":"1b12bbb3ef40478d","entry":"get_labels_from_lca","repo":"nju-websoft/SPARQA","repo_kind":"official","path":"code/common_structs/find_path.py","file_url":"https://github.com/nju-websoft/SPARQA/blob/HEAD/code/common_structs/find_path.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":"1b12bbb3ef40478d"}},{"code_sha256_prefix":"75d19bb288601604","entry":"get_lca_length","repo":"nju-websoft/SPARQA","repo_kind":"official","path":"code/common_structs/find_path.py","file_url":"https://github.com/nju-websoft/SPARQA/blob/HEAD/code/common_structs/find_path.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":"75d19bb288601604"}},{"code_sha256_prefix":"0f36a93246e54f11","entry":"get_nid_by_id","repo":"nju-websoft/SPARQA","repo_kind":"official","path":"code/common/utils.py","file_url":"https://github.com/nju-websoft/SPARQA/blob/HEAD/code/common/utils.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":"0f36a93246e54f11"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}