This project applies Bidirectional LSTM (BiLSTM) models for sentiment analysis, comparing self-trained word embeddings with pretrained GloVe embeddings.
Before running the scripts, install the required packages using the following command:
pip install tensorflow numpy matplotlib pandas scikit-learn- Sentiment140 Dataset: Download from Kaggle
- Unzip the dataset and place it in the project directory.
- GloVe Embeddings: Download from Stanford NLP GloVe
- Use glove.6B.100d.txt and unzip it in the project directory.
Ensure both the dataset and embeddings are placed in the correct directory before running the scripts.
Run the following commands separately to train both models:
python model_with_self_embedding.py
python model_with_GloVe.py