The phrase similarity function S p between two natural language phrases p i and p j is defined as follows: Similarly to (Bordes et al., 2014), we train our model using a margin-based ranking loss function so that scores of positive examples should be larger than those of negative examples by a margin of 1.
for S t/s , we minimize: where (t i , s i ) is a positive triple/sentence example and (t j , s i ) a negative one.