0Pricing
NLP Academy · Lesson

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

  1. Structuring a Real NLP Project
  2. scikit-learn Pipelines End to End
  3. Saving and Loading Your Model
  4. Predicting on Brand-New Text
← Back to NLP Academy