pytorch-seq2seq
pytorch-seq2seq copied to clipboard
AttributeError: module 'torchtext.data' has no attribute 'Field'
The expression seems to be deprecated in PyTorch. How can I fix it?
I also want to know how to solve it.
I get that you may should use 'from torchtext.legacy.data import Field' instead of 'torchtext.data'