Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Function to do classification a given review and return the label a
- # and the amount of confidence in the classifications
- def sentiment(text):
- feats = find_features(text)
- return ensemble_clf.classify(feats), ensemble_clf.confidence(feats)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement