eriktks/conll2003
Updated • 38.6k • 166
How to use HusseinEid/bert-finetuned-ner with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="HusseinEid/bert-finetuned-ner") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("HusseinEid/bert-finetuned-ner")
model = AutoModelForTokenClassification.from_pretrained("HusseinEid/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:
This is a model for Named entity recognition NER
Open source
The conll2003 dataset
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|
| 0.0757 | 1.0 | 1756 | 0.0638 | 0.9215 | 0.9362 | 0.9288 | 0.9833 |
| 0.0352 | 2.0 | 3512 | 0.0667 | 0.9360 | 0.9482 | 0.9421 | 0.9858 |
| 0.0215 | 3.0 | 5268 | 0.0636 | 0.9343 | 0.9498 | 0.9420 | 0.9861 |
Base model
google-bert/bert-base-cased