def __init__(self, examples: List[InputExample], model: SentenceTransformer):
    '\n        Create a new SentencesDataset with the tokenized texts and the labels as Tensor\n\n        :param examples\n            A list of sentence.transformers.readers.InputExample\n        :param model:\n            SentenceTransformerModel\n        '
    self.model = model
    self.examples = examples
    self.label_type = (torch.long if isinstance(self.examples[0].label, int) else torch.float)
Create a new SentencesDataset with the tokenized texts and the labels as Tensor

:param examples
    A list of sentence.transformers.readers.InputExample
:param model:
    SentenceTransformerModel
def __init__(self, examples: List[InputExample], model: SentenceTransformer):
    '\n        Create a new SentencesDataset with the tokenized texts and the labels as Tensor\n\n        :param examples\n            A list of sentence.transformers.readers.InputExample\n        :param model:\n            SentenceTransformerModel\n        '
    self.model = model
    self.examples = examples
    self.label_type = (torch.long if isinstance(self.examples[0].label, int) else torch.float)