Created
April 27, 2020 06:15
-
-
Save lakshay-arora/1e5007a8082bf02092d6e3ebf016995c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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