Skip to content

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

Notifications You must be signed in to change notification settings

HKUST-KnowComp/DMSC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published