Downloads · 30 days
24
3% of all-time downloads
tomaarsen/span-marker-bert-base-ncbi-disease
span-marker-bert-base-ncbi-disease is a token classification model from tomaarsen. Use it when you need labels on individual words, such as names. It is set up for span-marker. The card lists the license as apache-2.0.
This is a SpanMarker model trained on the ncbidisease dataset. In particular, this SpanMarker model uses bert-base-cased as the underlying encoder. See train.py for the training script.
Downloads · 30 days
24
3% of all-time downloads
All-time downloads
900
Public
Parameters
108M
867 MB on disk
Likes
6
Public
Click a slice to open those files.
.bin433 MB · 50%
From the Hugging Face model README
This is a SpanMarker model trained on the ncbi_disease dataset. In particular, this SpanMarker model uses bert-base-cased as the underlying encoder. See train.py for the training script.
This model achieves the following results on the testing set:
| Label | Examples |
|---|---|
| DISEASE | "ataxia-telangiectasia", "T-cell leukaemia", "C5D", "neutrophilic leukocytosis", "pyogenic infection" |
To use this model for inference, first install the span_marker library:
pip install span_marker
You can then run inference with this model like so:
from span_marker import SpanMarkerModel
# Download from the 🤗 Hub
model = SpanMarkerModel.from_pretrained("tomaarsen/span-marker-bert-base-ncbi-disease")
# Run inference
entities = model.predict("Canavan disease is inherited as an autosomal recessive trait that is caused by the deficiency of aspartoacylase (ASPA).")
See the SpanMarker repository for documentation and additional information on this library.
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Overall Precision | Overall Recall | Overall F1 | Overall Accuracy |
|---|---|---|---|---|---|---|---|
| 0.0038 | 1.41 | 300 | 0.0059 | 0.8141 | 0.8579 | 0.8354 | 0.9818 |
| 0.0018 | 2.82 | 600 | 0.0054 | 0.8315 | 0.8720 | 0.8513 | 0.9840 |