Downloads · 30 days
34
47% of all-time downloads
manibt1993/ncbi_disease_ner
ncbi_disease_ner is a token classification model from manibt1993. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as apache-2.0.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
34
47% of all-time downloads
All-time downloads
72
Public
Parameters
108M
2.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors431 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of bert-base-cased on an 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 | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|
| 0.1149 | 1.0 | 680 | 0.0580 | 0.7475 | 0.8501 | 0.7955 | 0.9810 |
| 0.0436 | 2.0 | 1360 | 0.0687 | 0.7430 | 0.8412 | 0.7890 | 0.9825 |
| 0.0164 | 3.0 | 2040 | 0.0702 | 0.7901 | 0.8513 | 0.8196 | 0.9830 |
| 0.0076 | 4.0 | 2720 | 0.0829 | 0.7884 | 0.8666 | 0.8257 | 0.9826 |
| 0.0047 | 5.0 | 3400 | 0.0921 | 0.8082 | 0.8564 | 0.8316 | 0.9835 |
from transformers import pipeline
model_checkpoint = "manibt1993/ncbi_disease_ner"
token_classifier = pipeline(
"token-classification", model=model_checkpoint, aggregation_strategy="simple"
)
token_classifier("patient has diabtes, anemia, hypertension with ckd which hurts the patient since 6 years. Patient today experience with right leg pain, fever and cough.")
[{'entity_group': 'Disease',
'score': 0.69145554,
'word': 'diabtes',
'start': 12,
'end': 19},
{'entity_group': 'Disease',
'score': 0.9955915,
'word': 'anemia',
'start': 21,
'end': 27},
{'entity_group': 'Disease',
'score': 0.99971104,
'word': 'hypertension',
'start': 29,
'end': 41},
{'entity_group': 'Disease',
'score': 0.9249976,
'word': 'right leg pain',
'start': 120,
'end': 134},
{'entity_group': 'Disease',
'score': 0.9983512,
'word': 'fever',
'start': 136,
'end': 141},
{'entity_group': 'Disease',
'score': 0.99849665,
'word': 'cough',
'start': 146,
'end': 151}]