Open shark803 opened 9 months ago
Can the author show the version of pytorch and torchtext. The code cannot run in my env.
pytorch 1.13 cuda 11.7 torchtext: 0.14.0
The error message is "ModuleNotFoundError: No module named 'torchtext.legacy' "
We replace the torchtext.legacy to torchtext. the error message is "AttributeError: module 'torchtext.data' has no attribute 'Iterator'"
i encountered the same problem about torchtext. my anaconda env is : pytorch 1.12.0 torchtext 0.13.0 cuda 11.6
pip install torchtext==0.10.0
Can the author show the version of pytorch and torchtext. The code cannot run in my env.
pytorch 1.13 cuda 11.7 torchtext: 0.14.0
The error message is "ModuleNotFoundError: No module named 'torchtext.legacy' "
We replace the torchtext.legacy to torchtext. the error message is "AttributeError: module 'torchtext.data' has no attribute 'Iterator'"