hapandya commited on
Commit
541fcfc
1 Parent(s): 9767f27

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -2
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
- ## Introduction
15
 
16
- Adding Soon...
 
 
 
 
 
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")