Transformer icon indicating copy to clipboard operation
Transformer copied to clipboard

The version

Open shark803 opened this issue 1 year ago • 2 comments

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'"

shark803 avatar Feb 17 '24 09:02 shark803

i encountered the same problem about torchtext. my anaconda env is : pytorch 1.12.0 torchtext 0.13.0 cuda 11.6

zk19971101 avatar Mar 13 '24 09:03 zk19971101

pip install torchtext==0.10.0

shy19960518 avatar Apr 30 '24 13:04 shy19960518