Instructions to use NAOKITY/bert-squad with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NAOKITY/bert-squad with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "question-answering" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("question-answering", model="NAOKITY/bert-squad")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("NAOKITY/bert-squad") model = AutoModelForQuestionAnswering.from_pretrained("NAOKITY/bert-squad", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from NAOKITY/bert-squad: direct link, hf CLI and curl.
- Browser
- Download file 573 Bytes
-
https://huggingface.co/NAOKITY/bert-squad/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://NAOKITY/bert-squad/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/NAOKITY/bert-squad/resolve/main/tokenizer_config.json
573 Bytes
| { | |
| "cls_token": "[CLS]", | |
| "do_basic_tokenize": true, | |
| "do_lower_case": false, | |
| "mask_token": "[MASK]", | |
| "name_or_path": "pierreguillou/bert-base-cased-squad-v1.1-portuguese", | |
| "never_split": null, | |
| "pad_token": "[PAD]", | |
| "sep_token": "[SEP]", | |
| "special_tokens_map_file": "/root/.cache/huggingface/transformers/eecc45187d085a1169eed91017d358cc0e9cbdd5dc236bcd710059dbf0a2f816.dd8bd9bfd3664b530ea4e645105f557769387b3da9f79bdb55ed556bdd80611d", | |
| "strip_accents": null, | |
| "tokenize_chinese_chars": true, | |
| "tokenizer_class": "BertTokenizer", | |
| "unk_token": "[UNK]" | |
| } | |