Joint Anaphoricity Detection and Coreference Resolution with Constrained Latent Structures