This project implements various sentiment text classifiers using the python deep learning library: Keras. There are build, tuned and tested 4 neural network models:
- Simple MLP
- Stacked CNN
- Multiple CNN
- Bi-directional LSTM
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Install the requirements.txt
- run the python script for each model
simple_mlp.py
orstacked_cnn.py
ormultiple_filter_cnn.py
orlstm.py
.
In order to run the code in your local environment, please make sure your have python 3. and above and to have installed the needed python libraries. To install the libraries please run on your console:
pip install -r requirements.txt
The project consists of the following main classes: