noriegall / Capstone2-Sentiment-Analysis-of-Twitter-data

Twitter is a treasure trove of sentiments. In this report, we assess the feasibility of using Python based supervised learning to classify tweets as positive, negative or neutral. The goal of this project is to predict Twitter users’ political sentiment towards electoral college in U.S. for a given Twitter post.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Twitter Sentiment Analysis of Electoral College in U.S.

Twitter is a treasure trove of sentiments. In this report, we assess the feasibility of using Python based supervised machine learning to classify tweets.The goal of this project is to predict Twitter users’ political sentiment towards electoral college in U.S. for a given Twitter post. Many Americans are critical of the Electoral College, an attitude that seems to have intensified since Donald Trump defeated Hillary Clinton in the 2016 presidential election despite losing the popular vote.

Sentiment Analysis is simply gauging the feelings behind a piece of content.It maps and measures the relationships and flows of information between people, communities and organizations In this work, we will build a machine learning classifier that can detect sentiment to classify tweets (pieces of text) as positive, negative or neutral by analyzing the feeling that Twitter users have towards “electoral college”.In this report, we discuss the nuisances met in handling the data , cleaning the data, and extracting features from the data. Finally, using the extracted features, classification algorithms are trained, and their performance is assessed. Python code used for data preprocessing, analysing, modeling in this Github link.

To create target variable, we have compared several sentiment analyzer tools which are widely available for classifying the data such as VADER, Textblob, SentiWordNet lexicon from NTLK, StanfordCoreNLP, Afinn as provided in this link.

Approach:

A project flowchart below shows the order of methods involved in the completion of this project.

Capstone2flowchart

Example snippets:

mostusedhash

wc

stdr

ee

Model Comparison and Selection:

The performance of all models can be compared in the score table below:

nm

The PDF format of this report can be found here.

About

Twitter is a treasure trove of sentiments. In this report, we assess the feasibility of using Python based supervised learning to classify tweets as positive, negative or neutral. The goal of this project is to predict Twitter users’ political sentiment towards electoral college in U.S. for a given Twitter post.


Languages

Language:Jupyter Notebook 100.0%