mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Update spacy/displacy/render.py
Co-authored-by: Renat Shigapov <57352291+shigapov@users.noreply.github.com>
This commit is contained in:
parent
d5cc009faf
commit
4bf2606adf
|
@ -314,8 +314,8 @@ class EntityRenderer:
|
|||
label = span["label"]
|
||||
start = span["start"]
|
||||
end = span["end"]
|
||||
kb_id = str(span.get("kb_id") or "")
|
||||
kb_url = str(span.get("kb_url") or "")
|
||||
kb_id = span.get("kb_id", "")
|
||||
kb_url = span.get("kb_url", "")
|
||||
additional_params = span.get("params", {})
|
||||
entity = escape_html(text[start:end])
|
||||
fragments = text[offset:start].split("\n")
|
||||
|
|
Loading…
Reference in New Issue
Block a user