The invention relates to the technical field of
natural language processing, in particular to a multi-
granularity Chinese medical
named entity recognition method and
system for dynamic knowledge enhancement, and the method comprises the steps: constructing a medical term
knowledge base containing a plurality of Chinese medical terms, and generating a term representation vector for each term; the method comprises the following steps: for an input Chinese medical text sequence, extracting a character initial embedding vector, fusing a word-level embedding vector of a word where the character initial embedding vector is located and an adjacent word-level embedding vector to obtain a multi-
granularity feature fusion vector, and encoding to obtain a
character vector containing context
semantics; performing
semantic alignment optimization based on the
character vector and the term vector to obtain a term information enhanced
character vector, and dynamically updating the medical term
knowledge base according to the term information enhanced character vector; and taking the updated term vector as knowledge priori, performing multiple rounds of screening on the text candidate segments, and outputting a medical
named entity recognition result. The method can effectively improve the recognition accuracy of nested entity, isomorphism and
ambiguity terms, reduces boundary division errors and category
confusion, and improves the reasoning efficiency.