[CODE SOLUTION REMOVED FROM MODERATOR] Issue with Label Encoding Vocabulary in TensorFlow
I’m facing an issue with encoding labels using tf.keras.layers.StringLookup. The expected vocabulary is ['sport', 'business', 'politics', 'tech', 'entertainment'], but my output includes [None, 'sport', 'business', 'politics', 'tech', 'entertainment']. It seems that an extra None value is being added to the vocabulary. How can I ensure the vocabulary only contains the intended labels without the None?