Spaces:
Sleeping
Sleeping
Commit
·
5bd9000
1
Parent(s):
b962413
Update app.py
Browse files
app.py
CHANGED
@@ -5,9 +5,9 @@ nltk.download('vader_lexicon')
|
|
5 |
def sentiment_analysis(sentiment_text):
|
6 |
score = SentimentIntensityAnalyzer().polarity_scores(sentiment_text)
|
7 |
print(score)
|
8 |
-
if score['compound']<(-0.
|
9 |
return "Negative Feedback"
|
10 |
-
elif score['compound']>0.
|
11 |
return "Positive Feedback"
|
12 |
else:
|
13 |
return "Neutral Feedback"
|
|
|
5 |
def sentiment_analysis(sentiment_text):
|
6 |
score = SentimentIntensityAnalyzer().polarity_scores(sentiment_text)
|
7 |
print(score)
|
8 |
+
if score['compound']<(-0.3):
|
9 |
return "Negative Feedback"
|
10 |
+
elif score['compound']>0.3:
|
11 |
return "Positive Feedback"
|
12 |
else:
|
13 |
return "Neutral Feedback"
|