Categories
Misc

How do you create a model which takes as input a string and passes it to a tokenizer?

As I asked here on StackOverflow, I’m having problems building a model with strings as input since the input layer is a tf.keras.Input(shape=(1,), dtype=tf.string, name=’text’) but the BERT tokenizer expects a string. How do you extract the input string from the keras input?

submitted by /u/childintime9
[visit reddit] [comments]

Leave a Reply

Your email address will not be published. Required fields are marked *