How can I split tensor strings by multiple delimiters?

As part of using TextVectorization, I want to split a tensor string by whitespaces and colons (‘:’ character). Can anyone provide a hint on how do I do that?

Thanks.

See the “split” argument to TextVectorization:

https://www.tensorflow.org/api_docs/python/tf/keras/layers/TextVectorization

It can take a callable as input so write a callable that does the split.

ref:

https://www.tensorflow.org/api_docs/python/tf/strings/split