Skip to content


Folders and files

Last commit message
Last commit date

Latest commit



5 Commits

Repository files navigation


Cold-Start Aware User and Product Attention for Sentiment Classification

This TensorFlow code was used in the experiments of the research paper

Reinald Kim Amplayo, Jihyeok Kim, Sua Sung, and Seung-won Hwang. Cold-Start Aware User and Product Attention for Sentiment Classification. ACL, 2018.

You will need to download the original data here:

Also, if you want to use the sparse data, the data folder contains the IDs of the data instances used. Please refer to the readme file inside the data folder.

You will also need GloVe pretrained word vectors which can be downloaded here:

To run the code, use the following command:

python src/ data_dir base_model train_type


  • data_dir is the data folder (e.g. data/imdb).
  • base_model can be cnn, rnn, or hcwe. To use the full HCSC model, use hcwe.
  • train_type is the extension of the dataset filename if the sparse datasets are used (e.g. _zero2 if Sparse20 is used). If the original dataset is used, leave this argument blank

To cite the paper/code, please use this BibTex

	Author = {Reinald Kim Amplayo and Jihyeok Kim and Sua Sung and Seung-won Hwang},
	Booktitle = {ACL},
	Location = {Melbourne, Australia},
	Year = {2018},
	Title = {Cold-Start Aware User and Product Attention for Sentiment Classification},

If you have questions, send me an email: rktamplayo at yonsei dot ac dot kr