Closed ghollah closed 5 years ago
Thanks!
Do you want to go ahead and submit a Pull Request to fix this? The relevant file is https://github.com/explosion/spaCy/blob/master/website/docs/api/lemmatizer.md, and generic guidelines for contributing to spaCy can be found here.
I will do that.
On Wed, Oct 9, 2019 at 8:38 AM Sofie Van Landeghem notifications@github.com wrote:
Thanks!
Do you want to go ahead and submit a Pull Request to fix this? The relevant file is https://github.com/explosion/spaCy/blob/master/website/docs/api/lemmatizer.md, and generic guidelines for contributing to spaCy can be found here https://github.com/explosion/spaCy/blob/master/CONTRIBUTING.md.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/explosion/spaCy/issues/4406?email_source=notifications&email_token=ADD7OOCDCWR352M5VUX5FE3QNVU4JA5CNFSM4I62DKA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAWVARQ#issuecomment-539840582, or mute the thread https://github.com/notifications/unsubscribe-auth/ADD7OOAENFQFSO35BSKNCFTQNVU4JANCNFSM4I62DKAQ .
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Which page or section is this issue related to?
from spacy.lemmatizer import Lemmatizer from spacy.lookups import Lookups lookups = Loookups() lookups.add_table("lemma_rules", {"noun": [["s", ""]]}) lemmatizer = Lemmatizer(lookups) lemmas = lemmatizer("ducks", "NOUN") assert lemmas == ["duck"]
Suggestion: Remove extra o in the lookups = Loookups()