Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 1.92 KB

README.md

File metadata and controls

37 lines (30 loc) · 1.92 KB

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