All Projects → HKUST-KnowComp → DMSC

HKUST-KnowComp / DMSC

Licence: other
This repository is for the paper "Document-Level Multi-Aspect Sentiment Classification as Machine Comprehension"

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

DMSC_MC

This repository is for our EMNLP17 paper "Document-Level Multi-Aspect Sentiment Classification as Machine Comprehension". We thank Tao Lei as our code is developed based on his code.

Setup

git clone [email protected]:HKUST-KnowComp/DMSCMC.git
cd src
export PYTHONPATH=/path/to/DMSCMC/src

Usage

  • Run experiments
cd src
THEANO_FLAGS="floatX=float32,device=gpu0,cuda.root=/usr/local/cuda,on_unused_input=ignore,optimizer=fast_compile"  python DMSCMC.py --emb  ../data/tripadvisor/embs  --train  ../data/tripadvisor/train  --dev  ../data/tripadvisor/dev --test  ../data/tripadvisor/test --save ../model/base  --aspect_seeds ../data/tripadvisor/aspect.10.words 
  • Run pre-trained model
cd src
THEANO_FLAGS="floatX=float32,device=gpu0,cuda.root=/usr/local/cuda,on_unused_input=ignore,optimizer=fast_compile"  python DMSCMC.py --emb  ../data/tripadvisor/embs  --train  ../data/tripadvisor/train  --dev  ../data/tripadvisor/dev --test  ../data/tripadvisor/test --save ../model/base  --aspect_seeds ../data/tripadvisor/aspect.10.words --model ../model/base

Environment

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].