Solved by albanD in post #2 
              
              
                Hi, 
You usually associate an index to each word. The Embedding layer takes the indices as input, not one-hot encoding of these indices.