GithubHelp home page GithubHelp logo

theablemo / ml-final-project-sentiment-analysis Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.81 MB

This repository contains the code for the final project of the Machine Learning course taught by Dr. Abolfazl Motahari in the Spring semester of 2023 at Sharif University of Technolog

Jupyter Notebook 100.00%

ml-final-project-sentiment-analysis's Introduction

Sentiment Analysis using different classification methods

This is the final project for the Machine Learning course. In this project, I run sentiment analysis on this dataset using different classification methods. First, I will talk about the data preprocessing and word vectorization methods, and then I will talk about the classification methods that I used.

The project notebook can be found here. Documentation is available here.

Results are available in the notebook and the documentation.

Data preprocessing

The following preprocessing tasks are done on the data:

  • Low casing words
  • Delete additional spaces
  • Remove stopwords
  • Remove punctuation marks
  • Word Lemmatization: Using the nltk library
  • Word Tokenization

After that, I leveraged the undersampling method to balance classes.

Word embedding

I used the following methods to embed words:

  1. TFIDF Vectorization: Using the sklearn library
  2. CBOW
  3. Skip-Gram

Classification methods

The following classification methods are used:

  • Logistic Regression
  • Gaussian Naive Bayes
  • Random Forest
  • Adaboost
  • Support Vector Machine (SVM)
  • Neural Net (MLP)

ml-final-project-sentiment-analysis's People

Contributors

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