Skip to content

Tamim556h/Software-Project-Lab--1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

21 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Sentiment Analyzer:

The Sentiment Analyzer is a C++-based machine learning project designed to automatically classify text into six emotion categories:

😊 Joy 😒 Sadness 😠 Anger 😨 Fear 😲 Surprise 😐 Disgust

The system analyzes both:

πŸ“š Training dataset

⌨️ Real-time user input

🧠 Machine Learning Algorithms Used This project implements and compares the following algorithms: Naive Bayes Classifier Logistic Regression

The main objective of this project is to: Compare the accuracy of different ML algorithms Evaluate performance differences Provide clear predictions for user-input sentences

πŸ—οΈ Project Structure

Sentiment_Analyzer/

β”‚

β”œβ”€β”€ src/ # Source files (.cpp)

β”œβ”€β”€ include/ # Header files

β”œβ”€β”€ bin/ # Compiled output

└── dataset/ # Training data

βš™οΈ How to Compile

Navigate to the project root directory:

cd Sentiment_Analyzer

Then compile using:

g++ -std=c++11 -o bin/emotion_detector src/*.cpp -I./include

▢️ How to Run

After successful compilation:

./bin/emotion_detector

πŸ“Š Features

Text preprocessing

Feature extraction

Probability-based classification

Multi-class emotion detection

Accuracy comparison between models

About

This project is a C++-based text emotion/sentiment classification system that identifies the emotion category of any user-given sentence.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages