Skip to content

Repository files navigation

NLP Emotion Classification

A Machine Learning project that uses Natural Language Processing (NLP) and Logistic Regression to classify text into different emotions.

The trained ML pipeline is integrated with FastAPI and a modern frontend built with HTML, CSS, and JavaScript.

Live demo: https://emotiq-ai.onrender.com


Features

  • 🧠 NLP-based emotion classification
  • 🔤 Text vectorization using CountVectorizer
  • 🤖 Logistic Regression classification
  • 🔌 FastAPI REST API
  • 🛡️ Pydantic input validation
  • 📊 Prediction confidence and probability distribution
  • 🎨 Modern responsive frontend
  • ⚡ Real-time prediction without page reload
  • 🌐 CORS support
  • 📱 Responsive UI for desktop and mobile

Supported Emotions

The model predicts six emotion categories:

  • Sadness
  • Anger
  • Love
  • Surprise
  • Fear
  • Joy

Tech Stack

Machine Learning

  • Python
  • Scikit-learn
  • CountVectorizer
  • Logistic Regression
  • Joblib

Backend

  • FastAPI
  • Pydantic
  • Uvicorn

Frontend

  • HTML
  • CSS
  • JavaScript

About

NLP emotion classification using CountVectorizer, Logistic Regression, FastAPI, Pydantic, and a premium HTML/CSS/JavaScript frontend.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages