Multi-label Token Classification for NER
Collection
A collection of BERT models adapted for multi-label token classification, fine tuned on multiple NER datasets. • 7 items • Updated
bert-large-cased model to enable multi-label token classification.bert-large-cased and thus needs to be fine-tuned for downstream tasks.To initialize the model for fine tuning, simply provide id2label and label2id, similarly to standard token classification fine tuning:
from transformers import AutoModelForTokenClassification
model = AutoModelForTokenClassification.from_pretrained('jvaquet/multilabel-classification-bert',
id2label = id2label,
label2id = label2id,
trust_remote_code=True)