diff --git a/2-svd-nmf-topic-modeling.ipynb b/2-svd-nmf-topic-modeling.ipynb index f9d50bf..c87fc38 100644 --- a/2-svd-nmf-topic-modeling.ipynb +++ b/2-svd-nmf-topic-modeling.ipynb @@ -569,7 +569,10 @@ "outputs": [], "source": [ "from spacy.lemmatizer import Lemmatizer\n", - "lemmatizer = Lemmatizer()" + "from spacy.lookups import Lookups\n", + "lookups = Lookups()\n", + "lookups.add_table(\"lemma_rules\", {\"noun\": [[\"s\", \"\"]]})\n", + "lemmatizer = Lemmatizer(lookups)" ] }, { @@ -1761,4 +1764,4 @@ }, "nbformat": 4, "nbformat_minor": 2 -} +} \ No newline at end of file