Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# Model Card for BERT-based Question Answering Model
|
2 |
|
3 |
## Model Details
|
@@ -48,4 +58,4 @@ def answer_question(question, context):
|
|
48 |
start_idx = outputs.start_logits.argmax()
|
49 |
end_idx = outputs.end_logits.argmax()
|
50 |
answer = tokenizer.convert_tokens_to_string(tokenizer.convert_ids_to_tokens(inputs["input_ids"][0][start_idx:end_idx + 1]))
|
51 |
-
return answer
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
language:
|
4 |
+
- en
|
5 |
+
metrics:
|
6 |
+
- bleu
|
7 |
+
base_model:
|
8 |
+
- google-bert/bert-base-uncased
|
9 |
+
new_version: google-bert/bert-base-uncased
|
10 |
+
---
|
11 |
# Model Card for BERT-based Question Answering Model
|
12 |
|
13 |
## Model Details
|
|
|
58 |
start_idx = outputs.start_logits.argmax()
|
59 |
end_idx = outputs.end_logits.argmax()
|
60 |
answer = tokenizer.convert_tokens_to_string(tokenizer.convert_ids_to_tokens(inputs["input_ids"][0][start_idx:end_idx + 1]))
|
61 |
+
return answer
|