code: def configure_get_sent_spans() -> Callable:
      """
      Create a `span_getter` that uses sentence boundary markers to extract
      the spans. This requires sentence boundaries to be set, and may result
      in somewhat uneven batches, depending on the sentence lengths. However,
      it does provide the transformer with more meaningful windows to attend over.
      """
      return get_sent_spans
  
file_path: spacy-transformers/spacy_transformers/span_getters.py
imports: from typing import Callable, Iterable, List
  from functools import partial
  from spacy.tokens import Doc, Span
  from .util import registry
label_desc: Use image node_id 4 for calling a global function with example usage: configure_get_sent_spans() and returns: get_sent_spans