Text Ranking
sentence-transformers
Safetensors
English
Spanish
eurobert
cross-encoder
Generated from Trainer
dataset_size:578402
loss:BinaryCrossEntropyLoss
custom_code
Eval Results (legacy)
Instructions to use fjmgAI/rerank1-210M-EuroBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use fjmgAI/rerank1-210M-EuroBERT with sentence-transformers:
from sentence_transformers import CrossEncoder model = CrossEncoder("fjmgAI/rerank1-210M-EuroBERT", trust_remote_code=True) 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -207,7 +207,7 @@ Then you can load this model and run inference.
|
|
| 207 |
from sentence_transformers import CrossEncoder
|
| 208 |
|
| 209 |
# Download from the 🤗 Hub
|
| 210 |
-
model = CrossEncoder("fjmgAI/rerank1-210M-EuroBERT")
|
| 211 |
# Get scores for pairs of texts
|
| 212 |
pairs = [
|
| 213 |
['what are the risks with taking statins?', "['Muscle pain and damage. One of the most common complaints of people taking statins is muscle pain. ... ', 'Liver damage. Occasionally, statin use could cause an increase in the level of enzymes that signal liver inflammation. ... ', 'Increased blood sugar or type 2 diabetes. ... ', 'Neurological side effects.']"],
|
|
|
|
| 207 |
from sentence_transformers import CrossEncoder
|
| 208 |
|
| 209 |
# Download from the 🤗 Hub
|
| 210 |
+
model = CrossEncoder("fjmgAI/rerank1-210M-EuroBERT", trust_remote_code=True)
|
| 211 |
# Get scores for pairs of texts
|
| 212 |
pairs = [
|
| 213 |
['what are the risks with taking statins?', "['Muscle pain and damage. One of the most common complaints of people taking statins is muscle pain. ... ', 'Liver damage. Occasionally, statin use could cause an increase in the level of enzymes that signal liver inflammation. ... ', 'Increased blood sugar or type 2 diabetes. ... ', 'Neurological side effects.']"],
|