I have a sentence x = ‘I love to play football’ , here I=1 , love = 2, to = 3, play = 4, football = 5;

x = [1 2 3 4 5]
self.vocab_size = 5
self.enc_word_dim = 3
self.enc_word_vecs = nn.Embedding(self.vocab_size, self.enc_word_dim)
word_vecs = self.enc_word_vecs(x)

How to get back ‘I love to play football’  using  word_vecs  ? Please help!