Index of Out Bound Error in doing scatter_add when we have OOV words
tim5go opened this issue · comments
Tin C. commented
pointer_summarizer/training_ptr_gen/model.py
Line 192 in 454a2f6
I am using another dataset to train the model, I observed that if we have OOV words, the value in enc_batch_extend_vocab
could be larger than the length of vocab_dist_
, which causing like index out of bound error.
Is it better to patch those wordID to zero if it is larger than the size of Vocab?
Atul Kumar commented
Yes you are right.