mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 18:26:30 +03:00
add NEL-visualisation to manual-usage
This commit is contained in:
parent
f4b5c4209d
commit
e61d93f8c3
|
@ -297,7 +297,7 @@ position.
|
|||
>
|
||||
> ```python
|
||||
> ex = [{"text": "But Google is starting from behind.",
|
||||
> "ents": [{"start": 4, "end": 10, "label": "ORG"}],
|
||||
> "ents": [{"start": 4, "end": 10, "label": "ORG", "kb_id": "Q95", "kb_url": "https://www.wikidata.org/entity/Q95"}],
|
||||
> "title": None}]
|
||||
> html = displacy.render(ex, style="ent", manual=True)
|
||||
> ```
|
||||
|
@ -323,7 +323,7 @@ position.
|
|||
### ENT input
|
||||
{
|
||||
"text": "But Google is starting from behind.",
|
||||
"ents": [{"start": 4, "end": 10, "label": "ORG"}],
|
||||
"ents": [{"start": 4, "end": 10, "label": "ORG", "kb_id": "Q95", "kb_url": "https://www.wikidata.org/entity/Q95"}],
|
||||
"title": None
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue
Block a user