Embeddings function

Extract matrix of embeddings