eriktks/conll2003
Updated • 37.3k • 167
How to use iamdev/distilbert-base-uncased-finetuned-ner with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="iamdev/distilbert-base-uncased-finetuned-ner") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("iamdev/distilbert-base-uncased-finetuned-ner")
model = AutoModelForTokenClassification.from_pretrained("iamdev/distilbert-base-uncased-finetuned-ner")# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("iamdev/distilbert-base-uncased-finetuned-ner")
model = AutoModelForTokenClassification.from_pretrained("iamdev/distilbert-base-uncased-finetuned-ner")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.2436 | 1.0 | 878 | 0.0687 | 0.9063 | 0.9195 | 0.9128 | 0.9800 |
| 0.0501 | 2.0 | 1756 | 0.0587 | 0.9240 | 0.9356 | 0.9297 | 0.9835 |
| 0.0303 | 3.0 | 2634 | 0.0603 | 0.9280 | 0.9372 | 0.9326 | 0.9837 |
Base model
distilbert/distilbert-base-uncased
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="iamdev/distilbert-base-uncased-finetuned-ner")