IBM / pytorch-seq2seq

An open source framework for seq2seq models in PyTorch.
https://ibm.github.io/pytorch-seq2seq/public/index.html
Apache License 2.0
1.5k stars 376 forks source link

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

Open chang-zy opened 1 year ago

chang-zy commented 1 year ago

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

GISer2000 commented 1 year ago

I also want to know how to solve it.

fqbysec commented 11 months ago

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