shravan_duplicate / sentiment_analysis.py
peb-peb's picture
Duplicate from peb-peb/shravan
3788fdf
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)