5

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'
desertnaut
  • 57,590
  • 26
  • 140
  • 166
ryotoitoi
  • 51
  • 1
  • 3

1 Answers1

3

Try torchtext.legacy.data.TabularDataset.splits

Dharman
  • 30,962
  • 25
  • 85
  • 135
Prajot Kuvalekar
  • 5,128
  • 3
  • 21
  • 32