Skip to content

A pytorch implementation of sentiment analysis of reviews which contain multiple aspect-level sentiments by learning weights of the aspect terms from an ontology

Notifications You must be signed in to change notification settings

urmisaha/Aspect-weighted-SA-pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aspect-weighted sentiment analysis using domain ontology and deep neural network

We calculate aspect scores using two approaches:

  1. conditional probability from dataset
  2. a domain ontology

We incorporate these scores into our neural architecture to find the sentiment of a textual review. The scores are used to initialize a trainable layer of the neural architecture.

Domain: Restaurant, Movie, Music, Uber Rides

Steps to run

  1. Run glove_embeddings.py if corresponding pickle files are already not created
  2. Run preprocessing.py if corresponding pickle files are already not created
  3. Run model.py

P.S: Read the commented introduction in each of the files mentioned to run the commands correctly.

About

A pytorch implementation of sentiment analysis of reviews which contain multiple aspect-level sentiments by learning weights of the aspect terms from an ontology

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages