def METHOD_NAME(self, sentence):
    encodings_dict = self.tokenizer.tokenizer(
        sentence, truncation=True, max_length=self.cfg.max_seq_length, padding=False, return_tensors="pt"
    )
    output = torch.squeeze(encodings_dict['input_ids'])
    return len(output) if len(output.size()) > 0 else 0