The invention discloses a
named entity recognition model training method, a
named entity recognition method and a
named entity recognition device. The training method comprises the following steps: preprocessing a corpus sample to obtain a character sequence sample, and labeling a named entity
label on the character sequence sample to obtain a training character sequence; pre-training the trainingcharacter sequence based on a first bidirectional
language model and a first self-attention mechanism model to obtain a character
feature vector and a character weight vector, and fusing the character
feature vector and the character weight vector to obtain a second
context vector; pre-training the training character sequence based on a second bidirectional
language model and a second self-attention mechanism model to obtain a word
feature vector and a word weight vector, and fusing the word feature vector and the word weight vector to obtain a second
context vector; and training the bidirectional neural network and the
conditional random field which are connected in sequence by using the first
context vector and the second context vector to obtain a
named entity recognition model. According to the method, the
training effect of the
named entity recognition model is effectively improved, and the
named entity recognition accuracy is improved.