ncbi/ncbi_disease
Updated • 9.36k • 57
How to use MANAN-B94/biogpt-ner with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="MANAN-B94/biogpt-ner") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("MANAN-B94/biogpt-ner")
model = AutoModelForTokenClassification.from_pretrained("MANAN-B94/biogpt-ner", device_map="auto")This model is a fine-tuned version of microsoft/biogpt on the ncbi_disease dataset. 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 | Disease | Overall Precision | Overall Recall | Overall F1 | Overall Accuracy |
|---|---|---|---|---|---|---|---|---|
| 0.3019 | 1.0 | 680 | 0.1758 | {'precision': 0.46767617938264416, 'recall': 0.4896341463414634, 'f1': 0.4784033363121835, 'number': 1640} | 0.4677 | 0.4896 | 0.4784 | 0.9394 |
| 0.1606 | 2.0 | 1360 | 0.1641 | {'precision': 0.5137519460300985, 'recall': 0.6036585365853658, 'f1': 0.5550883095037846, 'number': 1640} | 0.5138 | 0.6037 | 0.5551 | 0.9455 |
| 0.0743 | 3.0 | 2040 | 0.1935 | {'precision': 0.5545851528384279, 'recall': 0.6195121951219512, 'f1': 0.5852534562211981, 'number': 1640} | 0.5546 | 0.6195 | 0.5853 | 0.9500 |
Base model
microsoft/biogpt