File size: 131 Bytes
e548193
b08b610
e548193
 
1
2
3
4
# nlp.py
def sentiment_analysis(classifier, text): 
  sentiment = classifier.get_sentiment_label_and_score(text)
  return sentiment