Spend some time going through this notebook to see how it works.

IMDB Subwords 8K with 1D Convolutional Layer