Downloads · 30 days
40
1% of all-time downloads
BSC-NLP4BIA/biomedical-term-classifier-setfit
biomedical-term-classifier-setfit is a text classification model from BSC-NLP4BIA. Use it when you need a label for a piece of text. It is set up for sentence-transformers. The card lists the license as apache-2.0.
<details <summaryClick to expand</summary
Downloads · 30 days
40
1% of all-time downloads
All-time downloads
4.2K
Public
Repo size
1 GB
Likes
0
Public
Click a slice to open those files.
.bin504 MB · 99%
From the Hugging Face model README
This is a SetFit model trained for multilabel biomedical text classification in Spanish.
The model is prepared to classify medical entities among 21 classes, including diseases, medical procedures, symptoms, and drugs, among others. It still lacks some classes like body structures.
This model is implemented as part of the KeyCARE library. Install first the keycare module to call the SetFit classifier:
python -m pip install keycare
You can then run the KeyCARE pipeline that uses the SetFit model:
from keycare install TermExtractor.TermExtractor
# initialize the termextractor object
termextractor = TermExtractor()
# Run the pipeline
text = """Acude al Servicio de Urgencias por cefalea frontoparietal derecha.
Mediante biopsia se diagnostica adenocarcinoma de próstata Gleason 4+4=8 con metástasis óseas múltiples.
Se trata con Ácido Zoledrónico 4 mg iv/4 semanas.
"""
termextractor(text)
# You can also access the class storing the SetFit model
categorizer = termextractor.categorizer
The model has been trained using an efficient few-shot learning technique that involves:
The training data has been obtained from NER Gold Standard Corpora also generated by BSC-NLP4BIA, including MedProcNER, DISTEMIST, SympTEMIST, CANTEMIST, and PharmaCoNER, among others.
To be published
NLP4BIA at the Barcelona Supercomputing Center
To be published
The models published in this repository are intended for a generalist purpose and are available to third parties. These models may have bias and/or any other undesirable distortions.
When third parties, deploy or provide systems and/or services to other parties using any of these models (or using systems based on these models) or become users of the models, they should note that it is their responsibility to mitigate the risks arising from their use and, in any event, to comply with applicable regulations, including regulations regarding the use of Artificial Intelligence.
</details>