Our pairwise ranking model 1 takes as input an ordered pair of message pairs ((p i , p j ), (p i , p k )) and computes their relatedness using a similarity function sim.
( where x ij is the similarity value between post p i and p j ; x ik is the similarity value between post p i and p k .