The application provides a Chinese event detection method based on a part-of-speech attention mechanism, which is based on a public
data set. First, the
sentence is divided into words using a word segmentation tool on the
data set, and then the part-of-speech sequence of the
sentence is obtained using a part-of-speech tagging tool. The part-of-speech sequence of the
sentence is input into a CBOW model to obtain a pre-trained part-of-speech vector, so as to learn the fixed
collocation information between words, such as "suffered an injury" as a "
verb +
adverb +
noun" structure. Then, the part-of-speech vector, the word vector and the
character vector are used to extract the word-level information and the character-level information of the sentence, respectively. When extracting features, a
convolutional neural network is used to extract features on the word matrix, the character matrix and the part-of-speech matrix of the sentence. Then, the part-of-speech features are used to calculate the attention
score, which is used to assist the model to focus on the
verb when calculating; the part-of-speech attention is provided, and after the part-of-speech features are added, the accuracy and efficiency of the model in the trigger word extraction and
event type classification tasks are higher.