Skip to content

Aspect-Level Sentiment Analysis Via Convolution over Dependency Tree

Notifications You must be signed in to change notification settings

Jorffy/CDT_ABSA

 
 

Repository files navigation

Aspect-Level Sentiment Analysis Via Convolution over Dependency Tree

Requirements

  • Python 3.6.8
  • PyTorch 1.0.0
  • CUDA 9.0

Preparation

First, download and unzip GloVe vectors(glove.840B.300d.zip) from https://nlp.stanford.edu/projects/glove/ .

Then, put glove.840B.300d.txt into ./dataset/glove directory.

Next, prepare vocabulary with:

./build_vocab.sh

The build_vocab.sh contains commands to build vocab for different datasets.

Training

To train the CDT model, run:

./train.sh

The train.sh contains training commands for different datasets.

Model checkpoints and logs will be saved to ./saved_models.

Evaluation

You need to specify --data_dir, --vocab_dir and --model_dir in eval.py.

python eval.py

About

Aspect-Level Sentiment Analysis Via Convolution over Dependency Tree

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.5%
  • Shell 2.5%
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy