Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Duplicated from
peb-peb/shravan
Rahul04052000
/
shravan
like
0
Sleeping
App
Files
Files
Community
6086f8c
shravan
/
sentiment_analysis.py
peb-peb
add summary topic sentiment features
ca9e7bd
over 1 year ago
raw
Copy download link
history
blame
Safe
173 Bytes
from
transformers
import
pipeline
def
sentiment_analyser
(
text
):
sent = pipeline(
"sentiment-analysis"
,model=
"siebert/sentiment-roberta-large-english"
)
return
sent(text)