Skip to content

This is a repository to learn building a sentiment predication model which can be used to determine the nature and sentiment of any sentance(s)

Notifications You must be signed in to change notification settings

aakashtuteja4/Sentiment_Analysis

Repository files navigation

Sentiment_Analysis

This is a repository to learn building a sentiment predication model

Amazon Review Classification

  • Files:
    • Data_Exploration_and_Modelling.ipynb : Notebook file used for EDA, Data cleaning and Model exploration and building.
    • app.py : Flask App for testing the generated models
    • Models : Pickel files for generated models and other requried pickel files
    • Templates : HTML files for Flask app

Steps to run this flask app on your local machine:

Step 1: Clone the repository

git clone https://github.com/Surbhit01/Amazon-Alexa-Reviews.git

Step 2: Open the cloned repository and create a conda environment. Activate the new environment

conda create -n amazonreview python=3.10
conda activate amazonreview

Step 3: Install the requirements file

pip install -r requirements.txt

Step 4: Run the app

flask --app api.py run

Step 5: The app will run on port 5000.

localhost:5000

Amazon Review Classification via ROBERTA

  • In this i have used already avaliable pre-trained model from Hugging-Face (Transformers), to do sentiment analysis

Amazon Review Classification via VADER

  • In this i have used VADER from NLTK to do sentiment analysis (SentimentIntensityAnalyzer)

About

This is a repository to learn building a sentiment predication model which can be used to determine the nature and sentiment of any sentance(s)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published