This project is an emotion detection system that uses natural language processing techniques to classify text into different emotions.
- Text preprocessing and cleaning
- Emotion classification using logistic regression model
- Python 3.7+
- Required Python packages (see
requirements.txt)
-
Clone the repository:
git clone https://github.com/raghulpranxsh/EmotionDetection.git cd emotion-detection -
Install dependencies:
pip install -r requirements.txt
-
Download GloVe Embeddings:
-
Download the GloVe embedding file (e.g.,
glove.6B.zip) -
Unzip the file and place the 300D
.txtembedding files inside theembeddings/folder in this project. -
OR you could run the ./glove.sh script to do this automatically
- Run the app:
streamlit run app.py
emotion-detection/
│
├── embeddings/ # Place GloVe files here
├── data/ # Dataset files
├── src/ # Source code
├── train.py # Training script
├── predict.py # Prediction script
├── requirements.txt # Python dependencies
└── README.md # Project documentation
- Make sure the
embeddings/folder contains the GloVe.txtfiles before running the code. - For any issues, please open an issue on the repository.