BERT Named Entity Recognition - n2c2 2018
Collection
8 items • Updated
How to use pabRomero/BioBERT-full-finetuned-ner-pablo with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="pabRomero/BioBERT-full-finetuned-ner-pablo") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("pabRomero/BioBERT-full-finetuned-ner-pablo")
model = AutoModelForTokenClassification.from_pretrained("pabRomero/BioBERT-full-finetuned-ner-pablo", device_map="auto")This model is a fine-tuned version of dmis-lab/biobert-base-cased-v1.2 on the n2c2 2018 dataset for the paper https://arxiv.org/abs/2409.19467. 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 |
|---|---|---|---|---|---|---|---|
| No log | 1.0 | 231 | 0.0960 | 0.7382 | 0.7709 | 0.7542 | 0.9708 |
| No log | 2.0 | 462 | 0.0817 | 0.7832 | 0.7841 | 0.7836 | 0.9743 |
| 0.2286 | 3.0 | 693 | 0.0803 | 0.7926 | 0.7988 | 0.7957 | 0.9751 |
| 0.2286 | 4.0 | 924 | 0.0831 | 0.7916 | 0.7956 | 0.7936 | 0.9751 |
Base model
dmis-lab/biobert-base-cased-v1.2