Hello,
We are trying to replace sklearn CountVectorizer 8 with TextVectorization 8. We experimented with a text dataset of 400K sentences with unigrams and bigrams. We used adapt to build the vocabulary.
We wrote a small Keras model as shown in the documentation with a vectorization layer and compiled the model.
The predict is significantly slower (by 500 times on a desktop, no GPUs) than sklearn’s transfrom function. Any suggestions?
Thank you!