4 from torchtext.data.utils import get_tokenizer
5 from torchtext.experimental.functional: No module named 'torchtext._torchtext' 我尝试将"torchtext“目录放入jupiter notebook的文件夹中,但再次出现错误 ~\Desktop\Competition\VTB\Task 1\torchtext: No
我正在尝试为nlp proj执行以下代码from torchtext.legacy.data import Field, BucketIterator, Iteratorfrom torchtext.legacy import data
7 from torchtext.legacy import dat
我想运行一个使用pytorch和torchtext的git ,但是当我运行它时,它引发了错误: main() TEXT = data.Field(batch_first=True, eos_token='<eos>')
AttributeError: module 'torchtext.data' has no attribute
我正在尝试从torchtext导入这些库--数据、字段、LabelField、TabularDataset、BucketIterator,但是我有这个错误。有谁能建议如何解决这个问题吗?非常感谢。from torchtext.legacy import data 2 from torchtext.legacy import Field