mirror of
https://github.com/explosion/spaCy.git
synced 2025-05-29 18:23:06 +03:00
add NEL-visualisation to manual-usage
This commit is contained in:
parent
f4b5c4209d
commit
e61d93f8c3
|
@ -297,7 +297,7 @@ position.
|
||||||
>
|
>
|
||||||
> ```python
|
> ```python
|
||||||
> ex = [{"text": "But Google is starting from behind.",
|
> 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}]
|
> "title": None}]
|
||||||
> html = displacy.render(ex, style="ent", manual=True)
|
> html = displacy.render(ex, style="ent", manual=True)
|
||||||
> ```
|
> ```
|
||||||
|
@ -323,7 +323,7 @@ position.
|
||||||
### ENT input
|
### ENT input
|
||||||
{
|
{
|
||||||
"text": "But Google is starting from behind.",
|
"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
|
"title": None
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue
Block a user