def sents(self, fileids=None) -> Generator[str, str, None]:
        """
        A generator for sentences in a text, or texts
        :param fileids:
        :return: a generator of sentences
        """
        if not fileids:
            fileids = self.fileids()
        for sent in super().sents(fileids):
            skip = False
            if self.skip_keywords:
                for keyword in self.skip_keywords:
                    if keyword in sent:
                        skip = True
            if not skip:
                yield sent
def sents ( self , fileids = None ) -> Generator [ str , str , None ] : if not fileids : fileids = self . fileids ( ) for sent in super ( ) . sents ( fileids ) : skip = False if self . skip_keywords : for keyword in self . skip_keywords : if keyword in sent : skip = True if not skip : yield sent
A generator for sentences in a text, or texts
        :param fileids:
        :return: a generator of sentences