应该是不同版本语法不同的原因,开头改成
from torchtext.legacy.data import Field
参考: https://blog.csdn.net/qq_37388085/article/details/114762385