Views
No views yet
1# pip install transformers>=4.25.1
2
3from transformers import AutoTokenizer, AutoModel
4tokenizer = AutoTokenizer.from_pretrained("weiweishi/roc-bert-base-zh")
5model = AutoModel.from_pretrained("weiweishi/roc-bert-base-zh")1@inproceedings{su2022rocbert,
2 title={RoCBert: Robust Chinese Bert with Multimodal Contrastive Pretraining},
3 author={Su, Hui and Shi, Weiwei and Shen, Xiaoyu and Xiao, Zhou and Ji, Tuo and Fang, Jiarui and Zhou, Jie},
4 booktitle={Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
5 pages={921--931},
6 year={2022}
7}