Reputation: 13
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.
Upvotes: 1
Views: 143
Reputation: 4508
I think these are the imports in the newer version of torch and their latest documentation
torchtext.dataset.TranslationDataset
-> torchtext.datasets.TranslationDatasettorch.data.Field
-> torchtext.data.Fieldtorch.data.BucketIterator
-> torchtext.data.BucketIteratorLet me know if you have trouble importing them
Upvotes: 0