Learning Representations of Entities and Relations