eriktks/conll2003
Updated • 41.3k • 166
How to use alvarobartt/distilbert-base-cased-ner with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="alvarobartt/distilbert-base-cased-ner") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("alvarobartt/distilbert-base-cased-ner")
model = AutoModelForTokenClassification.from_pretrained("alvarobartt/distilbert-base-cased-ner")This model is a fine-tuned version of distilbert-base-cased on the conll2003 dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|
| 0.1015 | 1.0 | 1756 | 0.1001 | 0.8858 | 0.9167 | 0.9010 | 0.9740 |
| 0.049 | 2.0 | 3512 | 0.0803 | 0.8993 | 0.9273 | 0.9131 | 0.9798 |
| 0.0327 | 3.0 | 5268 | 0.0794 | 0.9199 | 0.9350 | 0.9274 | 0.9821 |
| 0.0237 | 4.0 | 7024 | 0.0880 | 0.9050 | 0.9344 | 0.9194 | 0.9813 |
| 0.0131 | 5.0 | 8780 | 0.0849 | 0.9178 | 0.9446 | 0.9310 | 0.9837 |
| 0.0073 | 6.0 | 10536 | 0.0975 | 0.9166 | 0.9446 | 0.9304 | 0.9838 |
| 0.0044 | 7.0 | 12292 | 0.0965 | 0.9267 | 0.9475 | 0.9370 | 0.9842 |
| 0.0015 | 8.0 | 14048 | 0.1075 | 0.9273 | 0.9463 | 0.9367 | 0.9843 |
| 0.0011 | 9.0 | 15804 | 0.1089 | 0.9317 | 0.9480 | 0.9398 | 0.9847 |
| 0.0006 | 10.0 | 17560 | 0.1088 | 0.9321 | 0.9492 | 0.9405 | 0.9848 |
Base model
distilbert/distilbert-base-cased