eriktks/conll2003
Updated • 47.4k • 183
How to use jeferal/bert-finetuned-ner-conll2003 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="jeferal/bert-finetuned-ner-conll2003") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("jeferal/bert-finetuned-ner-conll2003")
model = AutoModelForTokenClassification.from_pretrained("jeferal/bert-finetuned-ner-conll2003", 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 | Model Preparation Time | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|---|
| 0.0622 | 1.0 | 878 | 0.0559 | 0.0018 | 0.9014 | 0.9159 | 0.9086 | 0.9852 |
| 0.0373 | 2.0 | 1756 | 0.0444 | 0.0018 | 0.9434 | 0.9423 | 0.9428 | 0.9898 |
| 0.0162 | 3.0 | 2634 | 0.0386 | 0.0018 | 0.9462 | 0.9498 | 0.9480 | 0.9910 |
| 0.0107 | 4.0 | 3512 | 0.0397 | 0.0018 | 0.9437 | 0.9537 | 0.9487 | 0.9915 |
| 0.0065 | 5.0 | 4390 | 0.0423 | 0.0018 | 0.9509 | 0.9573 | 0.9540 | 0.9918 |
| 0.0044 | 6.0 | 5268 | 0.0481 | 0.0018 | 0.9505 | 0.9541 | 0.9523 | 0.9917 |
| 0.0022 | 7.0 | 6146 | 0.0489 | 0.0018 | 0.9493 | 0.9552 | 0.9523 | 0.9918 |
| 0.0015 | 8.0 | 7024 | 0.0509 | 0.0018 | 0.9490 | 0.9576 | 0.9533 | 0.9919 |
| 0.0008 | 9.0 | 7902 | 0.0527 | 0.0018 | 0.9512 | 0.9583 | 0.9547 | 0.9921 |
| 0.0004 | 10.0 | 8780 | 0.0535 | 0.0018 | 0.9515 | 0.9573 | 0.9544 | 0.9920 |
Base model
google-bert/bert-base-cased