Instructions to use lfcc/bert-portuguese-squad2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lfcc/bert-portuguese-squad2 with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "question-answering" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("question-answering", model="lfcc/bert-portuguese-squad2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("lfcc/bert-portuguese-squad2") model = AutoModelForQuestionAnswering.from_pretrained("lfcc/bert-portuguese-squad2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -5,6 +5,18 @@ tags:
|
|
| 5 |
model-index:
|
| 6 |
- name: bert-portuguese-squad2
|
| 7 |
results: []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 5 |
model-index:
|
| 6 |
- name: bert-portuguese-squad2
|
| 7 |
results: []
|
| 8 |
+
|
| 9 |
+
widget:
|
| 10 |
+
- text: O que quer Mateusz Morawiecki?
|
| 11 |
+
context: >-
|
| 12 |
+
O primeiro-ministro da Polónia, Mateusz Morawiecki, manifestou-se hoje
|
| 13 |
+
favorável à reintrodução da pena de morte para delitos mais graves, uma
|
| 14 |
+
opção na qual reconheceu divergências com a Igreja Católica e que o afastaria
|
| 15 |
+
das regras europeias nesta área.
|
| 16 |
+
A Carta de direitos fundamentais da União Europeia (UE) estabelece no artigo
|
| 17 |
+
2.º que "ninguém pode ser condenado à pena de morte nem executado", mas
|
| 18 |
+
Morawiecki defendeu a reabertura do debate na Polónia e advertiu que o mundo
|
| 19 |
+
pode estar a avançar apressadamente para a sua abolição.
|
| 20 |
---
|
| 21 |
|
| 22 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|