Predicting on Brand-New Text
Run inference on unseen input.
Inference Time
Training is done. Now comes inference: feeding brand-new, unseen text to your saved model and reading back its prediction. 🚀
Load the Model First
Start every prediction script by loading the saved pipeline. From here it behaves exactly like the model you trained.
import joblib
model = joblib.load("models/sentiment.joblib")All lessons in this course
- Structuring a Real NLP Project
- scikit-learn Pipelines End to End
- Saving and Loading Your Model
- Predicting on Brand-New Text