Emotion Detection for Text using LSTM is a deep learning project that focuses on analyzing the sentiment of text data and categorizing it into different emotional categories such as sadness, joy, love, anger, fear, and surprise using Long Short-Term Memory (LSTM) networks.
- Introduction
- Technologies/Tools Used
- Description
- Installation
- Usage
- Screenshots
- Dataset
- Contributing
- License
Emotion Detection for Text using LSTM leverages deep learning techniques, specifically Long Short-Term Memory (LSTM) networks, to analyze the sentiment of textual data. By training LSTM models on labeled text data, this project aims to accurately detect the emotional content of text data.
- Python
- TensorFlow
- Keras
- NLTK
- Jupyter Notebook
The project preprocesses text data by tokenizing, removing stopwords, and stemming the words to enhance the accuracy of emotion detection. It then utilizes LSTM (Long Short-Term Memory) networks, a type of recurrent neural network (RNN), to classify the text into predefined emotional categories. The model is trained on labeled text data to learn the patterns associated with each emotion.
-
Clone the repository:
git clone https://github.com/your_username/emotion-detection-text-lstm.git
-
Install dependencies:
pip install -r requirements.txt
-
Open the Jupyter Notebook:
jupyter notebook emotion_detection_text_lstm.ipynb
-
Follow the instructions in the notebook to execute the code and analyze the sentiment of text data.
The dataset used for training the LSTM model can be found in the notebook.
Contributions are welcome! Please fork the repository and create a pull request with your proposed changes.
This project is licensed under the MIT License.