This gives the pairwise ranking criterion: L(d, e) = max{0, 1 − sim(d, e) + sim(d, e )} (2) Alternatively, we can contrast with all its candidate pairs (d, e i ).
we raise the similarity score of true pair sim(d, e) and penalize all the rest sim(d, e i ).