Documentation of StringLookUp says that it encodes categorical features to numerical features, while as per my understanding Embedding layers also do the same . I think only difference is that StringLookUp does a sparse vector transformation in which OOV values are marked at 0, while Embedding layer does a dense vector representation.
Please help me understand the difference between these layers
P.S Improving my question statement.
From what I have understood ,One-hot encodings causes high dimensionality issues for the categorical feature having many different values.
However, StringLookUp layer with output_mode =int, will also result in dense list for m words (only one index for one word mx1 matrix), resolving the drawbacks of one_hot encoding.
Still what benefit would I get , using embedding layer over stringlookup layer in a DNN model for supervised problem?