The invention provides a method and a
system for training a sensitive word detection model. The method comprises the steps: step A-1, inputting sample data of a training corpus into a first BLSTM model and a second BLSTM model, inputting outputs of the first BLSTM model and the second BLSTM model into a CRF model, and outputting a sensitive
word recognition result of an input text by the CRF model; updating the current parameters of the model based on the difference between the identification result of the CRF and the marking result of the input text; step A-2, inputting the sample data of thetraining corpus into a current first BLSTM model, inputting the output of the first BLSTM model into a CNN model, and outputting a
font recognition result of an input text by the CNN model; and updating the current parameter of the model based on the
font difference between the recognition result of the CNN and the input text. According to the method and
system for training the sensitive word detection model, the sensitive word detection model with better performance can be obtained, and compared with a traditional DFA
algorithm, the sensitive word detection is not limited by a sensitive wordlexicon and has a certain detection capability on foreign characters.