eriktks/conll2003
Updated • 48.6k • 180
How to use Tzu-Hsin502/bert-finetuned-ner with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="Tzu-Hsin502/bert-finetuned-ner") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("Tzu-Hsin502/bert-finetuned-ner")
model = AutoModelForTokenClassification.from_pretrained("Tzu-Hsin502/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.0775 | 1.0 | 1756 | 0.0642 | 0.9049 | 0.9334 | 0.9189 | 0.9819 |
| 0.0383 | 2.0 | 3512 | 0.0652 | 0.9270 | 0.9448 | 0.9358 | 0.9849 |
| 0.023 | 3.0 | 5268 | 0.0644 | 0.9283 | 0.9475 | 0.9378 | 0.9853 |
| 0.0138 | 4.0 | 7024 | 0.0687 | 0.9360 | 0.9519 | 0.9438 | 0.9868 |
| 0.0061 | 5.0 | 8780 | 0.0686 | 0.9372 | 0.9537 | 0.9454 | 0.9872 |
Base model
google-bert/bert-base-cased