The new TextVectorization layer in Keras enables you to put your text preprocessing directly inside your models, in a way that is automatically serializable and deployable. You won't have to worry about separately keeping track of your vocabulary again.
Here's how to use it:
pic.twitter.com/62PNcd9Hxb