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?


See the “split” argument to TextVectorization:

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