Fix: Replace incompatible model loading in example code
#8
by
anon-repair-bot
- opened
README.md
CHANGED
@@ -41,7 +41,7 @@ tokenizer = AutoTokenizer.from_pretrained('neuralmind/bert-base-portuguese-cased
|
|
41 |
```python
|
42 |
from transformers import pipeline
|
43 |
|
44 |
-
pipe = pipeline('fill-mask', model=
|
45 |
|
46 |
pipe('Tinha uma [MASK] no meio do caminho.')
|
47 |
# [{'score': 0.14287759363651276,
|
|
|
41 |
```python
|
42 |
from transformers import pipeline
|
43 |
|
44 |
+
pipe = pipeline('fill-mask', model="neuralmind/bert-base-portuguese-cased")
|
45 |
|
46 |
pipe('Tinha uma [MASK] no meio do caminho.')
|
47 |
# [{'score': 0.14287759363651276,
|