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]