Created
November 7, 2018 22:13
-
-
Save mbednarski/34aaabab7e5ab0a9a7e9768d78a2fb9f to your computer and use it in GitHub Desktop.
This file contains hidden or 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 pickle | |
| with open('tfidf.pickle', 'rb') as f: | |
| tfidf = pickle.load(f) | |
| with open('model.pickle', 'rb') as f: | |
| clf = pickle.load(f) | |
| x = input("Please enter your phrase: ") | |
| y = clf.predict_proba(tfidf.transform([x])) | |
| print(y[0]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment