hitcszq / logicnn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About


Languages

Language:Python 99.5%Language:Shell 0.5%