Question Answering
Transformers
PyTorch
Safetensors
English
bart
squad
squad_v2
Eval Results (legacy)
Instructions to use sjrhuschlee/bart-base-squad2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sjrhuschlee/bart-base-squad2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="sjrhuschlee/bart-base-squad2")# Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("sjrhuschlee/bart-base-squad2") model = AutoModelForQuestionAnswering.from_pretrained("sjrhuschlee/bart-base-squad2") - Notebooks
- Google Colab
- Kaggle
Commit ·
b801f39
1
Parent(s): 1b486a2
Upload tokenizer_config.json with huggingface_hub
Browse files- tokenizer_config.json +15 -0
tokenizer_config.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"bos_token": "<s>",
|
| 4 |
+
"clean_up_tokenization_spaces": true,
|
| 5 |
+
"cls_token": "<s>",
|
| 6 |
+
"eos_token": "</s>",
|
| 7 |
+
"errors": "replace",
|
| 8 |
+
"mask_token": "<mask>",
|
| 9 |
+
"model_max_length": 512,
|
| 10 |
+
"pad_token": "<pad>",
|
| 11 |
+
"sep_token": "</s>",
|
| 12 |
+
"tokenizer_class": "BartTokenizer",
|
| 13 |
+
"trim_offsets": true,
|
| 14 |
+
"unk_token": "<unk>"
|
| 15 |
+
}
|