To eliminate this possibility, we enforce the agreement constraints at the global level.
we sample an entity index for a given mention with a non-zero probability if and only if the corresponding entity and the head of the mention agree in gender and number.