We can therefore train the entire network end-toend from a cross-entropy objective, where a loss is incurred for incorrect decisions on the level of token pairs.
we set y i,j = 1 when w i and w j corefer (coreferential links), and also when both w i and w j are part of the same mention span (self links).