Instructions to use bikingSolo/prominer-ru-pretrained-cross-encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use bikingSolo/prominer-ru-pretrained-cross-encoder with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("bikingSolo/prominer-ru-pretrained-cross-encoder") sentences = [ "Это счастливый человек", "Это счастливая собака", "Это очень счастливый человек", "Сегодня солнечный день" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
ProMiNER Russian BioNNE-L Dictionary-Pretrained Cross-Encoder
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.
- GitHub:
https://github.com/bikingSolo/prominer - Model type:
sentence-transformers-cross-encoder - Base/initializer:
andorei/BERGAMOT-multilingual-GAT
Training
Pretrained 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@1
According to the Acc@1 on dev, the best epoch is 2.
Full local metadata exported from MLflow is included in prominer_metadata/.
Evaluation
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 |
Usage
from sentence_transformers import CrossEncoder
model = CrossEncoder("bikingSolo/prominer-ru-pretrained-cross-encoder", num_labels=1)
scores = model.predict([
(
"вестибулокохлеарный нерв",
"слуховой нерв; вестибулокохлеарный нерв; nervus vestibulocochlearis [viii]",
)
])
Intended Use
This checkpoint is intended for research and reproducibility of the ProMiNER BioNNE-L Russian entity-linking pipeline. For the full system, use:
prominer-ru-retrieverto retrieve candidate UMLS concepts.prominer-ru-rerankerto rerank those candidates with candidate-context profiles.
The dictionary-pretrained cross-encoder is primarily an intermediate checkpoint used to initialize the final reranker.
Data and Citation
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.
- Downloads last month
- 38