Learning Representations of Text through Language and Discourse Modeling: From Characters to Sentences