eriktks/conll2003
Updated • 32k • 177
How to use Lum4yx/distilbert-base-uncased-finetuned-ner with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="Lum4yx/distilbert-base-uncased-finetuned-ner") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("Lum4yx/distilbert-base-uncased-finetuned-ner")
model = AutoModelForTokenClassification.from_pretrained("Lum4yx/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 |
|---|---|---|---|---|---|---|---|
| No log | 1.0 | 220 | 0.0951 | 0.8731 | 0.8890 | 0.8810 | 0.9740 |
| No log | 2.0 | 440 | 0.0718 | 0.9029 | 0.9169 | 0.9099 | 0.9796 |
| 0.1848 | 3.0 | 660 | 0.0690 | 0.9090 | 0.9238 | 0.9163 | 0.9806 |
Base model
distilbert/distilbert-base-uncased