CogSphere / acogsphere.py
CognitiveScience's picture
Rename textsentiment.py to acogsphere.py
9cf59ea
raw
history blame
No virus
188 Bytes
from transformers import pipeline
classifier = pipeline("sentiment-analysis") #, model="stevhliu/my_awesome_model")
def acogsphere(text1):
result1=classifier(text1)
return result1