Representation Learning for Words and Entities