Entity or Relation Embeddings? An Analysis of Encoding Strategies for Relation Extraction