eriktks/conll2003
Updated • 20.3k • 172
How to use GalalEwida/bert-base-cased-finetuned-ner with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="GalalEwida/bert-base-cased-finetuned-ner", device_map="auto") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("GalalEwida/bert-base-cased-finetuned-ner")
model = AutoModelForTokenClassification.from_pretrained("GalalEwida/bert-base-cased-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.0708 | 0.8922 | 0.9290 | 0.9102 | 0.9803 |
| 0.0361 | 2.0 | 3512 | 0.0706 | 0.9318 | 0.9467 | 0.9391 | 0.9850 |
| 0.022 | 3.0 | 5268 | 0.0592 | 0.9352 | 0.9524 | 0.9437 | 0.9867 |
| 0.0131 | 4.0 | 7024 | 0.0647 | 0.9389 | 0.9549 | 0.9469 | 0.9874 |
| 0.0068 | 5.0 | 8780 | 0.0683 | 0.9418 | 0.9554 | 0.9485 | 0.9877 |
Base model
google-bert/bert-base-cased