KoichiYasuoka
commited on
Commit
•
0a37cef
1
Parent(s):
ec2384f
AutoModelForMaskedLM preferred
Browse files
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,
|
24 |
tokenizer=AutoTokenizer.from_pretrained("KoichiYasuoka/roberta-classical-chinese-large-char")
|
25 |
-
model=
|
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 |
```
|