castorini/duobert

Which method you used to aggregate the pairwise scores?

Closed this issue · 2 comments

The paper mentions "At inference time, we aggregate the pairwise scores pi,j so that each document receives a sin- gle score si. We investigate five different aggregation methods (SUM, BINARY, MIN, MAX, and SAMPLE)"

I didn't see this part of code.

Thanks for asking and sorry about not adding a comment mentioning it.

We use the SUM method:

pred_docs = scores.sum(1).argsort()[::-1]

Thanks!