Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
| 1 |
---
|
| 2 |
license: cc-by-nd-4.0
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: cc-by-nd-4.0
|
| 3 |
---
|
| 4 |
+
|
| 5 |
+
How to use:
|
| 6 |
+
```
|
| 7 |
+
from transformers import pipeline
|
| 8 |
+
question_answerer = pipeline("question-answering", model="clarin-knext/herbert-large-poquad")
|
| 9 |
+
question="Jakie miasto jest stolic膮 Polski?"
|
| 10 |
+
context="Polska to pi臋kny kraj kt贸rego stolic膮 jest Warszawa."
|
| 11 |
+
question_answerer(question=question, context=context)
|
| 12 |
+
```
|