You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since TranslationDataset is deprecated (see Issue 985), could you please kindly update the relevant code to work with newer version of torchtext?
> python preprocess.py -lang_src de -lang_trg en -share_vocab -save_data m30k_deen_shr.pkl
Traceback (most recent call last):
File "preprocess.py", line 15, in <module>
from torchtext.datasets import TranslationDataset
ImportError: cannot import name 'TranslationDataset' from 'torchtext.datasets'
The current version number of torchtext is 0.12.0.
Also: what version of torchtext may current code in this repository work with?
The text was updated successfully, but these errors were encountered:
Up to now, the latest version of torchtext is 0.11.2, which discarded the TranslationDataset. If you want to use TranslationDataset, please install torchtext==0.3.1.
Since
TranslationDataset
is deprecated (see Issue 985), could you please kindly update the relevant code to work with newer version of torchtext?The current version number of
torchtext
is0.12.0
.Also: what version of
torchtext
may current code in this repository work with?The text was updated successfully, but these errors were encountered: