Edinburgh Research Explorer Latent-Variable PCFGs: Background and Applications