def _get_tars_formatted_sentence(self, label, sentence):
    label = self._clean(label)
    original_text = sentence.to_tokenized_string()
    label_text_pair = (f'{label} {self.separator} {original_text}' if self.prefix else f'{original_text} {self.separator} {label}')
    sentence_labels = [self._clean(label.value) for label in sentence.get_labels(self.get_current_label_type())]
    tars_label = (self.LABEL_MATCH if (label in sentence_labels) else self.LABEL_NO_MATCH)
    tars_sentence = Sentence(label_text_pair, use_tokenizer=False).add_label(self.static_label_type, tars_label)
    return tars_sentence
def _get_tars_formatted_sentence(self, label, sentence):
    label = self._clean(label)
    original_text = sentence.to_tokenized_string()
    label_text_pair = (f'{label} {self.separator} {original_text}' if self.prefix else f'{original_text} {self.separator} {label}')
    sentence_labels = [self._clean(label.value) for label in sentence.get_labels(self.get_current_label_type())]
    tars_label = (self.LABEL_MATCH if (label in sentence_labels) else self.LABEL_NO_MATCH)
    tars_sentence = Sentence(label_text_pair, use_tokenizer=False).add_label(self.static_label_type, tars_label)
    return tars_sentence