from transformers import pipeline
classifier = pipeline("text-classification", model="matthewburke/korean_sentiment")
custom_tweet = "영화 재밌다."
preds = classifier(custom_tweet, return_all_scores=True)
is_positive = preds[0][1]['score'] > 0.5
from transformers import pipeline
classifier = pipeline("text-classification", model="matthewburke/korean_sentiment")
custom_tweet = "영화 재밌다."
preds = classifier(custom_tweet, return_all_scores=True)
is_positive = preds[0][1]['score'] > 0.5
该模型卡暂无预览图和文字说明。以下信息来自 Hugging Face。
| 作者 | matthewburke |
|---|---|
| 类型 | — |
| 基础模型 | — |
| 标签 | — |
| 下载 | 3876 |
| 点赞 | 11 |
| 更新时间 | 2023-10-31 |
| Hugging Face | https://huggingface.co/matthewburke/korean_sentiment |