I build a sentiment analysis model using this tutorial.
I later export it and saved it for later use.
It takes 30 seconds to make a prediction for 100 examples. I am using a free version of Google Colab.
results=[predictor.predict(c) for c in df.iloc[100:200,-1]]
My input are just simple texts. Would it be faster to transform all of them into a TextDataBunch and than call predict on all of thea?
I don’t know how to that either, especially since I am adding the examples dynamically.