Learning Pairwise Similarity Scores