mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-29 03:16:31 +03:00
Fixed span example error
Span as written gives empty text.
This commit is contained in:
parent
7f6be41f21
commit
cb418c7aef
|
@ -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