Joelzhang commited on
Commit
90b48f3
1 Parent(s): 21ff55d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +56 -14
README.md CHANGED
@@ -4,7 +4,7 @@ language:
4
  license: apache-2.0
5
 
6
  tags:
7
- - bert
8
  - NLU
9
  - Sentiment
10
  - Chinese
@@ -15,11 +15,41 @@ widget:
15
  - text: "今天心情不好"
16
 
17
  ---
18
- # Erlangshen-Roberta-110M-Semtiment, model (Chinese),one model of [Fengshenbang-LM](https://github.com/IDEA-CCNL/Fengshenbang-LM).
19
- We collect 8 sentiment datasets in the Chinese domain for finetune, with a total of 227347 samples. Our model is mainly based on [roberta](https://huggingface.co/hfl/chinese-roberta-wwm-ext)
20
 
21
- ## Usage
22
- ```python
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  from transformers import BertForSequenceClassification
24
  from transformers import BertTokenizer
25
  import torch
@@ -31,17 +61,29 @@ text='今天心情不好'
31
 
32
  output=model(torch.tensor([tokenizer.encode(text)]))
33
  print(torch.nn.functional.softmax(output.logits,dim=-1))
34
-
35
  ```
36
- ## Scores on downstream chinese tasks
37
- | Model | ASAP-SENT | ASAP-ASPECT | ChnSentiCorp |
38
- | :--------: | :-----: | :----: | :-----: |
39
- | Erlangshen-Roberta-110M-Sentiment | 97.77 | 97.31 | 96.61 |
40
- | Erlangshen-Roberta-330M-Sentiment | 97.9 | 97.51 | 96.66 |
41
- | Erlangshen-MegatronBert-1.3B-Sentiment | 98.1 | 97.8 | 97 |
42
- ## Citation
43
- If you find the resource is useful, please cite the following website in your paper.
 
 
 
 
 
 
 
44
  ```
 
 
 
 
 
 
45
  @misc{Fengshenbang-LM,
46
  title={Fengshenbang-LM},
47
  author={IDEA-CCNL},
 
4
  license: apache-2.0
5
 
6
  tags:
7
+ - roberta
8
  - NLU
9
  - Sentiment
10
  - Chinese
 
15
  - text: "今天心情不好"
16
 
17
  ---
18
+ # Erlangshen-Roberta-110M-Sentiment
 
19
 
20
+ - Github: [Fengshenbang-LM](https://github.com/IDEA-CCNL/Fengshenbang-LM)
21
+ - Docs: [Fengshenbang-Docs](https://fengshenbang-doc.readthedocs.io/)
22
+
23
+ ## 简介 Brief Introduction
24
+
25
+ 中文的RoBERTa-wwm-ext-base在数个情感分析任务微调后的版本
26
+
27
+ This is the fine-tuned version of the Chinese BERT model on several sentiment analysis datasets, which topped FewCLUE and ZeroCLUE benchmark in 2021
28
+
29
+ ## 模型分类 Model Taxonomy
30
+
31
+ | 需求 Demand | 任务 Task | 系列 Series | 模型 Model | 参数 Parameter | 额外 Extra |
32
+ | :----: | :----: | :----: | :----: | :----: | :----: |
33
+ | 通用 General | 自然语言理解 NLU | 二郎神 Erlangshen | Roberta | 110M | Sentiment |
34
+
35
+ ## 模型信息 Model Information
36
+
37
+ 基于[chinese-roberta-wwm-ext-base](https://huggingface.co/hfl/chinese-roberta-wwm-ext-base),我们在收集的4个中文领域的NLI(自然语言推理)数据集,总计1014787个样本上微调了一个Sentiment版本。
38
+
39
+ Based on [chinese-roberta-wwm-ext-base](https://huggingface.co/hfl/chinese-roberta-wwm-ext-base), we fine-tuned an NLI version on 4 Chinese Natural Language Inference (NLI) datasets, with totaling 1,014,787 samples.
40
+
41
+ ### 下游效果 Performance
42
+
43
+ | 模型 Model | ASAP-SENT | ASAP-ASPECT | ChnSentiCorp |
44
+ | :--------: | :-----: | :----: | :-----: |
45
+ | Erlangshen-Roberta-110M-Sentiment | 97.77 | 97.31 | 96.61 |
46
+ | Erlangshen-Roberta-330M-Sentiment | 97.9 | 97.51 | 96.66 |
47
+ | Erlangshen-MegatronBert-1.3B-Sentiment | 98.1 | 97.8 | 97 |
48
+
49
+
50
+ ## 使用 Usage
51
+
52
+ ``` python
53
  from transformers import BertForSequenceClassification
54
  from transformers import BertTokenizer
55
  import torch
 
61
 
62
  output=model(torch.tensor([tokenizer.encode(text)]))
63
  print(torch.nn.functional.softmax(output.logits,dim=-1))
 
64
  ```
65
+
66
+ ## 引用 Citation
67
+
68
+ 如果您在您的工作中使用了我们的模型,可以引用我们的[论文](https://arxiv.org/abs/2209.02970):
69
+
70
+ If you are using the resource for your work, please cite the our [paper](https://arxiv.org/abs/2209.02970):
71
+
72
+ ```text
73
+ @article{fengshenbang,
74
+ author = {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 and Ruyi Gan and Jiaxing Zhang},
75
+ title = {Fengshenbang 1.0: Being the Foundation of Chinese Cognitive Intelligence},
76
+ journal = {CoRR},
77
+ volume = {abs/2209.02970},
78
+ year = {2022}
79
+ }
80
  ```
81
+
82
+ 也可以引用我们的[网站](https://github.com/IDEA-CCNL/Fengshenbang-LM/):
83
+
84
+ You can also cite our [website](https://github.com/IDEA-CCNL/Fengshenbang-LM/):
85
+
86
+ ```text
87
  @misc{Fengshenbang-LM,
88
  title={Fengshenbang-LM},
89
  author={IDEA-CCNL},