Update README.md
Browse files
README.md
CHANGED
@@ -1,47 +1,3 @@
|
|
1 |
-
Hugging Face's logo
|
2 |
-
Hugging Face
|
3 |
-
Search models, datasets, users...
|
4 |
-
Models
|
5 |
-
Datasets
|
6 |
-
Spaces
|
7 |
-
Docs
|
8 |
-
Solutions
|
9 |
-
Pricing
|
10 |
-
|
11 |
-
|
12 |
-
Hugging Face is way more fun with friends and colleagues! 🤗 Join an organization
|
13 |
-
|
14 |
-
mcsabai
|
15 |
-
/
|
16 |
-
huBert-fine-tuned-hungarian-squadv1 Copied
|
17 |
-
like
|
18 |
-
1
|
19 |
-
Question Answering
|
20 |
-
PyTorch
|
21 |
-
TensorFlow
|
22 |
-
Transformers
|
23 |
-
hu
|
24 |
-
bert
|
25 |
-
AutoTrain Compatible
|
26 |
-
Model card
|
27 |
-
Files and versions
|
28 |
-
Community
|
29 |
-
Settings
|
30 |
-
huBert-fine-tuned-hungarian-squadv1
|
31 |
-
/
|
32 |
-
README.md
|
33 |
-
mcsabai's picture
|
34 |
-
mcsabai
|
35 |
-
Update README.md
|
36 |
-
4d72ef9
|
37 |
-
about 2 months ago
|
38 |
-
raw
|
39 |
-
history
|
40 |
-
blame
|
41 |
-
edit
|
42 |
-
delete
|
43 |
-
Safe
|
44 |
-
2.03 kB
|
45 |
---
|
46 |
language: hu
|
47 |
thumbnail:
|
@@ -57,8 +13,26 @@ widget:
|
|
57 |
|
58 |
## MODEL DESCRIPTION
|
59 |
|
60 |
-
huBERT base model (cased) fine-tuned on
|
61 |
- huBert model + Tokenizer: https://huggingface.co/SZTAKI-HLT/hubert-base-cc
|
62 |
-
-
|
|
|
|
|
63 |
|
|
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
language: hu
|
3 |
thumbnail:
|
|
|
13 |
|
14 |
## MODEL DESCRIPTION
|
15 |
|
16 |
+
huBERT base model (cased) fine-tuned on SQuAD v2 (NEW!!)
|
17 |
- huBert model + Tokenizer: https://huggingface.co/SZTAKI-HLT/hubert-base-cc
|
18 |
+
- Hungarian SQUAD v2 dataset: Machine Translated SQuAD dataset (Google Translate API)
|
19 |
+
|
20 |
+
## Model in action
|
21 |
|
22 |
+
- Fast usage with pipelines:
|
23 |
|
24 |
+
```python
|
25 |
+
from transformers import pipeline
|
26 |
+
qa_pipeline = pipeline(
|
27 |
+
"question-answering",
|
28 |
+
model="mcsabai/huBert-fine-tuned-hungarian-squadv2",
|
29 |
+
tokenizer="mcsabai/huBert-fine-tuned-hungarian-squadv2"
|
30 |
+
)
|
31 |
+
predictions = qa_pipeline({
|
32 |
+
'context': "Anita vagyok és Budapesten élek már több mint 4 éve.",
|
33 |
+
'question': "Hol lakik Anita?"
|
34 |
+
})
|
35 |
+
print(predictions)
|
36 |
+
# output:
|
37 |
+
# {'score': 0.9892364144325256, 'start': 16, 'end': 26, 'answer': 'Budapesten'}
|
38 |
+
```
|