Skip to content
Code for CF-GCN.
Python Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


This is the code for our IJCNLP 17' paper entitled "Estimating Reactions and Recommending Products with Generative Models of Reviews".

Here is the link for the preprocessed dataset and the pretrained models on Google Drive.

Please put the data_dir and save_dir under the same folder of the code. Otherwise, you need to change the directory in the code correspondingly.

You can train the code by running the script sh

Similary, you can generate reviews using the provided trained model by running the script sh

Note: under folder lm contains the pure char-level language model. We first use it to train a language model then load its weight as initialization for cf-gcn.

If you find our code or dataset useful, please cite our paper. Thanks!

  title={Estimating Reactions and Recommending Products with Generative Models of Reviews},
  author={Jianmo Ni and Zachary Chase Lipton and Sharad Vikram and Julian McAuley},


  • Python=2.7
  • Keras=0.2
  • Theano=1.0
You can’t perform that action at this time.