Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
RosiSoyYo
/
AIIA
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
2a7bc10
AIIA
/
ml-service
/
nlp.py
RosiYo
feat[bert]: Basic logic
e548193
over 1 year ago
raw
Copy download link
history
blame
Safe
203 Bytes
# nlp.py
from
classifier
import
Classifier
classifier = Classifier()
def
sentiment_analysis
(
self, text:
str
, classifier
):
sentiment = classifier.get_sentiment_label_and_score(text)
return
sentiment