token-classification

<!-- This model card has been generated automatically according to the information the Trainer had access to. You should probably proofread and complete it, then remove this comment. -->

distilroberta-base-ner-wikiann-conll2003-3-class

This model is a fine-tuned version of distilroberta-base on the wikiann and conll2003 dataset. It consists out of the classes of wikiann.

O (0), B-PER (1), I-PER (2), B-ORG (3), I-ORG (4) B-LOC (5), I-LOC (6).

eval F1-Score: 96,25 (merged dataset)
test F1-Score: 92,41 (merged dataset)

Model Usage

from transformers import AutoTokenizer, AutoModelForTokenClassification
from transformers import pipeline

tokenizer = AutoTokenizer.from_pretrained("philschmid/distilroberta-base-ner-wikiann-conll2003-3-class")
model = AutoModelForTokenClassification.from_pretrained("philschmid/distilroberta-base-ner-wikiann-conll2003-3-class")

nlp = pipeline("ner", model=model, tokenizer=tokenizer, grouped_entities=True)
example = "My name is Philipp and live in Germany"

nlp(example)

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

Training results

It achieves the following results on the evaluation set:

It achieves the following results on the test set:

Framework versions