A Natural Language Processing (NLP) project that uses a Recurrent Neural Network (RNN) built with PyTorch to classify IMDB movie reviews as Positive or Negative.
IMDB Movie Reviews Dataset
- Binary sentiment classification
0→ Negative1→ Positive
Movie Review
↓
Text Preprocessing
↓
Tokenization & Padding
↓
Embedding
↓
RNN
↓
Fully Connected Layer
↓
Positive / Negative
- PyTorch
- Scikit-learn
- Python
- NumPy
- Pandas
- Matplotlib
- Seaborn
| Metric | Score |
|---|---|
| Accuracy | 88.99% |
| Precision | 89.02% |
| Recall | 88.99% |
| F1 Score | 88.99% |
Sentiment-Analysis-RNN/
│
├── Notebook/
│ └── RNN_Sentiments_Analysis.ipynb
│
├── models/
│ └── best_RNN_model.pt
│
├── Output/
│ ├── confusion_matrix.png
│ └── loss_curve.png
│
├── README.md
- Text prep-rocessing and tokenization
- Sequence padding
- Word embeddings
- RNN-based text classification
- Model training and validation
- Classification metrics and visualization
- Compare RNN, LSTM, and GRU
- Experiment with pretrained embeddings
- Explore Transformer-based sentiment analysis