eriktks/conll2003
Updated โข 52.2k โข 184
How to use The-nd/bert-finetuned-ner with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="The-nd/bert-finetuned-ner") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("The-nd/bert-finetuned-ner")
model = AutoModelForTokenClassification.from_pretrained("The-nd/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.0783 | 1.0 | 1756 | 0.0636 | 0.8996 | 0.9350 | 0.9170 | 0.9820 |
| 0.0349 | 2.0 | 3512 | 0.0637 | 0.9310 | 0.9473 | 0.9391 | 0.9856 |
| 0.0205 | 3.0 | 5268 | 0.0602 | 0.9366 | 0.9520 | 0.9442 | 0.9869 |
Base model
google-bert/bert-base-cased