Token Classification
Transformers
Safetensors
PyTorch
longformer
text-classification
bert
legal-domain
entity-classification
sequence-classification
NER
label-studio
english
fine-tuned
Instructions to use lblod/longformer-classifier-refinement-abb with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lblod/longformer-classifier-refinement-abb with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="lblod/longformer-classifier-refinement-abb")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("lblod/longformer-classifier-refinement-abb") model = AutoModelForSequenceClassification.from_pretrained("lblod/longformer-classifier-refinement-abb", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "additional_special_tokens": [ | |
| { | |
| "content": "[E]", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| { | |
| "content": "[/E]", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| ], | |
| "bos_token": "<s>", | |
| "cls_token": "<s>", | |
| "eos_token": "</s>", | |
| "mask_token": { | |
| "content": "<mask>", | |
| "lstrip": true, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": "<pad>", | |
| "sep_token": "</s>", | |
| "unk_token": "<unk>" | |
| } | |