Reading csv.gz file in torchtext
Pandas’s read_csv works for csv.gz as well. 

Is there a way to achieve similar with PyTorch?https://torchtext.readthedocs.io/en/latest/data.html#torchtext.data.Dataset doesn’t seem to have such an option.

TLDR: No, this is not supported by TabularDataset

torchtext.data.TabularDataset uses csv.reader. 

Using csvreader against a gzipped file in Python suggests if you open the file with gzip.open, csv.reader can read it. 

However, TabularDataset asks for a file path, not a file pointer, so digging into the source code, it uses 

io.open(os.path.expanduser(path), encoding="utf8")


To open the filepath. Since .gz is not utf8, this won't read the file correctly.
