Token Classification
Transformers
ONNX
Safetensors
English
ultrabert
information-extraction
extractive-qa
ner
span-extraction
tasksource
custom_code
Instructions to use tasksource/UltraBERT-150M-clairic-extraction with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tasksource/UltraBERT-150M-clairic-extraction with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="tasksource/UltraBERT-150M-clairic-extraction", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("tasksource/UltraBERT-150M-clairic-extraction", trust_remote_code=True) model = AutoModelForTokenClassification.from_pretrained("tasksource/UltraBERT-150M-clairic-extraction", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from tasksource/UltraBERT-150M-clairic-extraction: direct link, hf CLI and curl.
- Browser
- Download file 815 Bytes
-
https://huggingface.co/tasksource/UltraBERT-150M-clairic-extraction/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://tasksource/UltraBERT-150M-clairic-extraction/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/tasksource/UltraBERT-150M-clairic-extraction/resolve/main/tokenizer_config.json
815 Bytes
| { | |
| "add_prefix_space": false, | |
| "backend": "tokenizers", | |
| "bos_token": "<|endoftext|>", | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": "<|endoftext|>", | |
| "errors": "replace", | |
| "extra_special_tokens": [ | |
| "<|endoftext|>", | |
| "<|im_start|>", | |
| "<|im_end|>", | |
| "<repo_name>", | |
| "<reponame>", | |
| "<file_sep>", | |
| "<filename>", | |
| "<gh_stars>", | |
| "<issue_start>", | |
| "<issue_comment>", | |
| "<issue_closed>", | |
| "<jupyter_start>", | |
| "<jupyter_text>", | |
| "<jupyter_code>", | |
| "<jupyter_output>", | |
| "<|sep|>", | |
| "<|mask|>" | |
| ], | |
| "is_local": false, | |
| "local_files_only": false, | |
| "mask_token": "<|mask|>", | |
| "model_max_length": 32768, | |
| "pad_token": "<|endoftext|>", | |
| "sep_token": "<|sep|>", | |
| "tokenizer_class": "GPT2Tokenizer", | |
| "unk_token": "<|endoftext|>", | |
| "vocab_size": 49152 | |
| } | |