mirror of https://github.com/explosion/spaCy.git
Update spacy/displacy/templates.py
This commit is contained in:
parent
4bf2606adf
commit
00836c2d7d
|
@ -51,8 +51,9 @@ TPL_ENTS = """
|
||||||
TPL_ENT = """
|
TPL_ENT = """
|
||||||
<mark class="entity" style="background: {bg}; padding: 0.45em 0.6em; margin: 0 0.25em; line-height: 1; border-radius: 0.35em;">
|
<mark class="entity" style="background: {bg}; padding: 0.45em 0.6em; margin: 0 0.25em; line-height: 1; border-radius: 0.35em;">
|
||||||
{text}
|
{text}
|
||||||
<span style="font-size: 0.8em; font-weight: bold; line-height: 1; border-radius: 0.35em; vertical-align: middle; margin-left: 0.5rem">{label}</span>
|
<span style="font-size: 0.8em; font-weight: bold; line-height: 1; border-radius: 0.35em; vertical-align: middle; margin-left: 0.5rem">{label}
|
||||||
<a style="text-decoration: none; color: black; font-weight: bold" href="{kb_url}">{kb_id}</a>
|
<a style="text-decoration: none; color: black; font-weight: bold" href="{kb_url}">{kb_id}</a>
|
||||||
|
</span>
|
||||||
</mark>
|
</mark>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue