How word embeddings encode semantics