AttributeError:module 'torchtext.data' has no attribute 'TabularDataset'

Viewed 1587

I want to create a dataset from a tsv file with pytorch. I was thinking of using

torchtext.data.TabularDataset.splits

but I'm getting an error message.

AttributeError:module 'torchtext.data' has no attribute 'TabularDataset'
1 Answers

Try torchtext.legacy.data.TabularDataset.splits

Related