Views
No views yet
1from transformers import pipeline
2
3classifier = pipeline("text-classification", model="SubhaL/biobert-research-insights")
4
5example = "The trial demonstrated significant improvement in patient survival rates."
6result = classifier(example)
7
8print(result)| Metric | Score |
|---|---|
| Accuracy | 86.6% |
| Precision (weighted) | 86.7% |
| Recall (weighted) | 86.6% |
| F1-score (weighted) | 86.6% |