eriktks/conll2003
Updated โข 47.4k โข 184
How to use ernurk/bert-finetuned-ner with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="ernurk/bert-finetuned-ner") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("ernurk/bert-finetuned-ner")
model = AutoModelForTokenClassification.from_pretrained("ernurk/bert-finetuned-ner", device_map="auto")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.0768 | 1.0 | 1756 | 0.0691 | 0.9027 | 0.9317 | 0.9169 | 0.9820 |
| 0.0349 | 2.0 | 3512 | 0.0661 | 0.9313 | 0.9465 | 0.9388 | 0.9850 |
| 0.0221 | 3.0 | 5268 | 0.0638 | 0.9345 | 0.9490 | 0.9417 | 0.9856 |
Base model
google-bert/bert-base-cased