mirror of https://github.com/explosion/spaCy.git
add links to entities into the TPL_ENT-template
This commit is contained in:
parent
c1927fe994
commit
7562fb5354
|
@ -52,6 +52,7 @@ 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>
|
||||
<a style="text-decoration: none; color: black; font-weight: bold" href="{kb_url}">{kb_id}</a>
|
||||
</mark>
|
||||
"""
|
||||
|
||||
|
|
Loading…
Reference in New Issue