sentence-transformers
Safetensors
English
bert
biomedical
reranker
cross-encoder
entity-normalization
ontology
Instructions to use AronowLab/BOND-reranker with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use AronowLab/BOND-reranker with sentence-transformers:
from sentence_transformers import CrossEncoder model = CrossEncoder("AronowLab/BOND-reranker") query = "Which planet is known as the Red Planet?" passages = [ "Venus is often called Earth's twin because of its similar size and proximity.", "Mars, known for its reddish appearance, is often referred to as the Red Planet.", "Jupiter, the largest planet in our solar system, has a prominent red spot.", "Saturn, famous for its rings, is sometimes mistaken for the Red Planet." ] scores = model.predict([(query, passage) for passage in passages]) print(scores) - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# BOND-reranker
|
| 2 |
|
| 3 |
A cross-encoder reranker model fine-tuned for biomedical ontology entity normalization, designed to work with the BOND (Biomedical Ontology Neural Disambiguation) system.
|
|
@@ -39,7 +65,7 @@ from bond.pipeline import BondMatcher
|
|
| 39 |
|
| 40 |
# Configure BOND to use this reranker
|
| 41 |
settings = BondSettings(
|
| 42 |
-
|
| 43 |
enable_reranker=True
|
| 44 |
)
|
| 45 |
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- biomedical
|
| 7 |
+
- reranker
|
| 8 |
+
- cross-encoder
|
| 9 |
+
- entity-normalization
|
| 10 |
+
- ontology
|
| 11 |
+
- sentence-transformers
|
| 12 |
+
task: text-retrieval
|
| 13 |
+
metrics:
|
| 14 |
+
- accuracy
|
| 15 |
+
- f1
|
| 16 |
+
- precision
|
| 17 |
+
- recall
|
| 18 |
+
- average-precision
|
| 19 |
+
datasets:
|
| 20 |
+
- mondo
|
| 21 |
+
- hpo
|
| 22 |
+
- uberon
|
| 23 |
+
- cell-ontology
|
| 24 |
+
- gene-ontology
|
| 25 |
+
---
|
| 26 |
+
|
| 27 |
# BOND-reranker
|
| 28 |
|
| 29 |
A cross-encoder reranker model fine-tuned for biomedical ontology entity normalization, designed to work with the BOND (Biomedical Ontology Neural Disambiguation) system.
|
|
|
|
| 65 |
|
| 66 |
# Configure BOND to use this reranker
|
| 67 |
settings = BondSettings(
|
| 68 |
+
"model_path", # Replace with your model path
|
| 69 |
enable_reranker=True
|
| 70 |
)
|
| 71 |
|