From 63c6ae4191ba88d4eb00ac3ebb278b92b539d8b9 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 6 Nov 2017 11:57:06 +0100 Subject: [PATCH] Fix lemmatizer test --- spacy/tests/lang/en/test_tagger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tests/lang/en/test_tagger.py b/spacy/tests/lang/en/test_tagger.py index 37d43d0c7..a77e6d636 100644 --- a/spacy/tests/lang/en/test_tagger.py +++ b/spacy/tests/lang/en/test_tagger.py @@ -11,7 +11,7 @@ import pytest def test_en_tagger_load_morph_exc(en_tokenizer): text = "I like his style." tags = ['PRP', 'VBP', 'PRP$', 'NN', '.'] - morph_exc = {'VBP': {'like': {'L': 'luck'}}} + morph_exc = {'VBP': {'like': {'lemma': 'luck'}}} en_tokenizer.vocab.morphology.load_morph_exceptions(morph_exc) tokens = en_tokenizer(text) doc = get_doc(tokens.vocab, [t.text for t in tokens], tags=tags)