Converting words into embeddings