https://nlpforhackers.io/keras-intro/

In the previous tutorial on Deep Learning, we’ve built a super simple network with numpy. I figured that the best next step is to jump right in and build some deep learning models for text. The best way to do this at the time of writing is by using Keras .

What is Keras?

Keras is a deep learning framework that actually under the hood uses other deep learning frameworks in order to expose a beautiful, simple to use and fun to work with, high-level API. Keras can use either of these backends:

Keras uses these frameworks to deliver powerful computation while exposing a beautiful and intuitive (that kinda looks like scikit-learn) API.

Here’s what Keras brings to the table:

Let’s now start using Keras to develop various types of models for Natural Language Processing. Here’s what we’ll be building:

  1. (Dense) Deep Neural Network – The NN classic model – uses the BOW model
  2. Convolutional Network – build a network using 1D Conv Layers – uses word vectors
  3. Recurrent Networks – LSTM Network – Long Short-Term Memory – uses word vectors