Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. # Function to do classification a given review and return the label a
  2. # and the amount of confidence in the classifications
  3. def sentiment(text):
  4. feats = find_features(text)
  5. return ensemble_clf.classify(feats), ensemble_clf.confidence(feats)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement