Giter VIP home page Giter VIP logo

ndhartanto / twitter_sentiment_analysis_svm Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 582 KB

Implementing text mining for sentiment analysis of Indonesian public opinion on Twitter using Naive Bayes and Support Vector Machine (SVM) text classification.

Jupyter Notebook 100.00%
naive-bayes naive-bayes-classifier sentiment-analysis support-vector-machine svm-classifier vader-sentiment-analysis vader-sentiment-analyzer confusion-matrix seaborn matplotlib

twitter_sentiment_analysis_svm's Introduction

Text Mining Implementation for Sentiment Analysis of Indonesian Public Opinion on Trade Relations Between Indonesia and China With Naive Bayes and SVM Text Classification

Table of Contents

  1. About The Project
  2. Contact
  3. Acknowledgements

About The Project

The purpose of this research is to implement text mining for sentiment analysis of Indonesian public opinion on trade relations between Indonesia and China with Naïve Bayes and Support Vector Machine (SVM) text. The research begins with data crawling from Twitter; data cleansing; translating the text into English using GoSlate; sentiment analysis using VADER or TextBlob; data pre-processing with NTLK or SpaCy with or without lemmatization; splitting the data for training and testing using the Hold-Out method with 70:30 and 80:20 ratio; text classification with Naïve Bayes and SVM; and calculating the accuracy, precision, recall, and f-measure based on confusion matrix.

The results showed that SVM text classification consistently has a higher accuracy rate than Naive Bayes. The combination that produces the highest level of accuracy is using VADER, SpaCy without lemmatization, and SVM with 80:20 training:testing ratio, resulting in 76.40% accuracy, 74.55% precision, 76.4% recall, and 74.48% F-measure.

Poster

Built With

This project was built using:

Contact

[email protected]

Acknowledgements

twitter_sentiment_analysis_svm's People

Contributors

ndhartanto avatar

Stargazers

 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.