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