shravan / sentiment_analysis.py
peb-peb's picture
add summary topic sentiment features
ca9e7bd
from transformers import pipeline
def sentiment_analyser(text):
sent = pipeline("sentiment-analysis",model="siebert/sentiment-roberta-large-english")
return sent(text)