I found problem when loading torchtext TabularDataset when using large dataset,
It takes too much ram.
I tried to load as given which is too slow to run,
tokenize = lambda x:x.split()
TEXT = data.Field(sequential=True, tokenize=tokenize)
LABEL = data.LabelField()
fields=[('customer_review',  TEXT),('polarity', LABEL)]
train,test = data.TabularDataset.splits(path='.',format='csv', train="/content/drive/My Drive/cleaned_train.csv", test="/content/drive/My Drive/cleaned_test.csv", fields=fields)

Is there any efficient way to load.