Merge pull request #1082 from yuvalpinter/patch-3

Fixed span example error
This commit is contained in:
Ines Montani 2017-05-23 16:58:25 +02:00 committed by GitHub
commit e6f4bf7af2

View File

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