Skip to content

Machine learning models and analysis for Twitter sentiments. Detects and positive or negative emotion through the text of a tweet.

Notifications You must be signed in to change notification settings

Ryan-Essss/Twitter_SentimentalAnalysis

 
 

Repository files navigation

Twitter_Analysis

This project uses machine learning to create a Twitter sentiment natural language processor. A Flask app was created for a user to input a tweet and decide if it was a positive or negative tweet.

Table of Contents

General Info

Twitter Data was found on Kaggle, cleaned, and created a pipeline to train and predict several models using Scikit Learn and Pyspark.

The data is cleaned, tokenized, stop words are removed, CoutVectorizer is used to discover the term frequency, and then the word input is hashed.

Models

  • Naive Bayes
  • K Nearest Neighbor
  • Deep Learning
  • Logistic Regression
  • Decision Trees
  • Support Vector Machine

svm

results

Tools

  • Pyspark
  • Python
  • Jupyter Notebook
  • Pandas
  • scikit-learn
  • Tableau
  • HTML, CSS, and JavaScript
  • Bootstrap
  • Flask

Flask App

A website was created to create an analysis on a user-made tweet. Symbols, punctuation, user-names, and spaces are removed and then we utilize our NLP Pipeline.

flask

Sentiment Output

The most common words and phrases used in a positive or negative tweet.

Positive

positive

Negative

negative

About

Machine learning models and analysis for Twitter sentiments. Detects and positive or negative emotion through the text of a tweet.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 99.8%
  • Other 0.2%