Improving Review Representations with User Attention and Product Attention for Sentiment Classification

Zhen Wu, Xin-Yu Dai, Cunyan Yin, Shujian Huang, Jiajun Chen
1/24/2018
cs.CLcs.IRcs.LG

Official code: wuzhen247/HUAPA (51 stars, Python, last commit 2018-11-28).

Abstract

Neural network methods have achieved great success in reviews sentiment classification. Recently, some works achieved improvement by incorporating user and product information to generate a review representation.

Show full abstract

However, in reviews, we observe that some words or sentences show strong user's preference, and some others tend to indicate product's characteristic. The two kinds of information play different roles in determining the sentiment label of a review. Therefore, it is not reasonable to encode user and product information together into one representation. In this paper, we propose a novel framework to encode user and product information. Firstly, we apply two individual hierarchical neural networks to generate two representations, with user attention or with product attention. Then, we design a combined strategy to make full use of the two representations for training and final prediction. The experimental results show that our model obviously outperforms other state-of-the-art methods on IMDB and Yelp datasets. Through the visualization of attention over words related to user or product, we validate our observation mentioned above.

View on arXivView PDF

Code Implementations(1)

wuzhen247/HUAPAOfficial100%

AAAI18 paper 《Improving Review Representations with User Attention and Product Attention for Sentiment Classification》

5117PythonNov 20, 20178 years ago

Similar Papers

Cite this paper

@article{wu2018improving,
  title  = {Improving Review Representations with User Attention and Product Attention for Sentiment Classification},
  author = {Zhen Wu and Xin-Yu Dai and Cunyan Yin and Shujian Huang and Jiajun Chen},
  year   = {2018},
  eprint = {1801.07861},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1801.07861}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1801.07861.svg)](https://codeofpaper.com/paper/1801.07861)

Discussion