diff --git a/website/docs/api/lemmatizer.md b/website/docs/api/lemmatizer.md index fd71d16cf..8b6d9dcf6 100644 --- a/website/docs/api/lemmatizer.md +++ b/website/docs/api/lemmatizer.md @@ -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"] > ```