Instructions to use josu/roberta-pt-br with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use josu/roberta-pt-br with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="josu/roberta-pt-br")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("josu/roberta-pt-br") model = AutoModelForMaskedLM.from_pretrained("josu/roberta-pt-br") - Notebooks
- Google Colab
- Kaggle
Josué Nascimento da Silva commited on
Commit ·
87df2e2
1
Parent(s): 8e92d77
Update README.md
Browse files
README.md
CHANGED
|
@@ -9,6 +9,7 @@ widget:
|
|
| 9 |
---
|
| 10 |
|
| 11 |
``` python
|
|
|
|
| 12 |
unmasker = pipeline('fill-mask', model='josu/roberta-pt-br')
|
| 13 |
text = 'Brasilia é a capital do <mask>'
|
| 14 |
|
|
|
|
| 9 |
---
|
| 10 |
|
| 11 |
``` python
|
| 12 |
+
from transformers import pipeline
|
| 13 |
unmasker = pipeline('fill-mask', model='josu/roberta-pt-br')
|
| 14 |
text = 'Brasilia é a capital do <mask>'
|
| 15 |
|