david dada logodavid dada logodavid dada logodavid dada logo
    • Home
    • Projects
      • Wildfire Analytics Dashboard
      • Movie Review Sentiment
      • WalletWatch – Mobile Finance App
      • Customer Behaviour Prediction
      • Detecting AI-Generated Text
      • Speech to Code
      • Web-App Portfolio
      • Airplane Simulator
    • About
    • Contact
      Detecting AI-Generated Text
      April 29, 2023
      WalletWatch – Mobile Finance App
      December 12, 2023
      Published by David on December 2, 2023
      Categories
      • Uncategorized
      Tags

      Movie Reviews – Sentiment Analysis using Naive Bayes

      ♢
      Summary

      This project builds a Naive Bayes classifier completely from scratch to classify the sentiment for movie reviews.

      The model is then deployed in Flask to Docker to make instantaneous predictions.

      Skills

      Python • Scikit-Learn • Data Preprocessing • Model Evaluation • Model Deployment • Flask • Docker • Sentiment Analysis • Naive Bayes • NLTK

      Key Highlights

      Deployment: A working model in a Jupyter notebook is only 10% of the battle. I focused on deploying this model to a Dockerized production environment for scalability, reliability, reproducibility.

      Model Versioning: Model parameters were saved and versioned to provide model versioning

      NB Classifier: building a Naive Bayes classifier from scratch to demonstrate robust understanding of the classifier.

      Model Evaluation: With a balanced dataset of exactly 50% positive and 50% negative class (feeds into the Naive prior probability) and a custom NB model, we get weak results. Of course major improvements can be made by leveraging more powerful models that don’t have the inherent naivety of prior probabilities.

      SWE: Taking this project farther by implementing an interactive avatar with animated emotions matching the classified sentiment.

      Preprocessing: Using NLTK to remove stopwords, sanitizing input, text normalization.. etc.

      Application Demo:

      Demonstrating sentiment analysis with interactive animations.

      Interested in the full project ?

      Project Code
      Share

      Related posts

      May 20, 2024

      Wildfire Analytics Dashboard


      Read more
      December 14, 2023

      NYC – Data Ingestion Pipeline


      Read more
      December 12, 2023

      WalletWatch – Mobile Finance App


      Read more

      Reach Me:
      Contact Form

      Find Me:
      Linkedin
      Github