I have tensor with strings (tf.string) and I want to split this strings by regexp and make some preprocessing.
For example I have function
py_split(x):
x = x.lower()
x = re.split(r"(http:\/\/)|(https:\/\/)|(\W)", x)
return x
and I need to use it in tensorflow-transform graph for using with tf serving in future.
But TF does not allow me to work with tf.string's same as normal strings in python.
How can I solve my problem without making new TF op in C++?
P.S. I use TensorFlow 1.13