The application is suitable for the technical field of computers, and provides a
named entity recognition method, including: acquiring a to-be-recognized text, and converting the to-be-recognized text into a first matrix of n*k dimensions; performing multi-layer
convolution layer
convolution on the first matrix, wherein the last
convolution layer of a convolution kernel in the multi-layer convolution layer has a channel number of m, four convolution operations are performed on the last convolution layer, and four parallel second matrices of n*m dimensions are obtained; performing attention weight self-adaption on three second matrices of the four second matrices to obtain a third matrix of n*m dimensions, performing
matrix addition on the third matrix and the remaining one second matrix, and outputting a fourth matrix of n*m dimensions; performing classification on the fourth matrix, and outputting an entity
label corresponding to the to-be-recognized text; and outputting a
named entity corresponding to the to-be-recognized text according to the entity
label. By introducing an attention mechanism in the convolution layer,
data redundancy is effectively reduced, the number of
model parameters is reduced, and the recognition speed of the
named entity recognition model is accelerated.