TranslationDataset was moved in this PR 27 to the legacy namespace as seen here 25 and which is also why you cannot find it in the current docs anymore, so you might be able to import it via torchtext.legacy.datasets.