The application relates to the technical field of
natural language processing, and provides a
mask enhancement
named entity recognition method based on a
large model, which comprises the following steps: collecting to-be-recognized text data; preprocessing to obtain an input sequence, inputting the trained recognition model to obtain a recognition result; the recognition model training process comprises the following steps: performing
mask processing on the training input sequence based on a set
mask strategy to obtain a mask input sequence, inputting the mask input sequence into a BERT model to obtain entity and mask context representation features; performing a
named entity recognition task and a mask prediction task and sharing parameters to obtain entity prediction values and mask prediction values; calculating a first
loss function based on the entity context representation features and the entity prediction values, and calculating a second
loss function based on the mask prediction values; updating
model parameters; evaluating model performance, and repeating training until the performance reaches a set requirement. The application can fully understand
semantics, has strong generalization capability, strong context dependency capturing capability, and less misrecognition and missed recognition.