This github repo uses keras 2.0 to create a 1D CNN for sentiment analysis from the IMDB dataset.
git clone https://github.com/Neoanarika/Keras-Implementation-of-1D-CNN-for-sentence-classification.git
cd Keras-Implementation-of-1D-CNN-for-sentence-classification
python cnn_classification2.py
pip install numpy==1.16.1
- The pretrain model I uploaded was only trained in 1 epoch I have not included the full 5 epochs yet.
- The model is evaluated using logloss not accuracy