@staticmethod
def _filter_empty_sentences(sentences: List[Sentence]) -> List[Sentence]:
    filtered_sentences = [sentence for sentence in sentences if sentence.tokens]
    if (len(sentences) != len(filtered_sentences)):
        log.warning(f'Ignore {(len(sentences) - len(filtered_sentences))} sentence(s) with no tokens.')
    return filtered_sentences
@staticmethod
def _filter_empty_sentences(sentences: List[Sentence]) -> List[Sentence]:
    filtered_sentences = [sentence for sentence in sentences if sentence.tokens]
    if (len(sentences) != len(filtered_sentences)):
        log.warning(f'Ignore {(len(sentences) - len(filtered_sentences))} sentence(s) with no tokens.')
    return filtered_sentences