Update README.md
Browse files
README.md
CHANGED
@@ -70,11 +70,11 @@ You can try the model online (fine-tuned on named entity recognition) using this
|
|
70 |
<h3>Quick usage</h3>
|
71 |
|
72 |
```python
|
73 |
-
from transformers import AutoTokenizer,
|
74 |
from transformers import pipeline
|
75 |
|
76 |
tokenizer = AutoTokenizer.from_pretrained("osiria/blaze-it")
|
77 |
-
model =
|
78 |
pipeline_mlm = pipeline(task="fill-mask", model=model, tokenizer=tokenizer)
|
79 |
```
|
80 |
|
|
|
70 |
<h3>Quick usage</h3>
|
71 |
|
72 |
```python
|
73 |
+
from transformers import AutoTokenizer, DistilBertForMaskedLM
|
74 |
from transformers import pipeline
|
75 |
|
76 |
tokenizer = AutoTokenizer.from_pretrained("osiria/blaze-it")
|
77 |
+
model = DistilBertForMaskedLM.from_pretrained("osiria/blaze-it")
|
78 |
pipeline_mlm = pipeline(task="fill-mask", model=model, tokenizer=tokenizer)
|
79 |
```
|
80 |
|