Downloads · 30 days
0
sidataplus/THIRAWAT-SapBERT
THIRAWAT-SapBERT is a sentence similarity model from sidataplus. Use it when you need a score for how close two texts are.
THIRAWAT-SapBERT is a fine-tuned ColBERTv1-style late-interaction reranker for drug terminology mapping to standardized OMOP Drug concepts, especially RxNorm and RxNorm Extension.
Downloads · 30 days
0
Access
Public
Updated May 31, 2026
Repo size
855 MB
Likes
0
Public
Click a slice to open those files.
.safetensors790 MB · 92%
From the Hugging Face model README
THIRAWAT-SapBERT is a fine-tuned ColBERTv1-style late-interaction reranker for drug terminology mapping to standardized OMOP Drug concepts, especially RxNorm and RxNorm Extension.
THIRAWAT stands for Terminology Harmonization using Late-Interaction Reranker With Alignment-tuned Transformers. This model is designed to rerank candidate drug concepts generated by a first-stage retriever, not to perform full terminology mapping by itself.
It is best used through THIRAWAT Mapper:
https://github.com/sidataplus/THIRAWAT-mapper
THIRAWAT-SapBERT was evaluated as part of the full THIRAWAT Mapper pipeline. In plain terms:
Across the evaluated datasets, the full pipeline ranked the correct drug concept first in 85.9%–94.2% of cases, and placed it within the top 3 in 93.0%–96.4% of cases.
| Dataset | Correct at #1 | Correct in top 3 |
|---|---|---|
| Branded Drugs | 94.2% | 96.4% |
| Clinical Drugs | 85.9% | 93.0% |
| Thai Medicines Terminology | 86.8% | 95.4% |
These are full-pipeline results, using SapBERT-XLMR retrieval, THIRAWAT-SapBERT reranking with BiMaxSim, and deterministic tie-breaking. The deterministic tie-breaker is implemented in THIRAWAT Mapper, not inside this Hugging Face model checkpoint.
This model is described in:
Efficient Drug Terminology Mapping with Bidirectional Late-Interaction Reranking and Deterministic Reordering Healthcare Informatics Research, 2026;32(2):156–165 DOI: https://doi.org/10.4258/hir.2026.32.2.156
Please cite the paper if you use this model or THIRAWAT Mapper.
Use this model for reranking candidate OMOP/RxNorm drug concepts in medication terminology mapping workflows.
Typical pipeline:
This model is intended for terminology mapping and mapping assistance. It is not a prescribing tool, medication safety checker, or standalone clinical decision support model.
pip install thirawat-mapper
Interactive query:
thirawat infer query \
--db data/lancedb/db \
--table concepts_drug \
--device auto \
--reranker-id sidataplus/THIRAWAT-SapBERT
Bulk mapping:
thirawat infer bulk \
--db data/lancedb/db \
--table concepts_drug \
--input data/usagi.csv \
--out runs/mapping \
--candidate-topk 200 \
--n-limit 20 \
--device auto \
--reranker-id sidataplus/THIRAWAT-SapBERT
cambridgeltl/SapBERT-UMLS-2020AB-all-lang-from-XLMR@article{adulyanukosol2026thirawat,
title = {Efficient Drug Terminology Mapping with Bidirectional Late-Interaction Reranking and Deterministic Reordering},
author = {Adulyanukosol, Natthawut and Chaisutyakorn, Krittaphas and Sombutjaroan, Saknarong and Kanjanapong, Suchanan and Suriyaphol, Prapat},
journal = {Healthcare Informatics Research},
year = {2026},
volume = {32},
number = {2},
pages = {156--165},
doi = {10.4258/hir.2026.32.2.156}
}
Please also cite the original SapBERT paper.
@inproceedings{liu2021learning,
title={Learning Domain-Specialised Representations for Cross-Lingual Biomedical Entity Linking},
author={Liu, Fangyu and Vuli{\'c}, Ivan and Korhonen, Anna and Collier, Nigel},
booktitle={Proceedings of ACL-IJCNLP 2021},
month = aug,
year={2021}
}