Journal of Applied Sciences ›› 2019, Vol. 37 ›› Issue (4): 541-550.doi: 10.3969/j.issn.0255-8297.2019.04.011

• Computer Science and Application • Previous Articles     Next Articles

Convolutional Neural Networks Text Classification Model Based on Attention Mechanism

ZHAO Yunshan, DUAN Youxiang   

  1. College of Computer & Communication Engineering, China University of Petroleum, Qingdao 266580, Shandong Province, China
  • Received:2018-09-14 Revised:2018-10-29 Online:2019-07-31 Published:2019-10-11

Abstract: Text categorization is an important part of natural language processing. Effective extraction of global semantics is the key to the success of text categorization. In order to emphasize the non-local importance of the extracting feature of convolutional neural networks, an A-CNN text classification model including four Attention CNN layers is established by using Attention mechanism. In the A-CNN model, the general convolution of the Attention CNN layer is used to extract local features, and the Attention mechanism is used to generate feature non-local correlation. Finally, the A-CNN model is experimentally used for the analysis on data sets such as sentiment analysis, problem classification, and question answer selection. Compared with other models, the A-CNN model improves the classification precision of the three above tasks by 1.9%, 4.3%, and 0.6%, respectively. The A-CNN model performs higher accuracy in text classification tasks and stronger versatility.

Key words: text categorization, convolutional neural network (CNN), Attention mechanism, non-local correlation

CLC Number: