Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language: en
|
3 |
+
---
|
4 |
+
|
5 |
+
# RoCBert
|
6 |
+
|
7 |
+
## Introduction
|
8 |
+
|
9 |
+
RoCBert is a pretrained Chinese language model that is robust under various forms of adversarial attacks proposed by WeChatAI in 2022,
|
10 |
+
|
11 |
+
More detail: https://aclanthology.org/2022.acl-long.65.pdf
|
12 |
+
|
13 |
+
## How to use
|
14 |
+
```Python
|
15 |
+
from transformers import AutoTokenizer, AutoModel
|
16 |
+
tokenizer = AutoTokenizer.from_pretrained("weiweishi/roc-bert")
|
17 |
+
model = AutoModel.from_pretrained("weiweishi/roc-bert")
|
18 |
+
```
|
19 |
+
|
20 |
+
## Citation
|
21 |
+
|
22 |
+
```bibtex
|
23 |
+
@inproceedings{su2022rocbert,
|
24 |
+
title={RoCBert: Robust Chinese Bert with Multimodal Contrastive Pretraining},
|
25 |
+
author={Su, Hui and Shi, Weiwei and Shen, Xiaoyu and Xiao, Zhou and Ji, Tuo and Fang, Jiarui and Zhou, Jie},
|
26 |
+
booktitle={Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
|
27 |
+
pages={921--931},
|
28 |
+
year={2022}
|
29 |
+
}
|
30 |
+
```
|