pytorch-seq2seq icon indicating copy to clipboard operation
pytorch-seq2seq copied to clipboard

AttributeError: module 'torchtext.data' has no attribute 'Field'

Open chang-zy opened this issue 2 years ago • 2 comments

The expression seems to be deprecated in PyTorch. How can I fix it?

chang-zy avatar Jun 22 '23 07:06 chang-zy

I also want to know how to solve it.

GISer2000 avatar Sep 20 '23 04:09 GISer2000

I get that you may should use 'from torchtext.legacy.data import Field' instead of 'torchtext.data'

fq863390229 avatar Dec 09 '23 02:12 fq863390229