KoichiYasuoka
commited on
Commit
•
1e5f66d
1
Parent(s):
15e85a6
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-base-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-base-char")
|
25 |
+
model=AutoModelForMaskedLM.from_pretrained("KoichiYasuoka/roberta-classical-chinese-base-char")
|
26 |
```
|