Given an entity pair, we want the observed KB relations between them to have higher scores than the unobserved ones.
a pair-wise ranking based loss function is used to train our model: where p pos refers to a positive relation, p neg refers to a uniformly sampled negative relation, and γ is the margin hyper-parameter.