def __getitem__(self, item):
    label = torch.tensor(self.examples[item].label, dtype=self.label_type)
    if (self.examples[item].texts_tokenized is None):
        self.examples[item].texts_tokenized = [self.model.tokenize(text) for text in self.examples[item].texts]
    return (self.examples[item].texts_tokenized, label)
def __getitem__(self, item):
    label = torch.tensor(self.examples[item].label, dtype=self.label_type)
    if (self.examples[item].texts_tokenized is None):
        self.examples[item].texts_tokenized = [self.model.tokenize(text) for text in self.examples[item].texts]
    return (self.examples[item].texts_tokenized, label)