Skip to content

pathanin-kht/EmotionDetectionFromText

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Emotion Detection From Text v1.0.0

Project Status: No Longer Maintained

Overview

This project implements an emotion prediction system using natural language processing (NLP) to predict emotions from text input. The model is based on a logistic regression classifier and uses a TF-IDF vectorizer for text feature extraction. The system processes English text input and classifies it into one of three main emotion categories: Positive, Negative, and Neutral.

Accuracy

The model achieved an accuracy of 57.075% on the test dataset. The accuracy is moderate, as the model is still in the early stages of development and was trained with basic parameters.

Dataset

The dataset used for training is from Emotion Detection from Text.

Example

Here is an example of how the system works:

  1. The user enters a text such as "How cute you are"
  2. The model predicts the emotion as Positive.

Testcase

Installation

  1. Clone or download this repository.

    git clone https://github.com/pathanin-kht/EmotionDetectionFromText.git
  2. Install the required dependencies.

    pip install -r requirements.txt
  3. Download Emotion Detection from Text and place it in the same directory as the script, or update the dataset path in the code.

  4. Run the model.

    python emotion_train_model.py
  5. Start the server

    python app.py
    
  6. Open your browser and navigate to your localhost.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

For feedback or inquiries, feel free to reach out via [email protected].