Essays on Statistical Models for Text Analysis