Commit ·
4898ef8
1
Parent(s): aed1300
Update README.md
Browse files
README.md
CHANGED
|
@@ -50,6 +50,7 @@ You can use the model directly with a pipeline for masked language modeling:
|
|
| 50 |
Or you can load the model and tokenizer and do what you need to do:
|
| 51 |
|
| 52 |
```python
|
|
|
|
| 53 |
>>> tokenizer = AutoTokenizer.from_pretrained("DmitryPogrebnoy/MedRuRobertaLarge")
|
| 54 |
>>> model = AutoModelForMaskedLM.from_pretrained("DmitryPogrebnoy/MedRuRobertaLarge")
|
| 55 |
```
|
|
|
|
| 50 |
Or you can load the model and tokenizer and do what you need to do:
|
| 51 |
|
| 52 |
```python
|
| 53 |
+
>>> from transformers import AutoTokenizer, AutoModelForMaskedLM
|
| 54 |
>>> tokenizer = AutoTokenizer.from_pretrained("DmitryPogrebnoy/MedRuRobertaLarge")
|
| 55 |
>>> model = AutoModelForMaskedLM.from_pretrained("DmitryPogrebnoy/MedRuRobertaLarge")
|
| 56 |
```
|