Torchtext functions in Newest version analogue

29 views Asked by At

Good day all, i'm trying to solve task, where it was used previously torchtext.dataset.TranslationDataset, torch.data.Field and torch.data.BucketIterator. But, after updating they were removed and i don't know how it can be used now. Has anybody faced with this problem, how have you solved it? I'd be the greatful, if you share a link with advice if it's possible.

I've tried to read docs and find info on the Internet, but unsuccessfully. It always cite torchtext.legacy, but it doesn't have it in up-to-date versions. I understand, that i can download to it's version, but don't want this yet.

1

There are 1 answers

0
tax evader On

I think these are the imports in the newer version of torch and their latest documentation

Let me know if you have trouble importing them