Giter VIP home page Giter VIP logo

ghostlikeneutrino / airline-sentiment-analysis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ikshitamishra/airline-sentiment-analysis

0.0 0.0 0.0 1.25 MB

Analyse the sentiments of the airlines tweets using Term frequency - Inverse Document Frequency. First, the tweets are preprocessed then a Document Term Matrix is created using TfidfVectorizer. Classifier such as Decision Tree, Random Forest, k-Support Vector Machine and k- Nearest Neighbours are trained to predict accurate sentiments.

Jupyter Notebook 100.00%

airline-sentiment-analysis's Introduction

Airline-Sentiment-Analysis

The dataset includes airline reviews scrapped from Twitter. People have tweeted positive, negative and neutral tweets on airlines. This project analyse the sentiments of the tweets using Term frequency - Inverse Document Frequency. First, the tweets are preprocessed such as removal of hyperlinks, URLs, mentions(@), hashtags (#), emojies etc. Tweets undergo stopword removal, lemmatization and tokenization. A Document Term Matrix is created using Term frequency - Inverse Document Frequency Vectorizer. The matrix, retweet feature along with class labels are fed into Machine Learning classifier. Classifier such as Decision Tree, Random Forest, k-Support Vector Machine and k- Nearest Neighbours are trained to predict accurate sentiments. The models are trained and tested k-Fold times ( k = 5 ). Performance is evaluated using Average Accuracy, Average Precision, Average Recall and F-Score across all k-Folds.

Conclusion:

Average Accuracy:

Decision Tree Claasifier : 67.46 % 

Random Forest Classifier: 73.04 %

Kernal-Support Vector Machine: 71.67 %

K-Nearest Neighbour: 60.54%

Clearly, Random Forest predicts better accurate results than other machine learning classifiers. k-Nearest Neighbour predict least accurate results.

airline-sentiment-analysis's People

Contributors

ikshitamishra 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.