{"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/correlating-neural-and-symbolic","title":"Correlating neural and symbolic representations of language","arxiv_id":"1905.06401","date":"2019-05-14","proceeding":"ACL 2019 7","authors":["Grzegorz Chrupała","Afra Alishahi"],"abstract":"Analysis methods which enable us to better understand the representations and functioning of neural models of language are increasingly needed as deep learning becomes the dominant approach in NLP. Here we present two methods based on Representational Similarity Analysis (RSA) and Tree Kernels (TK) which allow us to directly quantify how strongly the information encoded in neural activation patterns corresponds to information represented by symbolic structures such as syntax trees. We first validate our methods on the case of a simple synthetic language for arithmetic expressions with clearly defined syntax and semantics, and show that they exhibit the expected pattern of results. We then apply our methods to correlate neural representations of English sentences with their constituency parse trees.","url_abs":"https://arxiv.org/abs/1905.06401v2","url_pdf":"https://arxiv.org/pdf/1905.06401v2.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":"correlating-neural-and-symbolic","repo_url":"https://github.com/gchrupala/ursa","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1905.06401","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1905.06401"}},"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/gchrupala/ursa","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"unverified":10},"by_repo_kind":{"official":{"samples":10,"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":"bc27a4ecbf4c2e34","entry":"children","repo":"gchrupala/ursa","repo_kind":"official","path":"ursa/kernel.py","file_url":"https://github.com/gchrupala/ursa/blob/HEAD/ursa/kernel.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":"bc27a4ecbf4c2e34"}},{"code_sha256_prefix":"b1db2e3ef277f910","entry":"cosine_matrix","repo":"gchrupala/ursa","repo_kind":"official","path":"ursa/similarity.py","file_url":"https://github.com/gchrupala/ursa/blob/HEAD/ursa/similarity.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":"b1db2e3ef277f910"}},{"code_sha256_prefix":"6484d42f3f0af1c2","entry":"cosine_matrix_batch","repo":"gchrupala/ursa","repo_kind":"official","path":"ursa/similarity.py","file_url":"https://github.com/gchrupala/ursa/blob/HEAD/ursa/similarity.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":"6484d42f3f0af1c2"}},{"code_sha256_prefix":"10b96c65e94461c6","entry":"dataframe","repo":"gchrupala/ursa","repo_kind":"official","path":"ursa/regress.py","file_url":"https://github.com/gchrupala/ursa/blob/HEAD/ursa/regress.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":"10b96c65e94461c6"}},{"code_sha256_prefix":"6922c2b06a7d4f50","entry":"delex","repo":"gchrupala/ursa","repo_kind":"official","path":"ursa/kernel.py","file_url":"https://github.com/gchrupala/ursa/blob/HEAD/ursa/kernel.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":"6922c2b06a7d4f50"}},{"code_sha256_prefix":"1f3b15f50dbad61c","entry":"label","repo":"gchrupala/ursa","repo_kind":"official","path":"ursa/kernel.py","file_url":"https://github.com/gchrupala/ursa/blob/HEAD/ursa/kernel.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":"1f3b15f50dbad61c"}},{"code_sha256_prefix":"c76aee70b3246853","entry":"pairwise","repo":"gchrupala/ursa","repo_kind":"official","path":"ursa/util.py","file_url":"https://github.com/gchrupala/ursa/blob/HEAD/ursa/util.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":"c76aee70b3246853"}},{"code_sha256_prefix":"093c2274b47ad0c7","entry":"pearson_r","repo":"gchrupala/ursa","repo_kind":"official","path":"ursa/util.py","file_url":"https://github.com/gchrupala/ursa/blob/HEAD/ursa/util.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":"093c2274b47ad0c7"}},{"code_sha256_prefix":"f2e1fd5454e332a7","entry":"stringsim","repo":"gchrupala/ursa","repo_kind":"official","path":"ursa/similarity.py","file_url":"https://github.com/gchrupala/ursa/blob/HEAD/ursa/similarity.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":"f2e1fd5454e332a7"}},{"code_sha256_prefix":"695535daf78586c8","entry":"triu","repo":"gchrupala/ursa","repo_kind":"official","path":"ursa/util.py","file_url":"https://github.com/gchrupala/ursa/blob/HEAD/ursa/util.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":"695535daf78586c8"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}