Loading…
Loading…
optimizer.pt 35 MBmodel.safetensors 18 MBrng_state.pth 14.5 kBtraining_args.bin 5.8 kBscheduler.pt 1.5 kB这是一个基于 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}]