Downloads · 30 days
9
53% of all-time downloads
DT4H/CardioBERTa.ro_P_enriched
CardioBERTa.ro_P_enriched is a feature extraction model from DT4H. Use it when you need embeddings to search or compare text. It is set up for transformers.
DT4HCardioBERTaparentsroenriched is a Romanian biomedical terminology encoder for clinical concept normalization and entity linking. It is initialized from [DT4H/CardioBERTa.ro] and specialized using CUI-supervised te…
Downloads · 30 days
9
53% of all-time downloads
All-time downloads
17
Public
Parameters
278M
1.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.1 GB · 98%
From the Hugging Face model README
DT4H_CardioBERTa_parents_ro_enriched is a Romanian biomedical terminology encoder for clinical concept normalization and entity linking. It is initialized from [DT4H/CardioBERTa.ro] and specialized using CUI-supervised terminology pairs and metric learning.
The backbone belongs to the CardioBERTa family from CardioLM - a multilingual suite of small language models for the cardiology domain. CardioBERTa comprises language-specific encoder models adapted to cardiology through continued pretraining on monolingual biomedical and cardiology-related corpora using Masked Language Modeling (MLM). The family covers Czech, Dutch, English, Italian, Romanian, Spanish and Swedish.
| Language | Romanian (ro) |
| Triplet collection | enriched |
| Strategy | parents |
| Objective | Multi-Similarity Loss |
| Mining | All triplets, margin 0.2 |
| Pooling | CLS |
| Epochs | 1 |
| Batch size | 256 |
| Learning rate | 2e-5 |
| Max. length | 25 |
CUI-supervised terminology pairs enriched with parent-level ontology relations.
| Strategy | Triplets | CUIs | Unique terms | Unique positives | Terms/CUI | Δ terms |
|---|---|---|---|---|---|---|
| synonyms | 70,817 | 70,817 | 139,248 | 70,439 | 2.00 | 0 |
| parents | 1,607,064 | 476,350 | 531,693 | 422,975 | 3.94 | +392,445 |
| grandparents | 4,734,361 | 476,970 | 531,980 | 470,719 | 9.85 | +392,732 |
This model uses 1,607,064 triplets, covering 476,350 CUIs and 531,693 unique normalized terms.
The training terminology is not distributed with this repository because it contains resources subject to UMLS licensing conditions. Only aggregate statistics are released.
The model is intended for terminology embedding, biomedical candidate retrieval, concept normalization and entity linking, particularly in cardiology and clinical NLP pipelines. It is not intended for direct clinical decision-making.
import torch
import torch.nn.functional as F
from transformers import AutoModel, AutoTokenizer
model_id = "DT4H/DT4H_CardioBERTa_parents_ro_enriched"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModel.from_pretrained(model_id)
inputs = tokenizer(
"clinical concept",
return_tensors="pt",
truncation=True,
max_length=25,
)
with torch.no_grad():
output = model(**inputs)
embedding = F.normalize(
output.last_hidden_state[:, 0, :],
p=2,
dim=1,
)
Danu et al. CardioLM - a multilingual suite of small language models for the cardiology domain.
Developed within the DataTools4Heart (DT4H) project, Grant Agreement 101057849.