code: def segment(self, text):
      self.original_text = text
      if not text:
          return []
  
      if self.clean or self.doc_type == "pdf":
          text = self.cleaner(text).clean()
  
      postprocessed_sents = self.processor(text).process()
      sentence_w_char_spans = self.sentences_with_char_spans(
          postprocessed_sents
      )
      if self.char_span:
          return sentence_w_char_spans
      elif self.clean:
          # clean and destructed sentences
          return postprocessed_sents
      else:
          # nondestructive with whitespaces
          return [textspan.sent for textspan in sentence_w_char_spans]
  
file_path: pySBD/pysbd/segmenter.py
imports: import re
  from pysbd.languages import Language
  from pysbd.processor import Processor
  from pysbd.cleaner import Cleaner
  from pysbd.utils import TextSpan
label_desc: Use image node_id 5 for calling the Segmenter obj's underlying member method code with example usage: obj.segment(text) and returns: list, sentence_w_char_spans, postprocessed_sents, unknown