Project to do sentiment analysis on customer reviews (IMDB) and compare performance of various models.
- Archana Balachandran
- Sarneet Kaur
We implemented sentiment analysis on keras IMDB reviews dataset using following AL algorithms:
- CNN
- LSTM
- LSTM bi-directional
- LSTM with CNN
- LSTM with dropout
- Transformer
We also experimented with attention in LSTM-bidirectional model and multiple hidden-layers in CNN/LSTM.
Ensure you have installed all the dependencies:
pip install tensorflow
pip install keras
if you want to create graphs:
pip install matplotlib
pip install pydot
pip install pydotplus
pip install graphviz
To run a model, simply run:
python LSTM.py
python LSTM_bidirectional.py
python transformer.py