leondz/wnut_17
Updated • 2.19k • 19
How to use iroli/my_ner_model with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="iroli/my_ner_model") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("iroli/my_ner_model")
model = AutoModelForTokenClassification.from_pretrained("iroli/my_ner_model", device_map="auto")# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("iroli/my_ner_model")
model = AutoModelForTokenClassification.from_pretrained("iroli/my_ner_model", device_map="auto")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.2769 | 0.6004 | 0.2576 | 0.3606 | 0.9393 |
| No log | 2.0 | 426 | 0.2682 | 0.6034 | 0.3244 | 0.4219 | 0.9431 |
Base model
distilbert/distilbert-base-uncased
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="iroli/my_ner_model")