A TensorFlow implementation for "Interactive Attention Networks for Aspect-Level Sentiment Classification"
A Tensorflow implementation for "Interactive Attention Networks for Aspect-Level Sentiment Classification" (Dehong Ma, IJCAI 2017)
pip install -r requirements.txt
to install required packages|--- data
| |--- laptop
| |--- restaurant
| |--- data_info.txt - the preprocessing data information file
| |--- test_data.txt - the preprocessing testing data file
| |--- train_data.txt - the preprocessing training data file
|--- main.py
|--- model.py
|--- transfer.py - transfering the origin xml files to text files
|--- utils.py
|--- README.md
Dataset | Accuracy |
---|---|
Laptop | 70.846 |
Restaurant | 79.107 |
Note: In the newest version, the results are worse than the results given above, since the code of the model is revised. I will optimize the model sooner and report the results.