Skip to content

Sunnyloooo/sentiment-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Sentiment Analyzer

A simple web application that analyzes emotions and sentiments in text using OpenAI's API.

Features

  • Basic Sentiment: Positive/Negative/Neutral classification
  • Detailed Emotions: Joy, anger, fear, sadness, etc.
  • Comprehensive Analysis: Full emotional breakdown with key phrases
  • Visual Results: Sentiment meter and emotion breakdown charts

Quick Start

  1. Open index.html in your browser
  2. Enter your OpenAI API Key
  3. Paste text to analyze
  4. Click "Analyze Sentiment"

Requirements

Project Structure

├── index.html          # Main application
├── script.js          # Main script
├── style.css          # Main style
├── README.md           # This file
└── test-data.md        # Sample test cases

Test Examples

Positive Text:

I'm absolutely thrilled about this new opportunity!

Negative Text:

This service was terrible and completely disappointing.

Mixed Emotions:

Excited about vacation but worried about work deadlines.

Technology

  • Pure HTML/CSS/JavaScript
  • OpenAI GPT-3.5-turbo API
  • No build process required

License

MIT License

About

A simple web application that analyzes emotions and sentiments in text using OpenAI's API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published