Torch.tensor() throws "RuntimeError: Overflow when unpacking long" exception?!

you make very good sense. the indices were intended for use with a captum tutorial that depended on a pre-trained CNN model, but you help me see that trying to build my own spacy token->index vocabulary isn’t the way. i created a different post: IMDB_TorchText_Interpret tutorial uses deprecated torchtext.