Downloads · 30 days
16
0% of all-time downloads
philschmid/distilroberta-base-ner-wikiann-conll2003-4-class
distilroberta-base-ner-wikiann-conll2003-4-class is a token classification model from philschmid. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as apache-2.0.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
16
0% of all-time downloads
All-time downloads
3.2K
Public
Repo size
652 MB
Likes
0
Public
Click a slice to open those files.
.bin326 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of distilroberta-base on the wikiann and conll2003 dataset. It consists out of the classes of conll2003.
O (0), B-PER (1), I-PER (2), B-ORG (3), I-ORG (4) B-LOC (5), I-LOC (6) B-MISC (7), I-MISC (8).
eval F1-Score: 95,39 (merged dataset)
test F1-Score: 90,75 (merged dataset)
from transformers import AutoTokenizer, AutoModelForTokenClassification
from transformers import pipeline
tokenizer = AutoTokenizer.from_pretrained("philschmid/distilroberta-base-ner-wikiann-conll2003-4-class")
model = AutoModelForTokenClassification.from_pretrained("philschmid/distilroberta-base-ner-wikiann-conll2003-4-class")
nlp = pipeline("ner", model=model, tokenizer=tokenizer, grouped_entities=True)
example = "My name is Philipp and live in Germany"
nlp(example)
The following hyperparameters were used during training:
It achieves the following results on the evaluation set:
It achieves the following results on the test set: