KoichiYasuoka commited on
Commit
0a37cef
1 Parent(s): ec2384f

AutoModelForMaskedLM preferred

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -20,7 +20,7 @@ This is a RoBERTa model pre-trained on Classical Chinese texts, derived from [Gu
20
  ## How to Use
21
 
22
  ```py
23
- from transformers import AutoTokenizer,AutoModel
24
  tokenizer=AutoTokenizer.from_pretrained("KoichiYasuoka/roberta-classical-chinese-large-char")
25
- model=AutoModel.from_pretrained("KoichiYasuoka/roberta-classical-chinese-large-char")
26
  ```
 
20
  ## How to Use
21
 
22
  ```py
23
+ from transformers import AutoTokenizer,AutoModelForMaskedLM
24
  tokenizer=AutoTokenizer.from_pretrained("KoichiYasuoka/roberta-classical-chinese-large-char")
25
+ model=AutoModelForMaskedLM.from_pretrained("KoichiYasuoka/roberta-classical-chinese-large-char")
26
  ```