The model optimizes W such that f (q, d + ) > f (q, d − ).
the training objective is to minimize the following margin-based loss function: which is also known as contrastive estimation (Smith and Eisner, 2005).