Latent-Variable Modeling and Representation Learning for NLP