def METHOD_NAME(self):
    model = Model.from_pretrained(self.model_id)
    tokenizer = TextClassificationTransformersPreprocessor(model.model_dir)
    pipeline_ins = pipeline(
        task=Tasks.sentence_similarity,
        model=model,
        preprocessor=tokenizer)
    print(pipeline_ins(input=(self.sentence1, self.sentence2)))