Nobuhiro Ueda
commited on
Commit
•
e82a1b8
1
Parent(s):
3d802fd
tweak
Browse files
README.md
CHANGED
@@ -22,8 +22,8 @@ You can use this model for masked language modeling as follows:
|
|
22 |
|
23 |
```python
|
24 |
from transformers import AutoTokenizer, AutoModelForMaskedLM
|
25 |
-
tokenizer = AutoTokenizer.from_pretrained(
|
26 |
-
model = AutoModelForMaskedLM.from_pretrained(
|
27 |
|
28 |
sentence = '京都大学で自然言語処理を[MASK]する。'
|
29 |
encoding = tokenizer(sentence, return_tensors='pt')
|
|
|
22 |
|
23 |
```python
|
24 |
from transformers import AutoTokenizer, AutoModelForMaskedLM
|
25 |
+
tokenizer = AutoTokenizer.from_pretrained('ku-nlp/roberta-base-japanese-char-wwm')
|
26 |
+
model = AutoModelForMaskedLM.from_pretrained('ku-nlp/roberta-base-japanese-char-wwm')
|
27 |
|
28 |
sentence = '京都大学で自然言語処理を[MASK]する。'
|
29 |
encoding = tokenizer(sentence, return_tensors='pt')
|