Instructions to use bikingSolo/prominer-ru-reranker with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use bikingSolo/prominer-ru-reranker with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("bikingSolo/prominer-ru-reranker") sentences = [ "Это счастливый человек", "Это счастливая собака", "Это очень счастливый человек", "Сегодня солнечный день" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
ProMiNER Russian BioNNE-L Reranker
Final cross-encoder reranker for Russian BioNNE-L entity linking.
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:
bikingSolo/prominer-ru-pretrained-cross-encoder
Training
Fine-tuned on candidate lists produced by the ProMiNER dense retriever, initialized from the dictionary-pretrained cross-encoder, and optimized with LambdaLoss. This is the best final model in the repository.
Selected MLflow parameters:
reranker_model_name_or_path:bikingSolo/prominer-ru-pretrained-cross-encoderretriever_model_name_or_path:bikingSolo/prominer-ru-retrieverloss_name:lambdalosslambdaloss_weighting_scheme:ndcg2ppepochs:5train_batch_size:32learning_rate:1e-05lr_scheduler_type:linearweight_decay:0.01warmup_ratio:0.1max_seq_length:384train_candidate_pool_size:20dev_candidate_pool_size:20test_candidate_pool_size:20num_train_lists:21547num_train_pairs:416508selection_metric:Acc@1
According to the Acc@1 on dev, the best epoch is 3.
Full local metadata exported from MLflow is included in prominer_metadata/.
Evaluation
Metrics below are copied from the local MLflow run artifacts.
| split | Acc@1 | Acc@5 | Acc@10 | Acc@20 | MRR |
|---|---|---|---|---|---|
| dev | 0.7188498402555911 | 0.8293016887266088 | 0.8580556823368325 | 0.8667275216795983 | 0.7684439989494755 |
| test | 0.7339609483960948 | 0.8425732217573222 | 0.7795647373314744 |
Usage
from sentence_transformers import CrossEncoder
model = CrossEncoder("bikingSolo/prominer-ru-reranker", 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
- 55
Model tree for bikingSolo/prominer-ru-reranker
Base model
andorei/BERGAMOT-multilingual-GAT