eriktks/conll2003
Updated • 41.5k • 166
How to use andersonjas/bert-finetuned-ner with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="andersonjas/bert-finetuned-ner") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("andersonjas/bert-finetuned-ner")
model = AutoModelForTokenClassification.from_pretrained("andersonjas/bert-finetuned-ner")# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("andersonjas/bert-finetuned-ner")
model = AutoModelForTokenClassification.from_pretrained("andersonjas/bert-finetuned-ner")This model is a fine-tuned version of bert-base-cased 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.0911 | 1.0 | 1756 | 0.0656 | 0.9223 | 0.9372 | 0.9297 | 0.9827 |
| 0.0342 | 2.0 | 3512 | 0.0667 | 0.9259 | 0.9456 | 0.9356 | 0.9851 |
| 0.0203 | 3.0 | 5268 | 0.0705 | 0.9195 | 0.9419 | 0.9306 | 0.9837 |
| 0.0143 | 4.0 | 7024 | 0.0685 | 0.9340 | 0.9500 | 0.9419 | 0.9858 |
| 0.0083 | 5.0 | 8780 | 0.0775 | 0.9362 | 0.9515 | 0.9438 | 0.9864 |
| 0.0027 | 6.0 | 10536 | 0.0822 | 0.9416 | 0.9546 | 0.9480 | 0.9869 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="andersonjas/bert-finetuned-ner")