matthewburke commited on
Commit
87ed5cf
·
1 Parent(s): e865204

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +7 -0
README.md ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ ```
2
+ from transformers import pipeline
3
+ classifier = pipeline("text-classification", model="matthewburke/korean_sentiment")
4
+ custom_tweet = "영화 재밌다."
5
+ preds = classifier(custom_tweet, return_all_scores=True)
6
+ is_positive = preds[0][1]['score'] > 0.5
7
+ ```