leondz/wnut_17
Updated • 4.49k • 19
How to use phi0108/ner with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="phi0108/ner") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("phi0108/ner")
model = AutoModelForTokenClassification.from_pretrained("phi0108/ner")# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("phi0108/ner")
model = AutoModelForTokenClassification.from_pretrained("phi0108/ner")This model is a fine-tuned version of distilbert-base-uncased on the wnut_17 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 | 213 | 0.2666 | 0.6024 | 0.2808 | 0.3831 | 0.9405 |
| No log | 2.0 | 426 | 0.2605 | 0.5708 | 0.3364 | 0.4233 | 0.9456 |
| 0.1299 | 3.0 | 639 | 0.2827 | 0.5658 | 0.3346 | 0.4205 | 0.9452 |
| 0.1299 | 4.0 | 852 | 0.2836 | 0.5503 | 0.3753 | 0.4463 | 0.9469 |
| 0.051 | 5.0 | 1065 | 0.2942 | 0.5553 | 0.3772 | 0.4492 | 0.9469 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="phi0108/ner")