KoichiYasuoka commited on
Commit
1e5f66d
1 Parent(s): 15e85a6

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-base-char")
25
- model=AutoModel.from_pretrained("KoichiYasuoka/roberta-classical-chinese-base-char")
26
  ```
 
20
  ## How to Use
21
 
22
  ```py
23
+ from transformers import AutoTokenizer,AutoModelForMaskedLM
24
  tokenizer=AutoTokenizer.from_pretrained("KoichiYasuoka/roberta-classical-chinese-base-char")
25
+ model=AutoModelForMaskedLM.from_pretrained("KoichiYasuoka/roberta-classical-chinese-base-char")
26
  ```