Downloads · 30 days
418
11% of all-time downloads
clarin-knext/bge-reranker-v2-m3-citeverifier
bge-reranker-v2-m3-citeverifier is a machine learning model from clarin-knext. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
418
11% of all-time downloads
All-time downloads
3.8K
Public
Parameters
568M
2.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.3 GB · 99%
From the Hugging Face model README
citeverifier model
from sentence_transformers.cross_encoder import CrossEncoder
class CROSSENCODER:
def __init__(self, model_name, sim_threshold=0.5):
self.model = CrossEncoder(model_name)
self.sim_threshold = sim_threshold
def __call__(self, premise: str, hypothesis: str) -> bool:
scores = self.model.predict([[premise, hypothesis]])
return float(scores[0]) > self.sim_threshold # Here depends on num_labels during training