• Stars
    star
    132
  • Rank 272,634 (Top 6 %)
  • Language
    Python
  • Created about 8 years ago
  • Updated about 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An implementation of the following paper in application of sentiment classification

Harnessing Deep Neural Networks with Logic Rules
Zhiting Hu, Xuezhe Ma, Zhengzhong Liu, Eduard Hovy, Eric P. Xing, ACL 2016

Data Preparation

  • Download and uncompress the pre-trained word2vec to data/w2v/

  • run script data/preprocess_data.sh under data/

Running

  • run run.sh

  • Average performance (accuracy) is around q:0.893, p:0.887 (randomness comes from GPU parallelization)