From 471eed4126f21830b01a8f8c1554602a9b3c77af Mon Sep 17 00:00:00 2001 From: ines Date: Sat, 19 Aug 2017 12:45:16 +0200 Subject: [PATCH] Add example to Span.merge() --- website/docs/api/span.jade | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/website/docs/api/span.jade b/website/docs/api/span.jade index 5b480b280..f15958e1c 100644 --- a/website/docs/api/span.jade +++ b/website/docs/api/span.jade @@ -150,6 +150,13 @@ p p Retokenize the document, such that the span is merged into a single token. ++aside-code("Example"). + doc = nlp(u'I like New York in Autumn.') + span = doc[2:3] + span.merge() + assert len(doc) == 6 + assert doc[2].text == 'New York' + +table(["Name", "Type", "Description"]) +row +cell #[code **attributes]