Skip to content

Instantly share code, notes, and snippets.

@damzaky
Created April 6, 2020 10:41
Show Gist options
  • Save damzaky/a0d37101a2168f92c5044956a3207632 to your computer and use it in GitHub Desktop.
Save damzaky/a0d37101a2168f92c5044956a3207632 to your computer and use it in GitHub Desktop.
prediction = classifier.predict(vectorizer.transform([input('enter input: ')]).toarray())
print('positive' if prediction[0] == 1 else 'negative')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment