From ed7d268e9391e7257fcc197a71a809b13471afaa Mon Sep 17 00:00:00 2001 From: Pradeep Kumar Tippa Date: Wed, 7 Feb 2018 14:55:12 +0530 Subject: [PATCH] Fixing vocab doc Replacing "like" with "love", coffee suffix should be "fee" but not "ffe" --- website/usage/_spacy-101/_vocab.jade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/usage/_spacy-101/_vocab.jade b/website/usage/_spacy-101/_vocab.jade index 185e634fe..b81e0f33c 100644 --- a/website/usage/_spacy-101/_vocab.jade +++ b/website/usage/_spacy-101/_vocab.jade @@ -32,7 +32,7 @@ p | string to get its hash, or a hash to get its string: +code. - doc = nlp(u'I like coffee') + doc = nlp(u'I love coffee') assert doc.vocab.strings[u'coffee'] == 3197928453018144401 assert doc.vocab.strings[3197928453018144401] == u'coffee' @@ -70,7 +70,7 @@ p - var style = [0, 1, 1, 0, 0, 1, 1] +annotation-row(["I", "4690420944186131903", "X", "I", "I", true, false], style) +annotation-row(["love", "3702023516439754181", "xxxx", "l", "ove", true, false], style) - +annotation-row(["coffee", "3197928453018144401", "xxxx", "c", "ffe", true, false], style) + +annotation-row(["coffee", "3197928453018144401", "xxxx", "c", "fee", true, false], style) p | The mapping of words to hashes doesn't depend on any state. To make sure