Emotions_BERT

作者 cappuch · 下载 0 · 点赞 0 · 更新 2023-11-03

text-classification tensorflow

Usage


from transformers import RobertaTokenizerFast, TFRobertaForSequenceClassification, pipeline

tokenizer = RobertaTokenizerFast.from_pretrained("cappuch/Emotions_BERT")
model = TFRobertaForSequenceClassification.from_pretrained("cappuch/Emotions_BERT")

classific = pipeline('sentiment-analysis', 
                    model='cappuch/Emotions_BERT')

labels = classific("Hello!")
print(labels)

#[{'label': 'neutral', 'score': 0.9964383244514465}]

模型信息

该模型卡暂无预览图和文字说明。以下信息来自 Hugging Face。

作者 cappuch
类型—
基础模型—
标签text-classification、tensorflow
下载0
点赞0
更新时间2023-11-03
Hugging Face https://huggingface.co/cappuch/Emotions_BERT