TextGeneration: Use preprocessing layers to manage the text<-->id conversion.
TextGeneration: Use preprocessing layers to manage the text<-->id conversion.

Also: demonstrate a simple option for saving this model.

Closes: #1702
Closes: #1756
PiperOrigin-RevId: 350582556

tensorflow/docs,tensorflow/docs,tensorflow/docs