CSV / TSV
TorchText can read CSV/TSV files where each line represent a data sample (optionally a header as first row), e.g.:
author location age tweet
John Rome 23 another lovely day.
Mary London 19 what a rainy day!
参考:
https://dzlab.github.io/dltips/en/pytorch/torchtext-datasets/