BERT Named Entity Recognition - n2c2 2018
Collection
8 items • Updated
How to use pabRomero/BERT-full-finetuned-ner-pablo with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="pabRomero/BERT-full-finetuned-ner-pablo") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("pabRomero/BERT-full-finetuned-ner-pablo")
model = AutoModelForTokenClassification.from_pretrained("pabRomero/BERT-full-finetuned-ner-pablo")This model is a fine-tuned version of google-bert/bert-base-uncased 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.1015 | 0.7485 | 0.7440 | 0.7462 | 0.9703 |
| No log | 2.0 | 462 | 0.0878 | 0.7618 | 0.7750 | 0.7684 | 0.9728 |
| 0.2646 | 3.0 | 693 | 0.0859 | 0.7759 | 0.7912 | 0.7835 | 0.9737 |
| 0.2646 | 4.0 | 924 | 0.0854 | 0.7857 | 0.7899 | 0.7878 | 0.9747 |
Base model
google-bert/bert-base-uncased