mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-28 02:46:35 +03:00
Merge pull request #1082 from yuvalpinter/patch-3
Fixed span example error
This commit is contained in:
commit
e6f4bf7af2
|
@ -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"])
|
||||
|
|
Loading…
Reference in New Issue
Block a user