I have a bag of words x and I want to look up embeddings for words in x. But I also want to weight the words differently by a weight vector w, which has the same size as x. Can you show me the best way to do this?