thanks for the code.
some small questions:

if i write more such complex functions docorating with @tf.function and as long as I stick to functions and classes tensorflow and it’s libraries(like tf, tf.keras, tf-addons, tf-text tf-transform etc,.), will the saved-model be loadable in other environments? if not, where can I find what part of tensorflow code can and can’t be used in these functions?
are you telling me that, if i had trained and used SentencePiece 1 tokenisers, I can use them in pre-processing functions and in the tf-serving graph using text.SentencepieceTokenizer 1?