GithubHelp home page GithubHelp logo

twitter-unsupervised-sentiment-analysis-and-time-series-visualization's Introduction

Medium Post Link: https://medium.com/@puneet.gajwal99/twitter-sentiment-and-time-series-analysis-e032f8b0f951

Twitter-Unsupervised-Sentiment-Analysis-and-Time-Series-Visualization

In this project, there are several notebooks and images for whose description is necessary.

1: Time Series.ipynb: Here I considered time as an important parameter to get insights of the data. There were several plots associated with this notebook such as hour vs tweets.png, tweets per hour.png , tweets per year.png. I also did one visualization with Tableau as it was more convenient there. Had done few visualizations actually but only one felt to be relevant.

2: Word Cloud.ipynb : As the name suggest, I created word cloud from the vocabulary that we had. Idea was to create word cloud from most frequent words but due to memory constraint, I was only able to select random 100 words from our vocabulary and create word cloud from that.

3: Word2Vec.ipynb: This is where I did most of the work. Here, entire data was used to create vocabulary. I only considered "tecxt" part of the data and carried out all the operations on that. I used SnowballStemmer as it always does the job right and removed stop words. Also used Rejex library from python which removes whatever you want from data and finally after all the cleaning, I created my word2vector representation of vocabulary.

4: K-Means.ipynb: Here I used our saved word2vec representation of vocabulary to train K-Means model which was the first one to predict the sentiment. Only if time allowed, I would've moved to some advance clustering algos such as DBSCAN. I wanted it to be simple. I made prediction for each word in my Vocab to find if it has a positive or a negative sentiment.

5: KMeans with TF-IDF.ipynb: As the name says, this notebook just contains KMeans but the vector was created with with TF-IDF and then the predcition was made.

If time and memory were not the concern, better approaches and more fine tuning of vecctor representation of our vocabulary could've been achieved.

twitter-unsupervised-sentiment-analysis-and-time-series-visualization's People

Contributors

puneetgajwal avatar

Stargazers

Shrutakeerti_1111 avatar asm avatar Aleksander Hansen avatar

Watchers

 avatar

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.