def data_loader(self, sentences, shuffle=False):
        """Load, tokenize and prepare the input sentences."""
        dataset = BertEmbeddingDataset(sentences, self.transform)
        return DataLoader(dataset=dataset, batch_size=self.batch_size, shuffle=shuffle)
def data_loader ( self , sentences , shuffle = False ) : dataset = BertEmbeddingDataset ( sentences , self . transform ) return DataLoader ( dataset = dataset , batch_size = self . batch_size , shuffle = shuffle )
Load, tokenize and prepare the input sentences.