{"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/recurrent-neural-network-grammars","title":"Recurrent Neural Network Grammars","arxiv_id":"1602.07776","date":"2016-02-25","proceeding":"NAACL 2016 6","authors":["Chris Dyer","Adhiguna Kuncoro","Miguel Ballesteros","Noah A. Smith"],"abstract":"We introduce recurrent neural network grammars, probabilistic models of\nsentences with explicit phrase structure. We explain efficient inference\nprocedures that allow application to both parsing and language modeling.\nExperiments show that they provide better parsing in English than any single\npreviously published supervised generative model and better language modeling\nthan state-of-the-art sequential RNNs in English and Chinese.","url_abs":"http://arxiv.org/abs/1602.07776v4","url_pdf":"http://arxiv.org/pdf/1602.07776v4.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":"recurrent-neural-network-grammars","repo_url":"https://github.com/clab/rnng","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok"}},{"paper_slug":"recurrent-neural-network-grammars","repo_url":"https://github.com/Psarpei/Recognition-of-logical-document-structures","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"recurrent-neural-network-grammars","repo_url":"https://github.com/dpfried/rnng-bert","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":null},{"paper_slug":"recurrent-neural-network-grammars","repo_url":"https://github.com/gofortargets/rnng","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok"}},{"paper_slug":"recurrent-neural-network-grammars","repo_url":"https://github.com/tempra28/nmtrnng","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok"}},{"paper_slug":"recurrent-neural-network-grammars","repo_url":"https://github.com/yv/rnng","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok"}}],"tasks":[{"task_slug":"constituency-parsing","task_name":"Constituency Parsing"},{"task_slug":"language-modeling","task_name":"Language Modeling"},{"task_slug":"language-modelling","task_name":"Language Modelling"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/constituency-parsing-on-penn-treebank","task":"Constituency Parsing","dataset":"Penn Treebank","model":"RNN Grammar","rank_in_archive_order":27,"of":27,"metrics":{"F1 score":"﻿93.3"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1602.07776","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1602.07776"}},"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/dpfried/rnng-bert","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Psarpei/Recognition-of-logical-document-structures","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/yv/rnng","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/gofortargets/rnng","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/clab/rnng","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/tempra28/nmtrnng","reach":{"status":"ok"}}],"summary":{"ran_draft_wrong":5,"ran_violates":1,"unverified":4},"by_repo_kind":{"listed":{"samples":9,"ran":5,"repositories":2}},"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":6,"samples":[{"code_sha256_prefix":"2347da1339a984a0","entry":"get_between_brackets","repo":"dpfried/rnng-bert","repo_kind":"listed","path":"scripts/retag.py","file_url":"https://github.com/dpfried/rnng-bert/blob/HEAD/scripts/retag.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":"2347da1339a984a0"}},{"code_sha256_prefix":"4289934e599d98d1","entry":"get_graph","repo":"dpfried/rnng-bert","repo_kind":"listed","path":"scripts/bert_parse.py","file_url":"https://github.com/dpfried/rnng-bert/blob/HEAD/scripts/bert_parse.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":"4289934e599d98d1"}},{"code_sha256_prefix":"5791adaa76c577c0","entry":"get_tags_tokens_lowercase","repo":"dpfried/rnng-bert","repo_kind":"listed","path":"scripts/retag.py","file_url":"https://github.com/dpfried/rnng-bert/blob/HEAD/scripts/retag.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":"5791adaa76c577c0"}},{"code_sha256_prefix":"625f98c10e41a690","entry":"is_next_open_bracket","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"625f98c10e41a690"}},{"code_sha256_prefix":"bf01d3fec3465c34","entry":"make_command","repo":"dpfried/rnng-bert","repo_kind":"listed","path":"scripts/bert_parse.py","file_url":"https://github.com/dpfried/rnng-bert/blob/HEAD/scripts/bert_parse.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":"bf01d3fec3465c34"}},{"code_sha256_prefix":"d73ae4737d0072dc","entry":"parse","repo":"dpfried/rnng-bert","repo_kind":"listed","path":"scripts/bert_parse.py","file_url":"https://github.com/dpfried/rnng-bert/blob/HEAD/scripts/bert_parse.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":"d73ae4737d0072dc"}},{"code_sha256_prefix":"7983fa98d9f8a780","entry":"copy_dim","repo":"Psarpei/Recognition-of-logical-document-structures","repo_kind":"listed","path":"cnn/pycnn/pycnn_viz.py","file_url":"https://github.com/Psarpei/Recognition-of-logical-document-structures/blob/HEAD/cnn/pycnn/pycnn_viz.py","link_basis":"harvester_set","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":"7983fa98d9f8a780"}},{"code_sha256_prefix":"8248591e58ec8b6b","entry":"ensure_same_dim","repo":"Psarpei/Recognition-of-logical-document-structures","repo_kind":"listed","path":"cnn/pycnn/pycnn_viz.py","file_url":"https://github.com/Psarpei/Recognition-of-logical-document-structures/blob/HEAD/cnn/pycnn/pycnn_viz.py","link_basis":"harvester_set","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":"8248591e58ec8b6b"}},{"code_sha256_prefix":"59f803e03a8d8e91","entry":"make_dim","repo":"Psarpei/Recognition-of-logical-document-structures","repo_kind":"listed","path":"cnn/pycnn/pycnn_viz.py","file_url":"https://github.com/Psarpei/Recognition-of-logical-document-structures/blob/HEAD/cnn/pycnn/pycnn_viz.py","link_basis":"harvester_set","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":"59f803e03a8d8e91"}},{"code_sha256_prefix":"cae93ce40fd6beae","entry":"run_lstm","repo":"Psarpei/Recognition-of-logical-document-structures","repo_kind":"listed","path":"cnn/pyexamples/attention.py","file_url":"https://github.com/Psarpei/Recognition-of-logical-document-structures/blob/HEAD/cnn/pyexamples/attention.py","link_basis":"harvester_set","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":"cae93ce40fd6beae"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}