YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
SARA Cross-Encoder (sara_ce_cost-sensitive-opt/sara_ce_bce_relevance)
This model is a cross-encoder reranker trained on the SARA collection for Sensitivity-Aware Search (SAS).
Usage
from rankers import Cat
import pyterrier as pt
dataset = pt.get_dataset("irds:sara")
# Index the corpus
indexer = pt.IterDictIndexer('./indices/sara')
indexer.index(dataset.get_corpus_iter())
index_ref = pt.IndexRef.of('./indices/sara')
bm25 = pt.BatchRetrieve(index_ref, wmodel='BM25')
# Load the reranker
reranker = Cat.from_pretrained("cost-sensitive-opt/sara_ce_bce_relevance").to_pyterrier()
# Retrieval pipeline
pipeline = bm25 % 10 >> dataset.text_loader() >> reranker
pipeline.search("Your query goes here!")
| qid | docid | docno | score | query | text | rank |
|------:|--------:|:-------------------|----------:|:----------------------|:------------------------|-------:|
| 1 | 5496 | badly-star-bat | -9.36504 | Your query goes here! | <!DOCTYPE HTML PUBLI... | 0 |
| 1 | 108431 | poorly-trusty-dove | -12.11 | Your query goes here! | I got the queries to... | 1 |
| 1 | 43652 | firmly-well-dassie | -12.242 | Your query goes here! | My impression is tha... | 2 |
| 1 | 1998 | badly-big-pigeon | -13.7661 | Your query goes here! | Geoff, Attached is y... | 3 |
| 1 | 90929 | namely-clean-horse | -13.8931 | Your query goes here! | -----Original Messag... | 4 |
| 1 | 114876 | safely-quick-gecko | -14.1085 | Your query goes here! | Casey, I ran curve q... | 5 |
| 1 | 48895 | fully-pet-alpaca | -15.2779 | Your query goes here! | Anna, I just left yo... | 6 |
| 1 | 72466 | lately-joint-fawn | -15.5036 | Your query goes here! | David, Here's the in... | 7 |
| 1 | 83963 | mainly-moving-ray | -15.6729 | Your query goes here! | -----Original Messag... | 8 |
| 1 | 126384 | wholly-proud-bison | -15.8275 | Your query goes here! | All - We have saved ... | 9 |
- Downloads last month
- 2
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support