Update README.md
Browse files
README.md
CHANGED
@@ -7,10 +7,17 @@ language:
|
|
7 |
metrics:
|
8 |
- f1
|
9 |
- exact_match
|
|
|
10 |
---
|
11 |
# mBERT-hi-be-MLM-SQuAD-TyDi-MLQA Model Card
|
12 |
|
|
|
|
|
13 |
|
14 |
-
|
15 |
|
16 |
-
|
|
|
|
|
|
|
|
|
|
7 |
metrics:
|
8 |
- f1
|
9 |
- exact_match
|
10 |
+
pipeline_tag: question-answering
|
11 |
---
|
12 |
# mBERT-hi-be-MLM-SQuAD-TyDi-MLQA Model Card
|
13 |
|
14 |
+
## Use a pipeline as a high-level helper
|
15 |
+
from transformers import pipeline
|
16 |
|
17 |
+
pipe = pipeline("question-answering", model="hapandya/mBERT-hi-be-MLM-SQuAD-TyDi-MLQA")
|
18 |
|
19 |
+
## Load model directly
|
20 |
+
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
|
21 |
+
|
22 |
+
tokenizer = AutoTokenizer.from_pretrained("hapandya/mBERT-hi-be-MLM-SQuAD-TyDi-MLQA")
|
23 |
+
model = AutoModelForQuestionAnswering.from_pretrained("hapandya/mBERT-hi-be-MLM-SQuAD-TyDi-MLQA")
|