Notes on Latent Structure Models and SPIGOT