Learning Output Embeddings in Structured Prediction