{"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/grammar-as-a-foreign-language","title":"Grammar as a Foreign Language","arxiv_id":"1412.7449","date":"2014-12-23","proceeding":"NeurIPS 2015 12","authors":["Oriol Vinyals","Lukasz Kaiser","Terry Koo","Slav Petrov","Ilya Sutskever","Geoffrey Hinton"],"abstract":"Syntactic constituency parsing is a fundamental problem in natural language\nprocessing and has been the subject of intensive research and engineering for\ndecades. As a result, the most accurate parsers are domain specific, complex,\nand inefficient. In this paper we show that the domain agnostic\nattention-enhanced sequence-to-sequence model achieves state-of-the-art results\non the most widely used syntactic constituency parsing dataset, when trained on\na large synthetic corpus that was annotated using existing parsers. It also\nmatches the performance of standard parsers when trained only on a small\nhuman-annotated dataset, which shows that this model is highly data-efficient,\nin contrast to sequence-to-sequence models without the attention mechanism. Our\nparser is also fast, processing over a hundred sentences per second with an\nunoptimized CPU implementation.","url_abs":"http://arxiv.org/abs/1412.7449v3","url_pdf":"http://arxiv.org/pdf/1412.7449v3.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":"grammar-as-a-foreign-language","repo_url":"https://github.com/KaustuvDash/DeepTextCorrector","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok"}},{"paper_slug":"grammar-as-a-foreign-language","repo_url":"https://github.com/atpaino/deep-text-corrector","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"grammar-as-a-foreign-language","repo_url":"https://github.com/gongshuangshuang/deep-text-corrector","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok"}},{"paper_slug":"grammar-as-a-foreign-language","repo_url":"https://github.com/kmadathil/sanskrit_parser","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"grammar-as-a-foreign-language","repo_url":"https://github.com/sambit9238/deep_text_corrector","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"grammar-as-a-foreign-language","repo_url":"https://github.com/sunnysinghnitb/text-corrector-software","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"grammar-as-a-foreign-language","repo_url":"https://github.com/sunnysinghnitb/text_corrector_software","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":null,"task_name":"CPU"},{"task_slug":"constituency-parsing","task_name":"Constituency Parsing"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/constituency-parsing-on-penn-treebank","task":"Constituency Parsing","dataset":"Penn Treebank","model":"Semi-supervised LSTM","rank_in_archive_order":25,"of":27,"metrics":{"F1 score":"92.1"},"uses_additional_data":false}],"syntology":{"syntology_url":"https://syntology.ai/paper/1412.7449","atlas_url":"https://app.syntology.ai/?focus=1412.7449","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1412.7449"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/atpaino/deep-text-corrector","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/kmadathil/sanskrit_parser","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/KaustuvDash/DeepTextCorrector","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/sambit9238/deep_text_corrector","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/gongshuangshuang/deep-text-corrector","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/sunnysinghnitb/text_corrector_software","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/sunnysinghnitb/text-corrector-software","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"unverified":17},"by_repo_kind":{"listed":{"samples":17,"ran":0,"repositories":3}},"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":"d1058b37b338fbbf","entry":"apply_input_bias_and_extract_argmax_fn_factory","repo":"atpaino/deep-text-corrector","repo_kind":"listed","path":"text_corrector_models.py","file_url":"https://github.com/atpaino/deep-text-corrector/blob/HEAD/text_corrector_models.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":"d1058b37b338fbbf"}},{"code_sha256_prefix":"8429d7c06389b807","entry":"basic_rnn_seq2seq","repo":"atpaino/deep-text-corrector","repo_kind":"listed","path":"seq2seq.py","file_url":"https://github.com/atpaino/deep-text-corrector/blob/HEAD/seq2seq.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":"8429d7c06389b807"}},{"code_sha256_prefix":"7044f78aac4e77b0","entry":"basic_rnn_seq2seq","repo":"sambit9238/deep_text_corrector","repo_kind":"listed","path":"seq2seq.py","file_url":"https://github.com/sambit9238/deep_text_corrector/blob/HEAD/seq2seq.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":"7044f78aac4e77b0"}},{"code_sha256_prefix":"cb0ae36059a1edc1","entry":"cleanText","repo":"sambit9238/deep_text_corrector","repo_kind":"listed","path":"preprocessors/preprocess_movie_dialogs.py","file_url":"https://github.com/sambit9238/deep_text_corrector/blob/HEAD/preprocessors/preprocess_movie_dialogs.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":"cb0ae36059a1edc1"}},{"code_sha256_prefix":"a865a8db7110f228","entry":"dirgha","repo":"kmadathil/sanskrit_parser","repo_kind":"listed","path":"sanskrit_parser/generator/paribhasha.py","file_url":"https://github.com/kmadathil/sanskrit_parser/blob/HEAD/sanskrit_parser/generator/paribhasha.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":"a865a8db7110f228"}},{"code_sha256_prefix":"05d4c96440a087cb","entry":"getSandhiArgs","repo":"kmadathil/sanskrit_parser","repo_kind":"listed","path":"sanskrit_parser/cmd_line.py","file_url":"https://github.com/kmadathil/sanskrit_parser/blob/HEAD/sanskrit_parser/cmd_line.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":"05d4c96440a087cb"}},{"code_sha256_prefix":"b95718cadb9b8eaa","entry":"getVakyaArgs","repo":"kmadathil/sanskrit_parser","repo_kind":"listed","path":"sanskrit_parser/cmd_line.py","file_url":"https://github.com/kmadathil/sanskrit_parser/blob/HEAD/sanskrit_parser/cmd_line.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":"b95718cadb9b8eaa"}},{"code_sha256_prefix":"36f700e311ac6061","entry":"get_corrective_tokens","repo":"atpaino/deep-text-corrector","repo_kind":"listed","path":"correct_text.py","file_url":"https://github.com/atpaino/deep-text-corrector/blob/HEAD/correct_text.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":"36f700e311ac6061"}},{"code_sha256_prefix":"4d28261bf66161c9","entry":"guna","repo":"kmadathil/sanskrit_parser","repo_kind":"listed","path":"sanskrit_parser/generator/paribhasha.py","file_url":"https://github.com/kmadathil/sanskrit_parser/blob/HEAD/sanskrit_parser/generator/paribhasha.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":"4d28261bf66161c9"}},{"code_sha256_prefix":"1dffd7db3e987bbe","entry":"hrasva","repo":"kmadathil/sanskrit_parser","repo_kind":"listed","path":"sanskrit_parser/generator/paribhasha.py","file_url":"https://github.com/kmadathil/sanskrit_parser/blob/HEAD/sanskrit_parser/generator/paribhasha.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":"1dffd7db3e987bbe"}},{"code_sha256_prefix":"5aaefa2f51c41369","entry":"project_and_apply_input_bias","repo":"atpaino/deep-text-corrector","repo_kind":"listed","path":"text_corrector_models.py","file_url":"https://github.com/atpaino/deep-text-corrector/blob/HEAD/text_corrector_models.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":"5aaefa2f51c41369"}},{"code_sha256_prefix":"32fddafac018f902","entry":"replace_contraction","repo":"sambit9238/deep_text_corrector","repo_kind":"listed","path":"preprocessors/preprocess_movie_dialogs.py","file_url":"https://github.com/sambit9238/deep_text_corrector/blob/HEAD/preprocessors/preprocess_movie_dialogs.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":"32fddafac018f902"}},{"code_sha256_prefix":"153755cbc8e726de","entry":"replace_links","repo":"sambit9238/deep_text_corrector","repo_kind":"listed","path":"preprocessors/preprocess_movie_dialogs.py","file_url":"https://github.com/sambit9238/deep_text_corrector/blob/HEAD/preprocessors/preprocess_movie_dialogs.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":"153755cbc8e726de"}},{"code_sha256_prefix":"f44847e8b1c4bd91","entry":"rnn_decoder","repo":"sambit9238/deep_text_corrector","repo_kind":"listed","path":"seq2seq.py","file_url":"https://github.com/sambit9238/deep_text_corrector/blob/HEAD/seq2seq.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":"f44847e8b1c4bd91"}},{"code_sha256_prefix":"cf938d1d0e9a8c10","entry":"rnn_decoder","repo":"atpaino/deep-text-corrector","repo_kind":"listed","path":"seq2seq.py","file_url":"https://github.com/atpaino/deep-text-corrector/blob/HEAD/seq2seq.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":"cf938d1d0e9a8c10"}},{"code_sha256_prefix":"8c64b893aa64969f","entry":"tied_rnn_seq2seq","repo":"atpaino/deep-text-corrector","repo_kind":"listed","path":"seq2seq.py","file_url":"https://github.com/atpaino/deep-text-corrector/blob/HEAD/seq2seq.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":"8c64b893aa64969f"}},{"code_sha256_prefix":"772f0a140d5d7ed8","entry":"tied_rnn_seq2seq","repo":"sambit9238/deep_text_corrector","repo_kind":"listed","path":"seq2seq.py","file_url":"https://github.com/sambit9238/deep_text_corrector/blob/HEAD/seq2seq.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":"772f0a140d5d7ed8"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}