Downloads · 30 days
6
8% of all-time downloads
zjb522/bert-tiny-zjb-sentiment-v2-final
bert-tiny-zjb-sentiment-v2-final is a text classification model from zjb522. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
这是一个基于 BERT-Tiny 架构微调的双语(中文/英文)情感分析模型。该模型使用约5000条高质量的中英双语数据进行训练,能够以极高的准确率和置信度判断文本的情感倾向(正面/负面)。
Downloads · 30 days
6
8% of all-time downloads
All-time downloads
78
Public
Parameters
4.4M
52.7 MB on disk
Likes
0
Public
Click a slice to open those files.
.pt35.1 MB · 65%
From the Hugging Face model README
这是一个基于 BERT-Tiny 架构微调的双语(中文/英文)情感分析模型。该模型使用约5000条高质量的中英双语数据进行训练,能够以极高的准确率和置信度判断文本的情感倾向(正面/负面)。
This is a bilingual (Chinese/English) sentiment analysis model fine-tuned on the BERT-Tiny architecture. Trained on approximately 5000 high-quality bilingual data pairs, it can judge the emotional tendency (positive/negative) of text with high accuracy and confidence.
prajjwal1/bert-tinyLABEL_1 为正面, LABEL_0 为负面) 及置信度 / Label (LABEL_1 for positive, LABEL_0 for negative) with confidence score.您可以直接使用 transformers 库的 pipeline API:
You can use the pipeline API from the transformers library directly:
from transformers import pipeline
classifier = pipeline("text-classification", model="zjb522/bert-tiny-zjb-sentiment-v2")
result = classifier("The atmosphere and service of this restaurant are top-notch!")
print(result)
# [{'label': 'LABEL_1', 'score': 0.9958407282829285}]