eriktks/conll2003
Updated • 26.5k • 176
How to use josh4fun/bert-finetuned-ner with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="josh4fun/bert-finetuned-ner") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("josh4fun/bert-finetuned-ner")
model = AutoModelForTokenClassification.from_pretrained("josh4fun/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.4732 | 1.0 | 878 | 0.1339 | 0.8998 | 0.9298 | 0.9146 | 0.9821 |
| 0.0945 | 2.0 | 1756 | 0.1294 | 0.9297 | 0.9458 | 0.9377 | 0.9857 |
| 0.0542 | 3.0 | 2634 | 0.1228 | 0.9345 | 0.9488 | 0.9416 | 0.9864 |
Base model
google-bert/bert-base-cased