Load torchtext.data.dataset.Dataset to Trainer

How to use torchtext datasets or tabulardatasets with Trainer?

The trainer takes a torch.utils.data.dataset.Dataset

How can I sent in a torchtext.data.dataset.Dataset or how to convert it?