Keras implementation of Syntax-Directed Hybrid Attention Network for Aspect-Level Sentiment Analysis
- keras
- spacy (pip install -U spacy)
- pyenchant (pip install pyenchant)
- python 2.7
- nltk (pip install nltk)
- download pretrained glove glove.840B.300d.zip and unzip it to dir GLOVE_MODEL
run preprocess.ipynb to preprocess data
For training, python Main.py train
For testing, python Main.py test
set validation_split = 0.2
- 80% data training
- 20% data validating
categorical_accuracy: 87.234%
val_categorical_accuracy: 74.064%
accuracy: 0.84375
Syntax-Directed Hybrid Attention Network for Aspect-Level Sentiment Analysis