def _convert_to_evidence(
      self,
      annotated_mentions,
  ):
    """Converts annotated mentions to evidence renderables."""
    evidence = []
    for delimiter, annotated_mention in zip(self.evidence_delimiter_range,
                                            annotated_mentions):
      mention = annotated_mention["mention"]
      title = mention["title"]
      section = mention["section"]
      text = mention["text"]
      entity_ids = {x["id"] for x in mention["entities"]} | {mention["title"]}
      e = Evidence(
          delimiter=delimiter,
          title=title,
          section=section,
          text=text,
          entity_ids=entity_ids)
      evidence.append(e)
    return evidence
Converts annotated mentions to evidence renderables.
language/fruit/rendering_utils.py