From 505d43b832cb64028b043461c621b24fa6c188af Mon Sep 17 00:00:00 2001 From: ines Date: Sun, 4 Jun 2017 23:33:26 +0200 Subject: [PATCH] Update norms example --- website/docs/usage/adding-languages.jade | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/docs/usage/adding-languages.jade b/website/docs/usage/adding-languages.jade index cc90db505..a0b77ad17 100644 --- a/website/docs/usage/adding-languages.jade +++ b/website/docs/usage/adding-languages.jade @@ -350,11 +350,11 @@ p | word exists, norms should always be in lowercase. +aside-code("Norms vs. lemmas"). - doc = nlp(u"I'm gonna") + doc = nlp(u"I'm gonna realise") norms = [token.norm_ for token in doc] lemmas = [token.lemma_ for token in doc] - assert norms == ['i', 'am', 'going', 'to'] - assert lemmas == ['i', 'be', 'go', 'to'] + assert norms == ['i', 'am', 'going', 'to', 'realize'] + assert lemmas == ['i', 'be', 'go', 'to', 'realise'] p | spaCy usually tries to normalise words with different spellings to a single,