From ff51fba96a22185bade05f807add56dc1530adbc Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Thu, 12 Sep 2019 16:26:33 +0200 Subject: [PATCH] Update lemmaitzer docs [ci skip] --- website/docs/api/lemmatizer.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"] > ```