Skip to content
/ SHAN Public

Syntax-Directed Hybrid Attention Network for Aspect-Level Sentiment Analysis

Notifications You must be signed in to change notification settings

wangjiosw/SHAN

Repository files navigation

SHAN

Keras implementation of Syntax-Directed Hybrid Attention Network for Aspect-Level Sentiment Analysis

Prerequisites

  1. keras
  2. spacy (pip install -U spacy)
  3. pyenchant (pip install pyenchant)
  4. python 2.7
  5. nltk (pip install nltk)
  6. download pretrained glove glove.840B.300d.zip and unzip it to dir GLOVE_MODEL

Preprocess

run preprocess.ipynb to preprocess data

Usage

For training, python Main.py train
For testing, python Main.py test

Result

train data

set validation_split = 0.2

  • 80% data training
  • 20% data validating

categorical_accuracy: 87.234%
val_categorical_accuracy: 74.064%

test data

accuracy: 0.84375

Pretrained model

no pretrained model

References

Syntax-Directed Hybrid Attention Network for Aspect-Level Sentiment Analysis

About

Syntax-Directed Hybrid Attention Network for Aspect-Level Sentiment Analysis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published