Skip to content

Pranav0931/Youtube_Channel_Analysis_NLP_Project_

Repository files navigation

YouTube Sentiment Analyzer (NLP Final Project)

This project analyzes YouTube comments and predicts sentiment as Positive, Negative, or Neutral using a TF-IDF vectorizer and a machine learning classifier.

Repository Requirements Checklist

This repository includes all required items:

Project Structure

Setup

  1. Create and activate a virtual environment.
  2. Install dependencies:
pip install streamlit scikit-learn pandas textblob

Run the Web Application

python -m streamlit run app.py

Then open the local URL shown in the terminal (usually http://localhost:8501).

Retrain the Model (Optional)

If model files are missing or corrupted, retrain with:

python train_model.py

This regenerates:

Colab Usage

You can open Youtube_Channel_Analysis_NLP_Project_C_final.ipynb directly in Google Colab by uploading it to Colab or selecting it from your GitHub repository once pushed.

Notes

  • The Streamlit app loads model files from the repository root.
  • If pickle loading errors appear, run train_model.py to regenerate model artifacts.

About

YouTube Comment Sentiment Analyzer built with NLP (TF-IDF + Machine Learning) and Streamlit. This project trains a sentiment model on YouTube comments and predicts Positive, Negative, or Neutral sentiment through a simple web interface.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors