eriktks/conll2003
Updated • 41.5k • 177
How to use 51Yy/bert-finetuned-ner2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="51Yy/bert-finetuned-ner2") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("51Yy/bert-finetuned-ner2")
model = AutoModelForTokenClassification.from_pretrained("51Yy/bert-finetuned-ner2", 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.0757 | 1.0 | 1756 | 0.0624 | 0.9090 | 0.9369 | 0.9228 | 0.9826 |
| 0.0363 | 2.0 | 3512 | 0.0625 | 0.9329 | 0.9473 | 0.9400 | 0.9857 |
| 0.0203 | 3.0 | 5268 | 0.0616 | 0.9336 | 0.9490 | 0.9412 | 0.9863 |
Base model
google-bert/bert-base-cased