Downloads · 30 days
51
10% of all-time downloads
jinhybr/distilroberta-ConLL2003
distilroberta-ConLL2003 is a token classification model from jinhybr. 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
51
10% of all-time downloads
All-time downloads
508
Public
Parameters
81.5M
326 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors326 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of distilroberta-base on ConLL2003 dataset. It achieves the following results on the evaluation set in Named Entity Recognition (NER)/Token Classification task:
from transformers import AutoTokenizer, AutoModelForTokenClassification
from transformers import pipeline
tokenizer = AutoTokenizer.from_pretrained("jinhybr/distilroberta-ConLL2003")
model = AutoModelForTokenClassification.from_pretrained("jinhybr/distilroberta-ConLL2003")
nlp = pipeline("ner", model=model, tokenizer=tokenizer, grouped_entities=True)
example = "My name is Tao Jin and live in Canada"
ner_results = nlp(example)
print(ner_results)
[{'entity_group': 'PER', 'score': 0.99686015, 'word': ' Tao Jin', 'start': 11, 'end': 18}, {'entity_group': 'LOC', 'score': 0.9996836, 'word': ' Canada', 'start': 31, 'end': 37}]
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | F1 |
|---|---|---|---|---|
| 0.1666 | 1.0 | 439 | 0.0621 | 0.9345 |
| 0.0499 | 2.0 | 878 | 0.0564 | 0.9391 |
| 0.0273 | 3.0 | 1317 | 0.0553 | 0.9469 |
| 0.0167 | 4.0 | 1756 | 0.0553 | 0.9492 |
| 0.0103 | 5.0 | 2195 | 0.0572 | 0.9516 |
| 0.0068 | 6.0 | 2634 | 0.0585 | 0.9536 |