Journal of South China University of Technology(Natural Science Edition) ›› 2019, Vol. 47 ›› Issue (6): 10-17,30.doi: 10.12141/j.issn.1000-565X.180486

• Computer Science & Technology • Previous Articles     Next Articles

A Sentence Sentiment Classification Method with POS and Attention

SU Jindian1 YU Shanshan2 LI Pengfei1   

  1. 1. College of Computer Science and Engineering,South China University of Technology,Guangzhou 510640,Guangdong,China; 2. College of Medical Information Engineering,Guangdong Pharmaceutical University,Guangzhou 510006,Guangdong,China 
  • Received:2018-09-27 Revised:2019-02-09 Online:2019-06-25 Published:2019-05-05
  • Contact: 余珊珊(1980-),女,博士,讲师,主要从事人工智能、形式语义等研究. E-mail:susyu@139.com
  • About author:苏锦钿(1980-),男,博士,副教授,主要从事自然语言处理、深度学习和程序语言设计研究. E-mail:SuJD@ scut. edu. cn
  • Supported by:
    Supported by the Applied Scientific and Technological Special Project of Department of Science and Technology of Guangdong Province(20168010124010),Natural Science Foundation of Guangdong Province(2015A030310318) and the Medical Scientific Research Foundation of Guangdong Province(A2015065) 

Abstract: Aiming at the problem that most of existing LSTM-based methods for sentence sentiment classification don’t take into account the part-of-speech (POS) information of words,a neural network model,PALSTM, which combines POS and self-attention mechanism,was proposed and applied to sentence sentiment classification. Firstly,PALSTM used pre-trained word vectors and POS tagging tool to give the semantic and POS word vector rep- resentations of words in the sentences,and then took them as the inputs of a LSTM so as to capture the long-term dependence of words on content and part-of-speech,which effectively compensates for the common LSTM networks relying solely on the co-occurrence information of words in pre-trained word vectors. Secondly,the self-attention mechanism was used to learn the position information about words in the sentences and build the corresponding po- sition weight matrix,which yields the final semantic representations of sentences. Finally,the results was classi- fied and outputted via a multi-layer perceptron. The experiments show that PALSTM outperforms common LSTM and attentional LSTM models on some open corpus,i. e. Movie Reviews,Internet Movie Database,Stanford Sen- timent Treebank binary and fine-grained classification.

Key words: natural language processing, sentiment classification, neural network, part of speech, self attention

CLC Number: