{"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/finbert-mrc-financial-named-entity","title":"FinBERT-MRC: financial named entity recognition using BERT under the machine reading comprehension paradigm","arxiv_id":"2205.15485","date":"2022-05-31","proceeding":null,"authors":["Yuzhe Zhang","Hong Zhang"],"abstract":"Financial named entity recognition (FinNER) from literature is a challenging task in the field of financial text information extraction, which aims to extract a large amount of financial knowledge from unstructured texts. It is widely accepted to use sequence tagging frameworks to implement FinNER tasks. However, such sequence tagging models cannot fully take advantage of the semantic information in the texts. Instead, we formulate the FinNER task as a machine reading comprehension (MRC) problem and propose a new model termed FinBERT-MRC. This formulation introduces significant prior information by utilizing well-designed queries, and extracts start index and end index of target entities without decoding modules such as conditional random fields (CRF). We conduct experiments on a publicly available Chinese financial dataset ChFinAnn and a real-word bussiness dataset AdminPunish. FinBERT-MRC model achieves average F1 scores of 92.78% and 96.80% on the two datasets, respectively, with average F1 gains +3.94% and +0.89% over some sequence tagging models including BiLSTM-CRF, BERT-Tagger, and BERT-CRF. The source code is available at https://github.com/zyz0000/FinBERT-MRC.","url_abs":"https://arxiv.org/abs/2205.15485v1","url_pdf":"https://arxiv.org/pdf/2205.15485v1.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":"finbert-mrc-financial-named-entity","repo_url":"https://github.com/zyz0000/finbert-mrc","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"machine-reading-comprehension","task_name":"Machine Reading Comprehension"},{"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":"reading-comprehension","task_name":"Reading Comprehension"},{"task_slug":"named-entity-recognition","task_name":"named-entity-recognition"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2205.15485","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2205.15485"}},"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/zyz0000/finbert-mrc","reach":{"status":"ok","spdx":"MIT"}}],"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":"a259cb4122adab4b","entry":"build_model","repo":"zyz0000/finbert-mrc","repo_kind":"official","path":"utils/model_utils.py","file_url":"https://github.com/zyz0000/finbert-mrc/blob/HEAD/utils/model_utils.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":"a259cb4122adab4b"}},{"code_sha256_prefix":"6f736eb737268aa4","entry":"calculate_metric","repo":"zyz0000/finbert-mrc","repo_kind":"official","path":"utils/evaluator.py","file_url":"https://github.com/zyz0000/finbert-mrc/blob/HEAD/utils/evaluator.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":"6f736eb737268aa4"}},{"code_sha256_prefix":"3b7516851200edac","entry":"cut_sentences_v1","repo":"zyz0000/finbert-mrc","repo_kind":"official","path":"preprocess/processor.py","file_url":"https://github.com/zyz0000/finbert-mrc/blob/HEAD/preprocess/processor.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":"3b7516851200edac"}},{"code_sha256_prefix":"a707dabccba1c68b","entry":"cut_sentences_v2","repo":"zyz0000/finbert-mrc","repo_kind":"official","path":"preprocess/processor.py","file_url":"https://github.com/zyz0000/finbert-mrc/blob/HEAD/preprocess/processor.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":"a707dabccba1c68b"}},{"code_sha256_prefix":"4025a3277a3b1d8b","entry":"fine_grade_tokenize","repo":"zyz0000/finbert-mrc","repo_kind":"official","path":"preprocess/processor.py","file_url":"https://github.com/zyz0000/finbert-mrc/blob/HEAD/preprocess/processor.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":"4025a3277a3b1d8b"}},{"code_sha256_prefix":"3c3ae0b8b37e17c7","entry":"get_model_path_list","repo":"zyz0000/finbert-mrc","repo_kind":"official","path":"utils/functions_utils.py","file_url":"https://github.com/zyz0000/finbert-mrc/blob/HEAD/utils/functions_utils.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":"3c3ae0b8b37e17c7"}},{"code_sha256_prefix":"08830f799e4586d7","entry":"get_p_r_f","repo":"zyz0000/finbert-mrc","repo_kind":"official","path":"utils/evaluator.py","file_url":"https://github.com/zyz0000/finbert-mrc/blob/HEAD/utils/evaluator.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":"08830f799e4586d7"}},{"code_sha256_prefix":"70c3fe86405eead9","entry":"get_time_dif","repo":"zyz0000/finbert-mrc","repo_kind":"official","path":"utils/functions_utils.py","file_url":"https://github.com/zyz0000/finbert-mrc/blob/HEAD/utils/functions_utils.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":"70c3fe86405eead9"}},{"code_sha256_prefix":"2296a33d62672e9d","entry":"load_model_and_parallel","repo":"zyz0000/finbert-mrc","repo_kind":"official","path":"utils/functions_utils.py","file_url":"https://github.com/zyz0000/finbert-mrc/blob/HEAD/utils/functions_utils.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":"2296a33d62672e9d"}},{"code_sha256_prefix":"8e454f802e6e7724","entry":"mrc_decode","repo":"zyz0000/finbert-mrc","repo_kind":"official","path":"utils/evaluator.py","file_url":"https://github.com/zyz0000/finbert-mrc/blob/HEAD/utils/evaluator.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":"8e454f802e6e7724"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}