# Setting explicit height and max-width: none on the SVG is required for # Jupyter to render it properly in a cell TPL_DEP_SVG = """ {content} """ TPL_DEP_WORDS = """ {text} {tag} """ TPL_DEP_WORDS_LEMMA = """ {text} {lemma} {tag} """ TPL_DEP_ARCS = """ {label} """ TPL_FIGURE = """
{content}
""" TPL_TITLE = """

{title}

""" TPL_ENTS = """
{content}
""" TPL_ENT = """ {text} {label}{kb_link} """ TPL_ENT_RTL = """ {text} {label}{kb_link} """ TPL_SPANS = """
{content}
""" TPL_SPAN = """ {text} {span_slices} {span_starts} """ TPL_SPAN_SLICE = """ """ TPL_SPAN_START = """ {label}{kb_link} """ TPL_SPAN_RTL = """ {text} {span_slices} {span_starts} """ TPL_SPAN_SLICE_RTL = """ """ TPL_SPAN_START_RTL = """ {label}{kb_link} """ # Important: this needs to start with a space! TPL_KB_LINK = """ {kb_id} """ TPL_PAGE = """ displaCy {content} """