Skip to content

abhinav-neil/sentiment-analysis-bow-lstm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Sentiment Analysis with Neural Models

This repository contains a jupyter notebook which uses various neural models to perform sentence representation and sentiment analysis on the dataset of the Stanford Sentiment Treebank (SST)

Models

  • Bag-of-words (cbow)
  • Continuous bag-of-words (CBOW)
  • Deep continuous bag-of-words (Deep CBOW)
  • LSTM
  • Binary Tree-LSTM
  • Child-sum Tree-LSTM

LSTM variants

  • vanilla LSTM
  • No input gate (NIG) LSTM
  • No output gate (NOG) LSTM
  • No forget gate (NFG) LSTM
  • No input activation (NIAF) LSTM
  • No output activation (NOAF) LSTM
  • No peephole (NP) LSTM
  • Coupled input and forget (CIFG) LSTM

Methodology

The models are evaluated based on accuracy. We also evaluate separately on long and short sentences for each model. We also evaluate performance on all subtrees of the original sentence dataset for each model. We use Word2Vec for pretrained embeddings.

References