I am trying to load a text file using huggingface (https://huggingface.co/docs/datasets/v1.2.1/loading_datasets.html)
from datasets import load_dataset
dataset = load_dataset('text', data_files='my_file.txt')
This text file already contains headers, how do I indicate this to the module (say, header = True
, in case of pandas read_csv()
)?
Also, how do I mention that it is tab/comma separated?
Is there a way to present this data in tabular format?