Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
from nltk.sentiment.vader import SentimentIntensityAnalyzer
import nltk
nltk.download('vader_lexicon')
user_input = input("Please Rate Our Services >>: ")
sid = SentimentIntensityAnalyzer()
score = sid.polarity_scores(user_input)
user_input = input("Please Rate Our Services >>: ")
sid = SentimentIntensityAnalyzer()
score = sid.polarity_scores(user_input)
if score["neg"] != 0:
print("Negative")
else:
print("Positive")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment