HKUST-KnowComp / VWS-DMSC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VWS-DMSC

  • Source code for NAACL 2019 paper A Variational Approach to Weakly Supervised Document-Level Multi-Aspect Sentiment Classification

Requirements

* Python3
* tensorflow-gpu 1.6 -- 1.10
* tqdm
* munkres

Usage

To predict the polarity of all aspects on both dataset

sh test.sh

To predict the polarity of aspect 0 (could be 0-6) on tripadvisor

python tripadvisor.py --aspect 0

To predict the polarity of aspect 0 (could be 0-3) on beer

python beer.py --aspect 0

About


Languages

Language:Python 98.0%Language:Shell 2.0%