But, here's an example that's similar to CSSRooster's model https://github.com/fchollet/keras/blob/master/examples/imdb_..., for the part that's different (mostly data preprocessing), you need to write your own according to your data anyway. Do let me know if you have any questions.