Coder Social home page Coder Social logo

pooja444 / sentiment-analysis-swm Goto Github PK

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

An academic project - part of the Semantic Web Mining course I was enrolled in during my Master's degree

Python 1.78% HTML 0.47% CSS 0.50% JavaScript 0.73% Jupyter Notebook 96.52%

sentiment-analysis-swm's Introduction

Sentiment Analysis

An academic project - detects the sentiment of a tweet

Follow the below steps for running this project

Data preprocessing

python3 -m venv venv
source ./venv/bin/activate
pip3 install -r requirements.txt

Follow the below steps for generating CSV out of the preprocessed data -

  • Install the Sentiment140 data set from - Kaggle
  • Run the command with the input CSV as file path ./data_preprocessing.py -f "path/to/file"

This creates a file called 'preprocessed_dataset.csv' that contains the preprocessed data

Pickle files -

Naive Bayes: https://drive.google.com/file/d/156ySQ004JB_FcvL7l31iHTqYDiWKAWcu/view?usp=sharing

BERT: https://drive.google.com/file/d/1dD6fCwtPuVPzCHCsj5h4XROr8gOPK147/view?usp=share_link

The above pickle files of pre-trained models have to be downloaded and placed in models/pkl/ folder.

Frontend server

Run the below commands to start the react application

npm install
npm start

Backend server

Run the below command to start the flask server

./server.py

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.