code: def doc_sentence_splitter(
      doc: spacy.tokens.doc.Doc,
  ) -> Iterable[spacy.tokens.span.Span]:
      for sent in doc.sents:
          non_blank = [t.i for t in sent if t.orth_.strip() != ""]
          if len(non_blank):
              yield doc[non_blank[0] : non_blank[-1] + 1]
  
file_path: scattertext/scattertext/contextual_embeddings/doc_splitter.py
imports: from typing import Iterable, Callable
  import numpy
  import pandas
  import spacy
label_desc: Use image node_id 1 for calling a global function with example usage: doc_sentence_splitter(doc) without return types