Coder Social home page Coder Social logo

yanicakj / yhack2019 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 28.07 MB

Repo for hackathon project for YHack2019 @ Yale University. Social media analysis taking unique factors into account such as emojis and sarcasm

Python 19.17% HTML 11.01% JavaScript 69.82%

yhack2019's Introduction

Mining Insights Online:

JetBlue Customer Sentiment Prediction and Opinion Mining with Tweets

Our Goal

Because JetBlue puts a high emphasis on a customer-centric approach, social media is a great tool for gathering opinions. The algorithms we incorporated were developed to suit the needs of their business.

JetBlue's 2018 Annual Report stated that they wanted to "bring back humanity to air travel". In the same manner, we attempted to incorporate the aspects of humanity that typical Sentiment Analyzers are not able to pick up, such as sarcasm and emojis, into the pre-trained and well-developed Sentiment Analysis models.

How We Built It

To collect the tweets relevant to JetBlue, we used the Twitter API and tweepy Python API for sending requests to get the tweets. Then our data was stored on a MongoDB database running on a Linux instance using Google Cloud Platform's Compute Engine.

We also had a Flask API endpoint created to make it easier perform data analysis on a Jupyter notebook running locally. To perform our data analysis, we had to ensure that our data was cleansed. For this task, we used the following:

  • Kaggle datasets for emoji sentiment and binary sarcasm classifier, imported with pandas
  • nltk library's TweetTokenizer to remove user handles
  • Hashtag to individual words using wordninja
  • TfidfVectorizer and PorterStemmer from sci-kit learn Python package to train sarcasm detection algorithm
  • emojis library to identify emojis
  • matplotlib for data visualization purposes

Our website was developed using create-react-app and our components were built using React-Bootstrap and Google Charts.

We deployed on the app on Netlify, and it is viewable here!

DevPost page can be found here.

Main Page

yhack_sc_1

Insights Page

yhack_sc_2

Emoji Analysis Page

yhack_sc_3

Google Cloud Platform Console

Where we hosted our MongoDB on Redhat Linux VM

yhack_sc_5

yhack_sc_4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.