Open Access
liuduyu10000@163.comCorresponding author, LIU Duyu, Tel: 15828397145, E-mail: liuduyu10000@163.com
Open Access
liuduyu10000@163.comCorresponding author, LIU Duyu, Tel: 15828397145, E-mail: liuduyu10000@163.com
Named Entity Recognition, as a core task in Natural Language Processing, plays a crucial role in identifying medical entities such as diseases and symptoms in Electronic Medical Records, which is of great significance for clinical decision support and the construction of medical knowledge bases. However, traditional methods rely heavily on large amounts of annotated data and complex models, resulting in high training and inference costs. This paper proposes a generative medical NER method that integrates semantic retrieval and prompt learning with large language models. First, a sentence-level vector database is constructed to semantically encode EMRs for retrievable representations. Then, based on the input sentence, semantic similarity retrieval is performed, and similar examples are dynamically injected into a prompt template to guide the model in entity extraction. Finally, entity type annotation results are generated through structured special markers, enabling direct decoding output. Experimental results demonstrate that the proposed method performs well on both a self-constructed EMR dataset and the Ruijin Hospital diabetes dataset, and exhibits strong robustness and transferability, especially in low-resource scenarios.
Key Words: named entity recognition; electronic medical records; large language models
ISSN: 3006-4236
Volume 2, Issue 3
September 2025
Pages: 1-64