A Bidirectional LSTM Approach to Twitter Sentiment Analysis.
This project implements a Bidirectional Long Short-Term Memory (Bi-LSTM) model to perform sentiment analysis on Twitter data. The model is designed to classify tweets into positive or negative sentiments, enhancing the understanding of public opinion on various topics.
Bi_LSTM_Sentiment_Analysis.ipynb
: Jupyter Notebook containing the data preprocessing steps, model architecture, training process, and evaluation metrics.dataset.zip
: Compressed file containing the dataset used for training and testing the model.README.md
: Project documentation.
- Python 3.x
- Jupyter Notebook
- TensorFlow
- Pandas
- NumPy
- Scikit-learn
- NLTK (Natural Language Toolkit)
-
Clone the Repository:
git clone https://github.com/AkshadK7/LSTM_Sentiment_Analysis.git cd LSTM_Sentiment_Analysis
-
Install Dependencies: It's recommended to use a virtual environment to manage dependencies.
pip install -r requirements.txt
-
Extract the Dataset: Unzip the
dataset.zip
file to access the dataset. -
Run the Jupyter Notebook:
jupyter notebook Bi_LSTM_Sentiment_Analysis.ipynb
- Open the
Bi_LSTM_Sentiment_Analysis.ipynb
notebook. - Follow the steps outlined to preprocess the data, train the Bi-LSTM model, and evaluate its performance.
- Modify the notebook as needed to experiment with different model architectures or parameters.
The model's performance metrics and visualizations of the predictions versus actual sentiments are provided in the notebook. These insights can help in understanding the model's accuracy and areas for improvement.
This project is licensed under the MIT License. See the LICENSE file for details.
Special thanks to the contributors of the datasets and the open-source community for providing tools and libraries that made this project possible.
*Note: Ensure that the `requirements.txt` file includes all necessary dependencies for the project. If it doesn't exist, you may need to create it by listing the required packages.*