Views
No views yet
from transformers import pipeline
model_checkpoint = "sadhaklal/bert-base-cased-finetuned-conll2003-ner"
token_classifier = pipeline("token-classification", model=model_checkpoint, aggregation_strategy="simple")
print(token_classifier("My name is Sylvain and I work at Hugging Face in Brooklyn."))The shared task of CoNLL-2003 concerns language-independent named entity recognition. We will concentrate on four types of named entities: persons, locations, organizations and names of miscellaneous entities that do not belong to the previous three groups.
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|
| 0.0125 | 1.0 | 1756 | 0.0729 | 0.9095 | 0.9339 | 0.9215 | 0.9810 |
| 0.0001 | 2.0 | 3512 | 0.0558 | 0.9265 | 0.9487 | 0.9375 | 0.9862 |
| 0.0001 | 3.0 | 5268 | 0.0578 | 0.9366 | 0.9515 | 0.9440 | 0.9867 |