This is a pytorch implementation for Enhanced Aspect Level Sentiment Classification with Auxiliary Memory (Peisong Zhu, Tieyun Qian, COLING 2018).
pytorch 1.0.0
numpy
spacy
-
Download the 300-dimensional pre-trained word vectors from Glove and save it in the 'data' folder as 'data/glove.840B.300d.txt'
-
Use the following command to run the code.
python main.py
Dataset | Accuracy |
---|---|
Laptop | 69.12 |
Restaurant | 79.20 |