eriktks/conll2003
Updated • 38.6k • 166
How to use CzarnyRycerz/bert-finetuned-ner with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="CzarnyRycerz/bert-finetuned-ner") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("CzarnyRycerz/bert-finetuned-ner")
model = AutoModelForTokenClassification.from_pretrained("CzarnyRycerz/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.0766 | 1.0 | 1756 | 0.0716 | 0.9122 | 0.9359 | 0.9239 | 0.9810 |
| 0.0402 | 2.0 | 3512 | 0.0606 | 0.9266 | 0.9475 | 0.9369 | 0.9853 |
| 0.0248 | 3.0 | 5268 | 0.0586 | 0.9332 | 0.9493 | 0.9412 | 0.9869 |
| 0.01 | 4.0 | 7024 | 0.0658 | 0.9366 | 0.9520 | 0.9442 | 0.9869 |
Base model
google-bert/bert-base-cased