From 7ed8a92ed1a0e3d10f9e0efb14c92029f13d356a Mon Sep 17 00:00:00 2001 From: ines Date: Sat, 20 May 2017 15:13:33 +0200 Subject: [PATCH] Update docstrings and API docs for Token --- spacy/tokens/token.pyx | 2 +- website/docs/api/token.jade | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/spacy/tokens/token.pyx b/spacy/tokens/token.pyx index fb459b155..7dc970fa1 100644 --- a/spacy/tokens/token.pyx +++ b/spacy/tokens/token.pyx @@ -262,7 +262,7 @@ cdef class Token: return numpy.asarray(vector_view) property vector_norm: - """The L2 norm of the document's vector representation. + """The L2 norm of the token's vector representation. RETURNS (float): The L2 norm of the vector representation. """ diff --git a/website/docs/api/token.jade b/website/docs/api/token.jade index f2fb6ca47..9be41081c 100644 --- a/website/docs/api/token.jade +++ b/website/docs/api/token.jade @@ -239,8 +239,7 @@ p +tag property +tag-model("vectors") -p - | A real-valued meaning representation. +p A real-valued meaning representation. +aside-code("Example"). doc = nlp(u'I like apples') @@ -258,8 +257,7 @@ p +tag property +tag-model("vectors") -p - | The L2 norm of the token's vector representation. +p The L2 norm of the token's vector representation. +aside-code("Example"). doc = nlp(u'I like apples and pasta')