Update README.md
Browse files
README.md
CHANGED
@@ -9,7 +9,7 @@ This is a [roberta](https://arxiv.org/pdf/1907.11692.pdf) pre-trained version on
|
|
9 |
|
10 |
To load the model:
|
11 |
(necessary packages: !pip install transformers sentencepiece)
|
12 |
-
```
|
13 |
from transformers import AutoTokenizer, AutoModelWithLMHead, pipeline
|
14 |
tokenizer = AutoTokenizer.from_pretrained("dbernsohn/roberta-java")
|
15 |
model = AutoModelWithLMHead.from_pretrained("dbernsohn/roberta-java")
|
|
|
9 |
|
10 |
To load the model:
|
11 |
(necessary packages: !pip install transformers sentencepiece)
|
12 |
+
```python
|
13 |
from transformers import AutoTokenizer, AutoModelWithLMHead, pipeline
|
14 |
tokenizer = AutoTokenizer.from_pretrained("dbernsohn/roberta-java")
|
15 |
model = AutoModelWithLMHead.from_pretrained("dbernsohn/roberta-java")
|