Based on
chinese-roberta-wwm-ext-base
, we fine-tuned a sentiment analysis version on 8 Chinese sentiment analysis datasets, with totaling 227,347 samples.
下游效果 Performance
模型 Model
ASAP-SENT
ASAP-ASPECT
ChnSentiCorp
Erlangshen-Roberta-110M-Sentiment
97.77
97.31
96.61
Erlangshen-Roberta-330M-Sentiment
97.9
97.51
96.66
Erlangshen-MegatronBert-1.3B-Sentiment
98.1
97.8
97
使用 Usage
from transformers import BertForSequenceClassification
from transformers import BertTokenizer
import torch
tokenizer=BertTokenizer.from_pretrained('IDEA-CCNL/Erlangshen-Roberta-110M-Sentiment')
model=BertForSequenceClassification.from_pretrained('IDEA-CCNL/Erlangshen-Roberta-110M-Sentiment')
text='今天心情不好'
output=model(torch.tensor([tokenizer.encode(text)]))
print(torch.nn.functional.softmax(output.logits,dim=-1))
If you are using the resource for your work, please cite the our
paper
:
@article{fengshenbang,
author = {Jiaxing Zhang and Ruyi Gan and Junjie Wang and Yuxiang Zhang and Lin Zhang and Ping Yang and Xinyu Gao and Ziwei Wu and Xiaoqun Dong and Junqing He and Jianheng Zhuo and Qi Yang and Yongfeng Huang and Xiayu Li and Yanghan Wu and Junyu Lu and Xinyu Zhu and Weifeng Chen and Ting Han and Kunhao Pan and Rui Wang and Hao Wang and Xiaojun Wu and Zhongshen Zeng and Chongpei Chen},
title = {Fengshenbang 1.0: Being the Foundation of Chinese Cognitive Intelligence},
journal = {CoRR},
volume = {abs/2209.02970},
year = {2022}
}
Erlangshen-Roberta-110M-Sentiment huggingface.co is an AI model on huggingface.co that provides Erlangshen-Roberta-110M-Sentiment's model effect (), which can be used instantly with this IDEA-CCNL Erlangshen-Roberta-110M-Sentiment model. huggingface.co supports a free trial of the Erlangshen-Roberta-110M-Sentiment model, and also provides paid use of the Erlangshen-Roberta-110M-Sentiment. Support call Erlangshen-Roberta-110M-Sentiment model through api, including Node.js, Python, http.
Erlangshen-Roberta-110M-Sentiment huggingface.co is an online trial and call api platform, which integrates Erlangshen-Roberta-110M-Sentiment's modeling effects, including api services, and provides a free online trial of Erlangshen-Roberta-110M-Sentiment, you can try Erlangshen-Roberta-110M-Sentiment online for free by clicking the link below.
IDEA-CCNL Erlangshen-Roberta-110M-Sentiment online free url in huggingface.co:
Erlangshen-Roberta-110M-Sentiment is an open source model from GitHub that offers a free installation service, and any user can find Erlangshen-Roberta-110M-Sentiment on GitHub to install. At the same time, huggingface.co provides the effect of Erlangshen-Roberta-110M-Sentiment install, users can directly use Erlangshen-Roberta-110M-Sentiment installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
Erlangshen-Roberta-110M-Sentiment install url in huggingface.co: