eriktks/conll2003
Updated • 48.1k • 183
How to use thanapolsjr/bert-finetuned-ner with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="thanapolsjr/bert-finetuned-ner") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("thanapolsjr/bert-finetuned-ner")
model = AutoModelForTokenClassification.from_pretrained("thanapolsjr/bert-finetuned-ner", device_map="auto")This model is a fine-tuned version of thanapolsjr/bert-finetuned-ner-accelerate 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.0230 | 1.0 | 1756 | 0.0606 | 0.9317 | 0.9465 | 0.9391 | 0.9859 |
| 0.0130 | 2.0 | 3512 | 0.0692 | 0.9384 | 0.9490 | 0.9437 | 0.9867 |
| 0.0056 | 3.0 | 5268 | 0.0730 | 0.9350 | 0.9519 | 0.9434 | 0.9869 |
Base model
thanapolsjr/bert-finetuned-ner-accelerate