This is our implementation for the paper:
Chong Chen, Min Zhang, Yiqun Liu, and Shaoping Ma. 2018. Neural Attentional Rating Regression with Review-level Explanations. In WWW'18.
Please cite our WWW'18 paper if you use our codes. Thanks!
@inproceedings{chen2018neural,
title={Neural Attentional Rating Regression with Review-level Explanations},
author={Chen, Chong and Zhang, Min and Liu, Yiqun and Ma, Shaoping},
booktitle={Proceedings of the 2018 World Wide Web Conference on World Wide Web},
pages={1583--1592},
year={2018},
}
Author: Chong Chen ([email protected])
- python 2.7.18
- tensorflow-gpu 1.9.0
- numpy
- pandas
conda create -n tf12 python==2.7.18
conda install tensorflow-gpu==1.9.0 cudatoolkit==8.0 -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64/
In our experiments, we use the datasets from Amazon 5-core(http://jmcauley.ucsd.edu/data/amazon) and Yelp Challenge 2017(https://www.yelp.com/dataset_challenge).
Data preprocessing:
python loaddata.py
python data_pro.py
Train and evaluate the model:
python train.py
Last Update Date: 10 15, 2021