eriktks/conll2003
Updated • 38.6k • 166
How to use DidulaThavisha/distilroberta with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="DidulaThavisha/distilroberta") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("DidulaThavisha/distilroberta")
model = AutoModelForTokenClassification.from_pretrained("DidulaThavisha/distilroberta")This model is a fine-tuned version of distilroberta-base on the conll2003 dataset.
eval F1-Score: 95,29 (CoNLL-03)
test F1-Score: 90,74 (CoNLL-03)
eval F1-Score: 95,29 (CoNLL++ / CoNLL-03 corrected)
test F1-Score: 92,23 (CoNLL++ / CoNLL-03 corrected)
from transformers import AutoTokenizer, AutoModelForTokenClassification
from transformers import pipeline
tokenizer = AutoTokenizer.from_pretrained("philschmid/distilroberta-base-ner-conll2003")
model = AutoModelForTokenClassification.from_pretrained("philschmid/distilroberta-base-ner-conll2003")
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:
It achieves the following results on the evaluation set:
It achieves the following results on the test set: