duobert icon indicating copy to clipboard operation
duobert copied to clipboard

How to compute similarity of di and q?

Open mug2mag opened this issue 3 years ago • 1 comments

hi @rodrigonogueira4 The paper, "Multi-Stage Document Ranking with BERT", mentioned that we use the [CLS] vector as input to a single layer neural network to obtain a probability of the candidate di being relevant to q. I can not find the corresponding codes for computing the probability of the candidate di being relevant to q. Can you help to give a tip? Thanks very much.

mug2mag avatar Jul 26 '21 17:07 mug2mag

This probability is computed by monoBERT, whose implementation is here: https://github.com/nyu-dl/dl4marco-bert

If you are looking for a pytorch implementation, I suggest using this code: https://github.com/castorini/pygaggle/blob/master/docs/experiments-msmarco-passage-subset.md

rodrigonogueira4 avatar Aug 03 '21 09:08 rodrigonogueira4