Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Shekharsittle/Twitter-Sentiment-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Twitter-Sentiment-Analysis

Problem Statement :

Perform sentiment analysis on a subset of a larger Twitter dataset. Identify trends, major topics of discussion, and their associated sentiments.

Dataset

https://www.kaggle.com/datasets/kazanova/sentiment140

Exploratory Data Analysis

  • There were 1600000 rows and 6 columns, no null values present in datasets. image
  • From the above graph , we can infer that distribution of negative and positive words are approximately same.

Data Preprocessing

image Defined a function toremove any url ,punctuation , @ marks from the twittts and lemmetized the text for further model development.

Model Development and Evaluation

Developed a Naive Bayes , Logistic classification, Support Vector Machine and Random Forest classifier models , among which logistic classifier performed best with accuracy of 80%. image

RNN

Also developed a RNN model for classifying any tweet as negative and positive , upon which we can make an app by which we can judge whether the tweet is negative or positive.The accuracy of the model came out to 77.28 percent which was quite good. image

Trending words

Also we have got some positive and negative trending words from datasets. By help of these word we could know what are possible trends which are going on in the world . image image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published