class_docstr: Render Spans as SVGs.
class_docstr_tok: ["Render","Spans","as","SVGs","."]
docstr: Get the rendered markup of all Span start tokens
docstr_tok: ["Get","the","rendered","markup","of","all","Span","start","tokens"]
code: def _get_span_starts(self, entities: List[Dict]) -> str:
      """Get the rendered markup of all Span start tokens"""
      span_starts = []
      for entity in entities:
          color = self.colors.get(
              entity["label"].upper(), self.default_color
          )
          top_offset = self.top_offset + (
              self.offset_step * (entity["render_slot"] - 1)
          )
          span_start = (
              self.span_start_template.format(
                  bg=color,
                  top_offset=top_offset,
                  label=entity["label"],
                  kb_link=entity["kb_link"],
              )
              if entity["is_start"]
              else ""
          )
          span_starts.append(span_start)
      return "".join(span_starts)
  
imports: import uuid
  from typing import Any, Dict, List, Optional, Tuple, Union
  from ..errors import Errors
  from ..util import escape_html, minify_html, registry
  from .templates import TPL_DEP_ARCS, TPL_DEP_SVG, TPL_DEP_WORDS, TPL_DEP_WORDS_LEMMA, TPL_ENT, TPL_ENT_RTL, TPL_ENTS, TPL_FIGURE, TPL_KB_LINK, TPL_PAGE, TPL_SPAN, TPL_SPAN_RTL, TPL_SPAN_SLICE, TPL_SPAN_SLICE_RTL, TPL_SPAN_START, TPL_SPAN_START_RTL, TPL_SPANS, TPL_TITLE
label_desc: Use image node_id 7 for calling the SpanRenderer obj's underlying member method code with example usage: obj._get_span_starts(entities) and returns: str