Code Monkey home page Code Monkey logo

twitter-sentiment-analysis's Introduction

Twitter-Sentiment-Analysis

Twitter Sentiment Analysis with Linear SVM Classifier with TF-IDF and word2vec features.

Introduction

This project describes how I developed my understanding of text sentiment classification by implementing an SVM classifier and a Logistic Regressor and performing some further experiments to seek approaches that also work. The main system that I tried to implement for the final project is the approach used by NILC-USP that participated in SemEval 2017. NILC-USP uses three classifiers which is trained in a different feature space using bag-of-words model and word embeddings to represent sentences and uses a Linear SVM and a Logistic Regressor as base classifiers. Instead of implementing the voting ensemble, I focused more on how each of three classifiers was built, strengths and drawbacks of the system, and how well it performs.

Tools Used

  • Scikit Learn
  • Gensim (Word2Vec)
  • NLTK

Results

Classifier AvgRec Accuracy
SVM /w Tf-idf 0.579 0.581
SVM /w Tf-idf and Curse Word 0.579 0.582
SVM /w Word Embeddings 0.548 0.600
LogisticReg /w Weighted Word2Vec 0.577 0.528
SVM /w Weighted Word2Ve 0.576 0.520

twitter-sentiment-analysis's People

Contributors

whyjay17 avatar

Stargazers

H E R Y avatar  avatar Vadim Toptunov avatar RYeah Sh avatar

Watchers

James Cloos avatar Vadim Toptunov avatar  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.