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