Skip to content

A pytorch implemention of IAN for aspect based sentiment analysis.

License

Notifications You must be signed in to change notification settings

jiangqn/IAN-pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IAN-pytorch

This is a pytorch implementation for Interactive Attention Networks for Aspect-Level Sentiment Classification (Dehong Ma et al, IJCAI 2017).

requirements

pytorch 1.0.0
numpy
spacy

Quick Start

  • 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

Results

Dataset Accuracy
Laptop 70.376
Restaurant 77.679

Reference

During the procedure of implementation, the code in lpq29743/IAN is referenced.

Releases

No releases published

Packages

No packages published

Languages