{"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/named-entity-recognition-as-dependency","title":"Named Entity Recognition as Dependency Parsing","arxiv_id":"2005.07150","date":"2020-05-14","proceeding":"ACL 2020 6","authors":["Juntao Yu","Bernd Bohnet","Massimo Poesio"],"abstract":"Named Entity Recognition (NER) is a fundamental task in Natural Language Processing, concerned with identifying spans of text expressing references to entities. NER research is often focused on flat entities only (flat NER), ignoring the fact that entity references can be nested, as in [Bank of [China]] (Finkel and Manning, 2009). In this paper, we use ideas from graph-based dependency parsing to provide our model a global view on the input via a biaffine model (Dozat and Manning, 2017). The biaffine model scores pairs of start and end tokens in a sentence which we use to explore all spans, so that the model is able to predict named entities accurately. We show that the model works well for both nested and flat NER through evaluation on 8 corpora and achieving SoTA performance on all of them, with accuracy gains of up to 2.2 percentage points.","url_abs":"https://arxiv.org/abs/2005.07150v3","url_pdf":"https://arxiv.org/pdf/2005.07150v3.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":"named-entity-recognition-as-dependency","repo_url":"https://github.com/juntaoy/biaffine-ner","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"tf","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"dependency-parsing","task_name":"Dependency Parsing"},{"task_slug":"cg","task_name":"NER"},{"task_slug":"named-entity-recognition-1","task_name":"Named Entity Recognition"},{"task_slug":"named-entity-recognition-ner","task_name":"Named Entity Recognition (NER)"},{"task_slug":"nested-named-entity-recognition","task_name":"Nested Named Entity Recognition"},{"task_slug":"sentence","task_name":"Sentence"},{"task_slug":"named-entity-recognition","task_name":"named-entity-recognition"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/named-entity-recognition-on-ace-2004","task":"Named Entity Recognition (NER)","dataset":"ACE 2004","model":"Biaffine-NER","rank_in_archive_order":3,"of":9,"metrics":{"F1":"86.7","Multi-Task Supervision":"n"},"uses_additional_data":false},{"leaderboard":"/sota/named-entity-recognition-on-ace-2005","task":"Named Entity Recognition (NER)","dataset":"ACE 2005","model":"Biaffine-NER","rank_in_archive_order":11,"of":20,"metrics":{"F1":"85.4"},"uses_additional_data":false},{"leaderboard":"/sota/named-entity-recognition-on-conll-2002-dutch","task":"Named Entity Recognition (NER)","dataset":"CoNLL 2002 (Dutch)","model":"Biaffine-NER","rank_in_archive_order":4,"of":6,"metrics":{"F1":"93.7"},"uses_additional_data":false},{"leaderboard":"/sota/named-entity-recognition-on-conll-2002","task":"Named Entity Recognition (NER)","dataset":"CoNLL 2002 (Spanish)","model":"Biaffine-NER","rank_in_archive_order":3,"of":6,"metrics":{"F1":"90.3"},"uses_additional_data":false},{"leaderboard":"/sota/named-entity-recognition-ner-on-conll-2003","task":"Named Entity Recognition (NER)","dataset":"CoNLL 2003 (English)","model":"Biaffine-NER","rank_in_archive_order":19,"of":73,"metrics":{"F1":"93.5"},"uses_additional_data":false},{"leaderboard":"/sota/named-entity-recognition-on-conll-2003-german","task":"Named Entity Recognition (NER)","dataset":"CoNLL 2003 (German)","model":"Biaffine-NER","rank_in_archive_order":5,"of":6,"metrics":{"F1":"86.4"},"uses_additional_data":false},{"leaderboard":"/sota/named-entity-recognition-on-conll-2003-german-1","task":"Named Entity Recognition (NER)","dataset":"CoNLL 2003 (German) Revised","model":"Biaffine-NER","rank_in_archive_order":4,"of":5,"metrics":{"F1":"90.3"},"uses_additional_data":false},{"leaderboard":"/sota/named-entity-recognition-on-genia","task":"Named Entity Recognition (NER)","dataset":"GENIA","model":"Biaffine-NER","rank_in_archive_order":2,"of":14,"metrics":{"F1":"80.5"},"uses_additional_data":false},{"leaderboard":"/sota/named-entity-recognition-ner-on-ontonotes-v5","task":"Named Entity Recognition (NER)","dataset":"Ontonotes v5 (English)","model":"Biaffine-NER","rank_in_archive_order":4,"of":28,"metrics":{"F1":"91.3"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2005.07150","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2005.07150"}},"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/juntaoy/biaffine-ner","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran_honours":1,"ran_draft_wrong":2,"unverified":7},"by_repo_kind":{"official":{"samples":10,"ran":3,"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":"20922c79a0929bbf","entry":"flatten","repo":"juntaoy/biaffine-ner","repo_kind":"official","path":"util.py","file_url":"https://github.com/juntaoy/biaffine-ner/blob/HEAD/util.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":2,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"20922c79a0929bbf"}},{"code_sha256_prefix":"1923fc05163d207d","entry":"convert_to_unicode","repo":"juntaoy/biaffine-ner","repo_kind":"official","path":"extract_bert_features/tokenization.py","file_url":"https://github.com/juntaoy/biaffine-ner/blob/HEAD/extract_bert_features/tokenization.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"1923fc05163d207d"}},{"code_sha256_prefix":"2dc172f4dc0c745c","entry":"get_activation","repo":"juntaoy/biaffine-ner","repo_kind":"official","path":"extract_bert_features/modeling.py","file_url":"https://github.com/juntaoy/biaffine-ner/blob/HEAD/extract_bert_features/modeling.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2dc172f4dc0c745c"}},{"code_sha256_prefix":"6558b9f62bb65244","entry":"gelu","repo":"juntaoy/biaffine-ner","repo_kind":"official","path":"extract_bert_features/modeling.py","file_url":"https://github.com/juntaoy/biaffine-ner/blob/HEAD/extract_bert_features/modeling.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":"6558b9f62bb65244"}},{"code_sha256_prefix":"50958618b65e514e","entry":"get_assignment_map_from_checkpoint","repo":"juntaoy/biaffine-ner","repo_kind":"official","path":"extract_bert_features/modeling.py","file_url":"https://github.com/juntaoy/biaffine-ner/blob/HEAD/extract_bert_features/modeling.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":"50958618b65e514e"}},{"code_sha256_prefix":"fb8d325e40dbff1b","entry":"input_fn_builder","repo":"juntaoy/biaffine-ner","repo_kind":"official","path":"extract_bert_features/extract_features.py","file_url":"https://github.com/juntaoy/biaffine-ner/blob/HEAD/extract_bert_features/extract_features.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":"fb8d325e40dbff1b"}},{"code_sha256_prefix":"ff83ccc8b0b6462d","entry":"load_vocab","repo":"juntaoy/biaffine-ner","repo_kind":"official","path":"extract_bert_features/tokenization.py","file_url":"https://github.com/juntaoy/biaffine-ner/blob/HEAD/extract_bert_features/tokenization.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":"ff83ccc8b0b6462d"}},{"code_sha256_prefix":"304ac22fbc54657a","entry":"make_summary","repo":"juntaoy/biaffine-ner","repo_kind":"official","path":"util.py","file_url":"https://github.com/juntaoy/biaffine-ner/blob/HEAD/util.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":"304ac22fbc54657a"}},{"code_sha256_prefix":"e9675d534fa5b1ba","entry":"mkdirs","repo":"juntaoy/biaffine-ner","repo_kind":"official","path":"util.py","file_url":"https://github.com/juntaoy/biaffine-ner/blob/HEAD/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":"e9675d534fa5b1ba"}},{"code_sha256_prefix":"0e5615f8994003cf","entry":"printable_text","repo":"juntaoy/biaffine-ner","repo_kind":"official","path":"extract_bert_features/tokenization.py","file_url":"https://github.com/juntaoy/biaffine-ner/blob/HEAD/extract_bert_features/tokenization.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":"0e5615f8994003cf"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}