Downloads · 30 days
0
huiqian/tiny-sentiment-classifier
tiny-sentiment-classifier is a text classification model from huiqian. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
这是一个非常小的自定义 Transformer 模型,用于中文情感二分类(正面/负面)。
Downloads · 30 days
0
Access
Public
Updated Jan 30, 2026
Repo size
12.7 MB
Likes
0
Public
Click a slice to open those files.
.safetensors12.7 MB · 97%
From the Hugging Face model README
这是一个非常小的自定义 Transformer 模型,用于中文情感二分类(正面/负面)。
from transformers import pipeline
# 加载模型
classifier = pipeline(
"text-classification",
model="huiqian/tiny-sentiment-classifier"
)
# 预测
text = "这家店的服务超级好,强烈推荐!"
result = classifier(text)
print(result)
# 示例输出: [{'label': '正面', 'score': 0.98}]