Skip to content

Instantly share code, notes, and snippets.

@lakshay-arora
Created April 27, 2020 06:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lakshay-arora/1e5007a8082bf02092d6e3ebf016995c to your computer and use it in GitHub Desktop.
Save lakshay-arora/1e5007a8082bf02092d6e3ebf016995c to your computer and use it in GitHub Desktop.
# 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