The invention belongs to the technical field of electronic medical records, and particularly discloses a medical text
named entity recognition method and
system.The method comprises the steps that an original medical text is collected and serves as input of a DLBC, a pre-training
language model serves as an embedded layer of the DLBC to conduct word segmentation
processing on the original medical text, the text is converted into a character sequence, and the character sequence is stored in a
database; sending the character sequence into a pre-training
language model to generate a corresponding
character vector representation; extracting medical nouns and categories by using a corpus, and constructing
a domain dictionary containing multiple categories of medical nouns; using a multi-head attention mechanism to obtain a feature sequence; performing
feature extraction and context information modeling on the feature sequence by using a bidirectional long short-
term memory network Bi LSTM; and the output of the Bi LSTM is converted into NER
label probability distribution corresponding to each character by using a
linear layer, and a final recognition result is obtained by applying a joint decoding strategy CRF. By adopting the technical scheme, entity embedding enhancement is carried out by utilizing the external information provided by the domain dictionary, and the medical entity recognition accuracy is improved.