llj110 / Aspect-Level-Sentiment-Analysis

Performed Aspect Level Sentiment Analysis using a Deep Memory Network. It explicitly captures the importance of each context word when inferring the sentiment polarity of an aspect word.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Aspect-Level-Sentiment-Analysis

Performed Aspect Level Sentiment Analysis using a Deep Memory Network. It explicitly captures the importance of each context word when inferring the sentiment polarity of an aspect word.

Install

If you are using virtualenv

virtualenv env
source env/bin/activate
pip install -r requirements.txt

Else

pip install -r requirements.txt

Data

Download the Gloves pretrained embeddings and store it in the /data folder from https://www.kaggle.com/thanakomsn/glove6b300dtxt/download

Run

python main.py

This will start the training process.

Training and Validation Loss

Training

Training

Validation

Validation

Tensorboard Graph Visualization

Tensorboard

About

Performed Aspect Level Sentiment Analysis using a Deep Memory Network. It explicitly captures the importance of each context word when inferring the sentiment polarity of an aspect word.


Languages

Language:Python 100.0%