GithubHelp home page GithubHelp logo

rktamplayo / hcsc Goto Github PK

View Code? Open in Web Editor NEW
20.0 3.0 8.0 928 KB

[ACL2018] Cold-Start Aware User and Product Attention for Sentiment Classification

Python 100.00%
sentiment-classification cold-start sentiment-analysis sentiment review-rating-prediction user-representation machine-learning deep-learning natural-language-processing recommender-system

hcsc's Introduction

HCSC

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: https://drive.google.com/open?id=1PxAkmPLFMnfom46FMMXkHeqIxDbA16oy

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: http://nlp.stanford.edu/data/glove.840B.300d.zip

To run the code, use the following command:

python src/hcsc_main.py data_dir base_model train_type

where:

  • 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

@inproceedings{amplayo2018cold,
	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

hcsc's People

Contributors

rktamplayo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.