I am getting the following error when I am trying to train an LSTM model which is similar to the TensorFlow documentation given here: https://www.tensorflow.org/guide/keras/rnn.
InvalidArgumentError: indices[23,0] = -1 is not in [0, 25233) [[node model_3/embedding_5/embedding_lookup (defined at tmp/ipykernel_17/3740048417.py:3) ]] [Op:__inference_train_function_10132]
I am not able to figure out from where the negative index is coming.