Add example to Span.merge()

This commit is contained in:
ines 2017-08-19 12:45:16 +02:00
parent 404d3067b8
commit 471eed4126
1 changed files with 7 additions and 0 deletions

View File

@ -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]