# nlp.py def sentiment_analysis(classifier, text): sentiment = classifier.get_sentiment_label_and_score(text) return sentiment