Open hatdropper1977 opened 1 year ago
Assigning to @mattdangerw who is already updating the guide
Hi @hatdropper1977
classifier
expects a preprocessed input because you set preprocessor=None
so you need to preprocess the input first.
That will work:
preprocesssed = preprocessor(["I love modular workflows in keras-nlp!"])
classifier.predict(preprocesssed)
Is your feature request related to a problem? Please describe. Documentation Request Please update: https://github.com/keras-team/keras-io/blob/master/guides/keras_nlp/getting_started.py
Describe the solution you'd like I would like to call my custom preprocessed model.
In the example given, I execute the following code:
I get a trained model:
I would like to predict with my new model:
and I get an error: "Layer "bert_classifier" expects 3 input(s), but it received 1 input tensors. "
I would appreciate a quick code block or documentation block (could be a "prologue") to demonstrate how to call this model.
Thanks!