title: Check perplexity of a Language Model
body: <p>I created a language model with Keras LSTM and now I want to assess wether it's good so I want to calculate perplexity.</p>
  
  <p>What is the best way to calc perplexity of a model in Python?</p>