From 720d2231f69975f677460462964cd760b817390e Mon Sep 17 00:00:00 2001 From: Sebastin Santy Date: Thu, 22 Mar 2018 03:13:23 +0530 Subject: [PATCH 1/2] Update doc.jade --- website/api/doc.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/api/doc.jade b/website/api/doc.jade index 7dc5e9842..9a0b3253d 100644 --- a/website/api/doc.jade +++ b/website/api/doc.jade @@ -674,7 +674,7 @@ p | token vectors. +aside-code("Example"). - apples = nlp(u'I like apples') + doc = nlp(u'I like apples') assert doc.vector.dtype == 'float32' assert doc.vector.shape == (300,) From 793d29904fe6081577b7f3f90e1ba6cd409b3ee9 Mon Sep 17 00:00:00 2001 From: Sebastin Santy Date: Thu, 22 Mar 2018 03:51:38 +0530 Subject: [PATCH 2/2] Update _similarity.jade --- website/usage/_spacy-101/_similarity.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/usage/_spacy-101/_similarity.jade b/website/usage/_spacy-101/_similarity.jade index 1cf761179..ad9ac21bd 100644 --- a/website/usage/_spacy-101/_similarity.jade +++ b/website/usage/_spacy-101/_similarity.jade @@ -37,7 +37,7 @@ p +cell.u-text-label.u-color-theme=label for cell in cells +cell.u-text-center - - var result = cell > 0.5 ? ["yes", "similar"] : cell != 1 ? ["no", "dissimilar"] : ["neutral", "identical"] + - var result = cell < 0.5 ? ["no", "dissimilar"] : cell != 1 ? ["yes", "similar"] : ["neutral", "identical"] | #[code=cell.toFixed(2)] #[+procon(...result)] p