In an effort to build a Dataset using torchtext
I am getting this error:

AttributeError: ‘Example’ object has no attribute ‘tweet’

Code to build the dataset looks like:

tweetField=torchtext.data.Field(sequential=True, tokenize=clean_tweets)
sentimentField=torchtext.data.LabelField(sequential=False)
trainData, valData, testData= torchtext.data.TabularDataset.splits(
path=’./’,train=‘train.csv’,validation=‘valid.csv’,test=‘test.csv’,format=‘csv’,
skip_header=True,fields=[(‘tweet’,tweetField),(‘sentiment’,sentimentField)]
)
tweetField.build_vocab(trainData,vectors=torchtext.vocab.GloVe(name=“6B”,dim=50))
sentimentField.build_vocab(trainData)

The Dataset inside the .csv looks like:

Please Help !