Skip to content

Instantly share code, notes, and snippets.

@llSourcell
Last active January 25, 2020 19:26
Show Gist options
  • Select an option

  • Save llSourcell/f3e1de0a86975aa941387f8f1a6f8e36 to your computer and use it in GitHub Desktop.

Select an option

Save llSourcell/f3e1de0a86975aa941387f8f1a6f8e36 to your computer and use it in GitHub Desktop.
from fastText import load_model
classifier = load_model("model_tweet.bin")
texts = ['Life is good', 'Life is great', 'Life is bad']
labels = classifier.predict(texts)
print (labels)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment