Hi, I found that the example only contains the data and target, how can i do while my data contains many components. (for example, the sentence simlilarity classfication dataset, every item of this dataset contains 2 sentences and a label, for this dataset, I would like to define sentence1, sentence2 and label rather than image and labels)
How can I do that? thanks!
some python code are follow:
class MyDataset(torch.utils.data.Dataset):
  def __init__(self, text1,text2,labels):
    self.labels = labels
    self.sentence1 = text1
    self.sentence2 = text2
......