Nobuhiro Ueda commited on
Commit
7dac8ea
1 Parent(s): bc48bb3
Files changed (1) hide show
  1. README.md +2 -2
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("ku-nlp/roberta-large-japanese-char-wwm")
26
- model = AutoModelForMaskedLM.from_pretrained("ku-nlp/roberta-large-japanese-char-wwm")
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-large-japanese-char-wwm')
26
+ model = AutoModelForMaskedLM.from_pretrained('ku-nlp/roberta-large-japanese-char-wwm')
27
 
28
  sentence = '京都大学で自然言語処理を[MASK]する。'
29
  encoding = tokenizer(sentence, return_tensors='pt')