eriktks/conll2003
Updated • 38.6k • 166
How to use cuadron11/bert-finetuned-ner with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="cuadron11/bert-finetuned-ner") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("cuadron11/bert-finetuned-ner")
model = AutoModelForTokenClassification.from_pretrained("cuadron11/bert-finetuned-ner")# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("cuadron11/bert-finetuned-ner")
model = AutoModelForTokenClassification.from_pretrained("cuadron11/bert-finetuned-ner")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.0884 | 1.0 | 1756 | 0.0734 | 0.9200 | 0.9366 | 0.9282 | 0.9818 |
| 0.0355 | 2.0 | 3512 | 0.0672 | 0.9311 | 0.9510 | 0.9410 | 0.9862 |
| 0.0178 | 3.0 | 5268 | 0.0614 | 0.9371 | 0.9525 | 0.9448 | 0.9868 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="cuadron11/bert-finetuned-ner")