dain2 commited on
Commit
b646407
·
verified ·
1 Parent(s): 87ed5cf

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -5
README.md CHANGED
@@ -1,7 +1,5 @@
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
- ```
 
1
  ```
2
  from transformers import pipeline
3
+
4
+ classifier = pipeline("sentiment-analysis")
5
+ classifier("I've been waiting for a HuggingFace course my whole life.")