When I import TranslationDataset form torchtext.data, I get the following error:
ImportError: cannot import name ‘TranslationDataset’ from ‘torchtext.datasets’
I have installed pytorch correctly and can import torchtext.data and torchtext.datasets, but why can’t I import TranslationDataset.
My pytorch version is 1.9.0+cu11