Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# import joblib
from joblib import load
# sample tweet text
text = ["Virat Kohli, AB de Villiers set to auction their 'Green Day' kits from 2016 IPL match to raise funds"]
# load the saved pipleine model
pipeline = load("text_classification.joblib")
# predict on the sample tweet text
pipeline.predict(text)
## >> array([0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.