Views
No views yet
| Metric) | Value |
|---|---|
| F1 Score | 95.99% |
| Precision | 95.61% |
| Recall | 96.38% |
| Accuracy | 99.29% |
| Eval Loss | 0.0464 |
1from transformers import pipeline
2model_id = "learnrr/roberta-NER-conll2003"
3text = "Apple is looking at buying U.K. startup for $1 billion"
4results = nlp(text)
5for entity in results:
6print(f"entity: {entity['word']} | class: {entity['entity_group']} | confidence: {entity['score']:.4f}")