def batch_split_sentences ( self , texts : List [ str ] ) -> List [ List [ str ] ] : return [ self . split_sentences ( text ) for text in texts ]
how to split sentences on punctuation python
This method lets you take advantage of spacy s batch processing . Default implementation is to just iterate over the texts and call split_sentences .
def batch_split_sentences(self, texts: List[str]) -> List[List[str]]:
        """
        This method lets you take advantage of spacy's batch processing.
        Default implementation is to just iterate over the texts and call ``split_sentences``.
        """
        return [self.split_sentences(text) for text in texts]