mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
Add note on manual entity order in displaCy [ci skip]
This commit is contained in:
parent
58eb178667
commit
f377c483e4
|
@ -74,7 +74,8 @@ p
|
||||||
| #[+a("https://github.com/tensorflow/models/tree/master/research/syntaxnet") SyntaxNet].
|
| #[+a("https://github.com/tensorflow/models/tree/master/research/syntaxnet") SyntaxNet].
|
||||||
| Simply convert the dependency parse or recognised entities to displaCy's
|
| Simply convert the dependency parse or recognised entities to displaCy's
|
||||||
| format and set #[code manual=True] on either #[code render()] or
|
| format and set #[code manual=True] on either #[code render()] or
|
||||||
| #[code serve()].
|
| #[code serve()]. When setting #[code ents] manually, make sure to supply
|
||||||
|
| them in the right order, i.e. starting with the lowest start position.
|
||||||
|
|
||||||
+aside-code("Example").
|
+aside-code("Example").
|
||||||
ex = [{'text': 'But Google is starting from behind.',
|
ex = [{'text': 'But Google is starting from behind.',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user