Update lemmaitzer docs [ci skip]

This commit is contained in:
Ines Montani 2019-09-12 16:26:33 +02:00
parent 25b2b3ff45
commit ff51fba96a
1 changed files with 2 additions and 2 deletions

View File

@ -35,8 +35,8 @@ Lemmatize a string.
>
> ```python
> from spacy.lemmatizer import Lemmatizer
> from spacy.lang.en import LEMMA_INDEX, LEMMA_EXC, LEMMA_RULES
> lemmatizer = Lemmatizer(LEMMA_INDEX, LEMMA_EXC, LEMMA_RULES)
> rules = {"noun": [["s", ""]]}
> lemmatizer = Lemmatizer(index={}, exceptions={}, rules=rules)
> lemmas = lemmatizer("ducks", "NOUN")
> assert lemmas == ["duck"]
> ```