How to read in .txt file (corpus) into torchtext in pytorrch?
I only see data.Dataset for example datasets and data.TabularData for csv, json, and tsv.
https://github.com/pytorch/text#data
https://torchtext.readthedocs.io/en/latest/data.html#dataset
It still works if I read it in using a Tabular dataset like this:
test_file = data.TabularDataset(path=input_filepath, format='csv', fields=[('text', data.Field())])
But my dataset is not tabular, so I wanted to check to see if there was a better option.