This commit is contained in:
ines 2017-10-23 10:38:13 +02:00
parent a31f048b4d
commit 3f0a157b33
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ 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 = doc[2:4]
span.merge()
assert len(doc) == 6
assert doc[2].text == 'New York'