It is simplified implementation of Implementing a CNN for Text Classification in TensorFlow in Keras as functional api
Run the below command and it will run for 100 epochs if you want change it just open model.py
python model.py
you have rebuild the vocabulary and then train