eriktks/conll2003
Updated โข 45.4k โข 185
How to use Kamaljp/distilbert-base-uncased-finetuned-ner with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="Kamaljp/distilbert-base-uncased-finetuned-ner") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("Kamaljp/distilbert-base-uncased-finetuned-ner")
model = AutoModelForTokenClassification.from_pretrained("Kamaljp/distilbert-base-uncased-finetuned-ner", device_map="auto")This model is a fine-tuned version of distilbert-base-uncased 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.248 | 1.0 | 878 | 0.0676 | 0.9021 | 0.9205 | 0.9112 | 0.9805 |
| 0.0508 | 2.0 | 1756 | 0.0614 | 0.9208 | 0.9289 | 0.9248 | 0.9825 |
| 0.0308 | 3.0 | 2634 | 0.0610 | 0.9210 | 0.9327 | 0.9268 | 0.9828 |
Base model
distilbert/distilbert-base-uncased