Back to projects
IMDB Sentiment Analysis
PyTorchNLPRNN / GRUAttention

Sentiment classification of movie reviews with four models built from scratch in PyTorch: RNN, GRU, token-wise MLP and MLP with restricted self-attention. Attention lifts test accuracy from 80% to 84% and fixes the 'brilliant… but a disaster' cases the plain MLP gets wrong.