Update README.md
Browse files
README.md
CHANGED
@@ -45,8 +45,8 @@ generator("早稲田 大学 で 自然 言語 処理 を", max_length=30, do_sam
|
|
45 |
|
46 |
```python
|
47 |
from transformers import AutoTokenizer, GPT2Model
|
48 |
-
tokenizer = AutoTokenizer.from_pretrained('nlp-waseda/gpt2-
|
49 |
-
model = GPT2Model.from_pretrained('nlp-waseda/gpt2-
|
50 |
text = "早稲田 大学 で 自然 言語 処理 を"
|
51 |
encoded_input = tokenizer(text, return_tensors='pt')
|
52 |
output = model(**encoded_input)
|
|
|
45 |
|
46 |
```python
|
47 |
from transformers import AutoTokenizer, GPT2Model
|
48 |
+
tokenizer = AutoTokenizer.from_pretrained('nlp-waseda/gpt2-xl-japanese')
|
49 |
+
model = GPT2Model.from_pretrained('nlp-waseda/gpt2-xl-japanese')
|
50 |
text = "早稲田 大学 で 自然 言語 処理 を"
|
51 |
encoded_input = tokenizer(text, return_tensors='pt')
|
52 |
output = model(**encoded_input)
|