Views
No views yet
microsoft/BiomedNLP-BiomedBERT-base-uncased-abstract-fulltext for
named entity recognition on clinical trial eligibility criteria (CHIA corpus),
as part of a course NLP project comparing fine-tuned biomedical transformers
vs. GPT-4 prompting.O + 15 entity types x B/I)| Learning rate | 5e-5 |
| Batch size | 8 |
| Epochs | 10 |
| Max sequence length | 256 |
| Adam epsilon | 1e-8 |
| Precision | Recall | F1 | |
|---|---|---|---|
| Strict (exact span match) | 0.639 | 0.674 | 0.656 |
| Relaxed (type + overlap match) | 0.750 | 0.791 | 0.770 |
| Precision | Recall | F1 | |
|---|---|---|---|
| Strict | 0.657 +/- 0.013 | 0.682 +/- 0.021 | 0.669 +/- 0.013 |
| Relaxed | 0.758 +/- 0.014 | 0.787 +/- 0.024 | 0.772 +/- 0.015 |
1from transformers import AutoModelForTokenClassification, AutoTokenizer
2
3tokenizer = AutoTokenizer.from_pretrained("ptanwar/pubmedbert-chia-ner")
4model = AutoModelForTokenClassification.from_pretrained("ptanwar/pubmedbert-chia-ner")Mood, Observation, Reference_point) -- see the full writeup for error analysis.