shravan / sentiment_analysis.py
remotewith's picture
Duplicate from peb-peb/shravan
6aff00b
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)