我想运行一个使用pytorch和torchtext的git ,但是当我运行它时,它引发了错误: main() TEXT = data.Field(batch_first=True, eos_token='<eos>')
AttributeError: module 'torchtext.data' has no attri
我正在尝试为nlp proj执行以下代码from torchtext.legacy.data import Field, BucketIterator, Iteratorfrom torchtext.legacy import data
7 from torchtext.legacy import dat