Should I one_hot the category feature before send the feature to Embedding layer?

For example, I have the category feature named fruit that contains apple, banana, peach, pear. Should I do one hot encoding before sending to the Embedding layer?


You usually associate an index to each word. The Embedding layer takes the indices as input, not one-hot encoding of these indices.