Update spacy/displacy/templates.py

This commit is contained in:
Sofie Van Landeghem 2021-09-16 09:23:21 +02:00 committed by GitHub
parent 4bf2606adf
commit 00836c2d7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -51,8 +51,9 @@ TPL_ENTS = """
TPL_ENT = """
<mark class="entity" style="background: {bg}; padding: 0.45em 0.6em; margin: 0 0.25em; line-height: 1; border-radius: 0.35em;">
{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>
</span>
</mark>
"""