Coder Social home page Coder Social logo

saurabhpatel98 / sentiment-analysis-web-app_on_productreview_using_streamlit_and_nlp Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 41.38 MB

This project provides an interactive dashboard for performing sentiment analysis on product and company reviews. The dashboard is built using Python and Streamlit, and allows users to filter and visualize reviews from a dataset of customer reviews for various products and companies.

Python 17.21% Jupyter Notebook 82.79%

sentiment-analysis-web-app_on_productreview_using_streamlit_and_nlp's Introduction

Sentiment Analysis Dashboard on Amazon Product reviews using streamlit and NLP This project provides an interactive dashboard for performing sentiment analysis on product and company reviews. The dashboard is built using Python and Streamlit, and allows users to filter and visualize reviews from a dataset of customer reviews for various products and companies.

The dashboard offers three filters: by company, by product, and by sentiment result. Users can select multiple companies and products to filter the reviews, and can see the filtered data in a table view. The sentiment analysis results are displayed in a pie chart or a bar chart, depending on user preference. The dashboard also provides some key performance indicators (KPIs) such as the total number of reviews, the number and percentage of positive and negative reviews, and the average rating.

The code uses a machine learning model based on Natural Language Processing (NLP) techniques to perform sentiment analysis on the reviews. The model was trained on a dataset of product reviews using Python's Scikit-learn library. The resulting model is then used to classify the reviews as positive or negative.

The dashboard is deployed on Heroku, a cloud platform that allows users to deploy, manage, and scale applications. The source code is available on GitHub, along with the dataset used for training the sentiment analysis model.

Overall, this project provides an easy-to-use and interactive way to analyze customer sentiment towards products and companies. The dashboard can be useful for companies to monitor their online reputation, identify areas for improvement, and make data-driven decisions based on customer feedback.

  • Create a virtual environment

    • install virtual environment

      pip install virtualenv
      
    • create virtual environment by the name ENV

      virtualenv ENV
      
    • activate ENV

      .\ENV\Scripts\activate
      
  • Install project dependencies

    pip install -r .\requirements.txt
    
  • Run the project

    python app.py
    
  • Look for the local host address on Powershell screen, something like: 127.0.0.1:5000 >> Type it on your Web Browser >> Project shall load

  • Try out your Amazon Alexa test reviews and look for results

  • To close >> Go back to Powershell & type ctrl+c >> Deactivate Virtual Environment ENV

    deactivate
    

Steps to run on Mac

  • Prerequisites: Python 3.9

  • Open Terminal >> navigate to working directory >> Clone this Github Repo

    git clone https://github.com/saurabhpatel98/sentiment-analysis-web-app_on_ProductReview_using_streamlit_and_nlp.git  
    
  • Navigate to new working directory (cloned repo folder)

  • Create a virtual environment

    • install virtual environment

      pip install virtualenv
      
    • create virtual environment by the name ENV

      virtualenv ENV  
      
    • activate ENV

      source ENV/bin/activate
      
  • Install project dependencies

    pip install -r requirements.txt  
    
  • Run the project

    python app.py
    
  • Look for the local host address on Terminal screen, something like: 127.0.0.1:5000 >> Type it on your Web Browser >> Project shall load

  • Try out your Amazon Alexa test reviews and look for results

  • To close >> Go back to Terminal & type ctrl+c >> Deactivate Virtual Environment ENV

    deactivate
    

Filtered_data result Main Page

sentiment-analysis-web-app_on_productreview_using_streamlit_and_nlp's People

Contributors

saurabhpatel98 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

fickya1987

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.