Skip to content

Latest commit

 

History

History
76 lines (47 loc) · 1.89 KB

README.md

File metadata and controls

76 lines (47 loc) · 1.89 KB

Tweet Sentiment Classification

Python PyTorch


This repo contains Python implementation of Sentiment Analysis of Tweets using Neural Networks with Pytorch.

Overview

  • Framework used : Pytorch
  • Architectures : LSTM,CNN(2D), and a hybrid of these two
  • Dataset : Sentiment140
  • Final accuracy : 82.157433 %
  • Report

Scripts

#Architectures :

CNN based Model

CNN architecture

LSTM based Model

LSTM architecture

Hybrid Model

Hybrid Model

#Results

Accuracy

  • CNN based model : 79.28%
  • LSTM based model : 82.5%
  • Hybrid Model : 82.15%

Confusion Matrices

  • For cnn based model

    CNN based model cm

  • For LSTM based model

    LSTM based model cm

  • For hybrid model

    Hybrid Model cm

References


  • Dataset
@ONLINE {Sentiment140,
    author = "Go, Alec and Bhayani, Richa and Huang, Lei",
    title  = "Twitter Sentiment Classification using Distant Supervision",
    year   = "2009",
    url    = "http://help.sentiment140.com/home"
}