title: Keras Tokenizer: random results due to different mapping of text tokens and IDs
body: <p>I am training a neural network in Keras. I am using its Tokenizer function like this:</p>
  
  <pre><code>tokenizer = Tokenizer(filters='')
  tokenizer.fit_on_texts(words)
  sequences = tokenizer.texts_to_sequences(texts)
  </code></pre>
  
  <p>Unfortunately each time I run the code the mapping between text tokens and IDs is different. So if I want to load a saved model I'll get different results each time.</p>
  
  <p>How can I get the same Tokenizer for both training and running the model?  </p>