Regarding text data, torchtext.data.BucketIterator.splits is working well with dataset, however, in order to split the dataset to train and validate, torch.utils.data.random_split will be used, but it returns subset not dataset.
so this will trigger a problem, if we use torch.utils.data.random_split to split a dataset to train and validate, how can we still use torchtext.data.BucketIterator.splits to generate train_loader and validate_loader from the subsets?
Thank you very much.