From 58eb178667d9319dddaf9990ea519375cc407dca Mon Sep 17 00:00:00 2001 From: ines Date: Wed, 7 Feb 2018 01:08:30 +0100 Subject: [PATCH] Update Doc.char_span docs [ci skip] --- website/api/doc.jade | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/website/api/doc.jade b/website/api/doc.jade index fd2fc34ef..7dc5e9842 100644 --- a/website/api/doc.jade +++ b/website/api/doc.jade @@ -245,7 +245,9 @@ p Check whether an extension has been registered on the #[code Doc] class. +tag method +tag-new(2) -p Create a #[code Span] object from the slice #[code doc.text[start : end]]. +p + | Create a #[code Span] object from the slice #[code doc.text[start : end]]. + | Returns #[code None] if the character indices don't map to a valid span. +aside-code("Example"). doc = nlp(u'I like New York') @@ -276,7 +278,7 @@ p Create a #[code Span] object from the slice #[code doc.text[start : end]]. +row("foot") +cell returns +cell #[code Span] - +cell The newly constructed object. + +cell The newly constructed object or #[code None]. +h(2, "similarity") Doc.similarity +tag method