dain2 commited on
Commit
9d18064
ยท
verified ยท
1 Parent(s): 87ed5cf

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -4
README.md CHANGED
@@ -1,7 +1,6 @@
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("์‹ธ๋Š˜ํ•˜๋‹ค. ๊ฐ€์Šด์— ๋น„์ˆ˜๊ฐ€ ๋‚ ์•„์™€ ํžŒ๋‹ค.")
 
6
  ```