def _convert_source_sentences(
      self,
      source,
  ):
    """Converts source text to sentence renderables."""
    sentences = []
    for delimiter, (start, end) in zip(
        self.sentence_delimiter_range,
        self.sentence_tokenizer.span_tokenize(source["text"])):
      text = source["text"][start:end]
      # Source sentences do not contain evidence markers unless we are in the
      # controllable setting.
      if self.task == Task.controllable:
        evidence_marker_type = self.evidence_marker_type
      else:
        evidence_marker_type = EvidenceMarkerType.empty
      sentence = Sentence(
          delimiter, text, evidence_marker_type=evidence_marker_type)
      sentences.append(sentence)
    return sentences
Converts source text to sentence renderables.
language/fruit/rendering_utils.py