junnyu / roformer_chinese_char_small
Other510Updated Jan 4, 2022
Downloads
51
Likes
0
Last updated
Jan 4, 2022
License
Not available
text = "今天[MASK]很好,我[MASK]去公园玩。" tokenizer = RoFormerTokenizer.frompretrained("junnyu/roformerchinesecharsmall") ptmodel = RoFormerForMaskedLM.frompretrained("junnyu/roformerchinesecharsmall") ptinputs = tokenizer(text, returntensors="pt") with torch.nograd(): ptoutputs = ptmo…
Tasks & library
- fill mask
- transformers
Tags
- transformers
- pytorch
- tf
- jax
- roformer
- fill-mask
Technical specifications
ParametersNot available
Librarytransformers
Languageszh
LicenseNot available
