From c66bd61e88a3f44331627938bac022ca2dd59cb2 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 21 Mar 2019 14:22:12 +0100 Subject: [PATCH] Fix lemmas --- spacy/lang/en/morph_rules.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spacy/lang/en/morph_rules.py b/spacy/lang/en/morph_rules.py index c19507d8a..54a108d53 100644 --- a/spacy/lang/en/morph_rules.py +++ b/spacy/lang/en/morph_rules.py @@ -427,8 +427,8 @@ MORPH_RULES = { "Tense": "Pres", "Mood": "Ind", }, - "has": {"POS": "AUX"}, - "does": {"POS": "AUX"}, + "has": {LEMMA: "have", "POS": "AUX"}, + "does": {LEMMA: "do", "POS": "AUX"}, }, "VBP": { "are": { @@ -477,9 +477,9 @@ MORPH_RULES = { "Tense": "Past", "Number": "Plur", }, - "did": {"POS": "AUX"}, - "had": {"POS": "AUX"}, - "'d": {"POS": "AUX"}, + "did": {LEMMA: "do", "POS": "AUX"}, + "had": {LEMMA: "have", "POS": "AUX"}, + "'d": {LEMMA: "have", "POS": "AUX"}, }, }