CognitiveScience commited on
Commit
b7718a5
1 Parent(s): 4fe8a03

Create acogsphere.py

Browse files
Files changed (1) hide show
  1. acogsphere.py +6 -0
acogsphere.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from transformers import pipeline
2
+
3
+ classifier = pipeline("sentiment-analysis") #, model="stevhliu/my_awesome_model")
4
+ def acf(text1):
5
+ acfresult=classifier(text1)
6
+ return acfresult