Downloads · 30 days
9
11% of all-time downloads
bikingSolo/prominer-ru-pretrained-cross-encoder
prominer-ru-pretrained-cross-encoder is a sentence similarity model from bikingSolo. Use it when you need a score for how close two texts are. It is set up for sentence-transformers. The card lists the license as mit.
Cross-encoder pretrained on UMLS dictionary pseudo-pairs with compact candidate-context profiles.
Downloads · 30 days
9
11% of all-time downloads
All-time downloads
80
Public
Parameters
278M
1.1 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors1.1 GB · 98%
From the Hugging Face model README
Cross-encoder pretrained on UMLS dictionary pseudo-pairs with compact candidate-context profiles.
This model is part of ProMiNER, a Russian-track biomedical entity-linking system for BioNNE-L. The system links mentions from NEREL-BIO/BioNNE-L texts to UMLS concepts by combining dense retrieval and cross-encoder reranking.
https://github.com/bikingSolo/prominersentence-transformers-cross-encoderandorei/BERGAMOT-multilingual-GATPretrained from dictionary-derived pseudo-query/candidate pairs. Candidate concepts are represented by compact profiles containing representative names and selected aliases. This checkpoint is intended as the initializer for task-specific BioNNE-L reranking.
Hyperparameters:
reranker_model_name_or_path: andorei/BERGAMOT-multilingual-GATretriever_model_name_or_path: andorei/BERGAMOT-multilingual-GATloss_name: bceepochs: 5train_batch_size: 128learning_rate: 2e-05weight_decay: 0.01warmup_ratio: 0.1max_seq_length: 384pretrain_num_negatives: 20max_pseudo_queries_per_cui: 5num_train_pairs: 5900264num_eval_pairs: 317280selection_metric: Acc@1According to the Acc@1 on dev, the best epoch is 2.
Full local metadata exported from MLflow is included in prominer_metadata/.
Metrics below are copied from the local MLflow run artifacts.
| split | num_queries | num_pairs | num_positive_pairs | num_negative_pairs | RetrieverHitRate | Acc@1 | Acc@5 | MRR |
|---|---|---|---|---|---|---|---|---|
| train | 284890 | 5900264 | 284890 | 5615374 | 1.0 | |||
| dev | 15347 | 317280 | 15347 | 301933 | 1.0 | 0.9506092395907995 | 0.994200821007363 | 0.9696687373962294 |
from sentence_transformers import CrossEncoder
model = CrossEncoder("bikingSolo/prominer-ru-pretrained-cross-encoder", num_labels=1)
scores = model.predict([
(
"вестибулокохлеарный нерв",
"слуховой нерв; вестибулокохлеарный нерв; nervus vestibulocochlearis [viii]",
)
])
This checkpoint is intended for research and reproducibility of the ProMiNER BioNNE-L Russian entity-linking pipeline. For the full system, use:
prominer-ru-retriever to retrieve candidate UMLS concepts.prominer-ru-reranker to rerank those candidates with candidate-context profiles.The dictionary-pretrained cross-encoder is primarily an intermediate checkpoint used to initialize the final reranker.
Training and evaluation use BioNNE-L/NEREL-BIO resources and UMLS-derived terminology available in this repository's data layout. Cite the relevant NEREL-BIO and BioNNE-L papers when using this model.
Check https://github.com/bikingSolo/prominer for more info.