{"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/tranx-a-transition-based-neural-abstract","title":"TRANX: A Transition-based Neural Abstract Syntax Parser for Semantic Parsing and Code Generation","arxiv_id":"1810.02720","date":"2018-10-05","proceeding":"EMNLP 2018 11","authors":["Pengcheng Yin","Graham Neubig"],"abstract":"We present TRANX, a transition-based neural semantic parser that maps natural\nlanguage (NL) utterances into formal meaning representations (MRs). TRANX uses\na transition system based on the abstract syntax description language for the\ntarget MR, which gives it two major advantages: (1) it is highly accurate,\nusing information from the syntax of the target MR to constrain the output\nspace and model the information flow, and (2) it is highly generalizable, and\ncan easily be applied to new types of MR by just writing a new abstract syntax\ndescription corresponding to the allowable structures in the MR. Experiments on\nfour different semantic parsing and code generation tasks show that our system\nis generalizable, extensible, and effective, registering strong results\ncompared to existing neural semantic parsers.","url_abs":"http://arxiv.org/abs/1810.02720v1","url_pdf":"http://arxiv.org/pdf/1810.02720v1.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":"tranx-a-transition-based-neural-abstract","repo_url":"https://github.com/pcyin/tranX","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"tranx-a-transition-based-neural-abstract","repo_url":"https://github.com/DeepLearnXMU/CG-RL","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"tranx-a-transition-based-neural-abstract","repo_url":"https://github.com/Pro-v-7/code-generation","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"tranx-a-transition-based-neural-abstract","repo_url":"https://github.com/yuxiang2/CoNaLa","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"code-generation","task_name":"Code Generation"},{"task_slug":"semantic-parsing","task_name":"Semantic Parsing"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/code-generation-on-conala","task":"Code Generation","dataset":"CoNaLa","model":"TranX","rank_in_archive_order":14,"of":14,"metrics":{"BLEU":"24.30"},"uses_additional_data":false},{"leaderboard":"/sota/code-generation-on-conala-ext","task":"Code Generation","dataset":"CoNaLa-Ext","model":"TranX","rank_in_archive_order":6,"of":6,"metrics":{"BLEU":"18.85"},"uses_additional_data":false},{"leaderboard":"/sota/code-generation-on-django","task":"Code Generation","dataset":"Django","model":"Tranx","rank_in_archive_order":8,"of":11,"metrics":{"Accuracy":"73.7"},"uses_additional_data":false},{"leaderboard":"/sota/code-generation-on-wikisql","task":"Code Generation","dataset":"WikiSQL","model":"Tranx","rank_in_archive_order":3,"of":10,"metrics":{"Exact Match Accuracy":"68.6","Execution Accuracy":"78.6"},"uses_additional_data":false},{"leaderboard":"/sota/semantic-parsing-on-atis","task":"Semantic Parsing","dataset":"ATIS","model":"Tranx","rank_in_archive_order":2,"of":4,"metrics":{"Accuracy":"86.2"},"uses_additional_data":false},{"leaderboard":"/sota/semantic-parsing-on-geo","task":"Semantic Parsing","dataset":"Geo","model":"Tranx","rank_in_archive_order":3,"of":3,"metrics":{"Accuracy":"87.7"},"uses_additional_data":false}],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=1810.02720","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1810.02720"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/DeepLearnXMU/CG-RL","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Pro-v-7/code-generation","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/yuxiang2/CoNaLa","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/pcyin/tranX","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran_honours":1,"ran_draft_wrong":1,"unverified":5},"by_repo_kind":{"official":{"samples":5,"ran":0,"repositories":1},"listed":{"samples":2,"ran":2,"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":2,"samples":[{"code_sha256_prefix":"274d1bf99b29c786","entry":"get_bleu_all","repo":"yuxiang2/CoNaLa","repo_kind":"listed","path":"seq2seq/evaluate.py","file_url":"https://github.com/yuxiang2/CoNaLa/blob/HEAD/seq2seq/evaluate.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":"274d1bf99b29c786"}},{"code_sha256_prefix":"59002967d7c8c2a8","entry":"tokenize_for_bleu_eval","repo":"yuxiang2/CoNaLa","repo_kind":"listed","path":"seq2seq/evaluate.py","file_url":"https://github.com/yuxiang2/CoNaLa/blob/HEAD/seq2seq/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"59002967d7c8c2a8"}},{"code_sha256_prefix":"07759c7084e98fc4","entry":"decode","repo":"pcyin/tranX","repo_kind":"official","path":"evaluation.py","file_url":"https://github.com/pcyin/tranX/blob/HEAD/evaluation.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"07759c7084e98fc4"}},{"code_sha256_prefix":"8a2b39c05ccc8ca0","entry":"dot_prod_attention","repo":"pcyin/tranX","repo_kind":"official","path":"model/nn_utils.py","file_url":"https://github.com/pcyin/tranX/blob/HEAD/model/nn_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8a2b39c05ccc8ca0"}},{"code_sha256_prefix":"59e007a728de1c57","entry":"evaluate","repo":"pcyin/tranX","repo_kind":"official","path":"evaluation.py","file_url":"https://github.com/pcyin/tranX/blob/HEAD/evaluation.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"59e007a728de1c57"}},{"code_sha256_prefix":"4d634e9ce2a4f738","entry":"input_transpose","repo":"pcyin/tranX","repo_kind":"official","path":"model/nn_utils.py","file_url":"https://github.com/pcyin/tranX/blob/HEAD/model/nn_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4d634e9ce2a4f738"}},{"code_sha256_prefix":"4f498904d7930e35","entry":"length_array_to_mask_tensor","repo":"pcyin/tranX","repo_kind":"official","path":"model/nn_utils.py","file_url":"https://github.com/pcyin/tranX/blob/HEAD/model/nn_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4f498904d7930e35"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}