mirror of https://github.com/explosion/spaCy.git
Fix initial example in EntityRuler API docs (#3999)
This commit is contained in:
parent
1167c303a0
commit
d2c474cbb7
|
@ -23,7 +23,7 @@ be a token pattern (list) or a phrase pattern (string). For example:
|
||||||
>
|
>
|
||||||
> ```python
|
> ```python
|
||||||
> # Construction via create_pipe
|
> # Construction via create_pipe
|
||||||
> ruler = nlp.create_pipe("entityruler")
|
> ruler = nlp.create_pipe("entity_ruler")
|
||||||
>
|
>
|
||||||
> # Construction from class
|
> # Construction from class
|
||||||
> from spacy.pipeline import EntityRuler
|
> from spacy.pipeline import EntityRuler
|
||||||
|
|
Loading…
Reference in New Issue