Fixed span example error

Span as written gives empty text.
This commit is contained in:
Yuval Pinter 2017-05-23 10:54:13 -04:00 committed by GitHub
parent 7f6be41f21
commit cb418c7aef
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ p Get a #[code Token] object.
doc = nlp(u'Give it back! He pleaded.')
assert doc[0].text == 'Give'
assert doc[-1].text == '.'
span = doc[1:1]
span = doc[1:3]
assert span.text == 'it back'
+table(["Name", "Type", "Description"])