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
3c953de
shravan
/
sentiment_analysis.py
peb-peb
add summary topic sentiment features
ca9e7bd
about 1 year ago
raw
Copy download link
history
blame
No virus
173 Bytes
from
transformers
import
pipeline
def
sentiment_analyser
(
text
):
sent = pipeline(
"sentiment-analysis"
,model=
"siebert/sentiment-roberta-large-english"
)
return
sent(text)