mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-28 19:06:33 +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.')
|
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"])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user