pytorch/torchtext incompatibility issues
Torchtext has a few incompatibilites:
torchtext.data.dataset
andtorchtext.data.iterator
are wrappers aroundpytorch.utils.data.Dataset
andpytorch.utils.DataLoader
- notably the
torchtext.data.iterator
is not compatible with the pytorchsubset
or thetorch.utils.data.sampler
- highlighted in: https://github.com/pytorch/text/issues/664
- possible to get https://discuss.pytorch.org/t/out-of-vocabulary-keyerror-on-vocab-stoi-in-torchtext/65910